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

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

docs(qa): record PR234 integrated UI acceptance and exact-code four-gate proof

davoodmehraban89 committed Nov 22, 2026 at 20:02 UTC bc4f2a8b18b13bea2ab6ffdd333fa883e31dd02a
1 file changed +14
PROJECT_STATE.md
+14
@@ -655,3 +655,17 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
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**.
658 +
659 +
660 +### 2026-11-22 — FIN-ISSUE229-INTEGRATE-QA-UI: verified integrated browser acceptance + all-four-code-gates checkpoint
661 +- **Owner instruction fulfilled without financial-server changes.** New isolated [Draft PR234](https://github.com/davoodmehraban89/Factor-easy/pull/234), head **exact CODE SHA `c113cba8c3e4476edb1566b9c64559d5fb6be9fd`** stacked on [Draft PR232](https://github.com/davoodmehraban89/Factor-easy/pull/232) UI branch `fix/issue229-linked-draft-status-20261122`. Draft [PR233](https://github.com/davoodmehraban89/Factor-easy/pull/233) contains parallel QA changes; its status expected-RED was **obsolete** after PR232 UI fix. PR234 carries the compatible integrated acceptance, and PR233 is annotated as **not independently mergeable** without reconciliation; neither has been closed or merged.
662 +- **Precise QA integration:** keep PR232 three real browser **NORMAL PASS** contracts: source-linked draft sale/purchase states (including conflicting/dangling/partially-reversed links), withheld unsupported source-only edit/post/delete controls, direct UI actions blocked before confirmation/RPC/sync. Import PR233 **strict `assertKnownRedOrFixed`** sentinel with 1 extra normal-PASS independent third-state test, and **only three** remaining known PRODUCT expected-RED contracts: purchase Save auto-post, formal sale Save without server-committed linked journal draft, corrected posted purchase Save auto-finalize. Every expected RED checks a precise known broken fingerprint **BEFORE** `test.fail(true)` so unexpected regression is actual CI FAILURE; future fully-fixed state is an unexpected PASS requiring xfail removal. **Do NOT reintroduce linked-draft status expected-red**. WP2 workflow paths now include `js/purchases.js` and `scripts/accounting-document-workflow.spec.js` for exact-head JWT coverage.
663 +- **All four GITHUB CI gates SUCCESS on exactly this CODE SHA:**
664 + 1. [Quality #45043152359](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45043152359): **`258 passed (3.9m)` Chromium, `4 passed` Pages** from static-quality completed job log. QA sentinel ran **5/258**, purchase Save expected RED **29/258**, the three real UI PASS tests **30–32/258**, sale Save expected RED **33/258**, purchase correction Save expected RED **34/258**. No test suite/fixture error and no false linked-status expected-red.
665 + 2. [WP1 #45043152268](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45043152268) **SUCCESS**: both independent jobs `supabase-local-stack` and `ledger-negative-and-behavior` passed, disposable ledger only.
666 + 3. [WP2 #45043152377](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45043152377) **SUCCESS**: actual real JWT local Supabase tests output `FINORA_SOURCE_JWT_ATOMIC_PASS` and `FINORA_PURCHASE_JWT_PARITY_PASS`, plus **`FINORA_ISSUE229_APPROVAL_EXPECTED_RED` and `FINORA_ISSUE229_PURCHASE_APPROVAL_EXPECTED_RED`** proving P0 **UNFIXED**: a real non-owner seller JWT with `commerce:create` and without `accounting:approve` **still posts sale and credit purchase** by legacy RPC. WP2's success confirms detection, never approval authorization.
667 + 4. [Security #45043152325](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45043152325) **SUCCESS**, conditional Dependency Review SKIPPED.
668 +- **Scope audit:** exact PR234 diff versus PR232 comprises `PROJECT_STATE.md`, `scripts/accounting-document-workflow.spec.js`, `.github/workflows/free-supabase-local-e2e.yml` **ONLY**. No financial runtime JS, SQL/schema, migration, Auth/RBAC/RLS/grants, accounting posted history, Production/hosted Supabase, main `dab1a45fcfc4f12e675cfe055e477138cd3e99fa`, deployment or merge touched. PR234 remains Draft, Issue216 `open`, Issue229 `open`.
669 +- **Conservative owner final-only A–F estimates (manual, unchanged):** A architecture/audit **90%**; B finance server **50%**; C source-linked draft lifecycle **20%**; D ledger health **55%**; E operational UI **53%**; F release readiness **10%**. Integrated QA does not repair atomic Save or server JWT approval boundary, so no C/F advancement is defensible.
670 +- **Next scope and owner dependency:** Any actual additive server RPC/migration/schema/permission enforcement, **even disposable test DB only**, requires explicit separately scoped owner approval. Once given, Codex-main should implement atomic source+linked balanced journal **DRAFT** on sale/purchase/correction Save, independent server `accounting:approve` Finalize and fail-closed legacy autopost, permanent historical numbering, reversal audit and idempotency/rollback. Convert product expected RED and real JWT probes to **genuine PASS** after fix and re-run. No Production access authorized.
671 +- **After-verification documentation successor** to this exact code SHA will trigger its own branch CI. Its statuses must be checked separately; do not transfer four-code-sha gate verdicts to docs-only descendant.