@davoodmehraban89 / Factor-easy / commits / 2e0429a
Fork 0

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

docs(stage3): scope next free local real JWT source posting acceptance gate

davoodmehraban89 committed Oct 23, 2026 at 03:02 UTC 2e0429a0e55f982041bc605744eb74724892da55
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 next gate: actual UI synthetic source through real local JWT event posting
246 +- User wants continued phased actual work without premature project-completion messages; no international payment or cost is permitted. Preserve separate Production authorization gate, posted history, immutable events and tenant isolation.
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.