Skip to content

.agents/skills/session-handoff/SKILL.md > Closing a Session: Read Ignored Files Before Removing the Hub Clone, as repo-worktree Requires #4115

Closed

Description

@ptr727

Finding

.agents/skills/session-handoff/SKILL.md "Closing a Session" step 4 removes the hub clone that "The Attended Session" step 0 made after checking only git -C <clone> status --porcelain. It then asserts "Ignored files there are tool caches, so the removal takes them too."

.agents/skills/repo-worktree/SKILL.md "Listing and Cleanup" says the opposite for the same kind of tree. A temporary standalone clone removed by hand needs git status --porcelain --ignored read first "for the ignored files the removal deletes". The same skill's cleanup paragraph explains why: git status --porcelain never lists ignored files, so a removal deletes them without asking.

So the two skills give contradictory instructions for one removal. Following session-handoff deletes whatever ignored files the clone holds without naming them first.

Where It Was Raised

GitHub Copilot raised it on ptr727/LanguageTags#501 (thread on .github/skills/session-handoff/SKILL.md:301, head d50592cb). That pull request carries the generated .github/skills tree byte-identical to hub main at 009d3e5e, so the fix belongs here at the source rather than in the carrier. Resync measured by audit run 2026-11-12T22:10:34Z | hub 009d3e5e.

Expected

session-handoff step 4 reads git -C <clone> status --porcelain --ignored and names the ignored entries before deleting the clone, the same as repo-worktree. Or it points at repo-worktree's rule rather than stating its own. Where a hub clone's ignored files are known to be caches only, say that in one place and have both skills defer to it.

Actual

session-handoff checks --porcelain alone and asserts the ignored contents are caches.

Activity

  1. ptr727 commented on Nov 13, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim, round 2 (2026-11-13), away run, scope develop. Branch burndown/handoff-clone-ignored, group: #4115. Tier: frontier (carried skill, a cleanup step that deletes files).

    Predicted files:

    • .agents/skills/session-handoff/SKILL.md
    • .github/skills/session-handoff/SKILL.md
    • .claude-plugin/fleet-skills/skills/session-handoff/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/session-handoff

    Claim extended (orchestrator adjudication, round 2): the CodeRabbit showUntrackedFiles=no finding's class sweep reaches two more units. No other in-flight group or open PR holds them.

    • .agents/skills/repo-worktree/SKILL.md
    • .github/skills/repo-worktree/SKILL.md
    • .claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/repo-worktree
    • .agents/skills/backlog-burndown/SKILL.md
    • .github/skills/backlog-burndown/SKILL.md
    • .claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/backlog-burndown
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions