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

Close and re-verify hardened Phase 3

davoodmehraban89 committed Sep 29, 2026 at 12:05 UTC 154158ab82aa49121a022e3acb2b9c8df998e366
2 files changed +3 -3
PROJECT_STATE.md
+2 -2
@@ -35,7 +35,7 @@ Before doing any project work:
35
36 | Date | Request / decision | Status | Evidence / next action |
37 |---|---|---|---|
38 -| 2026-09-29 | Reopen and fully harden Phase 3 after independent accounting review; fix fiscal-date posting, non-accounting document posting, reversal reconciliation, atomic persistence, server-side ledger guards, concurrency uniqueness and behavioral verification. | IN PROGRESS | Supabase migration `phase3_hardening_atomic_sync_and_ledger_guards` applied. GitHub implementation through `978a8790`; final CI/production verification pending. |\n| 2026-09-29 | Establish a permanent in-repository continuity file so any future AI/chat can resume without relying on conversation history. Every material request must be recorded here before implementation and every durable checkpoint must update this file. | COMPLETED | `PROJECT_STATE.md` created in commit `9436b9014f8ce59e1a8c8dc238d1050831785c8f`; root `AGENTS.md` discovery instructions added in `dcabf31e7f9454ff84441cadb1e9aef85fff964c`. |
38 +| 2026-09-29 | Reopen and fully harden Phase 3 after independent accounting review; fix fiscal-date posting, non-accounting document posting, reversal reconciliation, atomic persistence, server-side ledger guards, concurrency uniqueness and behavioral verification. | COMPLETED | Supabase migration `20260929083130 phase3_hardening_atomic_sync_and_ledger_guards` applied. Final implementation/evidence head before state closure: `c02e714c`; Quality run 36543480690 success; Security run 36543480544 success; Pages run 36543480478 success; Supabase migration/functions/unique indexes verified; Performance advisor clean. |\n| 2026-09-29 | Establish a permanent in-repository continuity file so any future AI/chat can resume without relying on conversation history. Every material request must be recorded here before implementation and every durable checkpoint must update this file. | COMPLETED | `PROJECT_STATE.md` created in commit `9436b9014f8ce59e1a8c8dc238d1050831785c8f`; root `AGENTS.md` discovery instructions added in `dcabf31e7f9454ff84441cadb1e9aef85fff964c`. |
39 | 2026-09-29 | Continue product under working name Finora; final commercial brand may change later. Do not block engineering on naming. | ACTIVE DECISION | Rebrand must be a controlled migration when a final name is chosen. |
40 | 2026-09-29 | Six-phase redesign/ERP roadmap supersedes older phase numbering. | ACTIVE ROADMAP | Phases 1–3 verified complete; Phase 4 is next. |
41 | 2026-09-29 | Owner reaffirmed permanent autonomous-manager behavior, five high-assurance specialist workstreams, mandatory pre/post change capture, and the approved Finora dashboard image as the visual source of truth for every future AI/chat. | COMPLETED | Root `AGENTS.md` + `PROJECT_STATE.md` are mandatory; visual path `docs/reference/finora-ui-target-v1.jpg`; original owner-upload SHA-256 `6bef9d5bbf7e309455b1014864c80026c2ed50fa716e9fa6b0554dacec4f12db`; portable bootstrap stored in `AI_BOOTSTRAP.md`. |
@@ -179,7 +179,7 @@ Delivered:
179 Critical dimension invariant:
180 A dimension’s hierarchy depth is explicitly configured. Once values exist, depth cannot be changed directly. Used financial identities are not destructively deleted; they are deactivated/versioned/migrated. Group nodes are non-postable when leaf-only is enabled. Storage is normalized and not limited to floating1..floating4.
181
182 -### Phase 3 — HARDENING VERIFICATION IN PROGRESS
182 +### Phase 3 — COMPLETED (HARDENED & RE-VERIFIED)
183 Verification: docs/PHASE_3_REDESIGN_VERIFICATION.md
184 Final evidence commit: 8761d21189d9c4058c3019ea6e42d4103fc83556
185 Final head CI: Quality success 36443016075; Security success 36443016203; Pages success 36443015338.
docs/PHASE_3_REDESIGN_VERIFICATION.md
+1 -1
@@ -96,4 +96,4 @@ Phase 3 was reopened after an independent accounting review found defects not ex
96
97 Production migration applied: `phase3_hardening_atomic_sync_and_ledger_guards`.
98
99 -A behavioral engine gate now executes receipt posting, debit/credit balance, Jalali fiscal-year resolution, duplicate source rejection, reversal reconciliation, and fiscal lock rejection. Final acceptance is pending green CI and production re-verification on the final head.
99 +A behavioral engine gate now executes receipt posting, debit/credit balance, Jalali fiscal-year resolution, duplicate source rejection, reversal reconciliation, and fiscal lock rejection. Acceptance evidence: Quality run 36543480690 success; Security run 36543480544 success; Pages deployment run 36543480478 success. Production migration `20260929083130 phase3_hardening_atomic_sync_and_ledger_guards` is applied. The transactional sync RPC is SECURITY INVOKER with anonymous execution revoked and authenticated execution granted. Ledger voucher-number and source/version unique indexes are present. Supabase performance advisor returned no findings. Phase 3 hardening is accepted.