سامانه صدور فاکتور و حسابداری
Record observed recovery request and confirmed email receipt
davoodmehraban89 committed
Oct 26, 2026 at 03:30 UTC
23824fb598f6738c7f8cb54a2ce0bc0b38947758
1 file changed
+10
PROJECT_STATE.md
+10
@@ -119,3 +119,13 @@
119
- Hypothesis from actual source: resume() assigns state.resolving to an async IIFE; marker-only/missing-token rejection returns before any await, so finally clears resolving before the outer assignment re-stores its already-resolved Promise. cancel() then silently rejects because resolving remains truthy. Verify with a meaningful failing browser test, apply the smallest promise-lifetime fix and helper cache version, preserve all other Auth/financial behavior. Run source/generated recovery tests and existing full checks; publish a separate repair PR, protected merge and exact gated Pages/public validation before sending the single owner-authorized test request. Never claim real email/password acceptance from CI alone.
120
- **Repair verified:** observed3/3 RED with the expected hidden login form after Cancel (cached unrelated account, marker-only without session, missing refresh token). Confirmed the JavaScript assignment/finally ordering cause; the shared promise body now starts in a microtask after the assignment. Existing proof, identity/session, pending, epoch and token-bound logout guards were not removed or changed. Only recovery helper, its cache URL20261026-recovery-cancel-v2, browser spec and this continuity file change. No backend/Auth-setting redeployment is needed.
121
- **Actually executed on the repair tree:** focused recovery19/19 source and19/19 generated strict-CSP Pages PASS; independent reviewer reran3/3 source and3/3 generated regressions PASS, no remaining blocker. Complete existing workflow browser command **177/177 PASS (3.4m)**; all51 static/behavioral/backup/server/release-safety commands PASS, including45/45 server cases and Golden; diff check PASS. No test expectation was relaxed, no dependency added and no financial/SQL/RLS/role/grant data changed. Cloud font workaround remains process-only. Exact remote head/tree/CI and subsequent merged-main/Pages/public results belong in the repair PR description before completion; the controlled real email request stays uninitiated until public repair passes.
122
+
123
+### 2026-10-26 — Owner correction: recovery email not received
124
+- Latest free-text owner reply explicitly says the recovery email was NOT received; it supersedes the earlier structured receipt answer. Do not record delivery success. PR181 is merged/released as main dc1fa8c95c93327f1175df3314a04e4b444de25c with exact CI/gated Pages and12/12 public resources/Cancel PASS; detailed evidence remains in PR181.
125
+- Previous TinyFish run fa3c7390-358f-4d63-8121-1bceeae1924c completed inconclusively: intended email was not filled, one Forgot click reported, restored session, no accepted request observed. Bounded logs lacked Auth coverage; absence of a recover match is not proof of request absence. Preserve the old once-guard and outcome.
126
+- Continue the existing owner-authorized controlled-recipient acceptance scope with one deterministic fresh-context public UI diagnostic, record exactly the allowed recover request count/HTTP error code, and block all other Supabase/password/financial mutations and repeat requests. Recipient stays out of git/logs; no inbox/password/token operation or new account. Do not make speculative Auth/SMTP changes; inspect the concrete response first and preserve earlier approvals/production boundaries.
127
+- **Deterministic actual UI evidence07:19UTC:** fresh Playwright context had no persistent Auth identity; filled the owner-specified recipient, clicked Forgot exactly once and allowed exactly one matching POST /auth/v1/recover with the fixed recovery redirect. Actual HTTP200, neutral ready message, no page errors or blocked/other Supabase operations. Evidence is private/nonsecret at /workspace/.finora-private-qa/real-recovery-ui-diagnostic-evidence-20261026.json. This establishes request acceptance only, not account existence, SMTP handoff or inbox delivery. No password/inbox/financial mutation or automatic resend. Owner asked to check the newly initiated message; backend delivery investigation continues read-only.
128
+- **Server correlation confirmed:** bounded unified logs07:18:45–07:20:30UTC contain exactly one Auth audit user_recovery_requested at07:19:08.756195209Z, one Auth POST /recover HTTP200 with the same action, and one edge POST /auth/v1/recover HTTP200. No actor identity, email, token or raw log payload stored. This confirms server receipt/action, not inbox delivery; no further request was initiated. Dashboard SMTP/account status is being inspected read-only.
129
+- **Read-only provider diagnosis completed:** Supabase dashboard confirmed the target Auth identity exists and is email-confirmed, custom SMTP enabled with sender domain factoreasy.ir via smtp.resend.com:465. UI log query showed no rows, but direct connector has the correlated records above; the UI result does not negate direct log evidence. Connected Resend domain factoreasy.ir is verified/sending enabled. Metadata-only list independently found the exact controlled-recipient Reset your password message at2026-10-26T07:19:10.605Z with status **delivered** (provider message01a17713-d32c-7216-bdbc-e083e11ccf25). No message body/recovery link/inbox/credentials read, no SMTP/DNS/Auth configuration changed, and no further email request. Provider delivered is evidence of mail-server delivery, not Inbox placement, owner receipt or password acceptance. Earlier owner non-receipt referred to the prior inconclusive attempt; confirmation of the new message remains pending.
130
+- **Checkpoint/next work:** no application fix or SMTP/DNS/Auth change is indicated by this observed successful request and provider delivery. This branch changes continuity documentation only. Diff check passes; actual diagnostic evidence above is distinct from synthetic CI. Keep receipt of the new message and any actual password choice/login acceptance NOT VERIFIED until the owner performs/confirms them; never request the password, OTP or complete link in chat. Original UI test uncertainty and actual settings/owner-ISP limitations remain explicit in PR181.
131
+- **Owner receipt confirmed for the NEW message:** owner answered «پیام جدید رسیده است» to the follow-up specifically about the07:19UTC controlled request. This completes public UI→Auth/audit→provider delivered→owner-reported receipt for that exact test, while preserving the earlier non-receipt correction for the prior inconclusive attempt. No password change, recovered-session login/logout, manager-originated real email or settings persistence acceptance was executed or inherited from this receipt. No further test email is needed.