@davoodmehraban89 / Factor-easy / commits / 41330c2
Fork 0

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

docs(finora): record bounded QA fixture contract and pre-CI evidence

davoodmehraban89 committed Nov 23, 2026 at 12:12 UTC 41330c222b9663563c0307f353bd86d981d72661
1 file changed +7
PROJECT_STATE.md
+7
@@ -805,3 +805,10 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
805 - Proposed executable browser scenarios use existing authenticated synthetic Supabase harness, one product and strictly verified fixtures: (1) same-owner other company posted adjustment excluded; (2) own-company draft adjustment excluded; (3) own posted `adjustment_out` negative against valid opening; (4) own posted inter-warehouse transfer contributes zero to **company-aggregate Kardex** while Phase5 W1 decreases and W2 increases. The last requirement is deliberately only net aggregate zero; exact row presentation/per-warehouse costing remain Codex-main policy.
806 - **Fail-closed test contract:** require expected fixed projection or one exact known broken fingerprint, otherwise ordinary test failure; `test.fail` only when current known bad projection actually matches. No generic xfail, skip, diluted expectation, or incorrect claim that green QA means product repair. Ensure test fixture doesn't contain unrelated purchases/invoices. Prior PR240 tests untouched.
807 - Validate actual GitHub Quality (browser run markers), WP1/WP2/Security trigger/results on exact final SHA, record independent review as not performed unless real. Roadmap/phase estimates A90/B50/C20/D55/E53/F10 stay unchanged. No backup-connection request for historical conversion; no historical conversion authorized.
808 +
809 +
810 +### 2026-11-23 — FIN-QA-223-MANUAL-KARDEX / candidate code checkpoint BEFORE PR CI
811 +- Applied a single append-only change to existing `scripts/accounting-document-workflow.spec.js` on branch `qa/finora-issue223-manual-kardex-browser-red-20261123`, code commit `0e33713dd3bce0a7c2c4e9ef8e3cdd2dc9890e08`. Four parameterized Playwright browser cases seed mutually isolated authenticated synthetic fixtures with A/B companies, W1/W2/B warehouses, one product, no invoices/purchases, and posted/draft movement IDs. Static source before patch already proved `productKardexRows` ignores status/company and signs, while `p5ManualEvents` has the intended scoped/sign behavior.
812 +- Tests assert exact currently known incorrect values **or** precise correct values, with all other states rejected. Four markers: `FINORA_ISSUE223_CROSS_COMPANY_EXPECTED_RED`, `FINORA_ISSUE223_DRAFT_EXPECTED_RED`, `FINORA_ISSUE223_OUTBOUND_SIGN_EXPECTED_RED`, `FINORA_ISSUE223_TRANSFER_NET_EXPECTED_RED`. Sign test uses posted opening 5/outbound 2 → Phase5 stock 3, current Kardex 7 vs required 3; transfer uses opening 8/transfer 3 → W1 stock 5/W2 stock 3 and Kardex current 11 vs required 8. No choice of UI representation of transfer rows is imposed; only aggregate net zero.
813 +- Updated existing `docs/EXECUTION_STATUS.md` with task scope and acceptance markers. **No new local browser execution claimed**: repository clone unavailable in this session; actual Playwright proof and full CI await creation/check of an exact-head Draft QA PR. If a test fails due fixture assumptions, repair only the proven fixture, never relax company/status/sign acceptance. No financial application JS, SQL/migration, Auth/RLS/grants, main, posted history, production or release changed; Codex-main remains final reviewer.
814 +