@davoodmehraban89 / Factor-easy / commits / 80cd5b3
Fork 0

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

docs(state): record released staged F0-01 diagnostics and pending real owner acceptance (#115)

davoodmehraban89 committed Oct 12, 2026 at 23:54 UTC 80cd5b3105145a5e5fd2e9c778a6c8c99fb63973
1 file changed +7
PROJECT_STATE.md
+7
@@ -102,6 +102,13 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
102 - **This bounded step:** instrument stages with **strictly fixed, privacy-safe identifiers** for account/profile, organization membership, access/license, optional startup assets, and company record hydration; show exact pending stages on timeout and add a *separate read-only PostgREST reachability check* to existing site/manifest/Auth diagnostic. Add synthetic Chromium network-failure tests, keep tenant-scoped atomic data and RLS/auth paths entirely unchanged. No user DB read, schema/RLS/Auth changes, no credential/URL logging. Rollback this UI-only PR.
103 - **Acceptance:** full Chromium/Golden/three disposable PostgreSQL/Security checks, gated main Publish and affected-browser retest showing `REST_*` + safe `BOOT_*` stage code; actual root cause cannot be claimed fixed before owner network trace. Keep [Issue #106](https://github.com/davoodmehraban89/Factor-easy/issues/106) / F0-01 / Phase 0 OPEN. Desktop Commander reported monthly usage quota exhausted; no attempts to bypass limitation or modify stale 2189 untracked files in `C:\Temp\Factor-easy`.
104
105 +### 2026-10-12 F0-01 actual owner login timeout after AUTH_OK — FIXED BOUNDED WAIT / STAGED DIAGNOSTIC RELEASED / ACCEPTANCE OPEN
106 +- **Owner-verified issue:** on affected Chrome ISP, owner reports password login **still did not enter** and returned `دریافت اطلاعات حساب بیش از حد طول کشید` even though earlier login diagnostic had `SITE_JS_OK | MANIFEST_OK | AUTH_OK`. Auth health does NOT validate authenticated organization/profile/tenant-record reads. Screenshots contain identifying account information; do not publish that email or collect credentials in any QA artifacts.
107 +- **Root-cause class and limited fix:** `enterApp()` awaited a top-level `fetchCurrentUser()` promise inside `Promise.all` with a 25s AbortController, but did NOT wrap that whole outer promise in `finoraAbortableRead` if its helper ignored cancellation; a synthetic permanently pending account-context operation **survived its timeout**. [PR #114](https://github.com/davoodmehraban89/Factor-easy/pull/114) fixes the outer cancellation and adds allow-listed no-PII `BOOT_*` timeout labels for `ACCOUNT_CONTEXT`, `PROFILE`, `ORG_MEMBERSHIP`, `ORG_ACCESS`, `APP_ASSETS`, and `TENANT_RECORDS`. Also adds a separate **public, read-only** Supabase PostgREST root reachability check (`REST_*`) to existing site/manifest/GoTrue connectivity without reading any company records, credentials or session. All legacy tenant-scoped authorization and atomic financial datastore synchronization remains unchanged.
108 +- **PR-head correction/reverification:** First Quality run `38302258531` FAILED **1/103 Chromium** (a synthetic never-settling account-context fixture exposed the unbounded outer wait) while 102/103 passed; fixed without weakening any test. Corrected PR exact head `c7d46a8633fc01519e044bd1bc380796ca2c777c`: [Quality `38302642079`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38302642079) SUCCESS **103/103 Chromium Playwright**, Golden core PASS, 3 disposable PostgreSQL jobs PASS; [Security `38302641996`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38302641996) SUCCESS.
109 +- **Protected-main release:** merged runtime **`bead02fbc48f04e12de8b1565d99d2a3c4af761d`**, exact SHA [Quality `38303068200`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38303068200) SUCCESS (103/103), [Security `38303068209`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38303068209) SUCCESS, [Release Gate `38303361728`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38303361728) SUCCESS and [Deploy gated Pages `38303407938`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38303407938) SUCCESS; duplicate `38303255014` Release CANCELLED and `38303388240` Pages SKIPPED excluded.
110 +- **Acceptance still NOT verified:** no direct live `factoreasy.ir` GET or owner-ISP runtime trace after this release; Desktop Commander was ONLINE but latest remote command attempt returned MONTHLY QUOTA EXCEEDED; no bypass/reconnect attempted. No actual authenticated owner sign-in, company data loading or delay root cause yet. User to hard-refresh, run built-in diagnostic, report only `REST_*` code, then attempt sign-in privately, report `BOOT_*` code on a repeated timeout; compare a different ISP if useful. The fixed outer wait prevents indefinite hanging but is **not proof full login latency has been cured**. [Issue #106](https://github.com/davoodmehraban89/Factor-easy/issues/106), F0-01 and Phase 0 remain OPEN. No server Auth/RLS/schema/roles, user identity, financial data or customer payload modifications. Rollback via #114 revert and gated redeploy, no database rollback.
111 +
112 ## Current change ledger
113 | 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. |
114