12 DETERMINISTIC PRESETSReal-Time Autonomous Agent Invariant Suite

Autonomous Failure Modes & Edge-Case Presets

Trigger live deterministic edge-cases to verify cryptographic verification, race condition handling, inventory signals, and pure buyer-priority execution.

Filter:
🏪
Merchant Agent (Warehouse)Inventory & Concurrency
Sprint Athletics • BLR-WH-01
Ready to Test

1. Inventory Race at Accept-Time

Offer signed for qty 2. Live warehouse inventory drops to 1 before buyer acceptance arrives.

Stock Snapshot:2 Signed → 1 Left
SLA Guard:Atomic Re-Check
Guaranteed System Invariant:

Never silently substitute qty 1 or charge buyer. Propose qualified alternative or cleanly expire with zero charge.

🛡️
Contract Guard (HMAC)Cryptographic Security
contract-service • SHA-256
Ready to Test

2. Offer Tampering (Digit Flip)

Compromised accept request modifies final_price_paise from ₹3,949 to ₹2,949.

Signed Value:₹3,949 locked
Tampered Payload:₹2,949 injected
Guaranteed System Invariant:

Cryptographic HMAC signature check fails immediately, rejecting before any Razorpay API order call.

Settlement Rail (Razorpay)Payment Settlement
razorpay-client • Test Mode
Ready to Test

3. Payment Failure & Method Retry

Razorpay test mode failure card triggered during checkout.

Initial Card:Failure Card (declined)
Price Invariant:₹3,949 (No Re-discount)
Guaranteed System Invariant:

Offers retry with alternative payment method; original price (₹3,949) remains strictly unchanged (no win-back discounts).

🤖
Buyer Agent (Mandate)Autonomous Guardrails
buyer@okhdfcbank • ₹3,000 max
Ready to Test

4. Buyer Exceeds Mandate Budget

Accept request attempted for an amount exceeding buyer max budget mandate (₹3,949 vs ₹3,000 limit).

Mandate Ceiling:₹3,000.00 Limit
Attempted Price:₹3,949.00 Breach
Guaranteed System Invariant:

Rejected by buyer constraint verifier even if merchant would have honored it.

🏪
Temporal EngineTemporal Policy
policy-engine • Epoch Guard
Ready to Test

5. Offer Expiry Window Violation

Acceptance request arrives after the offer expires_at timestamp has elapsed.

Expiry Window:T = +10 mins
Accept Arrival:T = +15 mins (stale)
Guaranteed System Invariant:

Rejected with distinct OFFER_EXPIRED (410) error, clearly separated from signature failure.

🏪
Merchant Agent (Logistics)Logistics SLA
Sprint Athletics • Logistics SLA
Ready to Test

6. Delivery Promise SLA Disruption

Warehouse carrier SLA disrupts after offer generation, making delivery promise unreachable.

Committed SLA:48h Express (Tue)
Carrier Status:Disrupted (+3 days)
Guaranteed System Invariant:

Caught at accept-time reachability check; does not silently ship late; offers alternative or expires cleanly.

🛡️
Deterministic Policy EngineDeterministic Invariants
pure-functions • zero-hallucination
Ready to Test

7. LLM Out-of-Policy Interception

Forced hallucinated 50% discount suggestion from LLM.

LLM Proposal:50% Off (Hallucinated)
Deterministic Floor:18% Margin Protected
Guaranteed System Invariant:

Deterministic policy engine rejects immediately; proposal NEVER reaches contract signing.

Settlement Rail (Idempotency)Payment Settlement
webhook-handler • Deduplication
Ready to Test

8. Webhook Replay Idempotency

Replay of an already-processed payment.captured Razorpay webhook event.

Event ID:evt_pay_captured_01
State Mutated:0x Duplicate Charges
Guaranteed System Invariant:

Idempotency guard short-circuits on event ID, logging duplicate ignored with zero duplicate state transitions.

🤖
Buyer Agent (Pareto Priority)Pure Buyer Priority
buyer@okhdfcbank • Price Priority
Ready to Test

9. Buyer Priority Actually Wins

Buyer prioritizes lowest price. The genuinely cheapest policy-valid candidate (Candidate C @ ₹3,783) beats higher merchant profit (Candidate A @ ₹3,949).

Buyer Stated Mandate:Lowest Price First
Merchant Profit:Higher Profit Bypassed
Guaranteed System Invariant:

Buyer stated priority is strictly honored over merchant profit among policy-cleared offers; merchant policy floor is visibly provable.

🏪
Merchant Agent (Inventory Urgency)Inventory & Concurrency
inventory-aware • Clearance
Ready to Test

10. Same Offer, Different Product

Identical buyer budget (₹4,000) sent to slow-moving aged stock vs fast-moving scarce stock.

Aged Stock (76d):8.1% Clearance Disc
Fresh Stock (5d):0.0% Discount (List)
Guaranteed System Invariant:

Engine recommends clearance incentive for aged stock (8.1% discount) and protects list price (0% discount) for fast movers.

🤖
Buyer Agent (Trust Floor)Autonomous Guardrails
buyer@okhdfcbank • 4.0★ Mandate
Ready to Test

11. Reliability Changes the Outcome

Same 3 merchant prices evaluated twice: once with "No preference" (cheapest wins) and once with "4+ stars required" (higher reliability merchant wins instead).

Run 1 (No Floor):Cheapest Wins (3.7★)
Run 2 (4.0★ Floor):Trusted Merchant Wins
Guaranteed System Invariant:

Merchants below buyer-stated reliability floor are excluded before scoring runs; cheaper merchants only lose when buyer explicitly mandates trust.

🛡️
Universal Commerce AdapterCryptographic Security
adapters • ACP / AP2 / CCO
Ready to Test

12. Multi-Protocol Interoperability (ACP vs AP2)

Identical intent submitted in ACP and AP2 formats; both adapt into identical canonical CCO and produce matching signed contracts.

Protocol 1:ACP (Google / Open)
Protocol 2:AP2 (Autonomous Pay)
Guaranteed System Invariant:

Universal adapter converts heterogeneous agent protocols (ACP, AP2, UCP, x402) into a single canonical CCO with mathematical equivalence.