سامانه صدور فاکتور و حسابداری
Docs: verify F-412 and Wave 3 production evidence
davoodmehraban89 committed
Oct 2, 2026 at 10:03 UTC
45f28f4dde23461ac86bc57575e5d4ec64096b7b
2 files changed
+38
-3
PROJECT_STATE.md
+3
-3
@@ -14,7 +14,7 @@ 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 | Owner supplied the current remediation/audit package plus manual GitHub QA workflow and directed continuation of both roadmap execution and defect remediation. | **IMPLEMENTED ON REMEDIATION BRANCH / NOT YET VERIFIED** | Live production preflight found zero same-org duplicate legacy request-type codes. Added F-412 explicit duplicate-code abort/report guard plus adversarial two-owner/same-org test; added Wave 3 F-415/F-416 decision replay hardening that reauthorizes and actor-binds replay and reconstructs the original immutable response from event evidence. Quality DB job now applies both migrations/tests. CI, merge and production application are still NOT VERIFIED. Next: open PR, pass protected CI, then apply/reconcile migrations before closing findings. |
17
+| 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. |
18
| 2026-10-02 | Owner directed immediate continuation after observing execution delay. | **D4A IMPLEMENTED / PRODUCTION + DISPOSABLE-DB + REAL-DOM + ACCOUNTING + SECURITY VERIFIED** | PR #21 merged as `4583703396a7ddb00bdad76b52c22932d634cbef`. Main Quality `36961361891` SUCCESS (38/38 real-DOM, accounting phases 2–6 + Golden, D1/C8 DB); Security `36961361897` SUCCESS; Release gate `36961459328` SUCCESS; gated Pages `36961492170` SUCCESS. Production migration `20261002034311 request_workflow_d4a_work_queue` reconciled. Evidence: `docs/REQUEST_WORKFLOW_D4A_VERIFICATION.md`. |\n| 2026-10-02 | Owner switched GitHub Pages source to **GitHub Actions** after the gated Pages workflow was installed. | **WAVE 0 COMPLETED / POSITIVE + NEGATIVE CONTROLS VERIFIED** | Negative control: failing SHA `03561a3369130a7aaba689474d92aa3e93137404` on PR #15 failed required `static-quality`, could not merge, and produced no Release gate / gated Pages deployment. Positive control: protected-main SHA `150ff54d938a45b9a9b476f3a4a8fdabbb45d065` passed Quality `36932956964`, Security `36932956877`, exact-SHA Release gate `36933115365`, then gated Pages deploy `36933151878`; no legacy dynamic branch Pages deployment appeared. F-402/F-403/F-406/F-407/F-423/F-424 are closed at the verified GitHub/repository boundary. |
19
| 2026-10-02 | Wave 2 request integrity remediation F-411/F-413/F-414/F-417/F-418. | **IMPLEMENTED / PRODUCTION + DISPOSABLE-DB + REAL-DOM + ACCOUNTING + SECURITY VERIFIED** | Squash merge `7346910638b6ef9555d4adb5952dd62c8f4c130d` from PR #19. PR Quality `36937247798`: DB jobs SUCCESS and 37/37 real-DOM tests passed; accounting phases + Golden journey passed. PR Security `36937247803`: required Release/QA invariants + CodeQL SUCCESS (Dependency review remains the documented external graph boundary). Main Quality `36937448157` SUCCESS; Security `36937448101` SUCCESS; exact-SHA Release gate `36937598497` SUCCESS; gated Pages `36937616201` SUCCESS. Production migration recorded as `20261001225044 request_wave2_integrity_hardening`; live validator negative controls and function-contract checks passed. |
20
| 2026-10-02 | Live Supabase target `hcsixhqbyuhpshfwqpjx` became available to the connector; owner directed immediate continuation. | **WAVE 1 PRODUCTION RECONCILED / WAVE 2 STARTED** | Production migration history and live `request_transition_instance` definitions were inspected read-only. F-409/F-410 guard is present in production; next slice is F-411/F-413/F-414/F-417/F-418 with server validation, form-runtime fidelity, idempotency binding, active/latest-version enforcement and schema-bound conditions. |
@@ -63,8 +63,8 @@ Automatic background scheduling for SLA scans; delivery/dispatch consumers for D
63
The connected Supabase tool now exposes the owner-specified production target `hcsixhqbyuhpshfwqpjx` (`Finora`, `ACTIVE_HEALTHY`, PostgreSQL 17.6.1). Live migration history includes the C8/D1/D2/D3 and Wave 1 request migrations through two recorded `request_wave1_legacy_transition_guard` applications. Read-only production inspection confirmed the current private legacy transition implementation authorizes tenant/module/capability before replay, rejects D3 step-runtime bypass, binds replay to actor+action, and the public wrapper is `SECURITY INVOKER`. No production DDL was required for this reconciliation.
64
65
## Exact next executable work
66
-1. Resume D4 approver/delegate work queue and bounded outbox-consumer contracts now that Wave 2 request-integrity gates are closed.
67
-2. Keep D4c external/destination consumers disabled until their own destination-idempotency, retry/dead-letter and authorization contracts are implemented and adversarially verified.
66
+1. Execute Wave 4 remediation F-420/F-421/F-422: explicit outbox action identity, logical-step SLA binding, delegation retry/overlap safety, then scheduler claim/idempotency/clock policy.
67
+2. Keep D4c external/destination consumers disabled until destination-idempotency, retry/dead-letter, authorization and audit contracts are implemented and adversarially verified.
68
3. Continue compliance/accounting roadmap only with sourced legal/tax/accounting evidence and controlled cutover safeguards.
69
70
## Live QA open items
docs/REQUEST_REMEDIATION_WAVE3_VERIFICATION.md
new
+35
@@ -0,0 +1,35 @@
1
+# Request Remediation F-412 + Wave 3 Verification — 2026-10-02
2
+
3
+## Scope
4
+- F-412: deterministic legacy request-type duplicate-code collision detection.
5
+- F-415: authorization before decision replay.
6
+- F-416: stable idempotent decision replay response.
7
+
8
+## Repository evidence
9
+- PR: #23
10
+- Merge SHA: `d13498f3af03f544c05168727b440f053de1d733`
11
+- Main Quality: `36973781026` — SUCCESS.
12
+- Main Security: `36973781055` — SUCCESS.
13
+- Exact-SHA Release gate: `36973927530` — SUCCESS.
14
+- Gated Pages: `36973959986` — SUCCESS.
15
+- PR Dependency Review failed only because GitHub Dependency Graph is disabled; the protected required Release/QA safety and CodeQL checks passed.
16
+
17
+## Database evidence
18
+- Production project: `hcsixhqbyuhpshfwqpjx`.
19
+- `20261002063121 request_wave2_duplicate_code_guard`.
20
+- `20261002063123 request_wave3_decision_idempotency`.
21
+- Production read-only reconciliation after apply:
22
+ - same-organization normalized duplicate legacy request-type code groups: 0;
23
+ - current `private.request_step_decide` contains actor-bound replay;
24
+ - current replay rechecks capability/delegation authorization;
25
+ - replay returns immutable event `to_status/revision` rather than later request state.
26
+
27
+## Behavioral acceptance
28
+The disposable D1 database job applies the new migrations and runs:
29
+- a two-owner / same-organization / same-code F-412 negative test that must abort and report the colliding code/record;
30
+- an F-415 negative replay test with authorization removed;
31
+- an actor-mismatch replay negative test;
32
+- an F-416 test that advances a parallel quorum after the first vote and proves retry returns the original first-vote response without mutation.
33
+
34
+## Boundary
35
+No external D4c outbox consumer was enabled. Wave 4 F-420/F-421/F-422, scheduler/claim policy, destination idempotency, retry/dead-letter and external adapter E2E remain open.