One character can make an AI agent attempt forbidden actions: a token-boundary failure in agent tool calls

Some AI agent software writes the first characters of each tool call itself and lets the language model finish it. We show that one extra character written this way can decide whether an agent asks a person or attempts a forbidden action. In a simulated museum whose rule forbids some moves, Qwen3.8-27B begins the name of its referral tool with a single token, a chunk of text that spells "=request". When the software stopped just before the "=", the model referred all 24 forbidden requests to a person. When the software supplied the "=" as a separate token, the model referred none and proposed 15 of the forbidden moves; the simulator's own permission check blocked all 15. Swapping tool names between roles shifted which action was suppressed. In a separate panel of fictional business tasks, the model proposed three money transfers or payments on the 12 denied requests whose safe tool's name merges with "=". Where the model alone enforces permissions, such proposals would be carried out, and text logs do not show the cause. Qwen3-Coder also lost referrals under this opening in a follow-up with flash attention disabled. The one-character comparison used greedy decoding; under random sampling, supplying the whole opening raised exact denied move proposals from 4 to 245 in 480 samples per condition. Files: one-character-tool-calls.pdf is the paper. one-character-tool-calls-evidence.zip holds the frozen study plans, every prompt and raw response with its token IDs, the audits and the code. From the extracted archive, "python -B -S -m paper.reproduce_preprint" replays every reported number with Python 3.12 and its standard library, with no GPU. paper/EVIDENCE_INDEX.md maps the PDF's numbered evidence references to files in the archive.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-01
DOI
https://doi.org/10.5281/zenodo.24705828
Primary Topic
Adversarial Robustness in Machine Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

One character can make an AI agent attempt forbidden actions: a token-boundary failure in agent tool calls

Joan A.K. Lovelace
Zenodo (CERN European Organization for Nuclear Research)
Adversarial Robustness in Machine Learning
preprint

One character can make an AI agent attempt forbidden actions: a token-boundary failure in agent tool calls

Joan A.K. Lovelace
preprint en

Abstract

Some AI agent software writes the first characters of each tool call itself and lets the language model finish it. We show that one extra character written this way can decide whether an agent asks a person or attempts a forbidden action. In a simulated museum whose rule forbids some moves, Qwen3.8-27B begins the name of its referral tool with a single token, a chunk of text that spells "=request". When the software stopped just before the "=", the model referred all 24 forbidden requests to a person. When the software supplied the "=" as a separate token, the model referred none and proposed 15 of the forbidden moves; the simulator's own permission check blocked all 15. Swapping tool names between roles shifted which action was suppressed. In a separate panel of fictional business tasks, the model proposed three money transfers or payments on the 12 denied requests whose safe tool's name merges with "=". Where the model alone enforces permissions, such proposals would be carried out, and text logs do not show the cause. Qwen3-Coder also lost referrals under this opening in a follow-up with flash attention disabled. The one-character comparison used greedy decoding; under random sampling, supplying the whole opening raised exact denied move proposals from 4 to 245 in 480 samples per condition. Files: one-character-tool-calls.pdf is the paper. one-character-tool-calls-evidence.zip holds the frozen study plans, every prompt and raw response with its token IDs, the audits and the code. From the extracted archive, "python -B -S -m paper.reproduce_preprint" replays every reported number with Python 3.12 and its standard library, with no GPU. paper/EVIDENCE_INDEX.md maps the PDF's numbered evidence references to files in the archive.

Zenodo (CERN European Organization for Nuclear Research)
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon