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

docs(stage3): register no-cost isolated real JWT source-post regression next gate

davoodmehraban89 committed Oct 23, 2026 at 10:55 UTC d40960377dd2dee53e1d1da5f8533334c65c4342
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 — Stage3 real JWT source-auto-post negative and positive test-only continuation
246 +- Owner: continue major required phases without premature completion messages. Previous no-foreign-payment/zero-cost, no Production DDL/DML, no deployment/merge, no historic financial source mutation remain binding.
247 +- Verified Stage3 PR #165 exact head b1d290f1ce4d80c2ffaf84508062999bd2edfcfd: all three GitHub run aggregates SUCCESS (39872017215 ephemeral 5 jobs, 39872024703 Quality, 39872024736 Security; Dependency Review is still not independently available). No paid or hosted staging.
248 +- Next narrow independent test branch test/finora-stage3-jwt-source-post-20261023 forked from the above verified SHA. Goal: use a truly local, unlinked GoTrue Auth login / bearer JWT / HTTP PostgREST RPC to create source-derived posted vouchers from *actual synthetic UI sale/purchase fixtures*. Require approved synthetic owner account-role mapping, deny other-tenant and unsigned requests, replay same source only once, deny unsupported currency and tampered lines; assert server-owned balance, journal number, ledger audit. Existing browser Client→Server autopost wiring itself remains NOT IMPLEMENTED, unapproved source types fail-closed.
249 +- Scope limited to new CI/test JS and this continuity entry, no SQL schema, financial UI, sync, tenant configuration or Production writes. Test result to be recorded only after completed exact-head CI. Future source cutover must not be inferred from passing QA alone.