سامانه صدور فاکتور و حسابداری
docs: identify duplicate enterprise loader and scope one-line repair
davoodmehraban89 committed
Oct 16, 2026 at 01:36 UTC
0ca55043e79600419428761c3c3e85372f2ba26f
1 file changed
+1
PROJECT_STATE.md
+1
@@ -804,3 +804,4 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
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.
806
- **First independent CI result on PR #158 head `926a44321daf56f989a595b74048145e155451cc`:** Security `38813224607` SUCCESS; Quality `38813224500` FAIL, **122/123 Chromium PASS**. The one new synthetic hardened-Pages test confirmed early login remains available during deliberately delayed bottom dynamic dispatcher, but detected a standalone `enterprise-iran.js` network request, contrary to expected bundling. Three disposable DB jobs, Golden and other financial invariants passed. Do not merge or deploy this test-only PR while failing. Next: capture request resource type + Chromium Network initiator on this isolated fixture to distinguish duplicate executed script, speculative preload, or diagnostic fetch. This is an actual test failure, not yet proven runtime financial corruption or a confirmed owner-ISP fix.
807
+- **CDP root cause evidence / bounded implementation decision, before code edit:** PR #158 head `6dc91cddf403a2d482c30795f2b32e20cd6b82d2`, Quality `38814011317` 122/123 Chromium with same intentional test FAIL, Security `38814011321` PASS. Chromium `Network.requestWillBeSent` identifies a real **Script** request to `/_site/js/enterprise-iran.js`, initiator `finora-pages-foundation.js` line 565. Source mapping through ordered foundation bundle reveals `js/ui.js` line 218: a `DOMContentLoaded` listener injects a second `<script src=js/enterprise-iran.js>`. This duplicates the same ERP module already in the required accounting Pages bundle; raw development `index.html` also separately includes it statically at line 941. **Authorized narrow fix:** delete ONLY this dynamic redundant script insertion from `js/ui.js`, retain enterprise module in original static index and Pages accounting bundle and preserve module rail rendering; keep strict fail-closed gating and test full Chromium/Golden/DB/Security. Do not combine unrelated CSP handler files in this fix. Rollback by reverting ui.js one-line change.