Skip to content

repo-fleet-hygiene: reclaimable-worktree duplicates source-control:worktree's stranded-work axis with a weaker signal #2605

Closed

Description

@kyle-sexton

Context: #2597

Problem

reclaimable-worktree is a second, weaker answer to a question source-control:worktree status already answers well. Two skills in the same fleet compute worktree disposability by different methods, and the fleet-scoped one is the less safe of the two.

Evidence

source-control:worktree status classifies a stranded-work axis from git worktree list --porcelain, one batched gh pr list, and a landed-work.sh run per repository. Its documented rule: a worktree holding unpushed unlanded commits is stranded, never merely stale, and an unprovable verdict reports unknown and is treated exactly as stranded. Its cleanup action additionally refuses to remove a worktree or emit its git branch -D while work is stranded or unproven, with --acknowledge-stranded as a per-worktree override explicitly distinguished from a bare --force.

repo-fleet-hygiene's reclaimable-worktree rests on git status --porcelain emptiness alone.

Verification of 8 sampled reclaimable-worktree findings found the porcelain claim accurate in all 8 — and separately found that 5 of the 8 hold commits not on origin/<default> whose tips sit on no local remote-tracking ref. Those tips did all exist on GitHub, so no loss was imminent on this fleet, but the check that establishes that is exactly the stranded-work axis the sibling already implements and this skill does not.

The same investigation surfaced a second gap in the weaker signal (ignored files), filed separately. Both are symptoms of computing a private answer instead of consuming the existing one.

Proposed change

  • Stop computing a per-worktree disposability verdict in repo-fleet-hygiene.
  • Either consume source-control:worktree status's classification per repository, or delegate to it and aggregate.
  • Where source-control is not installed, degrade to naming the target and the missing collaborator rather than substituting a weaker verdict — the plugin already documents that it must remain useful when optional collaborators are absent, and naming the target satisfies that without inventing a second standard.

This is the concrete form of the narrowing proposed in #2597: the fleet axis is discovery, canonical resolution, cross-repository evidence, and batching — not re-deriving per-repository facts.

Acceptance criteria

  • repo-fleet-hygiene no longer emits a disposability verdict derived solely from git status --porcelain.
  • Worktree disposability in a fleet report is traceable to source-control:worktree's classification, including its stranded / unknown distinction.
  • With source-control absent, the report names targets and the missing collaborator and emits no substitute verdict.

Activity

  1. added
    needs-triage
    on Aug 14, 2026
  2. added a commit that references this issue on Aug 14, 2026
    a2f3420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions