Skip to content

Repo sweep leftover: orphan tree ~/worktrees/12247-qb needs a history-level audit before deletion #14353

Backlog

Description

@developing-today-fleet

Orphan tree ~/worktrees/12247-qb needs a history-level audit before deletion

Split out of #13919 §7 (verify-then-delete pass, queue task 23274, 2026-11-24; record: #13919 (comment)).

State verified 2026-11-24

  • Laptop directory ~/worktrees/12247-qb: 1.2G, no .git, not registered as a worktree of any clone. A code-repo-shaped snapshot (contains pkgs/fleet/, doc/, spikes).
  • Recursive diff against the laptop code primary (~/git/code, HEAD 9e6b4adf64e5): 367 files differ (mostly under doc/) and 23 orphan-only entries, including unexplained fragment-named top-level entries (aut, f, fu, ful, n, nv, offli, r, re, rebu, si) and generated certificate artifacts under doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/ (gen/ and live/ keys, .srl files, CSRs).
  • Most differences are consistent with an older snapshot, but that is not proof for all 367 files. The tree was therefore retained under the sweep packet's rule (any tree whose verification fails is left in place with reasons recorded).

What is needed

For every differing or orphan-only file, establish whether its exact content exists in the code repo's git history (any ref) or is generated output reproducible from tracked sources (e.g. the cert artifacts vs certs/generate-certs.sh). Files with no history match and no generation source are unlanded work: preserve them (land via PR or move to a named preservation location) before any deletion.

Acceptance criteria

  • A per-file accounting exists (history match / generated / preserved-with-location) covering all differing and orphan-only entries.
  • Only after full accounting: the tree is deleted and the deletion recorded on this issue.
  • The fragment-named entries are explained in the record (what created them), not just counted.

Refs #13919

Activity

  1. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  2. added
    kind/infrastructure
    status/needs-triage
    priority/normal
    effort/m
    app/fleet
    source/queue-worker
    meta/enriched
    on Nov 24, 2026
  3. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    ContributorAuthor

    Intake review

    • Related: Split out of Repo sweep 2026-11-23: leftovers holding unlanded or unjudged state #13919 §7 (verify-then-delete pass, queue task 23274; record: Repo sweep 2026-11-23: leftovers holding unlanded or unjudged state #13919 (comment)). No PR resolves this; the tree was deliberately retained.
    • Notes: The body already carries acceptance criteria, so this pass is labels + review only. The differing set (367 files, 23 orphan-only entries) includes generated certificate artifacts under the s11-relay spikes (gen/ and live/ keys, .srl files, CSRs) — those need classification as revoked/never-authorised test material or live material before any deletion decision.
    • Risks: Deleting unaudited history could destroy the only copy of spike work; keeping the tree forever leaves 1.2G of ambiguous state. The fragment-named top-level entries (aut, f, fu, …) look like truncated-write debris but that is a hypothesis, not evidence.
    • Suggested approach: Per-file provenance pass against git history (hash each differing file, search all refs), produce a keep/delete manifest as a comment on this issue, then delete only manifest-approved paths and record the deletion.
    • Classification: kind/infrastructure, priority/normal, effort/m, app/fleet. Enriched by fleet monitor intake.
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

    app/fleeteffort/mkind/infrastructuremeta/enrichedpriority/normalsource/queue-workerstatus/needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions