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

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

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

Synced Dec 4, 08:00 UTC

docs(phase1a): record scoped owner approval and three-stage stop gates

davoodmehraban89 committed Oct 16, 2026 at 16:28 UTC ca0e28b2c7813c47985877208a1ccd4b2d5ac33e
1 file changed +7
PROJECT_STATE.md
+7
@@ -53,3 +53,10 @@
53 - Genuine isolated GitHub Actions result **38889304877 SUCCESS**, see `docs/FINORA_PHASE1A_CLI_QA_CHECKPOINT_2026-10-16.md`. Red-before-fix 11 failed; after 1A test migrations 11 passed. CAS, cross-tenant, 1000 postings+1000 compensating reversals, indexed 10000-voucher benchmark, JS syntax all PASS.
54 - **Still not a releasable Phase 1A**: `js/journal-engine.js` authentic user-created draft carries protected `status`/`number`; protected `postedAt` mutation via client sync also remains, likely blocking actual journal UX. Need a dedicated server-side allowed transition path and non-Production browser E2E. Full migration up/down/up with preserved data, direct PostgREST authorization, Security Definer grant audit, concurrency and multi-user UX remain unverified.
55 - Stop any production-facing release or merge until blocked items resolve; owner separately approves 1B later.
56 +
57 +### 2026-10-16 — Owner authorizes staged Phase 1A implementation, Stage 1 ONLY
58 +- Stage 1: server SQL only (five lifecycle RPCs + atomic source-post, tenant/year counter, computed reversal status, append-only basic audit, org guard off/audit/enforce), tests and CI preflight; STOP and report before Stage 2.
59 +- Stage 2 requires a new owner go-ahead: async strangler for manual journal UI with real Playwright; STOP before Stage 3.
60 +- Stage 3 requires another owner go-ahead: sale, purchase, receipt/payment and subsequent source integrations with browser gate per path.
61 +- No DDL/DML Production, no merge to main, no Phase 1B. No enforce activation without separately approved backup and browser acceptance. Posted originals immutable; reversal references original only, computed reversal status in view. Any necessary posted-original trigger exception must STOP for approval.
62 +- Existing risks to retain: client-editable fiscal year lock; operational inventory records with status/postedAt outside journal guard. Existing Phase 1A test CI at branch head before this request was RED for positive client journal flow; expected until Stage 2, never mark as green.