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

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

docs(qa): checkpoint exact-SHA 4-gate WP2 trigger coverage and remaining P0 red

davoodmehraban89 committed Nov 22, 2026 at 18:24 UTC a24c73c14bb21d8a02a2e00e5450aaed65e1603d
1 file changed +8
PROJECT_STATE.md
+8
@@ -637,3 +637,11 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
637 - **New verified gap after first scoped trigger edit:** WP2 `pull_request.paths` covers `js/invoices.js`, `js/journal-rpc.js`, and browser acceptance but **omits `js/purchases.js`**, the exact purchase Save auto-post entrypoint of P0 #229. A future change to purchase Save alone could silently avoid real Auth/JWT server approval tests despite browser Quality passing.
638 - **Minimal CI-only repair on QA PR233:** add `js/purchases.js` under the same WP2 pull-request path filter without changing any workflow job, checkout, Supabase data, RPC or permissions. Require WP2 to execute on exact branch HEAD and retain explicit product expected-RED markers for sale AND purchase. This is a test coverage repair, not an authorization fix.
639 - **First trigger code head** `de703b92f2ab7163b8b0b64abc8397b597101860` had new WP2 [45033772418](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45033772418) running; a new code commit will supersede same-branch CI. Never claim superseded run's status as final acceptance. Owner A–F unchanged; source-to-journal P0 remains blocked on separate explicit test-DB schema/permissions authorization.
640 +
641 +
642 +### 2026-11-22 — FIN-P0-229-WP2-PATHS: verified completion checkpoint AFTER CI
643 +- **Verified scoped QA CODE SHA:** `8ab26794e0fb6d16bc37475d60fa8157add9df81`, [Draft PR233](https://github.com/davoodmehraban89/Factor-easy/pull/233). Fixed two missing WP2 real JWT E2E triggers on pull requests by adding **only** `js/purchases.js` and `scripts/accounting-document-workflow.spec.js` to `.github/workflows/free-supabase-local-e2e.yml`. This is exactly targeted CI coverage: when purchase Save or source/journal browser acceptance changes, GitHub launches real server JWT proof on that same PR code SHA. No test has been weakened, no financial code or Prod modified, workflow job and existing permissions unchanged. Existing Draft PR233 formal-sale Save expected-RED browser acceptance remains.
644 +- **All four exact-code GitHub gates SUCCESS:** [Quality 45034062695](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45034062695) `254 passed (3.7m)` Chromium plus `4 passed` Pages; existing sale Save / purchase Save product expected-REDs still executed. [WP1 disposable ledger 45034062582](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45034062582), both `ledger-negative-and-behavior` and `supabase-local-stack` jobs SUCCESS. [WP2 real Auth-JWT local 45034062615](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45034062615) SUCCESS, with `FINORA_SOURCE_JWT_ATOMIC_PASS`, `FINORA_PURCHASE_JWT_PARITY_PASS` and **both real-JWT `FINORA_ISSUE229_APPROVAL_EXPECTED_RED` / `FINORA_ISSUE229_PURCHASE_APPROVAL_EXPECTED_RED`** in completed logs; those last two prove P0 *still broken* (non-owner seller without `accounting:approve` CAN POST sale and credit purchase via legacy autopost). [Security 45034062642](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45034062642) SUCCESS (Dependency Review conditional SKIPPED).
645 +- **Scope/security:** PR233 diff has only `PROJECT_STATE.md`, `scripts/accounting-document-workflow.spec.js` and `.github/workflows/free-supabase-local-e2e.yml`. No migration, financial source/SQL/RPC/RBAC/RLS/Auth, posted-history, production, protected main `dab1a45fcfc4f12e675cfe055e477138cd3e99fa`, merge or release. Issue216 and Issue229 P0 OPEN; PR232 UI remains an independent Draft, not merged. This is **CI QA contract integrity**, not a product/security-fix acceptance.
646 +- **A–F conservative phase estimates (owner end-of-turn only):** A architecture/audit **90%**, B server finance **50%**, C source-linked draft lifecycle **20%**, D ledger health **55%**, E operational UX **53%**, F release readiness **10%**. All estimates unchanged: real authz and source/journal lifecycle P0 failures block genuine phase advancement.
647 +- **Next owner-controlled boundary:** owner must **explicitly approve** any Codex-main schema/grant/RLS/Auth/RPC/migration changes even in disposable test DB. Acceptance remains server-atomic sale+purchase source-linked draft Save; distinct `accounting:approve` Finalize; blocked old commerce:create-only autopost; immutable posted history/attachment sequence, rollback, source-edit/delete atomicity, real-JWT positive approver and negative seller scenarios; convert expected RED into normal PASS only after actual fix. No such permission has been inferred from a plain “continue.” This subsequent docs-only commit will start Quality/WP1/Security anew without an exact-docs-head WP2 trigger; code-SHA results above remain exact/authoritative.