Skip to content

fix(skills): destructive git wildcards (git push/checkout/clean) pass the allowed-tools gate — decide default-deny #1324

Open

Description

@admarble

Tier: judgment Found: 2026-10-05, #1292 spec (Design Review item 3) and QA on PR #1323

Problem. The allowed-tools gate (src/lib/__tests__/skill-allowed-tools-gate.test.ts) is a denylist. It catches only the tools someone listed: #1287 added the portal's runners, and #1292 added gh api/rm/mv/find/sed/cp. Each new broad grant needs its own issue. Grants on main that it still passes, with comparable reach:

  • git push:*: clean, exec, fullsolve, release. This allows git push --force and git push origin :main.
  • git checkout:*: clean, merger. This allows git checkout -- ., which discards work.
  • git clean:*: clean. This allows git clean -fdx.

Like #1287 and #1292, this affects interactive use only. sequant run phases use bypassPermissions.

AC

  • AC-1: Each entry above is narrowed to the subcommand form its skill body runs, or removed, or kept with a one-line reason in the PR. Evidence: a PR-body table, one row per (skill, entry)
  • AC-2: A decision is recorded on making the gate default-deny: every wildcard Bash(…*) entry fails unless an allowlist names it with a reason, or the denylist stays with a stated reason. Evidence: the decision comment on this issue, plus the gate diff if it changes
  • AC-3: The gate rejects Bash(git push:*), Bash(git checkout:*) and Bash(git clean:*) unless allowlisted with a reason. Evidence: the gate test, mutation-verified by re-adding Bash(git clean:*) to one .claude/skills copy

Non-Goals

Graph metadata

May touch

  • .claude/skills/{clean,exec,fullsolve,release,merger}/SKILL.md (+ synced mirrors), src/lib/__tests__/skill-allowed-tools-gate.test.ts

Activity

  1. added
    enhancement
    on Oct 5, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions