Skip to content

Reaper keep-rule follow-ups: stash merge commits, edited Overdeck-written files, .devcontainer, ignored nested clones #6006

Backlog

Description

@eltmon

Follow-ups from the independent review of #6005 (PAN-5990), comment #6005 (comment). None are exploitable with today's configuration; all make the reaper's keep rules robust.

  1. Wrapper commit check ignores merge commits. It uses git log --name-only, which lists no paths for merge commits, and every stash entry is a merge commit. Use --diff-merges=first-parent, so a stashed edit to a disallowed path is seen. Add a test with a stash that touches a non-allowed path.
  2. Edited Overdeck-written files are exempt by path alone. The rendered .env (workspace.env.template, overdeck-written-paths.ts:105) and files copied from the agent template are exempt even when edited. Record a content hash when Overdeck writes them, as the .claude/ manifest already does, and exempt them only while the hash matches. An edited file counts as work.
  3. .devcontainer/ is never inspected. It's on the build or cache list, so a precious file (.env, a SQL dump) inside a gitignored .devcontainer/ isn't checked. Take it off the skip list, or check precious names inside it.
  4. Gitignored nested clones outside .tmp/ are not detected. This is unchanged from main. Detect any directory containing a .git inside the workspace, ignored or not, bounded, and judge it like the other nested clones.

Each item needs a test that fails when the fix is reverted.

Activity

  1. added
    substrate-improvement
    on Dec 4, 2026
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

    substrate-improvement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions