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

Docs: record verified Wave 4b merge and gates

davoodmehraban89 committed Oct 2, 2026 at 10:28 UTC bc2e6a8edc1f0f820588bcbe573ad45d4822852f
1 file changed +2 -2
PROJECT_STATE.md
+2 -2
@@ -14,8 +14,8 @@ This is high-assurance accounting/ERP software. Posted financial history, tenant
14 ## Current change ledger
15 | Date | Request / decision | Status | Evidence / next action |
16 |---|---|---|---|
17 -| 2026-10-02 | Wave 4b first disposable-DB run exposed an ambiguous PL/pgSQL test variable in the final replay assertion. | **TEST FIX APPLIED / RETEST PENDING** | Product migration executed through all scheduler/outbox assertions; failure was confined to the final test query where local variable `k` shadowed temp-table column `k`. Renamed/qualified the assertion; no production permission or state-machine rollback. |
18 -| 2026-10-02 | Owner said «ادامه بده» after Wave 4 F-420/F-421/F-422 merge. | **IMPLEMENTED ON BRANCH / CI PENDING** | Added server-clock five-minute scheduler slots, durable run/claim evidence, replay binding, skip-locked overdue claims, stable outbox destination command identity, lease claims, retry/backoff, dead-letter and idempotent authorized replay. D4c destination consumers remain disabled. Production migration is NOT APPLIED pending the schema-change gate. |
17 +| 2026-10-02 | Wave 4b first disposable-DB runs exposed test-only replay assertion defects (ambiguous variable, then escaped dollar delimiter). | **FIXED / RETEST VERIFIED** | Both failures occurred after the product migration and operational assertions had executed; final corrected head `6bb22aa485ffeb850d1f5329714b8248beae79ec` passed D1 DB, static-quality/real-DOM/accounting and required security checks before merge. No production permission or state-machine rollback was used. |
18 +| 2026-10-02 | Owner said «ادامه بده» after Wave 4 F-420/F-421/F-422 merge. | **WAVE 4B MERGED / DISPOSABLE-DB + REAL-DOM + ACCOUNTING + SECURITY + GATED PAGES VERIFIED / PRODUCTION NOT APPLIED** | PR #27 merged as `41aff95d11a66c67e2c64df3eac11a122f94dfd7`. PR Quality `36975854976`: D1 DB SUCCESS (including Wave 4b adversarial scheduler/outbox assertions), C8 DB SUCCESS, static-quality SUCCESS with 38/38 real-DOM and accounting phases 2–6 + Golden journey. PR Security `36975855052`: Release/QA safety + CodeQL SUCCESS; Dependency Review remains the known disabled-graph boundary. Main Quality `36975968198` SUCCESS; Security `36975968108` SUCCESS; exact-SHA Release gate `36976087514` SUCCESS; gated Pages `36976115600` SUCCESS. Supabase production migration `request_wave4b_scheduler_outbox_delivery` is NOT APPLIED pending explicit schema-change approval. D4c destination consumers remain disabled. |
19 | 2026-10-02 | Owner supplied environment/connection handoff and directed it to be enforced while continuing work. | **LIVE RECONCILED / ACTIVE OPERATING CONTEXT** | Verified GitHub target `davoodmehraban89/Factor-easy` with admin/read-write access, canonical `main`, and Supabase target `hcsixhqbyuhpshfwqpjx` = Finora / `ACTIVE_HEALTHY`. GitHub + Supabase remain source of truth; Gmail/Notion are optional support only, and Railway/Render are not deployment truth unless a later explicit project decision makes them so. Detected concurrent branch advancement during Wave 4 and refused a non-fast-forward overwrite; re-read the newer head before continuing. |
20 | 2026-10-02 | Wave 4 remediation F-420/F-421/F-422 from canonical audit register. | **IMPLEMENTED ON BRANCH / NOT YET VERIFIED** | F-420 rejects duplicate normalized `onApproved` target/action identities; F-421 binds SLA editor values to logical step keys across reorder/remove/key-edit; F-422 adds actor-scoped delegation idempotency, explicit overlap rejection and revoke retry audit dedupe. Disposable-DB + Real-DOM gates added. CI/merge/production remain NOT VERIFIED at this checkpoint. |
21 | 2026-10-02 | Owner supplied the current remediation/audit package plus manual GitHub QA workflow and directed continuation of both roadmap execution and defect remediation. | **F-412 + WAVE 3 F-415/F-416 VERIFIED / PRODUCTION RECONCILED** | PR #23 merged as `d13498f3af03f544c05168727b440f053de1d733`. Main Quality `36973781026` SUCCESS including disposable D1 DB adversarial tests; Security `36973781055` SUCCESS (Release/QA safety + CodeQL; PR Dependency Review remains externally blocked by disabled Dependency Graph); Release gate `36973927530` SUCCESS; gated Pages `36973959986` SUCCESS. Production migrations `20261002063121 request_wave2_duplicate_code_guard` and `20261002063123 request_wave3_decision_idempotency` applied. Read-only production reconciliation: duplicate legacy code groups=0; replay actor binding, reauthorization and immutable event-outcome reconstruction are present. Next: Wave 4 F-420/F-421/F-422; D4c consumers remain disabled. |