Bounded Context Topology & State Machines
Visualizing Checkout and Fulfillment state machines side-by-side with least-privilege MCP boundaries.
checkoutMachine.ts
fulfillmentMachine.ts
Pending Payment
Order totals are frozen. Gateway transactions can be proposed with strict idempotency verification.
- hasIdempotencyKey: Non-empty string required
- validPositiveAmount: amountCents must strictly match totalCents
- orderId must be present
Unfulfilled (Queued)
Initial fulfillment state awaiting warehouse inventory allocation. Cross-domain payment and cart mutations are strictly illegal.
- hasOrderId: Non-empty orderId required
- hasItems: Inventory items array must be non-empty
Agent Intent Dispatcher & Verification Terminal
Execute cross-domain boundary violations and legal handoff progressions through the Gateway proxy.
http://localhost:3001Interactive Handoff Sequence Player (Scenario B)
Visualizing 3 distinct phases: 1. Checkout Settlement → 2. Event Bus Handoff → 3. Least-Privilege Fulfillment Allocation
Order ord_9981 settles payment ($99.00). Invariant: commercial contract is locked irrevocably. Double-charging is blocked.
Fires cross-domain event ORDER_PAID. Provisions agent-fulfillment-worker bounded strictly to fulfillment schema (no payment access).
Worker proposes allocateInventory. Gateway intercepts, validates hasOrderId and hasItems guards, advances to inventory_allocated.
propose_resolver • Intercepted by Axioma GatewayLive Audit Stream • agent_audit_logs
Immutable ledger captured at Gateway proxy with domain metadata (Checkout vs Fulfillment).
No Interceptions Matching Domain Filter
Trigger any preset scenario above to dispatch an autonomous agent request. The Gateway will intercept and record domain metadata here.