سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 03:00 UTC
docs(stage3): capture live aggregate legacy blockers and no-mutation audit authorization
davoodmehraban89 committed
Oct 23, 2026 at 11:08 UTC
1db2c366b42b6b6f4c4b789528cbd9387fa2e0b7
1 file changed
+6
PROJECT_STATE.md
+6
@@ -241,3 +241,9 @@
241
- Quality Run 39870900664 COMPLETED SUCCESS exact SHA, full Chromium 124/124 plus all three PostgreSQL jobs; Security Run 39870900599 COMPLETED SUCCESS for CodeQL and Release Safety; Dependency Review remains SKIPPED because GitHub Dependency Graph is not enabled.
242
- RED proof retained in Draft PR #164: old test-only SHA 69dae3ec7165e30bf8cbdfcc7cebc9f0848c76ad, Quality Run 39868877199, 123 pass / 1 fail, explicitly missing vatMode/currencyCode/accountingVersion. Current source patch fixes these fields and purchase VAT/discount fields for NEW source records only; original posted records untouched.
243
- **No overall Stage 3/Finora release acceptance.** Missing: approved tenant-owner account-role mappings, separate actual server event posting from source (not just immutable amounts function), non-IRR/decimal/COGS/returns/payment approvals, hosted Staging/owner-ISP, encrypted Production backup and recovery, security Dependency Graph control, and migration/deployment signoff. No Production write, merge or paid resources. Continue next with safe isolated design/tests, not unilateral financial cutover.
244
+
245
+### 2026-10-23 — Stage 3 historical commercial source reconciliation audit (READ ONLY)
246
+- Continuation objective: prepare safe, zero-cost historical source compatibility classification without silently rewriting any customer invoice or journal. Branch audit/finora-stage3-legacy-source-readonly-20261023 forked from Stage3 Draft PR #165 SHA b1d290f1ce4d80c2ffaf84508062999bd2edfcfd. Neither main nor Production writable.
247
+- Fresh connected Production **read-only aggregate** SELECT (2026-10-23, no identifying rows returned) found 15 eligible invoice source records (formal/non_formal), 15 missing vatMode, 15 missing currencyCode, 9 missing accountingVersion, and 6 currently source-marked posted; no eligible purchase records. Other tested SQL-v1 fields missing were 0 for discount, VAT rate/type, payment method and item-array. This blocks **blind historical conversion**; any posted record remains immutable. Counts are as of query time only.
248
+- Planned deliverable: test-only deterministic fail-closed classification of real data shapes using strictly synthetic fixtures; no inference from VAT amount, display currency or accountingVersion, no historical batch repair, no identity/financial data export. Return aggregated remediation categories and explicit owner review requirements. Require Quality/Security and isolated runner evidence exact HEAD before acceptance.
249
+- Remaining release gates unchanged: real Production encrypted backup/restore, tenant owner account mapping signoff, read-only per-record authorization prior to *any* remediation, real hosted/owner ISP tests, non-rial/fractional/COGS policy, Production Stage1 compatibility and dependency graph security setting. Do NOT mark Stage3 or Finora complete, merge, deploy or spend money.