@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 3caaa2d
Fork 0

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

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 17:00 UTC

docs(qa): checkpoint strict xfail sentinels, 3 completed gates and WP1 status

davoodmehraban89 committed Nov 22, 2026 at 19:10 UTC 3caaa2d843eafc9db25872114cd3730e41a4a3d3
1 file changed +10
PROJECT_STATE.md
+10
@@ -671,3 +671,13 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
671 - **Exact scope/plan:** On Draft PR233 head `77e3c5198f4a8f85bbb1b4ac4d90151a43d133d7`, introduce one small `assertKnownRedOrFixed` helper in the SAME Playwright spec. Before each `test.fail(true)`, assert that the observed product state exactly equals (a) the precisely known legacy-broken state or (b) the complete intended ADR216 target, with meaningful unexpected-state diagnostic otherwise. This makes **unexpected third states real CI failures before xfail**, and intended target's expected-failure becomes an **unexpected pass** (prompting removal of the xfail). Add one normal-PASS focused test of the sentinel's allowlist vs rejection. Preserve all four existing product expected-RED assertions and browser fixtures; no change to app JS, CI workflows, SQL/schema/roles/grants, hosted DB, posted history, production, protected main, deployment or merge.
672 - **Validation:** static syntax + full exact-code Chromium (including four expected-RED tests and new normal-PASS sentinel), WP1 disposable, real JWT WP2 with both P0 bypass expected-red markers, Security. Investigate if precise legacy fingerprints differ; do not weaken the sentinel to make CI green. Keep Issues216 and 229 OPEN, no increased Phase C percentage from tests.
673 - **Pre-change latest docs HEAD:** PR233 `77e3c5198f4a8f85bbb1b4ac4d90151a43d133d7`. [Quality #45037495502](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45037495502) and [WP1 #45037495369](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45037495369) in progress at start, [WP2 #45037495425](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45037495425) and [Security #45037495411](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45037495411) SUCCESS. Future per-head statuses must be independently verified.
674 +
675 +
676 +### 2026-11-22 — FIN-P0-229-XFAIL-SENTINEL: verified quality and precise unresolved WP1 checkpoint
677 +- **User continuation acted upon, not only advised:** [Draft PR233](https://github.com/davoodmehraban89/Factor-easy/pull/233), **exact QA code SHA `f551fc1fb5532a359a0976121586df707c78cb5f`** changed **only** `scripts/accounting-document-workflow.spec.js`. Added `assertKnownRedOrFixed` using Node `isDeepStrictEqual`, executed **before** the four `test.fail(true)` markers for purchase Save, sale/purchase linked-draft statuses, sale Save, and purchase amendment Save. The sentinel explicitly allows **only** the known P0 broken state or complete intended ADR216 target; any third/partial/orphaned state causes a **real** `FINORA_ISSUE229_UNEXPECTED_PRODUCT_STATE` failure before xfail and cannot masquerade as green. After the actual backend fix, the expected target triggers an **unexpected PASS** that forces xfail removal. New **normally-PASS** sentinel test checks broken/target acceptance and unexpected partial/orphan rejection. Four original product expected-RED checks preserved unchanged. JS parsing and four-call source check PASS.
678 +- **Exact-CODE Quality [#45038147146](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45038147146) SUCCESS:** GitHub completed Chromium log **`256 passed (4.4m)`** and Pages **`4 passed`**; sentinel normal-PASS is test **5/256**, four P0 expected-red tests **29–32/256**. No unexpected third state observed; all expected RED reflect their specifically known defects. This is more trustworthy green QA, **NOT** product financial or authorization acceptance.
679 +- **Exact-CODE WP2 [#45038147231](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45038147231) SUCCESS:** real JWT disposable Supabase proof emitted `FINORA_SOURCE_JWT_ATOMIC_PASS`, `FINORA_PURCHASE_JWT_PARITY_PASS` plus both live product defects `FINORA_ISSUE229_APPROVAL_EXPECTED_RED` and `FINORA_ISSUE229_PURCHASE_APPROVAL_EXPECTED_RED`: commerce:create-only **non-owner** JWT lacking accounting:approve **still can POST** sale and credit purchase through legacy autopost. Not a fix.
680 +- **Exact-CODE Security [#45038147224](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45038147224) SUCCESS** (conditional Dependency Review SKIPPED). **Exact-CODE WP1 [#45038147184](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45038147184): `in_progress`, conclusion `not yet reported` at this checkpoint**, with `supabase-local-stack` job SUCCESS but `ledger-negative-and-behavior` still IN PROGRESS. Do not say all four passed. A documentation-only successor may trigger its own CI and cancel the previous SHA's still-running WP1 under workflow branch concurrency; distinguish SHA evidence.
681 +- **Governance:** protected main `dab1a45fcfc4f12e675cfe055e477138cd3e99fa` unchanged; Issue229 `open`, Issue216 `open`, PR233 DRAFT/unmerged. No SQL/schema/RLS/Auth/grants/RBAC/RPC, finance JS, production/hosted data, posted history, branch merge or deployment changed.
682 +- **Conservative end-of-turn A–F milestones (manual estimates, unchanged):** A audit/architecture **90%**, B finance server **50%**, C atomic draft-first source+linked journal lifecycle **20%**, D ledger **55%**, E operational UI **53%**, F release readiness **10%**. The QA safety guard improves reliable **detection** only and does not justify increasing C or F.
683 +- **Next real server product fix remains blocked:** owner must explicitly approve test-only isolated DB changes to additive migration/RPC/server `accounting:approve` enforcement; currently plain «ادامه» is not consent. Codex-main to implement atomic sale/purchase/correction Save→source+linked balanced journal DRAFT, explicit separately authorized Finalize, disable old autopost approval bypass, preserve posted-history/number idempotency, rollback, and convert these four expected-RED and both JWT P0 probes to normally PASS after genuine fix. No Production access has been authorized.