Mechanism Audit
Purpose
Use this skill to test whether a stated promise is enforced by code, config,
verification, or operational process. Keep the audit short and evidence-led.
Do not run a broad multi-expert swarm. This skill is safe to use from high or
xhigh reasoning contexts because it is a bounded checklist, not a creativity
prompt.
Inputs
Gather only the evidence needed to test the promise:
- the promise or contract being audited
- the files that define the rule
- the code, config, or process that enforces it
- the verification profile, test, artifact, or manual proof that checks it
- the task/session context when the harness requires a durable audit artifact
If the promise is unclear, rewrite it as one testable sentence before auditing.
Audit Workflow
- Name the promise. State what the doc, task, or harness appears to
guarantee. Use one sentence.
- Map the enforcement chain. List the concrete files, commands, checks,
code paths, review gates, or artifacts that make the promise true.
- Find bypass paths. Look for ways the promise can be skipped, narrowed,
stale, manually overridden, or satisfied by prose instead of proof.
- Check verification. Decide whether the current tests, verifier profiles,
required evidence, or closeout gates would catch the bypass paths.
- Give a verdict. Use exactly one of:
holds
partially holds
does not hold
not enough evidence
- List fixes. Use:
P0 for fixes required before the guarantee should stand
P1 for robustness improvements that strengthen an already plausible
guarantee
Output Shape
Use this format:
Promise:
- <one testable sentence>
Enforcement chain:
- <file/code/config/process evidence>
Bypass paths:
- <specific bypass or "none found">
Verification coverage:
- <what is checked and what is not checked>
Verdict:
- <holds | partially holds | does not hold | not enough evidence>
Fixes:
- P0: <required fix, or "none">
- P1: <strengthening fix, or "none">
Harness Artifact
When a repo harness requires mechanism-audit evidence for the current session,
write the same output to:
<session-dir>/mechanism-audit.md
Do not create a durable artifact for small ad hoc answers unless the user or
harness asks for it.
Harness Integration
When a harness supports path-scoped audit routing, declare the requirement in
the manifest that owns the contract-bearing paths. Keep selection based on
paths or task metadata, not prompt keywords:
mechanism_audits:
- id: repo-contract-enforcement
description: Audit whether this repository contract is mechanically enforced.
applies_to:
- AGENTS.md
- .agents/manifests/**
- .agents/verify/**
artifact: mechanism-audit.md
The harness owns artifact enforcement, repair routing, and any additional
structured result contract. This skill owns the human-readable audit workflow
and fixed verdict vocabulary; do not duplicate a controller-specific result
schema here.
Quality Bar
- Prefer exact file references and command names over general claims.
- Separate policy from enforcement. A sentence in
AGENTS.md is policy; it is
not enforcement unless another gate checks it.
- Treat stale state, narrowed path sets, manual override paths, and missing
artifact checks as potential bypasses.
- Do not call a promise enforced just because a human is expected to notice it.
- Do not use text keyword matching as evidence that an audit is required.
Audit requirements should come from manifests, task metadata, changed
contract fields, or explicit user direction.
1---2name: mechanism-audit3description: Audit whether a spec, task, harness, agent workflow, safety boundary, or operational contract is actually enforced by concrete mechanisms. Use when reviewing or changing AGENTS.md, CLAUDE.md, .agents/manifests, .agents/verify, .agents/evals, spec/agents, build/test specs, task plans, risk/execution contracts, source-of-truth boundaries, session closeout rules, verifier classifications, or any explicit request to check whether a promised guarantee is real.4---56# Mechanism Audit78## Purpose910Use this skill to test whether a stated promise is enforced by code, config,11verification, or operational process. Keep the audit short and evidence-led.12Do not run a broad multi-expert swarm. This skill is safe to use from high or13xhigh reasoning contexts because it is a bounded checklist, not a creativity14prompt.1516## Inputs1718Gather only the evidence needed to test the promise:1920- the promise or contract being audited21- the files that define the rule22- the code, config, or process that enforces it23- the verification profile, test, artifact, or manual proof that checks it24- the task/session context when the harness requires a durable audit artifact2526If the promise is unclear, rewrite it as one testable sentence before auditing.2728## Audit Workflow29301. **Name the promise.** State what the doc, task, or harness appears to31 guarantee. Use one sentence.322. **Map the enforcement chain.** List the concrete files, commands, checks,33 code paths, review gates, or artifacts that make the promise true.343. **Find bypass paths.** Look for ways the promise can be skipped, narrowed,35 stale, manually overridden, or satisfied by prose instead of proof.364. **Check verification.** Decide whether the current tests, verifier profiles,37 required evidence, or closeout gates would catch the bypass paths.385. **Give a verdict.** Use exactly one of:39 - `holds`40 - `partially holds`41 - `does not hold`42 - `not enough evidence`436. **List fixes.** Use:44 - `P0` for fixes required before the guarantee should stand45 - `P1` for robustness improvements that strengthen an already plausible46 guarantee4748## Output Shape4950Use this format:5152```text53Promise:54- <one testable sentence>5556Enforcement chain:57- <file/code/config/process evidence>5859Bypass paths:60- <specific bypass or "none found">6162Verification coverage:63- <what is checked and what is not checked>6465Verdict:66- <holds | partially holds | does not hold | not enough evidence>6768Fixes:69- P0: <required fix, or "none">70- P1: <strengthening fix, or "none">71```7273## Harness Artifact7475When a repo harness requires mechanism-audit evidence for the current session,76write the same output to:7778```text79<session-dir>/mechanism-audit.md80```8182Do not create a durable artifact for small ad hoc answers unless the user or83harness asks for it.8485## Harness Integration8687When a harness supports path-scoped audit routing, declare the requirement in88the manifest that owns the contract-bearing paths. Keep selection based on89paths or task metadata, not prompt keywords:9091```yaml92mechanism_audits:93 - id: repo-contract-enforcement94 description: Audit whether this repository contract is mechanically enforced.95 applies_to:96 - AGENTS.md97 - .agents/manifests/**98 - .agents/verify/**99 artifact: mechanism-audit.md100```101102The harness owns artifact enforcement, repair routing, and any additional103structured result contract. This skill owns the human-readable audit workflow104and fixed verdict vocabulary; do not duplicate a controller-specific result105schema here.106107## Quality Bar108109- Prefer exact file references and command names over general claims.110- Separate policy from enforcement. A sentence in `AGENTS.md` is policy; it is111 not enforcement unless another gate checks it.112- Treat stale state, narrowed path sets, manual override paths, and missing113 artifact checks as potential bypasses.114- Do not call a promise enforced just because a human is expected to notice it.115- Do not use text keyword matching as evidence that an audit is required.116 Audit requirements should come from manifests, task metadata, changed117 contract fields, or explicit user direction.