Move BriefComposer construction to one owner instead of two pipeline copies #660
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#660
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
lib/os_sdlc/pipeline/brief_lookup.rb:47 and lib/os_sdlc/pipeline/start_subagent.rb:41 contain byte-identical code for the composer method. Both classes know how to derive map_dir from an implementation and build a BriefComposer. That knowledge is duplicated. flay reports IDENTICAL, mass*2 = 64.
Reproduce
n/a: refactor ticket, no runtime defect
Approach
Add a class method
BriefComposer.for(implementation, node:, handoff:, facts:)in lib/os_sdlc/pipeline/brief_composer.rb that derives map_dir itself. Both callers delegate to it and drop their private composer method.Required work:
Acceptance criteria
Owner sketch
OsSdlc::Pipeline::BriefComposer.forinlib/os_sdlc/pipeline/brief_composer.rbowns the derivation ofmap_dirfrom an implementation.BriefLookupandStartSubagentcallBriefComposer.for(implementation, node: node, handoff: handoff, facts: facts)and delete their privatecomposermethods.Origin
Session: 24f1de09-c081-4958-902b-0512a5d86e04
Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/24f1de09-c081-4958-902b-0512a5d86e04.jsonl
Where: lib/os_sdlc/pipeline/
Source: flay duplication sweep (bin/dup-sweep) run 2026-09-23 on plugins/os-sdlc; lib+bin score 726.
Work started via /os-sdlc:implement on branch ticket-660 (session 24f1de09), coding.yaml map: behavior-preserving refactor, no red test.
Resolution
Done: BriefComposer.for(implementation, node:, handoff:, facts:) derives map_dir; BriefLookup and StartSubagent delegate to it and their private composer methods are deleted.
Evidence: Pipeline impl 1 on coding.yaml: programmer gate test+lint green, reviewer pass. flay lib+bin 662 -> 598; pair no longer listed. Branch ticket-660.
Follow-ups: none
jared referenced this issue2026-09-24 01:55:08 +00:00
- [ ]but the template and Required-work parsers require numbered lines #664