@davoodmehraban89 / Factor-easy / commits / f3e839d
Fork 0

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

Record recovery implementation CI evidence and activation hold

davoodmehraban89 committed Oct 25, 2026 at 20:50 UTC f3e839d1dd329caf423a04c12b2a3a64100004c6
2 files changed +4 -2
PROJECT_STATE.md
+2
@@ -94,3 +94,5 @@
94 - **Server and actual RED evidence:** extracted `handler.mjs` is called by the existing Deno entrypoint and tested with injected SDK/environment. Fresh active owner/direct/assigned core/full_suite configure authorization matches existing SQL, targets use Auth UUID/confirmed server email and canonical callback; old `set_password` rejects. Original inline handler failed the new recovery cases; additional observed RED cases included malformed organization scope, missing manager UI, raw thrown transport-error disclosure, wrong-account password/logout races and unsupported fresh callback proof reuse. Each was corrected before the final verification; no expectation was relaxed to hide application failures.
95 - **Executed on the final implementation tree:** complete existing Quality browser command **175/175 PASS (3.3m)** = baseline150 +17 recovery +8 manager cases, including existing settings/logout synthetic regressions, A4/A5 print and financial/tenant tests. Focused recovery **17/17 source and17/17 generated strict-CSP Pages PASS**; manager UI **8/8 source and8/8 generated Pages PASS**. All **50 Quality pre-browser static/behavioral/backup/server commands PASS**, including **45/45 negative/compatibility server tests** and Golden Accounting; separate release-safety PASS; `git diff --check` PASS. Local process-only FONTCONFIG_FILE workaround remained outside the repository. A supplemental generated-manager attempt first failed solely because its local HTTP server had ended after a steered message; an explicitly scoped server/test process then passed8/8 without application/test-assertion changes. Independent whole-diff security review has no remaining blocker.
96 - **Activation and next work:** concrete backend-first deployment, exact redirect allowlist and standard ConfirmationURL email-template requirements are in `docs/PASSWORD_RECOVERY_ACTIVATION_2026-10-25.md`. Publish this scoped branch/PR and verify its exact remote head Quality, Security and three disposable-DB jobs; maintain SHA/job evidence in the PR description. Production Edge deployment/Auth settings and merge/Pages activation remain pending the separate owner approval required by the boundary above. No real mail/password/financial write, SQL/migration, new dependency, RLS/role/grant change or production deployment occurred. **NOT VERIFIED:** current SMTP/template/redirect settings, real email delivery/password acceptance, owner-ISP/login, physical printing and production two-user behavior. Earlier actual-account settings QA stays inconclusive in draft178 (its exact-head Quality40158541584/Security40158541530 passed); navigation174 and PhaseB remain separate/unstarted.
97 +- **Published/reviewed checkpoint:** draft [PR179](https://github.com/davoodmehraban89/Factor-easy/pull/179), exact implementation head `6d521a79fb012a0838f477acec2415793e19e555`, tested/published tree `2fb5c647239bb97fc005abe8fb84f1ec17b2bb5e`. Exact-head Quality **40215540215 SUCCESS**: remote job121235764325 log confirms **175/175 Chromium PASS (3.4m)**, Golden and45/45 server cases; disposable C8 job121235764055, identity121235764263 and D1 job121235764334 all SUCCESS. Security **40215540124 SUCCESS**, including CodeQL121235763807 and release-safety121235763548; dependency review skipped because no dependency diff. Subsequent changes only record this evidence and complete the plan; latest exact PR-head SHA/check results remain in the PR description and must pass before release.
98 +- **Production recheck/hold:** read-only function metadata still shows admin-user-management ACTIVE v3 with verify_jwt=true. No deployment, real recipient request, password operation, Auth configuration or production SQL occurred. Public JWKS metadata was read without session credentials; current function settings are preserved. Next action is owner approval for backend/Auth activation described in the activation document, followed by protected merge/Pages and separately authorized real-account email/password acceptance. Do not merge the UI before activating its backend. Main remains `ce32b0b52d974c2316b45b64a8166936f5a8d01e`; other drafts/issues/phases remain as recorded above.
docs/superpowers/plans/2026-10-25-password-recovery.md
+2 -2
@@ -57,7 +57,7 @@ action once, with existing client role guards plus fresh server authorization.
57 - [x] Add failing global/tenant UI tests for Auth UUID, role guards, duplicate sends and errors.
58 - [x] Add link-only buttons and shared localized sender with confirmation/pending/cooldown.
59 - [x] Integrate Node and browser suites into existing CI; preserve prior checks.
60 -- [ ] Run static/Golden/browser, review full diff and exact remote CI; open scoped PR.
60 +- [x] Run static/Golden/browser, review full diff and exact remote CI; open scoped PR.
61 - [x] Record files/tests/NOT VERIFIED and concrete activation settings before production approval.
62
63 ## Verified implementation checkpoint
@@ -66,5 +66,5 @@ action once, with existing client role guards plus fresh server authorization.
66 - Focused recovery:17/17 source and17/17 generated strict-CSP Pages; manager:8/8 source and8/8 generated Pages.
67 - 50 Quality pre-browser commands including45/45 server cases and Golden PASS; additional release-safety PASS.
68 - Independent current-diff security review: no remaining blocker; actual invalid-callback/account-switch/logout race RED cases were corrected.
69 -- Runtime code is complete. Exact remote CI remains the publication checkbox above; no production activation or actual email/password acceptance has occurred.
69 +- Runtime code is complete. Exact implementation-head CI passed: Quality40215540215 (175/175 browser,45/45 server, Golden, three disposable DB jobs), Security40215540124. [PR179](https://github.com/davoodmehraban89/Factor-easy/pull/179) carries latest-head evidence; no production activation or actual email/password acceptance has occurred.
70 - Activation instructions: `docs/PASSWORD_RECOVERY_ACTIVATION_2026-10-25.md`.