سامانه صدور فاکتور و حسابداری
docs(stage3): record verified real local JWT source-post negative tests and release blockers
davoodmehraban89 committed
Oct 23, 2026 at 11:04 UTC
72549ca8928fb1a97acca68b6ed5a029c9974578
1 file changed
+8
PROJECT_STATE.md
+8
@@ -247,3 +247,11 @@
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.
250
+
251
+### 2026-10-23 — JWT source-post real network test verified on c987b0e
252
+- Purpose: test-only exact-source, real local JWT/PostgREST gate for the Stage3 sale/purchase monetary contract. No Production edits, paid compute, deployments, merges, or live user records.
253
+- At source/test SHA c987b0eea3a4d331717b0a47632e838cdd452ca3, standalone local Supabase run 39917946212 COMPLETED SUCCESS, all five jobs. Real JWT job 120295933058 printed FINORA_STAGE3_REAL_JWT_SOURCE_POST_PASS: actual synthetic Chromium form source records sale and purchase posted once each via real local GoTrue login + bearer JWT + HTTP PostgREST public.finora_journal_autopost, balanced 3 lines each, one posted audit each, single server-generated number and replay true, five negative tenant/owner mapping/tampered lines/unsupported source/non-rial controls; foreignConnections=0.
254
+- The same job independently printed FINORA_STAGE3_UI_SQL_V1_PASS: two positives and twelve deliberate SQL-v1 negative source validation cases. Stage2 real-stack, 3/3 client harness, strict snapshot parity and Stage1 UP/DOWN/UP rollback all SUCCESS. Synthetic account-role mapping owner publication is isolated, not a real tenant approval.
255
+- Quality Run 39917954767 COMPLETED SUCCESS, Chromium 124/124 (Job 120296388036) and three PostgreSQL DB jobs SUCCESS; Security Run 39917954818 COMPLETED SUCCESS for CodeQL and release safety. Dependency Review remained SKIPPED, GitHub Dependency Graph setting still blocks native audit.
256
+- Draft PR #169 points to PR #165 test-only branch, not main; exact verified technical SHA c987b0e. Follow-on entry itself only changes this continuity document; technical test evidence applies to prior SHA until a repeat on documentation-only final head succeeds.
257
+- STILL OPEN: actual app commercial source client-to-RPC cutover, approved tenant-specific account-role chart and financial governance; fractional/other currency/COGS/returns/payment rules, historic VAT repair (never infer), owner-ISP and hosted Staging, encrypted real Production backup/restore, migration cutover, Stage2.2 and Stage3 owner acceptance. NO project completion or release claim.