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

docs: record exact-main selectors release, treasury test fix and unverified live gates

davoodmehraban89 committed Oct 15, 2026 at 22:12 UTC a032c9a5d65c34f12edc20534bec5a8ad5199341
1 file changed +10
PROJECT_STATE.md
+10
@@ -779,3 +779,13 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
779 - **Concurrent main change:** while PR #152 was green on head `100969c479425151ad98967e25a2b01fe748bfba` (Quality `38785133659` SUCCESS, Security `38785133640` SUCCESS; 122/122 Playwright PASS), another agent/workstream merged equivalent [PR #153](https://github.com/davoodmehraban89/Factor-easy/pull/153) as `700846635d5a6a213885a32bbd9f9164e42c731d`. It already adds the hardened-Pages synthetic product/buyer filter + option metadata + zero-write test, head Quality `38784715204`, Security `38784715247`, 122/122 PASS. PR #152 became conflicting and was **closed without merging** rather than duplicating source or overriding PROJECT_STATE. No live database mutation.
780 - **Additional independent QA issue from PR #152 CI:** initial Quality attempt `38784436583` had the F0-02 selector test PASS but unrelated existing `scripts/accounting-document-workflow.spec.js` 'seamless sale correction' fixture intermittently failed because `#auth-screen` remained visible. Its `authenticatedMockBrowser` waits for base `enterApp`, `commitSaveInvoice`, `pullAll` function existence but not full delayed organization/ERP bootstrap. It can invoke the mocked login before `organization-rbac.js` installs its wrapper, violating ready-order requirements. Branch `test/finora-accounting-boot-readiness-20261015` will apply a **test-only** readiness wait for `FinoraStartupStatus.extensionsReady`, `failedExtensionCount===0`, `authChecked===true`, without altering production app, finance data or Auth. Exact CI retest and protected merge pending.
781 - **Separate legitimate side effect confirmed by captured stack:** the previously unexplained synthetic `saveDatastore` call before search was `afMigrateLegacyProjects` one-time compatibility marker when `renderContacts` initialized. PR #153 tests no writes by instrumenting save **after** fixture initialization. Preserve current migration behavior; production migration correctness remains independent open audit, no automatic change.
782 +
783 +
784 +### 2026-10-15 F0-02 selector release and treasury fixture stabilization — EXACT MAIN VERIFIED
785 +- **Real test/work account read-only evidence:** authenticated [TinyFish `341e1f6d-a792-4b5e-b0b9-69908056b460`](https://agent.tinyfish.ai/runs/341e1f6d-a792-4b5e-b0b9-69908056b460) reached Commerce/Sales Invoice and filtered `بلوک` to **3** real options without choosing a product, saving invoice or modifying records. Buyer combobox was visible/interactive but **real buyer-result filtering was NOT performed**. The next run `a31d48d6-34ea-4b6d-91b3-7d28a0c817f5` could not reach the form; intermittent TinyFish navigation is not independently confirmed as an app defect.
786 +- **Synthetic hardened Pages browser acceptance:** [PR #153](https://github.com/davoodmehraban89/Factor-easy/pull/153) merged into protected `main` as `700846635d5a6a213885a32bbd9f9164e42c731d`. Adds Playwright on built `_site` invoice product & buyer dropdowns with fake records owned by the fixture user plus unrelated owner. Product query `بلوک` and buyer query `شرکت` yield 2 own-user options each; never select, save or create. Assert no cross-owner suggestions, unchanged select values, correct underlying unit/price metadata, zero `saveDatastore` calls, zero created invoices; script is test-only. PR-final-head Quality `38785302511` SUCCESS, Security `38785302405` SUCCESS, **122/122** Chromium PASS.
787 +- **Exact-main initial Quality detected intermittent finance-fixture bootstrap issue:** Quality `38785778369` FAILURE, **121/122** Playwright PASS; sole failing treasury test `scripts/accounting-document-workflow.spec.js:499` was still on visible auth screen after mock login, before financial checks. Security `38785778160` SUCCESS; gated Pages intentionally SKIPPED until fixed. This is an actual release blocker, not a verified bug in treasury accounting amounts.
788 +- **Concurrent solution reconciled:** Another workstream merged [PR #154](https://github.com/davoodmehraban89/Factor-easy/pull/154) as protected-main `5f4ca4a6746557edc43a5106500587ad7784beab`. Its fixture-only change waits for `FinoraStartupStatus.extensionsReady===true`, `failedExtensionCount===0`, `authChecked===true` before installing synthetic `fetchCurrentUser`. No production finance/Auth/license/RLS/schema changes. Our equivalent [PR #155](https://github.com/davoodmehraban89/Factor-easy/pull/155) was closed **without merge** due to overlap/conflict; never overwrite concurrent fix.
789 +- **Final exact-main checks on `5f4ca4a6746557edc43a5106500587ad7784beab`:** Quality [`38787027438`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38787027438) SUCCESS, static job `116601549493` **122/122 Chromium PASS**, including previous intermittent treasury scenario; Security [`38787027331`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38787027331) SUCCESS; Release Gate [`38787487143`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38787487143) SUCCESS; gated Deploy Pages [`38787580775`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38787580775) SUCCESS. Superseded duplicate release runs are cancelled/skipped, not missing accepted gates.
790 +- **Current acceptance:** F0-02 real **product** lookup PASS for one authorized account, **synthetic product/buyer** filtered search PASS on production-built artifact; **real buyer filtered results still OPEN**, as are affected-ISP initial sign-in, actual financial write/recovery flows and encrypted production SQL backup+off-device copy+isolated restore (`PRODUCTION_BACKUP_NOT_RUN / RECOVERY_NOT_VERIFIED`). Do not mark full Phase 0 complete. No live Supabase operations, changed entitlements, financial saves or new paid services.
791 +- **Next safe action:** only if needed, owner/test-account read-only in-browser screen recording of buyer dropdown filter `شرکت`; keep no-write protection. Separately prepare on-device owner-held age key and authorized production database connection for first no-card backup/restore—cannot execute securely from expired Desktop Commander access. Rollback: revert test PR #153 / fixture PR #154 separately, each with exact protected-main regression gates.