سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 15:45 UTC
docs(phase0): record second-device 40s login failure without guessing cause
davoodmehraban89 committed
Oct 13, 2026 at 08:24 UTC
cbde91bb0bec189b117568743facd42b3df54eeb
2 files changed
+15
-1
PROJECT_STATE.md
+8
@@ -142,6 +142,14 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
142
- **Next minimal owner acceptance check:** without sharing identifiers or network captures, try one ordinary logout→login **or** a browser close/reopen followed by login on the same ISP; report workspace yes/no and approximate elapsed time. Once stable, user may verify the original company's visible data and a safe page refresh (no posting/writing). If only a 20s delay remains, investigate an explicitly defined acceptable target with browser timing evidence; do not optimize financially sensitive `pullAll()` based on guesswork.
143
- **Change boundary:** documentation-only evidence ledger and F0-01 acceptance register; no application JS, deployment, production account/Auth, server role/RLS/schema, financial records, OTP/SMS or credentials touched. Keep [issue #106](https://github.com/davoodmehraban89/Factor-easy/issues/106) open with updated owner-positive result and follow-up. **Phase 0 OPEN**; remaining F0-02/03/04/05/06/07 owner-context gates unaffected. Rollback: revert docs-only PR.
144
145
+### 2026-10-13 F0-01 second-device owner login FAILED (~40s) after first-device success — CROSS-DEVICE STABILITY OPEN
146
+- **New direct owner report in chat:** A second computer was available; owner attempted Finora F0-01 sign-in, reports **login failed after approximately 40 seconds**, and then attached a screenshot. The precise on-screen error code is **NOT INDEPENDENTLY TRANSCRIBED/VERIFIED** from the attachment in this session; **do not invent or attribute** a `BOOT_*`, credentials or network error. The second computer's browser, ISP, refresh state and exact loading stage are unspecified, and may differ from the first computer. Any private identities visible in the screenshot must not be copied into repository issues.
147
+- **Paired acceptance evidence:** First owner device showed one successful authenticated main-workspace entry after Chrome `Ctrl+Shift+R` (~20s), as recorded above. Second device now failed (~40s). Mark **F0-01 CROSS_DEVICE_INCONSISTENT / OWNER_ACCEPTANCE_OPEN / P0**. One successful login is not a reliable rollout, and one failed login does not prove an outage for all users. Overall Phase 0 **OPEN**; none of F0-02/F0-03/F0-04/F0-07 can be inferred from this result.
148
+- **Independent read-only reconciliation:** latest protected main `6ac8d68ae669cbe1e914c71064a3c1fa45d6fe5c`, same-SHA Quality `38345404409`, Security `38345404529`, Release Gate `38345621057`, gated Pages `38345647098` all SUCCESS; Production Supabase `hcsixhqbyuhpshfwqpjx` `ACTIVE_HEALTHY`, 82 migrations (newest `20261012075507`). Existing authorized remote desktop remains OFFLINE. These facts certify GitHub release/backend metadata, not remote owner-browser performance.
149
+- **Source-based diagnosis boundary:** `js/core.js` shows a 9s slow-login notice for the Auth request and a **separate 25s timeout after Auth in `enterApp`**. Thus ~40s overall is consistent with multiple possible delays, but it does **not** identify a particular `BOOT_*` stage, asset failure, rejected password or tenant fetch. Login connectivity button performs four *credential-free* read-only checks with a 12s deadline (`SITE_JS`, `MANIFEST`, `AUTH`, `REST`); `REST_HTTP_401` at the unauthenticated root is not itself proof of an outage. Avoid guess-based bypasses, 25s extension, disabling readiness checks or auth/RLS changes.
150
+- **Next evidence:** ask owner for the *exact, privacy-safe* short error/status code shown under the login form (if visible) and the four connectivity codes from clicking `بررسی اتصال به سرور ورود` on that same second computer. Do not request credentials, email addresses, token/cookies, network HAR or private tenant records. Compare one normal retry or independent connection **only after** code classification. If `SITE_JS` or `MANIFEST` timeout, inspect same-origin resource timing; if `BOOT_ACCOUNT_CONTEXT` / `BOOT_TENANT_RECORDS`, inspect latency with safe browser timing, no data exfiltration. A source fix requires reproducible evidence, controlled Chromium/Golden/3DB/Security, isolated PR and exact-SHA release.
151
+- **Change boundary:** this is a **documentation + open issue evidence update only**. No runtime/login, Supabase schema/Auth/RLS/roles, identity credentials, ledger, invoices, payments, OTP, production traffic or account settings modified. Rollback: revert this docs-only PR. Issue #106 **OPEN**.
152
+
153
## Current change ledger
154
| 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. |
155
docs/FINORA_PHASE0_ACCEPTANCE_REGISTER_2026-10-12.md
+7
-1
@@ -19,7 +19,7 @@ Status definitions: **CONTROLLED QA PASS** = actual Chromium or isolated tests w
19
20
| ID | Priority | Current evidence | Acceptance status | Required next proof / owner |
21
|---|---|---|---|---|
22
-| **F0-01** · Login/affected ISP | **2026-10-13 owner reports real Chrome success after `Ctrl+Shift+R`: existing-account login reaches primary Finora workspace in ~20 seconds** on the previously affected browser/ISP; protected-main bundled runtime #118 released, current main `47b2aa7a...`, Quality `38315777620`, Security `38315777523`, Release `38316074399`, Pages `38316127506` all SUCCESS. User session was not independently witnessed or instrumented. | **ONE OWNER-REPORTED AUTHENTICATED LOGIN PASS; repeatability, reload and latency acceptance OPEN** / P0 follow-up | Repeat one ordinary login after logout or reopening browser and confirm workspace/reload stays usable; report approximate time without identity or tokens. Do not close F0-01/#106 until repeated stability and owner acceptance. QA/Auth. |
22
+| **F0-01** · Login/affected ISP | 2026-10-13 owner real outcomes: **first Windows Chrome** after hard refresh opens main workspace in ~20s; **second computer** login **fails after ~40s**, accompanying screenshot supplied but exact displayed error not independently transcribed; second browser/network not specified. Current protected-main SHA `6ac8d68ae669cbe1e914c71064a3c1fa45d6fe5c`, Quality `38345404409`, Security `38345404529`, Release `38345621057`, Pages `38345647098` SUCCESS; Supabase metadata healthy, 82 migrations. | **CROSS-DEVICE INCONSISTENT: 1 OWNER-REPORTED LOGIN PASS + 1 FAIL; REPEATABILITY/ERROR CLASSIFICATION/PERFORMANCE OWNER ACCEPTANCE OPEN** / P0 | From second computer report only exact safe `BOOT_*`/other code if shown, plus credential-free `SITE_JS | MANIFEST | AUTH | REST` status from built-in «بررسی اتصال به سرور ورود» button. Do not copy private screenshot identifiers. Diagnose actual stage before a bounded change; keep issue #106 and Phase 0 OPEN. QA/Auth. |
23
| **F0-02** · Real product & person selection | PR #83 merged; keyboard/F2 and synthetic matching in Chromium | **CONTROLLED QA PASS; live tenant UNVERIFIED** / P0 open | Select existing `هارد` or `بلوک` and person in authorized tenant; correct unit/price/company boundary; no cross-tenant leak. UX/Data. |
24
| **F0-03** · Invoice lifecycle | `scripts/phase0-invoice-persistence.spec.js` passes **2/2** on mock RPC: save→reload→edit→print, retry without duplication; no ledger posting | **CONTROLLED QA PASS; real persistence UNVERIFIED** / P0 open | Only separately approved isolated account/test scope: actual server save/reload/edit/print and reconcile duplicate count; never post fake accounting in production. Commerce/QA. |
25
| **F0-04** · Print | Owner hardcopy/photo reproduced pale diagonal `پیشنویس — غیرقطعی` overlay on existing goods/services invoice; narrowly removed in PR #90; draft and pro-forma Chromium checks added, accounting state unchanged | **FIX RELEASED + CONTROLLED QA PASS; OWNER REPRINT UNVERIFIED** / P0 open | On the deployed PR #90 code, owner still checks a saved draft/ordinary sale invoice and purchase/pro-forma print: watermark absent, all rows/totals/dates visible; real printer/PDF and taxpayer-specific semantics are separate. Print QA. |
@@ -82,3 +82,9 @@ All nine PR heads **diverge** from current main (observed GitHub compare); there
82
83
- The owner reports a successful sign-in to the main Finora workspace on the affected Windows Chrome after `Ctrl+Shift+R`; approximate total wait **20 seconds**. This replaces the older 'never successfully signed in' state for **one owner-observed attempt only**, not F0-01 full acceptance. It does not validate second-login stability, ordinary reload, browser restart, or a performance target.
84
- Same-SHA gated deploy and production backend health rechecked as above; no product/DB/auth/finance modifications. Issue #106 remains OPEN for one repeat login/reload and measured responsiveness. Other Phase 0 user-context gates are independent and remain OPEN.
85
+
86
+## 2026-10-13 addendum — second-computer failure after initial successful sign-in
87
+
88
+- Owner reports **one failed real login on a second computer** after approximately **40 seconds** and supplied a screenshot. The exact screenshot code is not independently verified, and the new computer's browser and ISP are unknown. Do not describe it as a proven `BOOT_APP_ASSETS` recurrence without identifying evidence.
89
+- Paired outcomes: first device Chrome hard-refresh sign-in **success (~20s)**; second device **failure (~40s)**. Update F0-01 to **CROSS_DEVICE_INCONSISTENT / OPEN**. Neither a fast/stable owner deployment nor Phase 0 acceptance is established. Existing code/build deployment CI and live Supabase healthy status do not diagnose the owner's browser error.
90
+- Next no-write owner-side evidence: exact nonprivate error code plus built-in connectivity `SITE_JS | MANIFEST | AUTH | REST` statuses (12s bounded, unauthenticated probes only). Do not collect credentials, PII, session cookies, token headers, full HAR or tenant/customer data. No product or production mutations made in this evidence-only PR.