worktree finish looks for os-sdlc-implementation-report without the plugins/ prefix and skips the usage sweep #778
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#778
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
worktree finishcannot find the usage-sweep script.Worktree::UsageSweep.default_script_pathbuilds a path that omits theplugins/segment. The finish command prints a "not found" line and skips the usage sweep on every run.Observed
Observed on 2026-09-27 on four finishes: ticket-658, ticket-728, ticket-732, ticket-765 (implementations 49, 50, 52, 53).
Reproduce
Approach
Worktree::UsageSweep.default_script_path(plugins/os/lib/worktree/usage_sweep.rb:6-8) resolvesplugin_rootwithFile.expand_path('../../..', __dir__). Fromplugins/os/lib/worktree, three..levels land onplugins/, notplugins/os. The followingFile.join(plugin_root, '..', 'os-sdlc', 'bin', ...)then climbs one level aboveplugins/to the repo root, dropping theplugins/segment and producing<repo-root>/os-sdlc/bin/os-sdlc-implementation-reportinstead of<repo-root>/plugins/os-sdlc/bin/os-sdlc-implementation-report.Required work:
plugin_root(or the join) inWorktree::UsageSweep.default_script_pathso it resolves toplugins/os-sdlc/bin/os-sdlc-implementation-report— check: finish prints the usage sweep result instead of a "not found" line.Acceptance criteria
worktree finishruns with--implementation, then the usage sweep runs and no "not found" line prints.Owner sketch
Origin
plugins/os/bin/worktree finish <name> --implementation <id>printing "not found, usage not swept" on four finishes (ticket-658, ticket-728, ticket-732, ticket-765; implementations 49, 50, 52, 53) on 2026-09-27.default_script_pathdrops theplugins/segment ← DESIGN (plugins/os/lib/worktree/usage_sweep.rb:6-8, likely miscounted..levels when commit9efa4ef0(#768) replacedos-sdlc-runnerwith per-command bin scripts)VERDICT: CREATE
REASON: Verified path bug —
default_script_pathdrops theplugins/segment, silently skipping usage sweep on every worktree finish since #768; observed on four real finishes with clean root-vs-symptom provenance.Resolution
Done: duplicate of #733, same defect (relative path to the report script), fixed by ADR-0240
Evidence: merge
6bd034dfFollow-ups: none