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

docs(qa): record WP2 financial browser-contract trigger gap before CI patch

davoodmehraban89 committed Nov 22, 2026 at 18:06 UTC 345659a1b59ccf8777970f0f7dd185ada18275b8
1 file changed +7
PROJECT_STATE.md
+7
@@ -624,3 +624,10 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
624 - **Safety/roadmap:** files changed on PR233 are **ONLY** `PROJECT_STATE.md` and `scripts/accounting-document-workflow.spec.js`. No finance JS/SQL/migrations, Auth, grants/RLS, real data, posted history, protected main (dab1a45fcfc4f12e675cfe055e477138cd3e99fa), deploy or merge. Issues216 and 229 OPEN; PR233 DRAFT. The QA proof must be converted to normal green once Codex-main fixes real atomic sale Save, not silenced.
625 - **A–F owner progress estimate for end-of-turn only:** A audit/architecture 90%; B server finance 50%; C draft-first source+journal 20% (NO increase from negative QA evidence); D ledger health 55%; E UX 53%; F release readiness 10%. These are judgmental estimates, not quantitative completion certificates.
626 - **Next P0 block:** require owner's **explicit scoped approval** to implement controlled additive server RPC/migration and independent `accounting:approve` posting authorization **in disposable test DB only**, with rollback, real negative seller JWT and positive approver JWT acceptance, immutable posted history and permanent attachment numbering. A general “continue” does not silently permit schema/RBAC/grants changes or production access. After approval, Codex-main reviews and implements, converts sale and purchase Save xfails/approval expected-RED to true negative+positive contracts; no posted-to-draft mass history mutation. This documentation-only successor commit starts its own CI; the successes above strictly refer to code SHA `71e4a2fe2803248d2ea7abf0122ecfc5cddfef6f`.
627 +
628 +
629 +### 2026-11-22 — FIN-P0-229-WP2-TRIGGER: decision BEFORE CI guard change
630 +- **Continuation baseline:** Draft PR233 documentation-head `7342deffff8bcdff4ece24e6e7fc74fafc7d1cb3`, unchanged main `dab1a45fcfc4f12e675cfe055e477138cd3e99fa`. Exact-code `71e4a2fe2803248d2ea7abf0122ecfc5cddfef6f`: Quality [45031609252](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45031609252) SUCCESS, WP1 [45031609246](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45031609246) SUCCESS, Security [45031609229](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45031609229) SUCCESS; **WP2 NOT TRIGGERED**. Docs HEAD Quality [45032828621](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45032828621)/Security [45032828573](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45032828573) SUCCESS, WP1 [45032828580](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45032828580) still running at start of this turn.
631 +- **Observed process defect:** `.github/workflows/free-supabase-local-e2e.yml` `pull_request.paths` omits the browser source-to-journal acceptance file `scripts/accounting-document-workflow.spec.js`. PR233 therefore changes a financial acceptance contract but does not launch real-JWT WP2 on its **own exact SHA**; accepting the old PR231 WP2 run as new-code green would be false.
632 +- **Bounded fix:** in this same scoped Draft QA PR233 add only that exact path under WP2 `pull_request.paths`. This triggers disposable Supabase real JWT testing when source-to-ledger browser acceptance changes; it does **not** weaken any gate, add production access, change finance JS/SQL/RPC/RLS/Auth/posted history or publish/merge. Do not add `PROJECT_STATE.md` to trigger paths, because documentation-only edits must not repeatedly run expensive WP2. The workflow's own path already triggers its test.
633 +- **Acceptance:** exact-head WP2 must actually execute and show both remaining Issue229 **PRODUCT EXPECTED RED** markers, plus successful positive Auth source tests; Quality/WP1/Security must pass at the exact workflow-code SHA. Review PR diff to ensure only `PROJECT_STATE.md`, browser spec, this workflow path change. **Do not infer Phase C closure or raise C/F** from green CI; P0 and owner authorization barrier remain.