FinSim

Orchestrate independent banks through one open contract.

FinSim separates network orchestration from institution state. Each participant runs as an independent HTTP service implementing finsim/v1, while FinSim manages routing, idempotency, fault injection, execution traces, and outcome reconciliation.

Network topology and boundaries

Bank A (Source)samples/bank-java:9001 · SYNTHETICFinSim OrchestratorRegistry · Fault EngineTrace · ADR 0001 Resolvefinsim-api :8080Bank B (Dest)samples/bank-java:9002 · SYNTHETICfinsim/v1DEBIT · QUERYfinsim/v1CREDIT · QUERYPostgreSQL 17 + Flyway (:5433)

Transfer state machine

Every transfer moves strictly through permitted transitions: CREATED -> ACCEPTED -> IN_PROGRESS -> COMPLETED | REJECTED | UNKNOWN. Notice that FAILED is not a transfer state; uncertain timeouts isolate into UNKNOWN until resolved.

Network-wide idempotency

Callers supply an Idempotency-Key header on every financial mutation. Replaying the same key returns the original outcome, and retrying an UNKNOWN transfer is blocked with 409 RECONCILIATION_REQUIRED.

Shipped today vs. planned milestones

CapabilityStatusReference
Transfer orchestration, idempotency, and ADR 0001 UNKNOWN resolutionAvailable (M1)UNKNOWN Reconciliation
Deterministic fault injection and Scenario DSL (--verify-replay)Available (M1)Fault Injection
Simulation Cockpit (web/) with Demo Mode and Live API toggleAvailable (M1)Launch Cockpit
ATM partial-dispense, double-entry ledger, card auth, and snapshot/resetIn Review / Planned (M2)View Roadmap