@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / c45d849
Fork 0

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

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 18:15 UTC

docs(phase0): finalize F0-08 PR closures and preserve four specialty blockers (#97)

* docs(phase0): confirm five historical PR closures and retained four review blockers * docs(phase0): mark F0-08 disposition verified without claiming phase acceptance * docs(phase0): record verified PR closures and F0-08 audit closure with open phase gates

davoodmehraban89 committed Oct 12, 2026 at 12:08 UTC c45d849a138370b89e9f251757f229f6b8fa55d8
3 files changed +22 -1
PROJECT_STATE.md
+8
@@ -362,3 +362,11 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
362 - **Important stale-fact correction:** current main `docs/REQUEST_WORKFLOW_WAVE4B_VERIFICATION.md` said `IMPLEMENTED ON BRANCH / CI PENDING`. Historical PR #28 described CI/merged PR #27 but said production migration NOT APPLIED. Independently read 82 Supabase migration rows and confirmed `20261002072526 request_wave4b_scheduler_outbox_delivery` **present**, and read-only pg_proc catalog confirms scheduler/outbox public/private RPCs; the original SQL explicitly says **D4c destination consumers remain disabled**. Corrected current main doc with merged historical CI, live migration presence and unverified real destination delivery, not blindly cherry-picking stale PR #28.
363 - **Superseded candidates:** #28 historical QA docs (useful evidence now ported with current correction), #43 heartbeat already represented by AGENTS, #49 stale operating snapshot, #57 dark UX delivered better by #92/#95, #80 admin creation already delivered by #84/#94 with production identity bootstrap fix. Close only after this documentation PR is merged and read back; closures retain history and can be reopened. **Retain OPEN** #6 financial posted history; #39/#40 physical RTL wheel/scroll geometry; #58 phone-identity migration archive drift and privileged Auth/SMS issues.
364 - F0-08 = **PRELIMINARY SOURCE RECONCILED**, final disposition depends on exact-head Quality/Security, merged doc and individually verified closure outcomes. Main runtime code unchanged by this slice; no customer data, ledger, DB, schema/RLS/Auth/roles, edge deployments or production scheduler dispatch mutated. **PHASE 0 OPEN** regardless of F0-08.
365 +
366 +
367 +### 2026-10-12 F0-08 historical PR dispositions — VERIFIED / FIVE CLOSED / FOUR AUDIT BLOCKERS OPEN
368 +- Follow-through on owner's instruction to advance Phase 0: PR [#96](https://github.com/davoodmehraban89/Factor-easy/pull/96) reconciled current source and nine historical open PRs, corrected `docs/REQUEST_WORKFLOW_WAVE4B_VERIFICATION.md` from obsolete "CI pending" to *historical merged CI / current production migration recorded / D4c external consumers NOT VERIFIED*. Read-only Supabase has 82 migrations, including `20261002072526 request_wave4b_scheduler_outbox_delivery`, and live scheduler/outbox RPCs exist. This does **not** certify real scheduler runs/deliveries.
369 +- PR #96 head `08afd9f69ca7af4408b0c5e6ba5c8a31a40adcd2` Quality `38223670528` SUCCESS (static job `114725807951`, **86/86 Playwright PASS**, 3 isolated DB tests + Golden/draft-posted PASS), Security `38223670565` SUCCESS. Docs merged as protected main `2a4d637d0145f333412fbce0e299ab6962f0b262`.
370 +- **PR closure verified in live GitHub:** old #28 (comment 6120641718), #43 (6120644468), #49 (6120646995), #57 (6120649594), #80 (6120652469) all **CLOSED / UNMERGED**, with evidence comment and reversible history. **Exactly four old PRs remain OPEN: #6 finance core, #39/#40 competing physical RTL scroll, #58 privileged identity/phone migration archive drift**. These are deliberate specialist hold items, no authorization to merge old code. Detailed evidence in `docs/FINORA_PHASE0_F008_PR_RECONCILIATION_2026-10-12.md`.
371 +- **F0-08 acceptance:** historical PR register and safe dispositions **COMPLETE/READ-ONLY-RECONCILED**. This is distinct from **PHASE 0 OWNER ACCEPTANCE (STILL OPEN)**: affected ISP login F0-01, real tenant catalog F0-02, isolated real server save F0-03, owner saved-invoice print F0-04, live 1,200+ selector F0-05, full modal/RTL UI F0-06, actual admin retry / two-user RLS F0-07 are not all verified.
372 +- **Changes and rollback:** F0-08 docs and nonmerged PR closure only; no runtime changes, customer accounts, production Supabase schema/data, migrations, invoices/posted ledger, roles/RLS/Auth, secret handling or fee. Docs revert and old PR reopen if later evidence requires. Next authorized task: plan owner-real F0-01/02/04 acceptance from existing browser; separately review #58 migration archive parity read-only without schema writes.
docs/FINORA_PHASE0_ACCEPTANCE_REGISTER_2026-10-12.md
+1 -1
@@ -26,7 +26,7 @@ Status definitions: **CONTROLLED QA PASS** = actual Chromium or isolated tests w
26 | **F0-05** · Large selectors | `scripts/phase0-selector-stress.spec.js`, **1,208 synthetic products + 1,206 persons** passed 2/2; keyboard/Persian/metadata covered | **CONTROLLED QA PASS for products/persons; real catalog and other high-volume selectors UNVERIFIED** / P1 open | Owner tenant/real workstation test plus assess account/project/contract selectors where applicable; measure interactive latency. UX/Perf. |
27 | **F0-06** · Modal, keyboard, RTL, themes | Targeted dark contrast PR **#92** released to protected main `745bdc847a3c2db22048d1d545da0fad0ae5cc67`; exact SHA Quality **38218505600** (**85/85 Chromium**, including two dark/light contrast tests, 3 disposable DB), Security **38218505535**, Release **38218679192**, Pages **38218725537** all SUCCESS. Remote read-only HTTP confirms updated live JS theme bundle. | **DARK/LIGHT CONTRAST RELEASED + CONTROLLED QA PASS; broader UI and owner visual acceptance UNVERIFIED** / P1 open | Owner dark/light screen review in authenticated session, keyboard/modal/RTL scroll ownership and critical save/delete/import/export negative-path tests. UI/QA. |
28 | **F0-07** · Access and release safety | Security checks remain green. **Owner-reported central admin user creation HTTP 400** traced to real Auth HTTP 500 `organization license not found` (23503): live signup trigger inserted owner membership before required trial license. Controlled fix **PR #94** deployed: protected `main` `e664e8fdbc77b660dfc1fedff580b206279899f3`, Quality **38220163720** (**86/86 Chromium**, 3 disposable DB), Security **38220163569**, Release **38220396895**, Pages **38220451051** all SUCCESS. Supabase `fix_identity_bootstrap_license_before_membership` migration **20261012075507** applied successfully (total 82); independent read-only verification confirmed `profiles → organizations → licenses → membership`, original seat trigger retained, ordinary role and email/phone support preserved. Live admin JS version `20261012-provision-error-v1` reachable. | **ADMIN PROVISIONING ROOT-CAUSE FIX RELEASED + CONTROLLED QA PASS; actual owner retry and dual-user isolation E2E UNVERIFIED** / P0 still open | Owner rechecks central Users list (avoid duplicate account), refreshes and attempts authorized creation once without sharing credentials; verify created account has ordinary role and expected trial, then license assignment separately. Formal RLS/cross-tenant two-account negative E2E, Auth-advisor security audit and full F0-07 signoff remain pending. Security/QA. |
29 -| **F0-08** · Stale PR reconciliation | Current nine PR diffs reconciled to main. Read-only Supabase proof: 82 migrations, Wave4b `20261002072526` present and scheduler/outbox functions exist; old `docs/REQUEST_WORKFLOW_WAVE4B_VERIFICATION.md` falsely said CI pending. `docs/FINORA_PHASE0_F008_PR_RECONCILIATION_2026-10-12.md` defines evidence and disposition; old Wave4b doc corrected. | **SOURCE/PR AUDIT RECORDED; superseded PR closures PENDING until docs merged** / P1 | After exact PR Quality/Security and docs merge, close only superseded #28/#43/#49/#57/#80 with transparent rationale. Keep #6 finance, #39/#40 scroll UX, #58 identity/source drift open with specialist owner; no stale merge. Coordination. |
29 +| **F0-08** · Stale PR reconciliation | Audit in `docs/FINORA_PHASE0_F008_PR_RECONCILIATION_2026-10-12.md`; #96 merged to main `2a4d637d0145f333412fbce0e299ab6962f0b262`, PR-head Quality **38223670528** (**86/86 Chromium**, 3 disposable DB and Golden accounting) and Security **38223670565** successful. Recorded live Supabase Wave4b migration and corrected prior stale statement. **Five superseded PRs #28/#43/#49/#57/#80 closed without merge with review comments; GitHub verifies four remaining open: #6/#39/#40/#58.** | **F0-08 RECONCILED / CLOSURE VERIFIED; four high-risk PRs retained for separate specialty review** | No stale PR integrated; investigate #6 accounting, #39/#40 physical RTL scroll and #58 identity/phone migration source drift under their separate safeguards. Phase 0 P0 authenticated acceptance still pending. Coordination/QA. |
30
31 ### Exit decision
32
docs/FINORA_PHASE0_F008_PR_RECONCILIATION_2026-10-12.md
+13
@@ -43,3 +43,16 @@
43 - Root PR diffs inspected: #6, #28, #39, #40, #43, #49, #57, #58, #80. Current main assets and contract checks inspected; branch-only historical CI is not recast as current source success.
44 - F0-08 can be marked **HISTORIC PR DISPOSITION RECONCILED** after documentation and closings are verified; **not** equivalent to overall Phase-0 acceptance.
45 - Rollback documentation by revert. Reopen any PR closed in error; no data, migration or external action requires rollback.
46 +
47 +## 2026-10-12 execution result — historical PRs closed without merging
48 +
49 +After [#96](https://github.com/davoodmehraban89/Factor-easy/pull/96) merged into protected `main` `2a4d637d0145f333412fbce0e299ab6962f0b262` (PR head Quality `38223670528` SUCCESS, **86/86 Chromium**, 3 disposable DB + financial invariants PASS; Security `38223670565` SUCCESS), all five proven-superseded PRs were individually re-read, given an evidence/risk comment and then **CLOSED WITHOUT MERGE**:
50 +
51 +- [#28](https://github.com/davoodmehraban89/Factor-easy/pull/28) — comment `6120641718`
52 +- [#43](https://github.com/davoodmehraban89/Factor-easy/pull/43) — comment `6120644468`
53 +- [#49](https://github.com/davoodmehraban89/Factor-easy/pull/49) — comment `6120646995`
54 +- [#57](https://github.com/davoodmehraban89/Factor-easy/pull/57) — comment `6120649594`
55 +- [#80](https://github.com/davoodmehraban89/Factor-easy/pull/80) — comment `6120652469`
56 +
57 +**Live GitHub recheck confirms exactly four still-open historical PRs:** #6 (accounting), #39/#40 (RTL scrollbar alternatives), #58 (identity/phone migration/source drift). These remain in specialist review, **not approved to merge**. Any PR may be reopened with new evidence. No actual user/account, financial, RLS/schema, Edge, Supabase or runtime action occurred as part of closing historical PRs. Phase 0 still OPEN, and the named business-flow acceptance gates remain pending.
58 +