Handoff target_agent_type stamps the bare map agent name; prefixed dispatch types never claim their handoff #472
Labels
No labels
P0
P1
P2
P3
bug
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#472
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
next_step.rb:209-210 stamps target_agent_type from the map node's agent value ("code-probe"); a dispatch registered under the Claude Code prefixed type ("os-sdlc:code-probe") claims with the prefixed string, so Handoff.claim_for misses and the brief composes handoff: null. Observed live in the #467 drive (O2, docs/os-sdlc-rebuild/poodr-map-first-drive.md). Whether the real SubagentStart hook reports prefixed types (hitting this in hook-driven runs, #454) is unconfirmed. Fix path: normalize the os-sdlc: prefix in Handoff.claim_for or stamp both forms.
Skeptic verdict: CREATE — real bug, concrete repro, known fix path, distinct from #470/#454.
Origin
Resolution
Done: Fix already shipped: both hooks normalize the agent type before the runner sees it, stripping the os-sdlc: prefix, so Handoff.claim_for matches the bare target_agent_type stamped by the map. Empirical question answered: the harness does report prefixed types.
Evidence: normalize_agent in plugins/os-sdlc/hooks/subagent_start.rb:16-20 and subagent_stop.rb:14-18; Handoff.claim_for exact-match at handoff.rb:24-29 receives bare form; transcript 4b7df35f-2278-4286-b566-6aaffba53864.jsonl (#508 drive) shows three dispatches registered as subagent_type os-sdlc:programmer, confirming prefixed harness payloads. Caveat: hook stdin is not persisted in transcripts, so no literal payload capture; verdict rests on prefixed dispatch records plus the shipped normalization.
Follow-ups: none — optional belt-and-suspenders (temporary debug log of raw hook stdin during the next live drive) judged unnecessary given converging evidence; dropped