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

docs(qa): note purchase.js omission in WP2 pull request triggers before patch

davoodmehraban89 committed Nov 22, 2026 at 18:09 UTC f644593be1b97d158fc1a4b7d73bac2e079f637f
1 file changed +6
PROJECT_STATE.md
+6
@@ -631,3 +631,9 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
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.
634 +
635 +
636 +### 2026-11-22 — FIN-P0-229-WP2-TRIGGER purchase source path (decision BEFORE CI-only extension)
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.