@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 0e070ce
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 22:00 UTC

docs(stage1): record owner's conditional sale/purchase-only acceptance and Stage 2 design gate

davoodmehraban89 committed Oct 17, 2026 at 16:14 UTC 0e070ce56cd959751c1fda528795786ece7cdd6b
1 file changed +7
PROJECT_STATE.md
+7
@@ -125,3 +125,10 @@
125 - Separate client-compat-expected-red-until-stage2 job 117339931399 step 7 passes ONLY as strict known-RED sentinel for three incompatibilities; it is NOT a green Stage 1 client integration.
126 - Fixed SQL contract rules; private immutable versioned organization role-to-account mappings, owner-only publish RPC, append-only audit and guard for protected account fields. Existing mapping bootstrap v1 remains UNAPPROVED pending actual owner review. Audit-mode legacy UI remains writable and audited. No Production code, migrations, guards, or rows changed.
127 - STOP after sale+purchase pending formal owner acceptance. Unsupported receipt/payment/expense/income and other sources remain fail-closed; no Stage 2/3, Phase 1B, login P1 work, main merge or Production deployment. Risks/unverified: two real tenant owner reviews, Production backup + restore, isolated staging full browser E2E, Production enforce/cutover and historical canonical semantic mismatch count.
128 +
129 +### 2026-10-17 — پذیرش مشروط Stage 1 توسط مالک؛ صرفاً این دامنه
130 +- **پذیرفته‌شده فقط:** هسته‌ی دفتر کل سروری (تعادل، قفل، نسخه‌بندی، شماره‌گذاری، ممیزی، RPCهای ژورنال). قرارداد autopost فقط برای **sale و purchase**.
131 +- **پذیرفته نیست:** receipt، payment، expense، income، petty_cash، depreciation، benefit، contract_statement، inventory_adjustment، payroll_run و سایر انواع؛ **همه fail-closed**. آمادگی Production، سازگاری کلاینت، هر نوع enforce روی Production نیز پذیرفته نیست.
132 +- شاهد مبنای پذیرش: SHA `83e031e1cda4b38662d37d61b01b6031634e854f`، Run `39013215513` SUCCESS، Job `117339931348` Steps 13–32، oracle sale Job `117339931168` Step 7، oracle purchase Job `117339931270` Step 7. Job `117339931399` Step 7 فقط EXPECTED RED است و سازگاری کلاینت نیست. Run اسناد قبلی `39026945693` روی SHA `a4a3167f9a3f5757c9e47bfc525d436dacf84ae4` نیز SUCCESS.
133 +- Stage 2 **فقط طرح سند دستی** بدون کدنویسی تا تصویب طرح توسط مالک؛ Stage 3 فقط گزارش مباحث هم‌ارزی JS/SQL، مقدار اعشاری، روش پرداخت، Production read-only و COGS. تا تأیید بعدی، **هیچ کد Stage 2 و هیچ تغییر روی مسیر ورود**. بدون Production DDL/DML، بدون merge به `main`، بدون Phase 1B و بدون Production enforce.
134 +- نکتهٔ انتشار: snapshotهای فعلی سازمان‌ها هنوز تأیید مالک همان سازمان را ندارند؛ استقرار Production و E2E واقعی جداگانه نیازمند مجوز و ارزیابی است.