@davoodmehraban89 / Factor-easy / commits / 3c4efef
Fork 0

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

docs(stage2.2): record fully green JWT real-stack, 123 UI tests and stale-mode edge proof

davoodmehraban89 committed Oct 20, 2026 at 08:57 UTC 3c4efef047da58f150b8e39fa066f79b7d5b54e8
1 file changed +7
PROJECT_STATE.md
+7
@@ -212,3 +212,10 @@
212 - An independent edge-case review identified a **stale off/audit UI cache**: an owner could enable enforce elsewhere while the existing tab retained audit. Server triggers were authoritative, but a normal UI action could temporarily use the wrong path.
213 - Before saving, posting or deleting a manual draft, `js/journal-ui.js` now re-reads organization guard mode from the server; no refresh to a full datastore and no changes to source/commercial flows. `scripts/stage22-real-stack.mjs` now asserts a real JWT-mediated AUDIT→ENFORCE flip with a stale browser cache and proves the UI produces an unnumbered server draft after refresh.
214 - Previous green exact-head evidence is for `44df49a2fc20c35cddd0665bba945d1e4bd38237` only; this new change requires a fresh all-green exact SHA before claiming verified.
215 +
216 +
217 +### 2026-10-20 — Stage2.2 UI stale-mode edge fix verified (source SHA 4ca089f9142cc2dcd80fb6a2ed9bcb1254db4ec0)
218 +- Quality Run **39374553328** Job **118469646441** Step 54 **SUCCESS 123/123 browser tests**; 3 database jobs PASS. Security **39374553303** CodeQL Job **118469646465** PASS; safety Job **118469646631** PASS; Dependency Review conditional Job **118469647817 SKIPPED**.
219 +- Real-stack Run **39374548931** Job **118469632458** PASS (artifact **12241799674**) including new **AUDIT→ENFORCE stale-client UI revalidation**; real password/JWT, local Auth/PostgREST, direct forged-post HTTP 400, other-organization HTTP 403, balanced posted voucher, unique number, audit, old-client audit violation, sanitized network trace. Harness Run **39374548882** Job **118469631994** PASS 3/3 and negative, artifact **12242866971**.
220 +- Local baseline-snapshot parity Run **39374548888** Job **118469632524** PASS (artifact **12243495097**); NOT fresh Production. Stage2.1 canaries **39374548884** both jobs PASS. Code-only findings fixed: uncertain treasury financial sync no blind retry; UI refreshes server mode before save/post/delete even if cached audit.
221 +- Automated reviewers: functional Quality, security CodeQL/negative JWT REST, edge real-stack/canaries independently executed as **CI**. These are NOT separately launched external agent approvals; true three-agent sign-off unavailable and must not be claimed. Owner Stage2.2 acceptance HOLD, PR #162 Draft [DO NOT MERGE], no Production changes, main merge, Phase1B, Stage2.3 or stopped login work.