πŸ§ͺ SIMULATED ENVIRONMENT β€” NO REAL BANKING SYSTEM CONNECTED

πŸ“ Methodology & assumptions

Everything on this site is synthetic. These are engineering assumptions for a case study, not real Aura telemetry or verified SLAs.

Baseline assumptions (configurable)

Partner P95 latency180 ms
Partner error rate0.5%
Partner request rate100 rps (backend capacity 200 rps)
Per-partner concurrency limit100
Shared gateway capacity340 worker slots (β‰ˆ45% utilised at baseline)
Retail banking1200 rps, P95 150 ms, target 300 ms P95, 140 reserved slots
Gateway timeout2000 ms (uncontrolled posture: 30 s)
Latency distributionLognormal, Οƒ = 0.4; gateway overhead 8 ms
Random variationΒ±2% rate, Β±3% latency from a seeded integer hash β€” replay-stable and reproducible

Request model

Every simulated second, for each partner and retail: offered rps β†’ rate limit β†’ circuit breaker β†’ downstream latency (lognormal, P95 scaled by the scenario; rises when rps exceeds backend capacity) β†’ timeout. Slot demand follows Little's law: in-flight = admitted rps Γ— mean service time. Per-partner limits cap each partner's slots. Partners share 200 slots; retail has 140 reserved and may borrow idle partner slots. Above 70% utilisation, a queue delay is added (smoothed). Above 100%, excess requests are rejected.

Queued requests add latency (and timeouts) but do not hold a worker slot. Without that distinction the model has an unbounded positive-feedback loop, which we observed and removed during development.

Health states

  • Healthy β€” Within healthy thresholds (P95 ≀ 400 ms, errors ≀ 2%, no active control rejections).
  • Degraded β€” Latency or errors above thresholds and not contained by a gateway control.
  • Protected β€” Partner impaired, but a gateway control (breaker, concurrency cap or rate limit) is actively containing it to shield shared infrastructure.
  • Recovering β€” Back within thresholds; recovery not yet verified (30 s sustained healthy window).
  • Unavailable β€” Fewer than 50% of requests succeed and no control is containing the failure.

A degraded partner does not imply an unhealthy platform. Protected means the partner's own customers are affected, but a gateway control is shielding shared infrastructure. Partner recovery, gateway protection, retail health and incident resolution are tracked separately; an open breaker is never counted as recovery.

Circuit-breaker transitions

  • Closed β†’ Open: over the last 10 s, at least 50 served calls and β‰₯ 50% were failed (timeout or partner error) or slow (> 1000 ms).
  • Open β†’ Half-open: after 30 s; all calls fast-fail while open.
  • Half-open β†’ Closed / Open: 10% of traffic probes for 10 s. If the probe failure/slow rate is below the threshold, the breaker closes; otherwise it re-opens.

Detection, severity and verification

An incident opens when an entity is impaired for 3 consecutive seconds. Impaired means degraded/protected/unavailable, or retail at risk or in breach. Its start time is the triggering scenario's start, which gives a measurable time to detection. Recovery is verified when every affected entity has met healthy thresholds for 30 consecutive seconds with breakers closed.

Severity: critical = retail breach or demand β‰₯ capacity; high = retail at risk, β‰₯2 partners impaired or any unavailable; medium = an affected service impaired; low otherwise.

Rule-based investigator (AI OFF and fallback)

  • R1 downstream latency: peak P95 β‰₯ 3Γ— baseline while peak rate ≀ 1.25Γ— baseline.
  • R2 traffic surge: peak rate β‰₯ 1.5Γ— baseline.
  • R3 downstream errors: partner-returned errors β‰₯ 10% with latency < 3Γ—.
  • R4 concurrency pressure: peak in-flight β‰₯ 90% of limit. R5: breaker open/half-open is reported as blocked calls. R6: retail breach/at-risk warning.
  • R7 saturation: utilisation β‰₯ 85% with broad demand (β‰₯ 3 partners or retail β‰₯ 1.3Γ—).
  • If no rule matches, or evidence is ambiguous: root cause unconfirmed β†’ escalate to a human operator.

Rule-based output is always labelled β€œRule-based (conventional)” or β€œRule-based fallback”. It is never presented as an LLM result.

AI investigation design

The LLM receives a compact context built from the actual simulated telemetry: current values, 60-second peaks, ratios to baseline, a P95 trend, gateway state, recent events, prior investigations/actions, and the list of available action IDs. Scenario names, triggers and ground-truth causes are excluded.

The system prompt requires: evidence only from the context; observed facts kept separate from inferences and unknowns; disclosed uncertainty; no invented data; only listed action IDs; no claims of execution; no loosening of protections; human approval for every change. Output must be JSON, which is validated against a zod schema (bounded lengths). Malformed output triggers the fallback.

Reliability: configurable total time budget (default 8 s), bounded retries (default 2) with exponential backoff and jitter for retryable errors only (429, 5xx, network), an error taxonomy, a per-instance concurrency cap, and best-effort per-IP rate limits. The simulation never waits on AI.

Policy validation (deterministic, runs on proposal and again at approval)

  • Unknown action IDs are rejected. Only 9 predefined simulated actions exist; none disables a protection.
  • Targets must be partners implicated in the incident. Retail is a protected service and cannot be capped or rate-limited.
  • Concurrency cap: must tighten the limit, and requires concurrency-pressure evidence in the last 60 s.
  • Rate limit: requires traffic β‰₯ 1.3Γ— baseline in the last 60 s (otherwise it would discard legitimate requests).
  • Scale-out is bounded (max 510 slots) and carries cost and latency warnings. Escalation cannot be repeated while remediation is in progress. Releasing controls requires 30 s of verified health.
  • Approvals must reference a pending recommendation from the latest investigation of an open incident (stale recommendations are refused). Decisions are idempotent.

