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

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

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

Synced Dec 4, 05:30 UTC

docs: checkpoint Issue229 QA implementation before exact-head CI

davoodmehraban89 committed Nov 22, 2026 at 13:34 UTC 3b78b5148e50e451d9017a67ac08bb47e067d849
1 file changed +7
PROJECT_STATE.md
+7
@@ -558,3 +558,10 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
558 - **Ownership/files:** one new `scripts/wp2-source-approval-boundary-jwt-e2e.mjs`, the existing `.github/workflows/free-supabase-local-e2e.yml` step/path filter, and append-only updates to `PROJECT_STATE.md`, `docs/EXECUTION_STATUS.md`, `docs/ACCOUNTING_CORE_ROADMAP_V1.md`. Parent PR230 is a QA stack only; Codex-main retains financial JS/SQL, pending-edit modules, integration, independent acceptance and release. No edit to `js/sync.js`, `js/organization-rbac.js`, `js/journal-ui.js`, app financial code, migrations, RLS, roles, or operational data.
559 - **Acceptance:** exact-HEAD real WP2 log distinguishes fixture permission proof from a genuine unexpected POST; expected-RED checkpoint is proof of existing defect, **not** a PASS of finalization requirements. Quality/WP1/Security on same head, explicit skipped check classifications and Codex-main review. Once owner fixes independently authorized draft-first finalization, update this regression to assert non-owner DENIAL and approver SUCCESS (normal PASS) before accepting Issue229.
560 - **Baseline SHA:** `3cdbfd5a213098f59518fb1b5757c4c16ddeed03`, new branch `qa/issue229-approval-boundary-jwt-20261122`. Do not merge or deploy.
561 +
562 +
563 +### 2026-11-22 FIN-P0-229-AUTHZ implementation checkpoint (PRE-CI, no acceptance)
564 +- **Concrete work:** added `scripts/wp2-source-approval-boundary-jwt-e2e.mjs` (local-only host assertion; real Auth/JWT non-owner seller with `commerce:create` but no `accounting:approve`; existing persisted-sale `finora_journal_autopost`; DB source/voucher/lines/audit/counter evidence), wired its path filter and run step in the EXISTING WP2 workflow, and updated existing `docs/EXECUTION_STATUS.md` and `docs/ACCOUNTING_CORE_ROADMAP_V1.md`.
565 +- **Interpretation:** the script deliberately returns `FINORA_ISSUE229_APPROVAL_EXPECTED_RED` only after *persisted posting* is observed by a real restricted JWT. If permission isolation, Auth, PostgREST, or fixture fails, the script fails rather than treating a setup error as proof. Existing product SQL/JS remains untouched; this is **a defect reproduction, not a repair**.
566 +- **Unverified:** local E2E could not execute in this worker's runtime (no Postgres/Supabase CLI or local stack); exact-head GitHub WP2/Quality/WP1/Security have not been checked yet; independent owner review is outstanding. Commit IDs and PR link must be copied from verified remote state after PR creation.
567 +- **Next exact work:** inspect workflow `.github/workflows/free-supabase-local-e2e.yml::local-supabase` step `Reproduce Issue229 missing independent approval with real non-owner JWT`; if WP2 fails, inspect job/step log to distinguish fixture failure, legitimate permission-denial (owner code changed), and actual product contract RED; correct QA fixture only without bypassing guards. Then check Quality/WP1/Security on identical HEAD, report precise tests and owner handoff. No merge, deploy or production SQL.