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

docs(qa): pre-record convergence plan for Issue229 UI and acceptance branches

davoodmehraban89 committed Nov 22, 2026 at 19:46 UTC 91b52c36ad5af52aab7d9d270d0db0179da492ea
1 file changed +8
PROJECT_STATE.md
+8
@@ -647,3 +647,11 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
647 - **P0 evidence still current:** WP2 log at exact code SHA emitted both `FINORA_ISSUE229_APPROVAL_EXPECTED_RED` and `FINORA_ISSUE229_PURCHASE_APPROVAL_EXPECTED_RED`: a genuine non-owner JWT with commerce:create but **no accounting:approve** POSTED a sale and credit purchase by legacy autopost. **Issue #216 and #229 OPEN**; `main` remains `dab1a45fcfc4f12e675cfe055e477138cd3e99fa`; PR232 Draft, NOT merged/deployed; no financial SQL, RLS, schema, Auth, permissions, hosted data or posted history modified.
648 - **Owner end-of-turn manual progress estimate (six phases 0–5 mapped A–F):** A architecture/audit **90%**, B server accounting core **50%**, C draft-first source-linked accounting **20%**, D ledger health **55%**, E operational UX **53%**, F release readiness **10%**. Marginal E advance reflects verified browser UI controls only; estimates are non-measured and product/server acceptance still P0 blocked.
649 - **Next authorization needed:** before starting Codex-main financial server implementation, explicit owner approval for a **separately scoped migration/RBAC/RPC implementation in disposable local test DB only**, with rollback, negative/positive real JWT approval boundary, historical snapshot/fingerprint invariants and independent review; never production writes or mass posted→draft downgrade. After actual fix, remove remaining purchase Save xfail and convert real JWT P0 repro markers into negative seller + positive approver acceptance, then re-run all four exact-code gates. This documentation-only successor commit will have its own CI; do not attribute code-SHA green to a new SHA until verified.
650 +
651 +
652 +### 2026-11-22 — FIN-ISSUE229-INTEGRATE-QA-UI: pre-implementation decision (owner continuation)
653 +- **Owner requested continuation**, without any new explicit financial DB/Auth/schema/RLS/grants/migration, Production, merge or release authorization. Protected main baseline `dab1a45fcfc4f12e675cfe055e477138cd3e99fa`.
654 +- **New verified integration risk:** independent Draft [PR232](https://github.com/davoodmehraban89/Factor-easy/pull/232) **actually fixes** browser-visible **linked draft status** and UI source-only action denial; independent Draft [PR233](https://github.com/davoodmehraban89/Factor-easy/pull/233) tests linked-draft status as a **product expected RED** from a different branch. Both have independently green CI but cannot simply be treated as a compatible, accepted whole. Failing to integrate them risks an xfail unexpected-PASS or masking UI paths after later convergence. This is a non-database integration problem, not a license to edit the server.
655 +- **Isolated branch:** `integration/issue229-ui-qa-20261122` just created from **PR232 docs HEAD `7eca5d61337c905b0170400ff48e8eaba20afeb3`**. Plan a new **DRAFT** integration PR stacked on PR232, no merge: retain PR232's client UI source-linked draft status/action safety, its three normal-PASS browser status/DOM/action regressions; import **only** PR233's strict `assertKnownRedOrFixed` helper + one normal-PASS sentinel, purchase Save known-red guard, sale Save linked-draft expected-red and posted purchase correction Save expected-red; **REMOVE PR233's obsolete linked-status expected-red** rather than reintroducing it. Also import exact WP2 path filter additions `js/purchases.js` and `scripts/accounting-document-workflow.spec.js` to ensure same-head JWT coverage. No changes to financial runtime code beyond PR232 baseline, no new migrations/permissions/SQL.
656 +- **Acceptance:** exact integration browser suite, including both **UI real PASS** and remaining **three product expected REDs**, should be faithfully reported. Both real-JWT P0 approval bypass probes must remain expected-red until server approval fixes. Verify exact-code Quality, WP1, WP2, Security; if conflict arises, fix minimal QA-only integration, not product SQL. No promotions, deploy or merge. Do **not** increase Phase B/C/F from QA integration; A90/B50/C20/D55/E53/F10 provisional estimates remain only for final answer.
657 +- **Existing independent PR evidence:** PR232 code `948e22debb327781452b11936a378eaf1815aff1` four exact-code gates SUCCESS; latest PR232 docs `7eca5d61337c905b0170400ff48e8eaba20afeb3` four gates SUCCESS. PR233 strict-QA code `f551fc1fb5532a359a0976121586df707c78cb5f` Quality [45038147146](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45038147146) SUCCESS 256 Chromium +4 Pages; WP2 [45038147231](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45038147231) SUCCESS with both known security P0 markers; Security [45038147224](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45038147224) SUCCESS, WP1 [45038147184](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45038147184) was ongoing at last prior check. New PR233 docs SHA `3caaa2d843eafc9db25872114cd3730e41a4a3d3` four exact-head gates now independently SUCCESS. These are **baselines, not the integration result**.