Fair AI ON vs AI OFF comparison

Three investigation workflows. Manual runbook: the conventional on-call engineer is paged at detection and needs an assumed triage time (default 10 simulated minutes, editable 0–30) before the runbook diagnosis. Automated rules: the same runbook runs automatically, no AI. AI-assisted: the LLM investigates automatically on detection. Gateway protections act immediately and identically in all three; triage only delays diagnosis and therefore remediation. Comparing AI with automated rules isolates what AI itself adds; most of the gap to the manual runbook is the triage assumption, which a sensitivity table (0, 1, 5, 10, 20 min) makes explicit. The triage time is an input assumption, not measured data.

Approach A β€” paired runs: identical seed, scenario, initial conditions and deterministic protections. Measured investigation wall-clock latency is converted to simulated seconds (1:1 by default, minimum one tick for both modes). A simulated operator approves every policy-valid recommendation after the same fixed delay in both modes, and re-investigates every 60 s while unresolved (max 3). This removes human variance; it is labelled and is not a claim about real engineers.

Approach B β€” benchmark: both investigators score the same context per golden scenario against expected causes and permitted, unnecessary and forbidden actions. Grounding is a numeric-match heuristic.

Interactive runs: your own incidents record real human decision time separately from AI latency.

Metrics: time to detection/diagnosis/recommendation/recovery = event timestamp βˆ’ incident start (simulated seconds). AI latency is measured wall-clock. Retail impact = simulated seconds in breach/at risk. Unnecessary intervention = an executed intervention whose scenario-specific post-action check failed. Protection-oriented actions are judged on protection metrics, not on whether the partner's own downstream recovered. Zero denominators show N/A.

Business value

Estimated gross impact avoided = simulated downtime minutes avoided Γ— assumed impact per downtime minute. The case-provided assumption is $4,500/min for one fintech partner. It is editable and not verified. Net value is shown only when token usage and a price are available. Benefit is attributed separately to gateway controls (measured against an uncontrolled counterfactual), diagnosis speed, recommendation speed, approval time (held constant) and action effectiveness (uncertain). Reduced investigation time is not equated with reduced downtime.

Known modelling assumption: escalating to a partner leads to remediation 60 simulated seconds later, but only when the scenario defines the fault as partner-side and remediable. This is a disclosed scenario parameter, not an empirical result.

Data dictionary (synthetic telemetry)

FieldUnitDescription
t / t_sim_ssimulated secondsSimulation clock. 1 tick = 1 simulated second since the session baseline. Fast-forward changes ticks per real second, never the unit.
partner_id / entityidpartner-a … partner-e, or retail (Aura retail banking, a protected service).
request_rate / offeredRpsrequests / secondRequests offered to the gateway by the entity's clients (before rate limiting).
servedRpsrequests / secondRequests completed successfully.
throttledRps / throttledRaterps / fractionRequests rejected by a rate limit (simulated HTTP 429). Retry behaviour is not modelled.
rejectedRps / rejectedRaterps / fractionRequests rejected by circuit breaker, concurrency limit or shared-pool saturation (simulated HTTP 503).
p50 / p95 / p99_latency_msmillisecondsLatency percentiles of requests that obtained a gateway slot (queue delay + downstream time), capped at the timeout. Null when no requests were served.
error_ratefraction 0–1(admitted βˆ’ successful) / offered: timeouts + partner-returned errors + control rejections. Excludes throttled requests.
timeoutRatefraction 0–1Share of offered requests that exceeded the gateway timeout.
upstreamErrorRatefraction 0–1Share of offered requests where the partner downstream returned an error.
successRatefraction 0–1Successful / offered. Downtime = seconds with successRate < 0.5.
in_flight_requestsrequests (slots)Gateway worker slots held (Little's law: admitted rps Γ— service time). Queued requests add latency but do not hold a slot.
concurrency_limitrequestsEffective per-partner limit (default 100; predefined incident cap 40). Null = unlimited.
resource_utilisationfraction 0–1Allocated slots / total gateway capacity (340 slots, +85 per bounded scale-out, max 510).
pressureratio (can exceed 1)Requested slots / capacity. >1 means demand exceeds capacity and requests queue or are rejected.
queueDelayMsmillisecondsAdded wait in the shared pool, rising when utilisation exceeds 70%.
circuit_breaker_stateclosed | open | half_openPer-partner breaker. See breaker rules.
health_statusenumhealthy | degraded | protected | recovering | unavailable (definitions on this page).
retail_p95_latency_msmillisecondsRetail banking P95. Simulated service target: 300 ms.
retail_healthhealthy | at_risk | breachbreach: P95 > 300 ms; at_risk: P95 > 255 ms (85%) or errors > 1%.
latencyMs (investigation)milliseconds (wall clock)Measured server time for the whole investigation; llmLatencyMs covers LLM attempts only. Never mixed into simulated durations without explicit conversion.

Limitations

  • Simplified fluid model at 1-second resolution, not a request-level discrete-event simulation. No retries, idempotency keys or transaction semantics are modelled: rejected or timed-out requests are simulated counts only.
  • Browser and server run the same deterministic engine. Floating-point differences between JavaScript engines are reduced by quantisation, but are not mathematically excluded; the server's replay is authoritative.
  • Rate limits are per server instance (best effort on serverless).
  • Paired runs are single samples with no statistical significance. Benchmark scoring is scenario-specific and illustrative.