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

docs(state): record tested manifest-vs-auth diagnosis and owner ISP gate (#113)

davoodmehraban89 committed Oct 12, 2026 at 23:25 UTC 402bf2a5f63e5466580dfd522dc18c1f7990a2b9
1 file changed +8
PROJECT_STATE.md
+8
@@ -88,6 +88,14 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
88 - **Diagnostic remediation scope:** test one same-origin critical local JS file **and** manifest independently alongside Supabase Auth health, preserve truthful independent codes and avoid false blanket unreachable from manifest alone. Add deterministic Chromium tests for manifest-only HTTP failure, actual script failure, Auth failure and combined failures. Do not log personal identifiers, passwords, JWTs, API keys or HTTP response bodies. No Supabase/Auth/RLS/roles/schema, financial posting or real account modifications. Preserve exact legacy login behavior pending actual owner ISP result. Rollback narrow UI-only PR.
89 - **Availability limitation:** Desktop Commander device `DESKTOP-71SJ63M` reports ONLINE, but **monthly tool quota is exhausted** (explicit tool error); do not retry/reconnect/circumvent. Public external fetch of owner domain was also inaccessible in current external inspection context. Therefore real owner-ISP CDN/site/GoTrue HTTP status and precise 25s timeout stage are **NOT VERIFIED**; F0-01 and overall Phase 0 OPEN. Next owner validation: same browser and alternate network comparing independent probe codes without sharing login secrets.
90
91 +### 2026-10-12 F0-01 login SITE_UNREACHABLE screenshot — DIAGNOSTIC FIX RELEASED / OWNER NETWORK OPEN
92 +- **Evidence:** user Chrome screenshot showed two independent observations: `دریافت اطلاعات حساب بیش از حد طول کشید` after 25s read-only session/organization hydration; connectivity probe reported `SITE_UNREACHABLE`. Review of old `js/login-connectivity.js` proved that code was derived **solely from unsuccessful `manifest.json` fetch**, masking GoTrue health and never probing critical JS. The photo is not proof of invalid credentials or general loss of every app asset.
93 +- **Scoped remedy** [PR #112](https://github.com/davoodmehraban89/Factor-easy/pull/112), merged on protected `main` runtime SHA **`86913c74a1abc88a2912f5ba393ef3fb01dcde49`**. New credential-free diagnostic independently tests executable local `js/login-connectivity.js`, PWA `manifest.json` and `/auth/v1/health`; preserves separate `SITE_JS_*`, `MANIFEST_*`, `AUTH_*` statuses when any other probe fails. Warns that only a missing manifest does not establish sign-in failure. Cache-busts diagnostic JS. It does **not** change Auth/session/data hydration/login policy, user profile, accounting, Supabase server or posted invoices.
94 +- **PR head `b13b7273efac47961404a7196e7ced5217e0bfdf`:** [Quality run `38299516328`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38299516328) SUCCESS, **99/99 actual Chromium Playwright**, including three synthetic network failure regressions, Golden accounting, offline OTP and three PostgreSQL suites PASS. [Security run `38299516301`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38299516301) SUCCESS.
95 +- **Exact main runtime:** [Quality `38299894628`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38299894628) SUCCESS, [Security `38299894494`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38299894494) SUCCESS, [Release Gate `38300110596`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38300110596) SUCCESS, gated [Pages Deploy `38300160000`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38300160000) SUCCESS. Duplicate Release `38300060543` CANCELLED and Pages `38300138479` SKIPPED are excluded.
96 +- **Operational blocker:** authorized Windows Desktop Commander is paired/ONLINE but tool explicitly said MONTHLY USAGE EXCEEDED and instructed not to retry or reconnect; no tool quota bypass attempted. Independent external `factoreasy.ir` HTTP fetch also inaccessible through web tool. Thus live same-ISP critical-JS/manifest/Auth HTTP outcomes, browser load latency, and authenticated company data read are **NOT VERIFIED**. The CI-gated deploy is proof of publishing but not a user-network acceptance. Owner should hard-refresh Chrome, click built-in diagnostic without entering credentials, report `SITE_JS_*`, `MANIFEST_*`, `AUTH_*` code; compare once using independent mobile hotspot if available. No username/password/private email/tokens. [Issue #106](https://github.com/davoodmehraban89/Factor-easy/issues/106) and F0-01 / Phase 0 remain OPEN.
97 +- **Rollback:** revert #112 through protected gated Pages release; no financial DB rollback necessary.
98 +
99 ## Current change ledger
100 | 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. |
101