Accept a reroute verdict from change-auditor and route it to map-router #878
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
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
rule-proposal
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.
Blocks
Depends on
Reference
jared/cc-os#878
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?
Problem
ADR-0258 decision 2 lets change-auditor request a reroute with the verdict
reroutewhen a ticket does not fit the map it was opened on. #886 addsVerdict::REROUTEand theHandoffContentcontract (verdictrerouterequiressituationandmisfit). #885 adds the in-mapmap-routernode (ADR-0259 A3). The change-auditor node inmaps/poodr-ticket-implementation.yamlstill has norerouteedge, soRouter#route(pipeline/implementation/router.rb:15) raisesUnroutableVerdictwhen change-auditor returnsreroute.Reproduce
n/a: design change, nothing to reproduce.
Approach
Add
reroute: map-routerto the change-auditor node edges inmaps/poodr-ticket-implementation.yamlandmaps/poodr-guard-implementation.yaml.No new Ruby code is expected.
CompletionIntake#agent_verdict_outcome(command/completion_intake.rb:94) parses the verdict through the #886 contract. Routing takes thererouteedge.Landing#advance_and_stamp!already stamps the change-auditor handoff withtarget_agent_type: "map-router"from the destination node's agent.Brief#handoff_json(presenter/brief.rb:31) sends the full handoff content to map-router because map-router does not enrichchange-auditor. The reroute gate on the map-router node (#873) records the change-auditor dispatch as the requesting dispatch. If a test shows one of these steps refuses the verdict, fix that step in this ticket.Required work:
reroute: map-routerinplugins/os-sdlc/maps/poodr-ticket-implementation.yamlreroute: map-routerinplugins/os-sdlc/maps/poodr-guard-implementation.yamlAcceptance criteria
verdict: reroute, a situation, and a misfit, then the run's position ismap-routerand the change-auditor handoff targetsmap-router.dispatch_idis the change-auditor dispatch.Owner sketch
Origin
Parent: #859
Blocked by: #886, #885, #873, #876
Work started: os-sdlc pipeline on branch ticket-878 (worktree .claude/worktrees/ticket-878).
Resolution
Done: Added reroute: map-router to the change-auditor edges in poodr-ticket-implementation.yaml and poodr-guard-implementation.yaml; a change-auditor reroute verdict now moves the run to map-router, the map-router brief carries the situation, misfit and work done, and the reroutes row names the change-auditor dispatch.
Evidence: Implementation 12 completed (
a99c06fb, 8 dispatches, 5 min 4 s) after implementation 11 hit a test-helper defect; test hand-fixed in5125c6b5(deviation). tests/controller/implementation/change_auditor_reroute_test.rb covers AC1-AC3. bin/test 9 suites passed on main; History row3e5d131d.Follow-ups: #894 (reopened run cannot see a committed hand-fixed test at diff-test; ticket-skeptic VERDICT: CREATE); #890 evidence comment added