One character can make an AI agent attempt forbidden actions: a token-boundary failure in agent tool calls
Year: 2026
Type: preprint
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.
Author: Lovelace, Joan A.K.
Language: English
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7242007389
Cites:
Cited by:
Related to:
