worktree finish resolves os-sdlc-implementation-report one directory too high, so the usage sweep is silently skipped #797

Closed
opened 2026-09-28 14:31:00 +00:00 by jared · 1 comment
Owner

Problem

plugins/os/bin/worktree finish <name> --implementation <id> prints /home/jared/dev/cc-os/os-sdlc/bin/os-sdlc-implementation-report not found, usage not swept and continues.
The script lives at /home/jared/dev/cc-os/plugins/os-sdlc/bin/os-sdlc-implementation-report.
plugins/os/lib/worktree/usage_sweep.rb:8 joins plugin_root with .., and plugin_root already resolves to plugins/, so the path drops one level too many.
The usage sweep is skipped on every finish, and the message is a warning rather than a failure.

Reproduce

From the main checkout, run plugins/os/bin/worktree finish <any os-sdlc ticket worktree> --implementation <id> and read the summary lines.

Origin

  • Trigger: observed in the finish output for ticket-790, 2026-09-28
  • Where: plugins/os/lib/worktree/usage_sweep.rb:8
  • Session: bb36e383-017d-486e-809f-7ce25d151e61
  • Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os--claude-worktrees-crc-pass-os-sdlc/bb36e383-017d-486e-809f-7ce25d151e61.jsonl

VERDICT: CREATE
REASON: plugin_root already resolves to plugins/, so joining '..' drops one level too many; the usage sweep is silently skipped on every finish.

## Problem `plugins/os/bin/worktree finish <name> --implementation <id>` prints `/home/jared/dev/cc-os/os-sdlc/bin/os-sdlc-implementation-report not found, usage not swept` and continues. The script lives at `/home/jared/dev/cc-os/plugins/os-sdlc/bin/os-sdlc-implementation-report`. `plugins/os/lib/worktree/usage_sweep.rb:8` joins `plugin_root` with `..`, and `plugin_root` already resolves to `plugins/`, so the path drops one level too many. The usage sweep is skipped on every finish, and the message is a warning rather than a failure. ## Reproduce From the main checkout, run `plugins/os/bin/worktree finish <any os-sdlc ticket worktree> --implementation <id>` and read the summary lines. ## Origin - Trigger: observed in the finish output for ticket-790, 2026-09-28 - Where: plugins/os/lib/worktree/usage_sweep.rb:8 - Session: bb36e383-017d-486e-809f-7ce25d151e61 - Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os--claude-worktrees-crc-pass-os-sdlc/bb36e383-017d-486e-809f-7ce25d151e61.jsonl VERDICT: CREATE REASON: plugin_root already resolves to plugins/, so joining '..' drops one level too many; the usage sweep is silently skipped on every finish.
Author
Owner

Resolution

Done: duplicate of #733, same defect (relative path to the report script), fixed by ADR-0240

Evidence: merge 6bd034df

Follow-ups: none

## Resolution **Done:** duplicate of #733, same defect (relative path to the report script), fixed by ADR-0240 **Evidence:** merge 6bd034df **Follow-ups:** none
jared closed this issue 2026-09-28 16:39:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#797
No description provided.