[Release feedback] LLM06: denominate spending caps in currency per run — measured model price spread and a model-boundary enforcement pattern
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 44/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Ambito
- content, documentation
Direzione di ricerca
Start from the LLM06:2026 entry document in this repository and read Mitigation #2 together with the reference list it ends with; the payload does not name a path, so the first step is locating that entry and the citation format it uses. Check whether the three suggested additions (currency-denominated caps, in-path enforcement, cost per successful task) each need wording plus one or more reference entries. Done means the entry text and references are updated consistently and the linked sources resolve, but confirm with the entry leads first since the author offers a PR rather than a fixed spec.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Feedback type
Reference or supporting research
Feedback
LLM06:2026 Mitigation #2 (Hard Spending Caps) sets ceilings per API key,
user, team, and cloud account, and rightly requires that caps halt
inference rather than only alert. Two measured points from published
work suggest strengthening the wording:
-
Token-denominated caps misprice the risk across models. The same
token budget costs very different amounts on different models. In a
measured comparison of current models on identical agent workloads,
the per-task dollar cost spread between the cheapest and most
expensive model was about 28x, while framework overhead changed cost
by at most about 3.9x. A token ceiling that is safe on a small model
therefore permits roughly an order of magnitude more spend on a
frontier model. Independent session-scale data points the same way:
across 722 real agent sessions, context processing was 83.5% of
modelled cost and 3.3% of sessions produced 80% of the cost
(Arsentev, 2026), so controls set per request systematically miss
where spend accumulates. Suggested addition to Mitigation #2: "Denominate caps
in currency per run or per task, not only in tokens; token limits
remain a useful secondary control because they are model-agnostic." -
The enforcement point matters, and there is a reference pattern.
Mitigation #2 says caps "must be enforcement mechanisms that halt
inference when exceeded." In agent loops, after-the-fact accounting
(callbacks, billing monitors) cannot halt a run, because the loop
continues while the accounting catches up. A working pattern is to
enforce the budget inside the model-call path: a model wrapper that
prices each call's actual usage and raises before the call that would
exceed the budget. In a verified test, this halted a runaway
tool-loop after 2 calls / $0.09 against a $0.05 budget. The same
in-path halt is what stops the adversarial cases this entry already
cites: infinite-thinking loops (Li et al., 2025, ThinkTrap) and
tool-chain token exhaustion (Dong et al., 2026, Clawdrain) both burn
budget inside the run, where only an in-path control can stop them.
The pattern is published as a runnable sample (BudgetedModel,
strands-agents samples) and could be cited as an implementation
reference for the mitigation. -
Retries make consumption per successful task the safer unit.
A failing cheap model that retries can out-consume a reliable
frontier model. Measuring cost per successful task (rather than per
call) when setting caps accounts for this; a public benchmark
dataset for that measure is available (see evidence).
Caveats: the author's measurements are benchmark workloads with a
reference cost library, not production telemetry. The Arsentev reports
cited alongside are technical reports, not peer-reviewed. Together they
speak mainly to the benign-runaway half of LLM06 (loops, retries, model
selection); the adversarial half is covered by the entry's existing
attack references (ThinkTrap, Clawdrain).
I am happy to open a pull request with the wording and reference
entries if the entry leads want them.
Supporting evidence
Author's work:
- Pandey, K. (2026). Token-Economics for Agentic AI: A Cost Model and
Tiered Routing Reference. Zenodo. https://doi.org/10.5281/zenodo.23195511
(per-task cost model; tokenecon library: https://pypi.org/project/tokenecon/) - Pandey, K. (2026). Agent cost comparison across models and frameworks
(28x model spread; framework overhead at most 3.9x), measured with
tokenecon 0.2.0. AWS Builder Center article, Oct 2026. - BudgetedModel sample — per-run dollar budget enforced at the model
boundary; runaway-loop halt verified. PR: https://github.com/strands-agents/samples/pull/328 - Cost Per Correct benchmark + dataset (cost per successful task):
https://doi.org/10.5281/zenodo.23439614 ;
https://www.kaggle.com/benchmarks/karmendra8386/cost-per-correct
Other researchers' work:
- Arsentev, E. (2026). The context economy of agentic LLM sessions:
Where the money actually goes [Technical report]. Zenodo.
https://doi.org/10.5281/zenodo.22688706 (722 sessions, 150,902 model
calls; context processing 83.5% of modelled cost; 3.3% of sessions =
80% of cost) - Arsentev, E. (2026). Clear every third task: A measured U-curve in
the context economy of coding agents [Technical report]. Zenodo.
https://doi.org/10.5281/zenodo.22699668 ; contextburn tool:
https://doi.org/10.5281/zenodo.22712985 - Dong, B., Feng, H., & Wang, Q. (2026). Clawdrain: Exploiting
tool-calling chains for stealthy token exhaustion in OpenClaw agents
(arXiv:2603.00902). https://arxiv.org/abs/2603.00902 - Li, Y., Wang, J., Zhu, H., Lin, J., Chang, S., & Guo, M. (2025).
ThinkTrap: Denial-of-service attacks against black-box LLM services
via infinite thinking (arXiv:2512.07086).
https://arxiv.org/abs/2512.07086
Acknowledgments
- I searched existing issues and discussions for this topic.
- I agree to follow the OWASP Code of Conduct.
- Lingua principale
- JavaScript
- Stelle
- 177
- Fork
- 57
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GenAI-Security-Project/GenAI-LLM-Top10
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
GenAI-Security-Project/GenAI-LLM-Top10#176 · 1 commento · 1 reazione ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 66/100
GenAI-Security-Project/GenAI-LLM-Top10#131 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
[Release feedback] Make Zenodo source bundles reproducible across checkoutsForse già presa @drk-ram l’ha presa 20 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 32/100
Tutte le issue di GenAI-Security-Project/GenAI-LLM-Top10
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
test(ci): flake in external-api-stream-auth.test.js waitForRun abort test (hardcoded 20ms sleep)Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
Fei2411/DeepSeek-Bot#2978 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Stars-and-Stripes-Honor-Flight/sshf-ui#352 ·
I maintainer di solito rispondono entro 1 giorno
-
[NEW TOOL] Clipping AIAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ArshdeepGrover/ai-tools-manager#284 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
career-ops-hq/career-ops#8333 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno