Repository navigation
REQ-ACCEPTANCE-004: Strengthen MTFX-I1 and MTFX-I2 to prove authoritative settlement - #349
Conversation
…tive settlement mutation Repair the evidence-quality defect left by PR #344: MTFX-I1 and MTFX-I2 now prove the authoritative settlement mutation (buyer/seller wallet and inventory changes), not only transaction record construction. MTFX-I1: Execute settlement that mutates buyer/seller wallets and state treasury. Assert before/after buyer gross debit equals seller net receipt plus collected tax, enforcing the canonical money conservation identity. MTFX-I2: Execute settlement that mutates buyer/seller inventories. Assert before/after seller inventory decrease equals buyer inventory increase for guaranteed non-zero allocations. Test fails if clearing produces no allocation. Both tests now verify they reach and mutate canonical state through the documented settlement path, not only that transaction records carry correct values. Verification: - TypeScript: npm run typecheck, npm test, npm run build all passed - C#/.NET: dotnet build, dotnet test all passed - REQ-MIGRATION-003 maintained: legacy .NET tests green REQ-ACCEPTANCE-004 remains PARTIAL (MTFX-T2..T6, MTFX-I3..I6 and orchestration golden-gate scenario remain incomplete).
…ANCE-004 (#349) Updated ledger row for REQ-ACCEPTANCE-004 to reflect strengthened MTFX-I1 and MTFX-I2 tests that now prove authoritative settlement mutation (wallet and inventory changes), not only transaction records. Both tests now verify canonical settlement path execution with concrete wallet/inventory state verification and conservation law assertions.
Verdict: ACCEPTRevision: bfdb242 All acceptance criteria met:
Merged as squash commit 2fb6ea0 |
…airs (#385) REQ-MARKET-005: Record PR #352 (edde27b) as merged; telemetry integration wiring complete. Accept that Phase-8 golden-gate acceptance work remains. REQ-ACCEPTANCE-004: Record PR #349 (2fb6ea0) as merged; settlement mutations and conservation proof complete. Accept that MTFX-T2..T6 and MTFX-I3..I6 golden-gate work remains. Preserve PARTIAL status for both; only evidence/provenance updated, not requirement classification. IMPLEMENTATION_STATUS.md regenerated from ledger per implementation_status.py contract. Closes #384 Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
Summary
Repair the evidence-quality defect in REQ-ACCEPTANCE-004: MTFX-I1 and MTFX-I2 tests now prove the authoritative settlement mutation (buyer/seller wallet and inventory changes), not only transaction record construction.
Scope
Issue
Closes #348
Changed artifacts
Acceptance criteria
Checks
Checks not run or unavailable
None. All required checks passed.
Assumptions and unknowns
None.
Highest-risk area for review
The pre/post state assertions in MTFX-I1 (wallet mutations) and MTFX-I2 (inventory mutations) are critical to verify that the settlement logic correctly applies the conservation laws. Review should confirm:
Remaining gates
REQ-ACCEPTANCE-004 remains PARTIAL per issue scope. Remaining work to complete the requirement:
No blocker remains for merging this work.
🤖 Generated with Claude Code