Skip to content

fix(claude-config): audit-pass admits a non-git target its downstream contract cannot specify #2231

Closed

Description

@kyle-sexton

Defect

audit-pass's argument gate uses one vocabulary and enforces a different predicate. A non-git directory
passes the gate, then falls off the specified path in five places.

Evidence at HEAD

plugins/claude-config/skills/audit-pass/SKILL.md:42:

- **`target`** — the git repository to audit. Default: `${CLAUDE_PROJECT_DIR}` when set, else

plugins/claude-config/skills/audit-pass/SKILL.md:46:

  **`target` must resolve to the active project root, and a path that does not is refused.** The

"The git repository to audit" is the vocabulary; "resolves to the active project root" is the predicate.
A non-git directory satisfies the second and not the first, and nothing refuses it. All five downstream
branches were re-verified independently at HEAD:

  1. State key — reference/run-state-and-resumability.md:15-17 gives a no-remote fallback
    (local/<sha256 of the canonicalized repo root>); there is no no-git fallback, and "canonicalized
    repo root" is undefined without a repo.
  2. Scan baseline — SKILL.md:100-107 defines it as "the target's HEAD commit and the run's state
    digest". Neither exists on a non-git target.
  3. Class 3 exclusion — reference/exclusion-set.md:42-44 derives worktrees from git worktree list.
    Class 1 is given an explicit fallback (:24-26); Class 3 is given none.
  4. Assertion 2.1 — reference/report-location-and-schema.md:42: "After a run against a clean git
    worktree with no redirect, git status --porcelain is empty." Unevaluable.
  5. Suppression — SKILL.md:292 "Only the team layer enacts a suppression" and
    reference/suppression.md:36 locates the team layer as the tracked one. With nothing tracked, no
    suppression is ever enactable on such a target. The contract never says so.

Consequence 5 is the load-bearing one: it is a permanent capability loss rather than a missing
derivation.

Decision recorded — this was a fork, and the operator settled it

Verification held this row back from autonomous implementation despite it clearing every mechanical gate
(HIGH ∧ AUDITOR_VERIFIED ∧ PRESENT_AT_HEAD), because the finding names a fork rather than a fix:

  • (a) Refuse non-git targets — extend the gate to match line 42's vocabulary. One line, and the
    skill's own argument at SKILL.md:54-59 supports it ("a silent mis-target is worse than a refusal") —
    but it removes a target class the auditing run itself used, as a side effect of a bug fix.
  • (b) Specify the non-git branch — write all five rows above. Larger, and consequence 5 obliges the
    contract to state that no suppression is ever enactable on such a target.

The operator settled this toward (a), refuse, on 2026-08-11. The scope consequence is deliberate and
recorded here rather than inferred: closing the non-git target class is an accepted product decision, not
a side effect nobody noticed.

Scope note verified during implementation

There is no existing non-git refusal in audit-pass to narrow — grep for exit 4, non-git, and
not a git across skills/audit-pass/ returns nothing. (The exit-4 non-git diagnostic that exists in
this repo belongs to source-control's scripts/worktree-create.sh:258-261, a different plugin, and is
this ledger's separate S1 row.) The refusal is therefore net-new machinery, and it reuses the
existing refusal channel shape at SKILL.md:55 — exit non-zero, naming both paths and the reason —
rather than minting a new exit code.

Grading

  • Severity: HIGH — by the skill's own argument a silent mis-target is worse than a refusal, and here
    the run enters unspecified behavior with an unevaluable top assertion. Reachable: the audited run hit it.
  • Provenance: AUDITOR_VERIFIED. Verdict: PRESENT_AT_HEAD (line numbers drifted by 2 since the
    audit; text unchanged).
  • Dedup: none found.
  • Originating inbox item: 20260811-020411-claude-config-audit-pass-report-path-inside-scan-set.md
    (ledger I8, row F4; batch-4 decision queue DQ-1).

Activity

  1. added
    needs-triage
    on Aug 11, 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

    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