سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 22:00 UTC
docs(stage1): record verified sale purchase CI checkpoint and stop gate
davoodmehraban89 committed
Oct 17, 2026 at 14:28 UTC
a4a3167f9a3f5757c9e47bfc525d436dacf84ae4
1 file changed
+7
PROJECT_STATE.md
+7
@@ -118,3 +118,10 @@
118
119
### 2026-10-17 — Stage 1 account-mapping control scope approved; semantic RED first
120
- Owner authorizes **only** Stage 1 role-assignment protection + authoritative SQL contracts sale then purchase, each red-before-green with seeded independent 1000-case oracle. Contract rules fixed SQL; ONLY organization role-to-account assignment is versioned data, initial snapshot v1 with review requirement. Publication only organization owner, immutable audit, protected effective account fields, audit/enforce modes, recheck at post. Unsupported receipt/payment/expense/income and all other sources fail-closed until later approval; no Phase 1B, Stage 2/3, Production DDL/DML, main merge, or login-path activity. Historical postings informational only. Production guard remains OFF. Separate expected-red client job is NOT Stage 1 compatibility.
121
+
122
+### 2026-10-17 — Stage 1 sale+purchase checkpoint: isolated CI PASS, STOP for owner acceptance
123
+- Exact tested code SHA 83e031e1cda4b38662d37d61b01b6031634e854f; Actions run 39013215513 SUCCESS. Job supabase-cli-parity 117339931348: steps 13 (balanced wrong-sale negative), 14 (owner role assignment, audit/enforce sync, append-only and draft/post contract change), 15 (purchase RED first), 16 (sale/purchase semantic negatives, unsupported, cross-org and reversal idempotence), 17–31 regression/concurrency/security/schema parity PASS, step 32 schema artifact ID 12094172133. Historical RED proof: sale run 39010660696/job 117332320514/step 13; purchase run 39012780445/job 117338642036/step 15.
124
+- Independent JavaScript oracle for 1000 sale sources, seed 20261017, enforce, realistic chart: job 117339931168 step 7 PASS. Same for 1000 purchase sources: job 117339931270 step 7 PASS (run 39013215513).
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.