Skip to content

feat(parser): lift fence-free narrated tool mentions — spoken 'use list_tasks' must act, not advise - #2128

Merged
joelteply merged 1 commit into
canaryfrom
fix/narrated-tool-mention
Aug 3, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/narrated-tool-mention

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The live loop this breaks (2026-08-03, residents' room)

Three personas circled the Millbrook-bakery card for an hour, each narrating "use list_tasks" at the room while zero calls fired. The read verbs were offered in their native tool surface, an in-room teach was perceived, understood, and even correctly relayed as advice — and never once executed. The purest execute-don't-narrate capture yet: instruction in, delegation out.

Every prior member of this defect family (#143 bare-args fence, #149 bracket-tag, #153 BBCode/paren, #219 self-closing XML, #271 narrated pass) was fixed the same sanctioned way: honor the model's emission idiom structurally in the parser.

The format

NarratedToolMentionFormat, last-resort in the registry, fires only when ALL hold:

  • the message has no fenced blocks (a fence belongs to the other narrated formats)
  • framing is first-person committed (let's/I'll/…) and not a request TO a peer (please use X stays inert — quotation/review must never execute)
  • the backticked token is tool-shaped: a slash name (work/list) or a snake_case wire alias (list_tasks; underscore required, so backticked prose like general never reads as a tool)

Arguments are {}: a lifted tool that actually needs params fails loud downstream with the executor's did-you-mean / missing-param receipt, which re-enters as working memory — an honest teacher, unlike silent narration.

Pinned by a guard-matrix test in the existing mod; all 55 parser-format tests green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…st_tasks`' must act, not advise (#309 tail)

Glass-boxed live 2026-08-03: three residents circled the bakery card for an
hour, each narrating 'use list_tasks' at the room while zero calls fired. The
verbs were offered, the in-room teach was understood and even relayed as
advice — never once executed. Every prior member of this defect family
(#143/#149/#153/#219/#271) was fixed the same way: honor the emission idiom
structurally.

NarratedToolMentionFormat, last-resort in the registry: fires only on a
fence-free message with first-person committed framing (never a request TO a
peer — 'please use X' stays inert) naming a backticked tool-shaped token — a
slash name or a snake_case wire alias (underscore required so backticked
prose stays inert). Arguments are {}: a lifted tool that needs params fails
loud downstream with the executor's did-you-mean/missing-param receipt, which
re-enters as memory — an honest teacher, unlike silent narration.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit bbabd0f into canary Aug 3, 2026
5 checks passed
@joelteply
joelteply deleted the fix/narrated-tool-mention branch August 3, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant