Skip to content

fix(normalize): add hal0/agent virtual name to resolver chain (cutover routing)#677

Merged
thinmintdev merged 1 commit into
mainfrom
fix/resolver-hal0-agent-virtual-name
Jun 9, 2026
Merged

fix(normalize): add hal0/agent virtual name to resolver chain (cutover routing)#677
thinmintdev merged 1 commit into
mainfrom
fix/resolver-hal0-agent-virtual-name

Conversation

@thinmintdev

Copy link
Copy Markdown
Contributor

Why

hal0/agent requests 404 while hal0/chat works. DEFAULT_CHAINS in the chat normalizer had hal0/chat, hal0/npu, hal0/utility — but no hal0/agent. So resolve_chain("hal0/agent") returns None, the raw hal0/agent passes through unnormalized, the dispatcher finds no match, and it falls through to lemonade → model_not_found. (hal0/chat works only because it's mapped.)

This is the functional tail of the agent-as-NPU seed grouping: agent was never made a first-class GPU chat role.

Fix

Add "hal0/agent": ("agent", "chat"). Resolves to the slot named/tagged agent (the GPU MoE agent slot), falling back to chat when unloaded. Role match is name/role-based, so it binds the GPU agent slot regardless of the legacy NPU seed grouping.

Tests

TDD: test_agent_virtual_name_resolves_to_agent_slot. 33 passed; ruff clean.

Completes hal0/agent routing for the cutover. Relates to #652, #662.

🤖 Generated with Claude Code

Cutover (#662) gap: DEFAULT_CHAINS had hal0/chat, hal0/npu, hal0/utility but
no hal0/agent. So resolve_chain("hal0/agent") returned None → the chat
normalizer left the raw "hal0/agent" in the body → dispatcher found no match →
lemonade 404 (model_not_found). hal0/chat worked only because it was mapped.

Add "hal0/agent": ("agent", "chat") — resolves to the slot named/tagged
"agent" (the GPU MoE agent slot per the cutover), falling back to chat when
unloaded. Role match is name/role-based, so it binds the GPU agent slot
regardless of the legacy agent-as-NPU seed grouping.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@thinmintdev thinmintdev merged commit d8ea0ce into main Jun 9, 2026
4 checks passed
@thinmintdev thinmintdev deleted the fix/resolver-hal0-agent-virtual-name branch June 9, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant