AgentBillv1.0 MIT

Drop OpenAI, Anthropic, Gemini, AWS Bedrock CSV / JSON / PDF Invoices

100% Browser-Local · 0 KB Uploaded
demo-runaway-n8n-incident.csv (GENERIC_CSV · 22 rows)Ref: AB-F0E3D568FC9DD0B8Window: 2026-11-01 to 2026-11-21

Total Cycle Spend

$2,764.37

85,665 calls · 427.0M in

Normal Daily Baseline

$17.91/day

Cache hit: 0.88% · Rate delta: +$34.51

Anomalous Excess Spend

$2,423.09

1 isolated incident(s) at Z ≥ 3.5

Dispute Evidence Pack (Vector PDF)

2-page forensic chart, incident table & ready-to-send support ticket letter.

Daily Spend Forensic Timeline (Modified Z-Score / MAD)

Robust median-based anomaly detection isolates runaway loops without letting spike days distort normal baselines.

Normal Daily SpendZ-Score Anomaly SpikeMedian Baseline ($17.91/d)
2026-11-14|$2,441.00|Z=2770.13|gpt-4o (n8n-webhook-worker)
$0$610$1.2k$1.8k$2.4k11-0111-0411-0711-1011-13+$242311-1411-1611-19

Isolated Incidents & Root-Cause Diagnostics

Runaway Agent / Retry Loop Detected on n8n-webhook-worker
+$2423.09 excess

Daily spend reached $2,441 vs normal baseline $17.91 (Modified Z=2770.13, 54,300 calls). Primary driver: n8n-webhook-worker / n8n-prod-loop-key (gpt-4o).

RUNAWAY_AGENT_LOOPKey: n8n-prod-loop-keyModel: gpt-4o

Fix: Apply a hard circuit breaker on key "n8n-prod-loop-key" (max $25/hr, max 10 retries) and deduplicate webhook payloads.

Provider Rate-Card Reconciliation

ProviderCallsBilledRate-CardDelta
openai73,015$1597.85$1563.35+$34.50
anthropic10,650$1133.40$1133.40+$0.00
google2,000$33.12$33.11+$0.01

Support Dispute Ticket Draft

Subject: Billing Anomaly Review & One-Time Goodwill Credit Request (Audit Ref: AB-F0E3D568FC9DD0B8)

Hello Billing & Trust Support Team,

I am writing to request a billing review and a one-time goodwill credit adjustment for an unintentional anomalous API spend spike during our 2026-11-01 to 2026-11-21 billing cycle.

1. Summary of Verified Usage Baseline vs. Incident
- Normal Daily Baseline Spend (Median): $17.91 / day
- Total Cycle Spend: $2764.37
- Verified Anomalous Excess Spend: $2423.09
- Requested Review / Credit Amount: $2423.09
- Local Forensic Audit Digest: AB-F0E3D568FC9DD0B8

2. Forensically Isolated Incident(s)
- [2026-11-14] Runaway Agent / Retry Loop Detected on n8n-webhook-worker: Billed $2441.00 vs Expected $17.91 (Excess: $2423.09, Key/Project: n8n-prod-loop-key, Model: gpt-4o)

3. Corrective Engineering Safeguards Already Deployed
- Revoked/rotated the affected API key (n8n-prod-loop-key) and halted the retry loop immediately upon detection.
- Implemented an automated per-hour USD hard circuit breaker and retry cap in our application middleware.
- Enabled prompt caching and fallback routing to prevent recurrence.

We value your platform and plan to continue running our normal production workloads (~$17.91/day). Attached is our complete forensic audit PDF with daily time-series Z-score verification and token-level reconciliation.

Thank you for reviewing this request.

Best regards,
[Your Name / Organization ID]