Skip to content

guard(registry): dispatch-parity audit + outbound tool-surface wire probe - #2131

Merged
joelteply merged 2 commits into
canaryfrom
fix/dispatch-parity-audit
Aug 3, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/dispatch-parity-audit

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Two fixes from tonight's live hunt, per 'fix bugs as you find em':

  1. Dispatch-parity audit — dispatch_orphans() verifies at boot that every advertised command descriptor is actually routable (typed object or prefix route), logging each orphan as an ERROR probe before any client can be told it exists. The structural kill for the work/list registered-but-undispatchable class; the new test failed on the pre-fix tree and passes post-merge — it catches the exact bug that shipped.

  2. Wire-truth probe (ai.request.tool_surface, already live-deployed) — tools_n/stops_n/msgs_n/temperature per outbound chat request, so the tool offer is never inferred from a capture again. This probe exonerated the model and the transport in ~10 minutes tonight after hours of layer-peeling.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 2 commits August 3, 2026 02:33
…r chat request

Live residents narrated for hours with ZERO tool calls while every offline
replay of the same context+tools+sampling (exact captured system+messages, all
20 tools, temp 0.7, live stop list, streaming) called list_tasks instantly —
2/3 at live temperature, 3/3 at temp 0. The only remaining unknown is what the
live body actually carries; this probe states it per request so the offer is
never inferred from a capture again.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…routable (#309 structural kill)

Every command descriptor (help / did-you-mean / persona tool offer) must be
dispatchable — a typed object or a prefix route. register_command! and
commands() are two per-module lists a human keeps in sync; work/list shipped
advertised-but-unroutable for a night, and Benchy's first live native tool
call was refused with a did-you-mean listing the refused name ITSELF.

dispatch_orphans() reads both sides; boot logs each orphan as ERROR
(registry.dispatch_parity) before any client is told the command exists —
promotable to boot-refusal once fleet-clean. The test failed on the pre-fix
tree and passes post-merge: it catches the exact bug that shipped.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 7c0a8c0 into canary Aug 3, 2026
4 checks passed
@joelteply
joelteply deleted the fix/dispatch-parity-audit branch August 3, 2026 07:45
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