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

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

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

Synced Dec 4, 03:00 UTC

docs(stage3 audit): checkpoint measured 15-row legacy gap and exact-head red-green QA

davoodmehraban89 committed Oct 23, 2026 at 11:23 UTC 283af3e2e65ca6511b08ded9dac6774c35a54798
1 file changed +6
PROJECT_STATE.md
+6
@@ -247,3 +247,9 @@
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.
250 +
251 +### 2026-10-23 — Stage3 historical invoice audit exact-head verification (not Production remediation)
252 +- Synthetic compatibility classifier branch: audit/finora-stage3-legacy-source-readonly-20261023, Draft PR #170. Actual Production check was READ-ONLY and aggregate-only: eligible invoices=15, missing vatMode=15, missing currencyCode=15, missing accountingVersion=9, source marked posted=6, eligible purchases=0. No actual financial rows exported or changed.
253 +- RED first: Stage3 legacy regression source SHA b38306099355f0dc74225efcfe8d418c85163c81, local test workflow Run 39920105224 FAILED correctly: full discount means net=0 even when fixed VAT makes gross positive; expected server mismatch 1 but got 0. GREEN fix source SHA 66bb21af0487b9ef6b93ef806d910d95ce10efe2 adds net>0 compatibility invariant and Run 39920129723 SUCCESS with FINORA_STAGE3_LEGACY_CLASSIFIER_PASS, 8 synthetic sources and extra zero-net negative, no data mutation and no identifying output.
254 +- On exactly code SHA 66bb21af0487b9ef6b93ef806d910d95ce10efe2: Quality Run 39920134767 COMPLETED SUCCESS, 124/124 Chromium and all 3 PostgreSQL jobs; Security Run 39920134884 COMPLETED SUCCESS CodeQL and release gate; native Dependency Review remains SKIPPED (GitHub Dependency Graph setting still blocked). All logs and links recorded in PR #170.
255 +- This continuity-only commit follows the verified code SHA; it does NOT reapprove or alter any actual historic source or posted journal. Stage3 source-to-RPC client integration, account-role mapping owner signoff, 15 invoice case-by-case VAT/currency reconstruction, encrypted Production backup+restore, independent owner-ISP/hosted staging, migration path and security graph remain OPEN. No Production DDL/DML, no main merge, no payments, no claimed project completion.