Refactor plugin bin CLIs onto Thor (ADR-0123) #422
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#422
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?
Context
bin/os-backlog is 543 lines: ~325 lines of hand-rolled case/when dispatch (219–543), a 40-line help clause, and helpers (fail_soft, cwd_tracker, require_cwd_tracker) duplicated verbatim into bin/decision-sweep; six bins repo-wide repeat the pattern, and dispatch is only exercised via subprocess CLI tests. ADR-0123 (amending ADR-0025) decides the fix: Thor-based CLIs.
Tasks
Acceptance criteria
os-backlog helpoutput comes from Thor, not a hand-maintained when clauseEvidence (code-probe, 2026-08-17)
Brief: .sdlc/tickets/422/evidence-brief.md
Origin
User-approved this session (skeptic gate not applicable).
VERDICT: CREATE (ticket-skeptic, 2026-08-17) — user-requested work backed by Accepted ADR-0123; root-cause fix, not symptom move.
Starting os-sdlc implement pipeline on branch worktree-ticket-422
Resolution
Done: bin/os-backlog and bin/decision-sweep are thin Thor entrypoints; dispatch/business logic extracted to Backlog::CLI plus Close/ConfigWriteCommand/InspectCommand/ProjectsCommand/DecisionSweepCommand; shared fail_soft/cwd_tracker helpers de-duplicated into CliSupport; JSON-first rendering with --format yaml via Psych; missing-thor LoadError fails soft with a one-line install message. issue-show (#420) and positional comment body (#421) ported into the Thor CLI at merge.
Evidence: os-sdlc pipeline report .sdlc/tickets/422/briefs/018-review-to-done.md (reviewer APPROVE round 5); suite green post-merge: 217 runs, 571 assertions, 0 failures (ruby plugins/os-backlog/tests/all.rb); six pre-existing subprocess CLI contract tests pass unchanged.
Follow-ups: DecisionSweepCommand has no direct unit tests; test_issue_create_on_a_repo_tracker_skips_the_scope_gate passes vacuously (FakeRunner aborts before the assertion); class-level mutable Backlog::CLI.runner= seam could be instance-injected; os-backlog target lint debt under root .rubocop.yml (1400+ offenses, lint gate skipped by human decision)