Cut Brief and Dispatch cycle: Dispatch owns the brief lookup and composition #1176
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#1176
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
The Brief concept and the Dispatch concept refer to each other.
Brief::LookupcallsDispatch.pending!(brief/lookup.rb:22).Brief::RetrievalrescuesDispatch::UnknownErrorandDispatch::NotPendingError(brief/retrieval.rb:8). Its only caller isDispatch::Briefing#brief(dispatch/briefing.rb:17). In the other direction,Dispatch::SubagentStart#hook_payloadbuildsBrief::Factsand callsBrief.for(...).compose(dispatch/subagent_start.rb:37, 45).Brief::Lookuprepeats the same composition. Ruling S10 moves the lookup to Dispatch and gives Dispatch one owner of the composition.Reproduce
n/a: structure-wave cut, nothing to reproduce
Approach
Required work:
plugins/os-sdlc/lib/os_sdlc/brief/lookup.rbtoplugins/os-sdlc/lib/os_sdlc/dispatch/brief_lookup.rbasOsSdlc::Dispatch::BriefLookup. — check: presentclass BriefLookupinplugins/os-sdlc/lib/os_sdlc/dispatch/brief_lookup.rbBrief::Retrieval.briefintoDispatch::Briefing#brief, with the sameLoud::Exit.call("brief #{e.message}"). Deleteplugins/os-sdlc/lib/os_sdlc/brief/retrieval.rb. — check: absentDispatchinplugins/os-sdlc/lib/os_sdlc/brief/**/*.rbBrief::Factsand callsBrief.for(implementation, node:, handoff:, facts:).compose.Dispatch::BriefLookup#call(trackerTracker::Null.new) andDispatch::SubagentStart#hook_payload(its injected tracker) both call it.Acceptance criteria
bin/crc-cycle-edgesruns, then no edge Brief -> Dispatch exists.os-sdlc briefruns, then it exits 3 with the samebrief ...message as before.Owner sketch
Non-goals
The fixture TSVs under
plugins/os-sdlc/tests/fixtures/crc_shares/run2/are a record of run 2. They keep the old names.Origin
VERDICT: CREATE
Work started on branch crc-os-sdlc-run-3 (os-sdlc run 3 worktree), implementation 88, structure-change map.
Resolution
Done: Brief->Dispatch edge cut (S10): Brief::Lookup is Dispatch::BriefLookup; Brief::Retrieval deleted, its rescue in Dispatch::Briefing#brief; Dispatch::ComposedBrief builds Facts and composes for BriefLookup and SubagentStart.
Evidence:
51a65864on crc-os-sdlc-run-3; implementation 88, 1 structure-changer dispatch, gate pass. Deviation: ComposedBrief is an instance (new(...).call(node, handoff)) rather than the ticket's Brief.for call shape, because Sdlc/Structural/ParameterListSignalsMissingObject rejects a 5-parameter class method.Follow-ups: none; the cycle-edge measurement after #1177 confirms AC2.