سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 20:45 UTC
docs(stage3): record independently verified JWT source-post QA and pending client cutover gates
davoodmehraban89 committed
Oct 23, 2026 at 03:12 UTC
189951196e47cb2942153582cf8b21edeccbef62
1 file changed
+7
PROJECT_STATE.md
+7
@@ -247,3 +247,10 @@
247
- Start QA-only branch qa/finora-stage3-ui-jwt-autopost-20261023 from previously verified Stage3 UI contract implementation HEAD b1d290f1ce4d80c2ffaf84508062999bd2edfcfd; no business code or schema changes permitted in this test iteration.
248
- Scope: first generate new invoice and purchase payloads by exercising real synthetic Chromium form UI, then use separate disposable LOCAL GoTrue Auth/password/JWT/PostgREST and local PostgreSQL to store the exact source metadata, publish synthetic organization-owner roles and invoke authenticated public.finora_journal_autopost with p_lines=NULL. Require server-owned balanced immutable journal, idempotent replay, tenant-negative and invalid-source rejection. Never call this a deployed source-client integration: the current UI still uses legacy browser jePostSourceRecord and Production RPC is missing.
249
- Document exact CI evidence and failures; fix only test fixture/CI if isolated failures reveal no application defect, otherwise report real application blocker. Do not modify historical Production records, real Auth, credentials, paid resources, main or PR162/165 merge.
250
+
251
+### 2026-10-23 — Stage3 real JWT source posting of browser-produced financial records verified
252
+- QA-only Draft PR #166 tested code HEAD 75589852450bf2dc1652998c37e5c2e32354db2b; parent is green Stage3 source-form Draft PR #165, itself targeting unmerged Stage2 feature PR #162; no merge to main.
253
+- Exact Stage3 local real-stack Run 39872790836 COMPLETED SUCCESS 5/5 jobs: genuine GoTrue local password session + JWT + real PostgREST server-authoritative finora_journal_autopost for **2 original synthetic Chromium sale/purchase source payloads**. The new fifth job 120151018671 logged FINORA_STAGE3_REAL_JWT_AUTOPOST_PASS, posted=2, replayed=2, rejected=3, balanced=true, unique=true, postedAudits=2, realGoTrue/JWT/PostgREST=true, remoteConnections=0 and productionMutation=false. Role mapping version 1 was published through synthetic owner RPC; neither financial lines nor numbers supplied by browser. Same job also passed direct actual UI-to-SQL-v1 2 positive and 12 negative monetary checks.
254
+- Other four disposable Supabase CI jobs: actual built Pages local JWT/manual real-stack, strict 1069-object/154-function snapshot parity, synthetic Stage1 rollback preserving data/version, and manual journal harness/3-path client contract all SUCCESS.
255
+- Quality Run 39872797038 COMPLETED SUCCESS exact same SHA: 124/124 browser Playwright including actual new sale and purchase source fields, plus all three independent database jobs. Security Run 39872797133 COMPLETED SUCCESS CodeQL and release-safety; Dependency Review SKIPPED, GitHub repository Dependency Graph remains disabled.
256
+- **No production finance integration completed or released:** the running UI still uses legacy jePostSourceRecord; an independent isolated test calling server RPC is evidence of server contract feasibility, not a client cutover. Needs a guarded async source sync/POST adapter preserving server-owned fields, CAS, tenant isolation, no blind retries, and per-source actual browser end-to-end before merge. Real tenant owner mappings and backups/restore, non-IRR pricing, quantity rounding and COGS remain separate unapproved gates. No Production SQL/data, main merge, paid cloud or deployment.