Move method to owner: CommandLine for the seven commands (copied:defn:b47f392a) #1088
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#1088
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
copied:defn:b47f392a (copied_entry, score 4) spans 2 classes in concepts CrcFile, CrcTickets.
OsSdlc::CrcFile::Command(/home/jared/dev/cc-os/plugins/os-sdlc/lib/os_sdlc/crc_file/command.rb:11)OsSdlc::CrcTickets::Command(/home/jared/dev/cc-os/plugins/os-sdlc/lib/os_sdlc/crc_tickets/command.rb:22)SIMILAR :defn mass 36; role controller
Approach
The copied or misplaced behavior belongs to one owner; move it there, callers delegate. Object:
OsSdlc::CommandLine(built at plugins/os-sdlc/lib/os_sdlc/collaborator_pass/command.rb). OsSdlc::CommandLine is extracted from the table-driven OptionParser loop in CollaboratorPass::Command, not written new beside it, so all seven commands use the one owner; it also removes copied:iter:2ebcafd5, copied:resbody:28c01396, copied:cdecl:59d86c10.Required work:
OsSdlc::CrcFile::Commandtakesargv, out, err, cwd— check: absentOptionParser.newinplugins/os-sdlc/lib/os_sdlc/crc_file/command.rbOsSdlc::CrcJobs::Commandtakesargv, out, err, cwd— check: absentOptionParser.newinplugins/os-sdlc/lib/os_sdlc/crc_jobs/command.rbOsSdlc::CrcRecords::Commandtakesargv, out, err, cwd— check: absentOptionParser.newinplugins/os-sdlc/lib/os_sdlc/crc_records/command.rbOsSdlc::CrcCensus::Commandtakesargv, out, err, cwd— check: absentOptionParser.newinplugins/os-sdlc/lib/os_sdlc/crc_census/command.rbOsSdlc::CrcSweep::Commandtakesargv, out, err, cwd— check: absentOptionParser.newinplugins/os-sdlc/lib/os_sdlc/crc_sweep/command.rbOsSdlc::CrcTickets::Commandtakesargv, out, err, cwd— check: absentOptionParser.newinplugins/os-sdlc/lib/os_sdlc/crc_tickets/command.rbOsSdlc::CollaboratorPass::Commandtakesargv, out, err, cwd— check: absentOptionParser.newinplugins/os-sdlc/lib/os_sdlc/collaborator_pass/command.rbOrchestrator work: re-measure with bin/collaborator-pass measure --runs docs/crc/os-sdlc/collaborator-runs, then stop-check.
Acceptance criteria
Owner sketch
Origin
plugins/os-sdlc/lib/os_sdlc/crc_file/command.rb)Work started 2026-10-17 on branch ticket-1088 via /os-sdlc:implement, dispatched by the collaborator pass loop (run 20261017T161455Z, iteration 2).
Resolution
Done: OsSdlc::CommandLine extracted from CollaboratorPass::Command's table-driven OptionParser loop and used by all seven commands (six crc_* and collaborator-pass); the per-command parser bodies, help flag, usage-to-stderr exit 2, and positional handling live in one owner.
Evidence: Implementation 59 complete on the poodr-ticket-implementation map, 10 dispatches, 0 retries, 10 min 56 s; Runner commit on branch ticket-1088 (23 paths, no overlaps). Gates: diff-test, test-lint, lint, required-work, suite all green; contract-auditor pass. Collaborator pass recipe copied:defn:b47f392a (move_method_to_owner), ruling predicted amend.
Follow-ups: LENS line on the clock lambda default in CollaboratorPass::Command challenged by an opus agent this session; outcome in the handoff. Re-measure and stop-check follow in the loop. None else.