os-sdlc: decompose OsSdlc::CLI to clear inherited structural lint debt #424
Labels
No labels
P0
P1
P2
P3
bug
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
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#424
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?
#423 moved bin/os-sdlc's dispatch into lib/os_sdlc/cli.rb verbatim (Thor conversion, ADR-0123). The extension-less bin was never rubocop-inspected; in lib/ it shows Metrics/ClassLength [827/100] plus 15 Sdlc/Structural/ParameterThreadedThroughPrivateMethods offenses. Clearing them is a real decomposition (gate-runner, verdict, intake, lint, preflight, report-rendering collaborators holding state), disclosed and deferred out of #423's mechanical-conversion scope (commit
c7f875f).Acceptance: rubocop --config plugins/os-sdlc/.rubocop.yml plugins/os-sdlc/lib/os_sdlc/cli.rb clean with no new cop exclusions; suite stays green (ruby plugins/os-sdlc/tests/all.rb).
Origin: AI follow-up from #423 (symptom exposed by the move; root is the ADR-0025-era monolithic bin design). Ticket-skeptic verdict: CREATE (2026-08-17).
Starting work on branch worktree-ticket-424-cli-decomposition via os-sdlc implement pipeline.
Resolution
Done: Decomposed plugins/os-sdlc/lib/os_sdlc/cli.rb (1138 -> 119 lines) into ~20 collaborator command objects holding threaded params as instance state. rubocop --config plugins/os-sdlc/.rubocop.yml clean on cli.rb and every touched file, zero new cop exclusions. Reviewer APPROVE after 4 rounds.
Evidence: Merge commit
6e4de96on main (branch worktree-ticket-424-cli-decomposition, commitf058a5a). Suite: ruby plugins/os-sdlc/tests/all.rb -> 974 runs, 2405 assertions, 0 failures. Verdict: .sdlc reviewer APPROVE round 4.Follow-ups: 1) #416 still forces lint-gate skips: gate lints whole target and escalated 3x on pre-existing offenses. 2) Runner AutocorrectStep re-applies safe autocorrect to untouched files (cops/module_owns_instance_state.rb) after every round - consider scoping the prepass to files changed by the round. 3) Pre-existing lint debt remains outside #424 scope: rubocop_delta_report.rb Layout/LineLength and ~20 offenses in older test files.