سامانه صدور فاکتور و حسابداری
docs: record scoped Phase 0 slow-dispatcher regression plan
davoodmehraban89 committed
Oct 16, 2026 at 01:22 UTC
32c5839d60db551c87f302777ffb1f68815b48fe
1 file changed
+6
PROJECT_STATE.md
+6
@@ -797,3 +797,9 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
797
- **Prior independent LIVE product filter:** TinyFish [run `341e1f6d-a792-4b5e-b0b9-69908056b460`](https://agent.tinyfish.ai/runs/341e1f6d-a792-4b5e-b0b9-69908056b460) with same Test/Work profile reached invoice and filtered `بلوک` to **3 matching product options**, without selecting/saving. Later run `a31d48d6-34ea-4b6d-91b3-7d28a0c817f5` was inconclusive for navigation, but the new run confirms navigation and buyer search in a separate successful session. Generic TinyFish agent claims about absent `data-module=commerce` contradicted source HTML and should not be treated as a root cause.
798
- **Acceptance:** Phase 0 **F0-02 interactive product and buyer filtering PASS for observed authorized test account**; opening the invoice and reverting transient search state also PASS. Combined with 122/122 synthetic Playwright and protected Pages release, this closes the *two lookup UI acceptance checks only*. It does NOT prove committed invoice persistence, financial posting, cross-company data isolation, cold login performance on owner's affected ISP, or all user devices.
799
- **Next safe work:** Phase 0 F0-01 affected-network fresh login needs owner-device evidence; F0-03 actual invoice persistence/print cannot be certified by no-write TinyFish test; live backup and isolated restore remain `PRODUCTION_BACKUP_NOT_RUN / RECOVERY_NOT_VERIFIED` due missing secure authorized machine and owner-held age identity. Continue source-side audit/tests without operating on live financial records. This PR updates documentation only; rollback by reverting doc PR.
800
+
801
+### 2026-10-16 Owner continuation — F0-01 delayed Pages dispatcher / legacy-request differential (PLANNED, QA ONLY)
802
+- **Owner direction:** «ادامه بده». Rechecked current protected main `69e0721d7004e8497cf43aaf6ab259b49ac97681`, open login Issue #106 and latest buyer/product acceptance #157. Main Quality `38793466628`, Security `38793466635`, Release `38793944702`, Pages `38794031181` all SUCCESS; 122/122 controlled Chromium PASS, not owner-ISP cold-login acceptance.
803
+- **Evidence and hypothesis:** owner Chrome waterfall on prior affected hotspot had unusually slow `generated-dynamic-handlers.js` (~43s) and accounting Pages group (~15s), plus an unexpected pending standalone `enterprise-iran.js`. Current `scripts/build-pages.mjs` inserts the CSP-safe dynamic dispatcher as a bottom classic blocking script. This can delay `DOMContentLoaded` and therefore extension bootstrap; the network/initiator root cause and live current release remain unproven. Current bundler intentionally consolidates 38 core scripts into three ordered groups and 14 extensions into one bundle.
804
+- **Scoped plan:** add an isolated Playwright regression for generated `_site` Pages, with delayed dynamic dispatcher and a request ledger asserting early credential controls, expected DOM readiness sequencing, no premature workspace, complete later module readiness and no unexpected standalone legacy ERP request. Do not alter runtime/Auth/schema/RLS/roles/financial records/permissions; do not hide missing assets, bypass readiness or assume 304 is a failed response. If test reveals source defect, stop and separately review minimum fix; do not assume this QA proves owner affected-network performance.
805
+- **Acceptance / rollback:** exact PR-head Quality (122+ Chromium, Golden, three disposable DB) and Security PASS; docs and test-only branch, no production writes. Restore by reverting isolated PR. Live first signed-out login on owner's impacted Chrome/ISP remains F0-01 P0 OPEN; no invoice persistence/real backup signoff.