سامانه صدور فاکتور و حسابداری
docs: checkpoint exact Issue229 P0 handoff and A-F milestone estimates
davoodmehraban89 committed
Nov 22, 2026 at 15:52 UTC
a244a0cf88a98f9a7940537a3f494ee98a5238a6
1 file changed
+9
PROJECT_STATE.md
+9
@@ -597,3 +597,12 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
597
- **Verified remote baseline:** [PR231](https://github.com/davoodmehraban89/Factor-easy/pull/231) Draft HEAD `3e10e8c24892b36cc52dbaf4ad2e484793cc077e` docs-only successor of code `bd244962915824d0ad825e99b5cda4d530f18402`; code exact-SHA Quality/WP1/WP2/Security all SUCCESS with confirmed *product* P0 sale/purchase authorization bypass. HEAD Security [45021144844](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45021144844) and WP2 [45021144831](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45021144831) SUCCESS; Quality [45021144879](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45021144879) SUCCESS; WP1 [45021144832](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45021144832) was IN PROGRESS at decision entry (check final before claiming 4/4). main still `dab1a45fcfc4f12e675cfe055e477138cd3e99fa`.
598
- **Scoped milestone:** trace existing seller/purchase Save, journal RPC, SQL private authorization and source-linked autopost to produce a **precise, non-mutating code-owner implementation handoff** for Issue229/ADR216. The new document `docs/ISSUE229_FIX_ACCEPTANCE_HANDOFF_2026-11-22.md` must enumerate concrete source paths/line anchors, security boundaries, transaction contract, history safety, acceptance probes and rollback plan. Keep it subordinate to the accepted ADR and canonical state, not a parallel product roadmap.
599
- **Limit:** No new accounting SQL/JS/RBAC/RLS, no DB mutation or hosted access, no merge, release, production or history rewrite; Codex-main owns substantive changes and acceptance. Next: finish handoff, verify exact docs branch and any newly triggered checks, attach to PR231/Issue229, report short A–F estimates with unresolved P0 explicit.
600
+
601
+
602
+### 2026-11-22 — FIN-ADR216-P0-FIX-HANDOFF verified deliverable (no product change)
603
+- **Delivery:** commit `299893e1e0e8f6b5232ea8d98306f0449caf1c55` created [`docs/ISSUE229_FIX_ACCEPTANCE_HANDOFF_2026-11-22.md`](docs/ISSUE229_FIX_ACCEPTANCE_HANDOFF_2026-11-22.md) in Draft PR231. Exact remote PR HEAD and one-file commit were read back. Linked to both PR231 and Issue229 via GitHub comments (PR comment 7079049164; Issue comment 7079049871). This document is a **code-owner implementation/acceptance handoff**, NOT the correction or a newly adopted roadmap.
604
+- **Verified fault chain:** `js/purchases.js:327-340` Save→`jeRpcAutoPost`; `js/purchases.js:100-115` correction Save auto-finalizes; `js/journal-rpc.js:211-239,285-288` standalone source sync→server autopost; `20261117110000_wp1_autopost_source_link_atomic.sql:21,77,91,94-101` commerce:create → draft created → p_auto post → business source posted; effective SQL override `20261016103100_phase1a_autopost_server_authority.sql:63-79` checks source create for auto posting rather than accounting approve. `js/invoices.js:367-375` classifies any linked journal as posted, while `js/purchases.js:64-72` fails to recognize linked drafts. Client-side requireWrite is no substitute for server approval.
605
+- **Required implementation and acceptance:** one server transaction for linked business source + generated journal **draft** without a final number, separate server `accounting:approve` Finalize with version/tenant/fiscal checks, old-autopost bypass blocked, correct linked-draft UI projection and immutable posted history/tombstones; real seller-without-approve rejection and independent approver success, rollback/idempotency/concurrency tests. Codex-main owns all financial changes and independent review. Existing two expected-RED browser cases and both positive bypass repro probes remain evidence of unresolved **P0** and must be flipped to normal PASS after a true product fix; Issues216/229 stay OPEN.
606
+- **QA facts:** immutable code SHA `bd244962915824d0ad825e99b5cda4d530f18402` had exact-SHA Quality/WP1/WP2/Security SUCCESS; the preceding docs-head `3e10e8c24892b36cc52dbaf4ad2e484793cc077e` had exact-SHA Quality/WP2/Security SUCCESS while WP1 still running at later check. New docs HEAD `299893e1e0e8f6b5232ea8d98306f0449caf1c55` triggered new GitHub CI (Quality 45021776472, WP1 45021776508, WP2 45021776497, Security 45021776444), **in progress** at this checkpoint. Do not infer pass for successor documentation commits until individually completed.
607
+- **Owner reporting instruction:** after each verified milestone, report A–F as short single-row percentages, mapping six-phase 0–5 without presenting them as measured facts: currently A audit/architecture 90%, B server financial core 50%, C draft-first lifecycle 20%, D ledger health 55%, E UX 50%, F release readiness 10%. These estimates **did not rise** because only QA/documentation was delivered; update only with accepted product evidence.
608
+- **No release action:** PR231 remains Draft/unmerged, main `dab1a45fcfc4f12e675cfe055e477138cd3e99fa` unmodified, no hosted DB/production access, SQL schema/RLS/Auth/grants, financial app code, migrations or posted history changed. Next: verify exact HEAD CI and independent Codex-main adoption; avoid parallel accounting engine.