Arguments. [--unattended] [--medium <value>] [layer ...] [--repo <repo> ...]. Layer: agent-hooks|agent-instructions|repo-hooks|vcs-hooks|ci-lanes|gate-scripts|satellite-workflows|branch-protection|forge-apps|external-integrations|all (default: all). --medium governs only the rendered-view offer (report-template.md, Layer 3).
Repository context. Gather first
<!-- BEGIN GENERATED: gather-block. Edit docs/conventions/gather-block/block.md, then run scripts/sync-gather-block.py -->
Run each command below as its own Bash call, all sent together in one message (worktree isolation).
Keep any bound in the command's own pipe (output limits).
Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).
<!-- END GENERATED: gather-block -->
- Branch,
git symbolic-ref --quiet --short HEAD - Shallow clone,
git rev-parse --is-shallow-repository
Purpose
Walk the enforcement surface that governs work in this repository, or in each repository a target
form names ("Over several repositories"), and report which mechanisms still earn their carry cost. Every incumbent is a retirement candidate until evidence earns its keep, and
silence is not evidence in either direction.
Which automation is missing is a question for /harness-config:audit-automation-gaps (if enabled). Route a gap that
surfaces mid-walk there when that plugin is enabled; otherwise record it in the findings artifact
as an observation for the human. This walk never proposes new automation.
The surface is everything that governs work here, wherever it is registered, including settings
scopes merged from outside the tree and forge controls in a control plane. Out-of-repo items are
audited like any other; only their remediation changes, to a delegation (§12).
Read ${CLAUDE_PLUGIN_ROOT}/context/scrutiny-method.md before judging anything and cite its sections
in findings rather than paraphrasing them: the verdict ladder (§6), evidence tiers (§2), the three
liveness questions (§3), intent reconstruction (§4), rediscovery (§5), protected classes and their
cap (§7), UNPROVEN triage (§8), analogical thresholds (§9), scope boundary (§10), rollback ladder
(§11), ownership (§12). Every bare §N in this skill and its context files is a section of that
document. Shared docs sit under ${CLAUDE_PLUGIN_ROOT}/context/ and ${CLAUDE_PLUGIN_ROOT}/reference/;
this skill's own docs sit under ${CLAUDE_PLUGIN_ROOT}/skills/audit/context/.
Read-only contract
This skill reports only. It never mutates the surface it walks. No hook disabled, no workflow
edited, no gate script deleted, no setting changed, no branch rule touched, not even a formatting fix
in a file it read.
The one write is the findings artifact, at the memory-tier home
${CLAUDE_PLUGIN_ROOT}/context/findings-artifact.md "Where it lives" defines, a self-ignored scratch
root outside tracked content. Immediately after resolving the home (step 1 of "Before the walk"),
and before any layer is walked, say: *"Read-only pass; the only file written is the findings artifact
at <resolved path>."*
A run with no branch identity writes nothing at all, and says instead: *"Read-only pass; no
branch identity resolved, so no findings artifact is written."* See "A detached checkout has no
branch identity".
Writing the artifact from a delegated run. Our route for a delegated run, chosen so a refused
write to a report-shaped filename does not stop the run: write the full content with the file-write
tool to a neutral filename in the artifact's directory, then rename it to the contract filename. An
--unattended run takes this route from its first write; an attended run writes the contract filename
directly and switches at the first refusal. The route covers every write of the artifact, each
per-layer checkpoint included. Never write the artifact's content through the shell. Where
neither route is available, say so and stop.
One auxiliary write is sanctioned: the once-per-session self-ignore guard, creating the memory
root's own .gitignore (announced) when absent, never the consumer's root .gitignore. Nothing else
is written.
Executing a finding belongs to overengineering:realign, behind an explicit per-item human gate.
Name it as the next step; never start it unasked.
Arguments
Parse $ARGUMENTS, after taking out --unattended wherever it appears:
- Layer scope: one or more of the ten enforcement layers in
${CLAUDE_PLUGIN_ROOT}/context/findings-artifact.md's vocabulary, agent-hooks through
external-integrations; default all, meaning those ten and never the justification lane's five.
Asked for one of the five, refuse and name /overengineering:justify, which owns them one target
at a time. Record exactly the layers walked in the artifact's scope: merge rule 3 reads scope
to close a prior finding as gone, so a layer recorded but not walked closes another producer's
rows, and a layer absent from scope was not walked rather than found empty. Layer-scoped passes
are the supported way to cover a large surface; they compose by stable finding id.
--unattended, anywhere in the arguments: for low-confidence intent (§4), record
OPEN-INTENT, ask nothing, guess nothing. Attended is the default; the caller passes the flag,
and the mode is never inferred. The bare word unattended is not this flag and not a focus hint:
stop and name --unattended.
- A target form (
--repo,--repos-from,--owner,--fleet,--skip, or the same request
in words) with its value: selects several repositories ("Over several repositories").
- Anything else is a free-text focus hint (a path, a mechanism name). It narrows attention, not the
layer scope; a hint that matches nothing is reported.
Over several repositories
With no target form, the run walks this checkout, as it always has. A target form selects several
repositories, which resolve, count, fan out and merge as