Move reroute_check and map_update to Dispatch::Rerouting #1177
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.
Dependencies
No dependencies set
Reference
jared/cc-os#1177
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
Two Implementation controllers act on one dispatch, found by its id.
Implementation::Acceptance#reroute_checkcallsDispatch.pending!(dispatch_id)and rescues the Dispatch lookup errors (implementation/acceptance.rb:23-28).Implementation::MapUpdating#map_updatedoes the same (implementation/map_updating.rb:10-16). Their only callers are the command table rows in boot/commands.rb:70 and :74. Ruling S11 moves both commands to Dispatch. The Implementation and Dispatch association pair stays as an accepted cycle, andImplementation::CompletionIntakestays in Implementation.Reproduce
n/a: structure-wave move, nothing to reproduce
Approach
Required work:
plugins/os-sdlc/lib/os_sdlc/dispatch/rerouting.rbasOsSdlc::Dispatch::Rerouting, withreroute_check(root, dispatch_id)andmap_update(root, dispatch_id:, **fields)moved unchanged fromImplementation::AcceptanceandImplementation::MapUpdating. — check: presentclass Reroutinginplugins/os-sdlc/lib/os_sdlc/dispatch/rerouting.rbreroute_checkfromplugins/os-sdlc/lib/os_sdlc/implementation/acceptance.rband moveplugins/os-sdlc/lib/os_sdlc/implementation/map_updating.rbaway (git mv into the new file's history where possible). — check: absentDispatch.pending!inplugins/os-sdlc/lib/os_sdlc/implementation/acceptance.rbDispatch::Rerouting. — check: absentMapUpdatinginplugins/os-sdlc/lib/**/*.rbplugins/os-sdlc/tests/controller/implementation/map_update_test.rbtoplugins/os-sdlc/tests/controller/dispatch/rerouting_test.rband update its constants.Acceptance criteria
bin/crc-cycle-edgesruns, then the edge Implementation -> Dispatch no longer listsimplementation/acceptance.rb:24orimplementation/map_updating.rb:11.os-sdlc reroute-checkoros-sdlc map-updateruns, then it prints the same error and exits 1 as before.Owner sketch
Non-goals
Implementation::CompletionIntakeand the Sequel association pair do not change. The fixture TSVs underplugins/os-sdlc/tests/fixtures/crc_shares/run2/keep the old names.Origin
VERDICT: CREATE
Work started on branch crc-os-sdlc-run-3 (os-sdlc run 3 worktree), structure-change map.
Resolution
Done: S11 applied: Implementation::MapUpdating moved to Dispatch::Rerouting with reroute_check from Implementation::Acceptance; commands.rb points at Dispatch::Rerouting; map_update_test moved to tests/controller/dispatch/rerouting_test.rb.
Evidence:
fe2a8e9d(Runner commit, gate green, 2249 runs);71051dffdeletes the old test path and brief/lookup.rb that the Runner commits left tracked. Implementation 89.Follow-ups: none