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

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

docs: log FIN-CI-218-WP2 request and exact CI preflight before implementation

davoodmehraban89 committed Nov 22, 2026 at 06:41 UTC db381183d946bfbe0b181ac713cbe87c5561c69a
1 file changed +8
PROJECT_STATE.md
+8
@@ -465,3 +465,11 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
465 - **RED/GREEN relationship:** RED [44949211793](https://github.com/davoodmehraban89/Factor-easy/actions/runs/44949211793) had 236 pass/13 fail; after Kardex correction, [44954272409](https://github.com/davoodmehraban89/Factor-easy/actions/runs/44954272409) 237 pass/12 fail; after preserving fixture membership and hydrating initial invoice product options, final 251/251 browser PASS. No test was removed, skipped, or weakened; two browser tests were added. The real organization revocation guard remains active, including the new negative test.
466 - **Acceptance boundary:** `FIN-QA-218-01/02/03` may be marked **پذیرفته‌شده در تست (candidate)** for the documented browser/CI scope only, **not منتشرشده**. The entire financial draft lifecycle Issue216, authorized positive financial PostgREST/journal posting, cheque accounting, real customer accounts, and historical migration are **NOT accepted** by these runs. No production Supabase access/write, tenant history change, migration, protected merge or Pages deployment occurred. The main Codex remains sole independent reviewer/integration authority; PR221 currently has no external reviews, and PR220 may overlap in canonical documentation. Do not claim self-review as independent.
467 - **Continuity / exact next checkpoint:** PR221 Draft based on PR218; canonical status docs updated after the test SHA (thus next docs-only head will require its own exact-head checks). Main Codex should inspect `js/products.js::productKardexRows`, `js/invoices.js::hydrateEmptyInvoiceProductSelectors`, `scripts/commerce-route-types.spec.js` revoked/authorized cases, `scripts/phase0-invoice-persistence.spec.js` preservation case and `scripts/ux-hardening-r2.spec.js` authorization fixture. Check final docs-head Quality, WP1, Security plus the missing WP2 coverage where applicable; selectively reconcile PR220 documentation without merging duplicate financial alternatives. Leave PR221 Draft; no merge or deployment authority delegated.
468 +
469 +
470 +### 2026-11-22 — FIN-CI-218-WP2 owner-requested continuation, pre-implementation record
471 +- **Request:** Verify the live post-PR221 evidence, finish execution stage A (baseline/ownership), proceed with non-overlapping stage B QA and an exact-head WP2 acceptance candidate; no merge, main edit, deployment, production SQL, fiscal-history rewrite or edit of Codex-main-owned sync/organization/journal UI.
472 +- **Baseline:** `main dab1a45fcfc4f12e675cfe055e477138cd3e99fa` (released Pages checkpoint); integration candidate PR218 `bcd8d4eebd4f6852ecf8090670741d81dbc27332`, dependent PR212 `1d565c4c7f1eb79331f41fe2ff3f48aeb1e13e69`; PR221 head `44b697b4c75f5d4ae46c2229cbe5bac5972d7151` stacked on PR218; PR220 audit preserved separately. This branch is a **QA-only successor to PR221**, not another lifecycle implementation.
473 +- **Current verified CI:** on PR221 docs-only head `44b697b4`, [Quality 44978932775](https://github.com/davoodmehraban89/Factor-easy/actions/runs/44978932775) SUCCESS (four jobs including three disposable DB), [Security 44978932790](https://github.com/davoodmehraban89/Factor-easy/actions/runs/44978932790) SUCCESS; [WP1 44978932846](https://github.com/davoodmehraban89/Factor-easy/actions/runs/44978932846) in progress at this checkpoint (local-stack job SUCCESS; ledger-negative job running); **WP2 not run on PR221 head** because workflow path filters exclude the changed invoice/product paths.
474 +- **Decision/ownership before implementation:** isolate a narrow QA workflow path-filter repair to `.github/workflows/free-supabase-local-e2e.yml`, plus canonical evidence/register updates; leave PR221's JavaScript and all security/financial SQL unchanged. WP2 is an existing disposable local Supabase Auth+PostgREST and journal adapter check, **not** a substitute for positive authorized financial posting/finalization or Issue216 acceptance.
475 +- **Expected acceptance:** GitHub Actions WP2 actually runs to completion on the **final QA branch SHA** with inspectable jobs/steps; Quality, WP1, Security are separately checked on that same SHA. A cancelled/skipped/non-triggered run is not acceptance. Main Codex must independently review before integration. No version/tenant/financial data is modified.