@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / c614968
Fork 0

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

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 4, 14:15 UTC

docs: record exact-main treasury fixture initialization race and halted release gate

davoodmehraban89 committed Oct 15, 2026 at 22:03 UTC c614968a3c442826d1ee7ee5cb1c43242332c95b
1 file changed +7
PROJECT_STATE.md
+7
@@ -773,3 +773,10 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
773
774 - **TEST PASS on exact initial PR code head `f7128b21c3b65e03d1a418e07a1818a8aa98abda`:** [PR #153](https://github.com/davoodmehraban89/Factor-easy/pull/153), Quality [`38784715204`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38784715204) SUCCESS, Security [`38784715247`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38784715247) SUCCESS. Job `116593641627` logs **122/122 Chromium PASS** (new `scripts/pages-artifact.spec.js:185` test at [72/122]), all disposable DB D1, C8, identity jobs SUCCESS. The generated Pages CSP-safe product filter for `بلوک` and buyer filter for `شرکت` each returns only TWO synthetic own-user records, no cross-user options, and product `data-unit`/`data-price` metadata stays available; neither selects a different product/buyer, invokes `saveDatastore` nor creates invoice. This proves **synthetic filter behavior only**, not real buyer search or persisted invoice correctness.
775 - **Exact next work:** await final PR head Quality/Security checks after appending this evidence, squash merge #153 if green, recheck protected-main Quality/Security/Release Gate/Pages exact SHA. Keep F0-02 real buyer filter NOT VERIFIED, affected owner ISP cold sign-in NOT VERIFIED, production backup+restore NOT RUN. Avoid additional paid-agent browsing absent a reliable way to reach the real buyer dropdown; no financial actions were taken.
776 +
777 +
778 +### 2026-10-15 CI regression triage after #153 — FINANCIAL TEST HARNESS BOOTSTRAP RACE
779 +- **Protected-main merge:** [PR #153](https://github.com/davoodmehraban89/Factor-easy/pull/153), exact main `700846635d5a6a213885a32bbd9f9164e42c731d`; PR-head Quality `38785302511` SUCCESS and Security `38785302405` SUCCESS. New generated-Pages product/buyer synthetic test passes.
780 +- **Important exact-main gate FAILURE:** Quality [run `38785778369`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38785778369) FAILED with **121/122 Chromium PASS**. Sole failure: `scripts/accounting-document-workflow.spec.js:499` treasury amendment mock browser helper's assertion `#auth-screen.toBeHidden()` timed out after 5s; line 60 in helper `authenticatedMockBrowser`. No financial equality, balance, posting, or persistence assertion failed. Security [`38785778160`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38785778160) SUCCESS. Release gate and Pages must not be considered passed; Pages skipped due Quality failure.
781 +- **Source analysis:** helper waits only for core functions before installing synthetic `fetchCurrentUser`, then calls `enterApp`. Async `js/organization-rbac.js` is allowed to install/re-wrap `fetchCurrentUser` after this, overriding the synthetic fixture, even though production `enterApp` correctly waits for organization readiness. This creates nondeterministic test isolation: a finance fixture may enter via org wrapper when the wrapper loads after its mock. Need wait `FinoraStartupStatus.extensionsReady` BEFORE setting auth adapter to ensure it cannot be overwritten during fixture setup, then re-run ALL accounting/browser/security gates. No change to production auth or finance implementation warranted.
782 +- **Scope:** adjust the *synthetic account fixture's readiness precondition*, keep actual finance test intact; optionally assert 14 modules ready and no failed assets. No Supabase schema/Auth/RLS/license/posted-finance mutations, no paid subscription. Exact next: review CI result on PR, merge only after full Quality/Security success, guarded Pages on exact main SHA, update ledger with verified outcome and leave live buyer filter and backup OPEN.