🔧 Programmierung 🕛 vor 3 Monaten 4 Min Lesezeit
0

Benchmarking a kill switch for runaway AI agents -- and why the real number is a ceiling, not a %

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

Claims about AI cost control are cheap. "Cut your agent spend by 60%!" is on every landing page. So instead of a claim, here's a benchmark you can run yourself in one command -- and an honest reading of what its number actually means, because the headline percentage is the least interesting part.



The short version: I ran the same looping agent twice -- once unguarded, once behind a hard dollar budget -- against a deterministic provider, and measured the spend. Then I'll show you why the "% saved" framing undersells it, and why a flat ceiling is the number that matters.






The setup



I in the repo) is built so the only variable between the two runs is whether the budget fired:





  • Deterministic provider. A mock of the Chat Completions API returns a fixed token usage (1000 in / 1000 out) on every call. No network variance, no real money, exactly reproducible.


  • Real prices, pinned. gpt-4o at its list price ($2.50 / $10.00 per 1M input/output tokens). That makes one call cost 1000·2.50/1e6 + 1000·10.00/1e6 = $0.0125.


  • Measured, not modeled. The governed run's spend is read straight from the runtime's own cost ledger (GET /v1/runs/{id} -> usage.dollars), not computed by the benchmark. The runtime meters each call and halts the run before the call that would cross the ceiling.


  • Same per-call price on both sides, so the two numbers are directly comparable.



A 50-iteration runaway, with a $0.25 ceiling on the governed run:




CODE
  RiskKernel cost benchmark -- runaway loop
------------------------------------------------------
loop length (N) 50
dollar budget $0.25
per-call cost $0.0125 (gpt-4o, from the ledger)
------------------------------------------------------
calls spend
baseline (no governance) 50 $0.6250
governed (RiskKernel) 20 $0.2500
------------------------------------------------------
dollars saved $0.3750 (60%)
stopped by dollar_budget_exceeded






20 calls × $0.0125 = exactly $0.25. The 21st call was refused before it left the process. The baseline ran all 50.






Why "60%" is the wrong number



Sixty percent looks like the headline. It isn't -- it's an artifact of where I set N. I chose a 50-call loop; the budget caught it at 20. Make the loop longer and the percentage climbs, because the governed spend doesn't move:
































If the runaway loops… Baseline spend Governed spend Saved
50× $0.63 $0.25 $0.38 (60%)
1,000× $12.50 $0.25 $12.25 (98%)
10,000× $125.00 $0.25 $124.75 (99.8%)


The governed column is flat. That's the whole point. A runaway loop has no natural stopping condition -- that's what makes it a runaway -- so the baseline grows until a human notices, which in the , not in this harness. A timed recovery benchmark is next.





The takeaway



If you're evaluating anything that claims to control agent cost, ask it for two things: the harness (so you can reproduce the number) and the ceiling (so you know the worst case, not the average case). A percentage without a reproducible loop length is marketing. A flat, enforced ceiling -- refused pre-call, in compiled code, read back from a ledger -- is an SLA you can reason about.



The runtime is RiskKernel: open-source (Apache-2.0), self-hosted, pip install riskkernel or docker run, one env var in front of an agent you already have. Run the benchmark, then tell me where you'd push on it -- a benchmark only earns trust if people try to break it.

Vollständiger Original-Artikel
Den kompletten Beitrag mit allen Details direkt auf dev.to lesen.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Microsoft confirms first major Windows event in two years, but don’t hold your breath for Windows 12
1 Quelle
CVE-2026-14199 | Grafana Enterprise/OSS up to 13.2.0 Auth Proxy privileges management (Nessus ID 342727 / WID-SEC-2026-3190)
1 Quelle
CVE-2026-63020 | F5 BIG-IP prior 17.1.3.4/17.5.1.8/21.0.0.3/21.1.0.1 Configuration Utility Page clickjacking
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Benchmarking a kill switch for runaway AI agents -- and why the real number is a ceiling, not a %

Thematisch verwandte Begriffe: Benchmarking, kill, switch, runaway · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...