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

docs(state): record verified 38-script bundle release and owner sign-in still open

davoodmehraban89 committed Oct 13, 2026 at 01:42 UTC 028046c68ba1175d69fa315898e50c6b92c1a1d4
1 file changed +8
PROJECT_STATE.md
+8
@@ -127,6 +127,14 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
127 - Safe implementation scope: build three content-hashed source-order-preserving **Pages-only blocking script bundles** corresponding to exact contiguous script ranges (admin..words, patches..accounting, accounting-foundation..ux-hardening). Preserve standalone `vendor/supabase.js`, `js/login-connectivity.js`, `js/core.js`, `js/bootstrap.js`, generated CSP event listeners and extension bundle. Preserve original source/dev `index.html`; only rewrite built `_site/index.html` in `scripts/build-pages.mjs`. Static dependency and VM parse checks, real Chromium Pages runtime DOM/CSP test, withheld-late-bundle responsive login test and exactly three bundle-request assertion required. No production tenant/auth/finance changes.
128 - Genuine remedy acceptance: full Quality Chromium, Golden accounting, three disposable PostgreSQL, Security, exact SHA protected-main Release/Pages and owner actual affected-ISP login. Do not claim owner network repaired on CI pass. Existing issue #106 / F0-01 / Phase 0 OPEN. No remote-desktop quota circumvention.
129
130 +### 2026-10-13 F0-01 owner BOOT_APP_ASSETS repeated after #116 — 38 parser-blocking scripts bundled / PAGES RELEASED / OWNER LOGIN OPEN
131 +- **Owner evidence:** affected Chrome still showed `BOOT_APP_ASSETS` after earlier 14-extension bundling #116. The screenshot does not prove whether the latest HTML executed or rule out ISP/cache faults. Separate earlier `SITE_JS_TIMEOUT`/`MANIFEST_TIMEOUT` were own-domain no-store fetch failures; `AUTH_OK` public GoTrue health and `REST_HTTP_401` unauthenticated REST-root reply are not proofs of credential/account faults.
132 +- **New source-proven bottleneck:** original source `index.html` had **38 other synchronous same-origin JS loads**, blocking `DOMContentLoaded`. Extension load's 18s deadline started only at `DOMContentLoaded`; the account's 25s timeout could therefore expire while APP_ASSETS was still pending even with PR #116 in the repository. The issue was diagnosed from GitHub source, not a live Chrome network timeline.
133 +- **Runtime fix** [PR #118](https://github.com/davoodmehraban89/Factor-easy/pull/118) merged on protected main SHA **`192c04a7e4c6324131f5c1b50a45bfa091c46a7a`**: Pages builder creates three SHA-hashed local classic JS bundles in strict original source execution order (12 foundation + 10 business + 16 accounting), VM syntax validates, preserves CSS boundaries, early auth handlers and existing CSP; source/dev remains unchanged. A failing required script bundle rejects workspace readiness instead of exposing partially loaded financial ERP. Together with #116 (14 extension files -> one bundle), production now downloads four bundled files instead of 52 separate foundation/enterprise extension files; vendor Supabase, CSP handler, core, bootstrap and diagnostic resources remain independent.
134 +- **Verified controls:** PR corrected head `84e840dd8fb99a83ccda109a81c48428a3cf79e1`: [Quality 38314360631](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38314360631) SUCCESS **107/107 Chromium**, including Pages grouped-bundle and blocked-group fail-closed, Golden accounting PASS and 3 disposable PostgreSQL PASS; [Security 38314360655](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38314360655) SUCCESS. Initial test run was superseded after fixing a test-only `_site` path assertion; no weakened tests.
135 +- **Exact protected-main release:** [Quality 38314813962](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38314813962) SUCCESS, [Security 38314813972](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38314813972) SUCCESS, [Release gate 38315115231](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38315115231) SUCCESS, [gated Pages 38315149869](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38315149869) SUCCESS. Duplicate Release 38314958511 CANCELLED and Pages 38315138483 SKIPPED are excluded.
136 +- **Critical boundary:** cannot assert the actual owner's ISP login is repaired; no owner device authenticated success, real waterfall or affected-ISP asset HTTP readback. Desktop Commander monthly quota previously exhausted, not bypassed. No changes to Supabase Auth/RLS/schema/roles/accounts, finance/posted invoices, SMS or production customer data. Owner to hard-refresh affected Chrome, try real sign-in once and report only success/time/`BOOT_*` code; compare independent hotspot if it still fails. Issue #106 / F0-01 / overall Phase 0 **OPEN**. Rollback: revert #118 via Quality/Security/Release/Pages; no DB rollback.
137 +
138 ## Current change ledger
139 | 2026-10-07 | Owner requested accounting/product usability refinement from live screenshots: automatic non-user-entered floating-detail codes, contextual in-product guides (especially accounting/chart/dimensions), remove duplicate product internal tax ID and use product code as internal item ID, strengthen in-control product/person search, introduce hierarchical product group/subgroup coding with deterministic 6-digit product codes, and keep sale/purchase commercial-document workspace layout stable while only semantic fields change. | **IMPLEMENTED / LOCAL VERIFICATION PASSED / CI PENDING** | Baseline main = `7e58c75f7d754f378d94ca3f356c1ae580aa7ee3`. Automatic dimension type/value codes, contextual guides, product-code-as-internal-ID, normalized multi-token search, and additive six-digit product coding implemented. Existing historical codes preserved. Commercial sale/purchase workspaces now share a stable `صدور سند تجاری` header/actions layout; duplicate purchase sidebar injection removed; the public selector is the single document-type selector and the legacy internal invoice-kind control is hidden. Local syntax/static/commerce/UX/accounting phases 2–6/Golden checks passed; protected-branch CI remains pending. |
140