Repository navigation
Description
Parent
Refs #3800
Agent Brief
Type: Feature
Summary: Add /review:audit-enforceability, a read-only audit skill that reads one operator-named findings file, derives a finding class per row, applies the enforcement-rung crosswalk, and writes one proposal stub per finding under a new reserved memory-tier concern name, outside the directory the fix action scans. It never implements a rung.
Working name: audit-enforceability (chosen by the naming pass on #3806; runner-up audit-enforcement-fit). Override by editing this one name before dispatch; every path below derives from it.
Current behavior:
No plugin owns proposing enforcement. Recurring review findings are re-discovered by a model on every run, and nothing routes a finding class to the cheapest deterministic check that would catch it. Widening the automation-gaps audit skill was evaluated and rejected: wrong ownership boundary and no findings input path.
Desired behavior:
A read-only audit skill in the review plugin. Input: exactly one findings file, named by the operator. Output: one stub per finding in the resolved enforceability/<branch-slug>/ home, each naming a candidate rung and its owner or pointer, plus an in-conversation report. Bare invocation writes the stubs: they are the audit's report, memory-tier and self-ignoring, and no relay consumes them. This is the posture overengineering:audit takes and argues for in its read-only contract; copy its two obligations: announce the resolved path in the report, and when no branch identity resolves, write nothing.
What the input carries (traced; do not assume more)
A conforming findings file (${CLAUDE_PLUGIN_ROOT}/reference/findings-file-shape.md) has frontmatter type: review-findings and branch: (optionally date:, tier:) and a ## Findings table with columns Rank | Tier | Confidence | Location | Surface(s) | Finding | Action. There is no finding-class column. The only class-bearing signals are:
- a leading qualified rule id
<plugin>/<skill>/rule-<slug>in theFindingcell. Six producers hold crosswalk rows and emit ids:mutation-testing:audit,testing:audit,ai-slop:audit,claude-config:audit-instructions,docs-hygiene:audit-noise,provenance:audit(the last has crosswalk rows but no Adopters-table row yet). Fanout's own rows carry no id; ## By dimensionheadings carrying fanout's Stage-0 category enum, which is open (security,architecture,performance,testing,error-handling,concurrency,docs, and more; unmappable →other); present only in filesreview:fanoutwrote. That section re-renders the same rows under per-dimension headings with rank numbers unchanged, so reading every table row in the file counts each finding twice;- the
FindingandActionprose.
A conforming file may carry a three-line > DEGRADED: blockquote above ## Findings; it is a coverage notice, not a row. Cells escape literal | as \|; unescape before classifying.
The fix action's admission test (skills/fanout/context/fix-pass-mode.md Step 1) is: every *.md directly in the binding's resolved reviews/<branch-slug>/ directory (non-recursive) whose frontmatter declares type: review-findings and whose branch: equals the current branch, with a parseable ## Findings table; any file without that frontmatter marker is skipped. The scanned directory is the resolved reviews location, not the directory the input file sits in. The type: marker is the load-bearing exclusion; the directory fence is defense in depth.
Files to create
| File | What |
|---|---|
plugins/review/skills/audit-enforceability/SKILL.md |
Skill body (below) |
plugins/review/skills/audit-enforceability/context/crosswalk.md |
Class → rung → owner table plus rule-id, rule-family, and dimension sections, with a verification record |
plugins/review/skills/audit-enforceability/context/stub-shape.md |
Stub frontmatter, body, filename, forbidden markers |
plugins/review/skills/audit-enforceability/scripts/emit-stubs.sh |
Deterministic stub writer with the parse rule and both home fences |
plugins/review/skills/audit-enforceability/scripts/emit-stubs.test.sh |
Ten named cases (below), on the scripts/lib/test-harness.sh idiom |
plugins/review/skills/audit-enforceability/evals/evals.json |
Five or more cases including one refusal |
plugins/review/skills/audit-enforceability/evals/fixtures/findings-one-per-rung.md |
Conforming fixture, seven rows, one per rung, with a ## By dimension section that re-renders all seven |
plugins/review/skills/audit-enforceability/evals/fixtures/classification-one-per-rung.tsv |
Classification input the test feeds the script |
Files to modify
| File | What |
|---|---|
docs/conventions/topic-docs/README.md |
Add the reserved first-level name enforceability at the sites the 2.5.1 (overengineering) entry touched: the "Memory, concern-scoped" tier row gains .work/enforceability/<branch-slug>/ and "enforcement-rung proposal stubs"; the reserved-names list in "Slug and filename spec" gains enforceability; the Implementers row for review becomes "review reports; enforceability stubs" / "memory (reviews/, enforceability/<branch-slug>/)" |
docs/conventions/topic-docs/topic-docs.schema.json |
The memory_dir description lists enforceability/ among the reserved concern directories |
docs/conventions/topic-docs/CHANGELOG.md |
A minor entry, newest-first, unbracketed heading form ## <x.y.0> — <date>, numbered the next minor above whatever main carries when this lands (3.3.0 after #3811's 3.2.0; 3.2.0 if #3811 has not merged, in which case coordinate). Classed minor because #3811 classes the identical change minor ("additive"). scripts/check-changelog-parity.sh --check-order gates this file; --check-bump never reads it. Expect conflicts with #3811 at all four sites; keep both names |
plugins/docs-hygiene/skills/audit-noise/scripts/lib/noise-shapes.sh |
The reserved-name roster is executable code here: add enforceability to the [[ "$seg" == 'handoffs' || ... ]] chain and to the comment roster above it. Without this the review binding's own .work/enforceability/<branch-slug>/ citations become false-positive ghost refs |
plugins/docs-hygiene/skills/audit-noise/SKILL.md |
Add enforceability to both prose rosters (the ghost-ref table row and the convention-path exemption bullet) |
plugins/docs-hygiene/skills/audit-noise/scripts/detect.test.sh |
Add a bare/child fixture pair modelled on overengineering-bare.md / overengineering-child.md |
plugins/docs-hygiene/.claude-plugin/plugin.json and plugins/docs-hygiene/CHANGELOG.md |
Patch bump plus ## [<v>] entry (touching plugins/docs-hygiene/ trips the parity script's published-version-reuse gate). Note in the entry that instruction-placement (#3811) is not yet in the roster; do not fix that here |
plugins/review/reference/topic-docs.md |
Header sentence "Both skills read this one document" → three skills. New artifact row under "What this plugin writes" (.work/enforceability/<branch-slug>/<rank>-<rung>-<slug>.md, never committed). A second five-rung resolution list for the enforceability concern (rungs 1 and 5 compose enforceability/<branch-slug>; rungs 2 to 4 yield a declared, inferred, or chosen location; persisting at rungs 2 to 4 is ask-gated; non-interactive collapse cited). State that "a sibling of reviews/" holds at rungs 1 and 5 only and that at every rung the writer's --scan-dir fence keeps the stub home out of the fix action's scan. No binding carries two ladders today; the precedent is overengineering claiming its own reserved name with its own ladder |
plugins/review/README.md |
Skills list bullet; one sentence under "Findings location" that stubs resolve through the binding's enforceability/<branch-slug>/ ladder and are fenced out of the fix action's scan directory |
plugins/review/CHANGELOG.md |
## [0.27.0] / ### Added |
plugins/review/.claude-plugin/plugin.json |
version → 0.27.0 (new skill is a minor bump); description names the new skill |
docs/SKILL-CHEAT-SHEET.md |
Regenerate with node scripts/generate-cheatsheet.mjs; never hand-edit (scripts/validate-plugins.sh runs its --check in CI) |
SKILL.md contract
Frontmatter, literal forms:
-
description: ≤1024 codepoints; names the intent and trigger phrases ("which of these findings could a linter or analyzer catch", "audit enforceability", "promote findings to a deterministic check", "what rung catches this"); states that "enforceability" here means whether one finding can be caught deterministically, not whether a convention is machine-checkable. -
argument-hint: "<findings-file>",user-invocable: true,disable-model-invocation: false,shell: bash. -
allowed-tools: the two-form${CLAUDE_SKILL_DIR}grantplugins/ai-slop/skills/audit/SKILL.mduses:"Bash(${CLAUDE_SKILL_DIR}/scripts/emit-stubs.sh:*)","Bash(\"${CLAUDE_SKILL_DIR}/scripts/emit-stubs.sh\":*)", plus"Bash(git:*)","Bash(grep:*)","Bash(head:*)". No digest grant: the script computessource-sha256under its own grant. The classification TSV is passed on stdin (--classes -) inside the same granted command, so no file-write grant is needed. Never an interpreter-ledBash(bash ...)grant (those never match, and no gate catches it). -
metadatain block form (the cheat-sheet generator matches^metadata:\s*$; an inline mapping is invisible to it and fails its CI--check):metadata: workflow-stage: review summary: Propose the cheapest deterministic rung for each review finding
summary≤100 codepoints (a FAIL incheck-skill.sh).
Body, in order:
- Input gate.
$ARGUMENTSnames exactly one file. Empty or missing path → print the usage line and STOP. Never glob a findings directory, never pick "the newest". Refuse (STOP with a diagnostic) unless the file's frontmatter declarestype: review-findingsand a## Findingstable parses. Abranch:that differs from the current branch is NOT a refusal: the operator named the file and stubs are proposals. Record the file'sbranch:in every stub and use it for the branch slug. Nobranch:and no resolvable current branch → write nothing; report the classification table only. - Class derivation ladder, per row, first hit wins, never a dropped row:
- the exact qualified rule id leading the
Findingcell matches a rule-id row in the crosswalk → that class,class-basis: rule-id; - the id's
<plugin>/<skill>/prefix matches a rule-family row → that class,class-basis: rule-family; - the row's
## By dimensionheading, when the file has that section, matches a dimension row → that class,class-basis: dimension; an unlisted dimension falls through; - model judgment over
Finding+Actiontext into the class vocabulary,class-basis: judgment; - unresolved → class
unclassified, rungllm-only,class-basis: unresolved.
- the exact qualified rule id leading the
- Crosswalk lookup: class → rung → owner or pointer, from
context/crosswalk.md. - Resolve two homes through
${CLAUDE_PLUGIN_ROOT}/reference/topic-docs.md: the stub home (theenforceability/<branch-slug>/ladder) and the fix action's reviews location for the same branch (thereviews/<branch-slug>/ladder). Announce the resolved stub path. Follow the binding's Runtime guards: the self-ignore guard on the session's first memory-tier write, and the invalid-root cases where the write itself is refused (a root-equivalent memory root; a resolved root no checkout is detected as governing, except the plugin-data fallback). Non-interactive contexts take the binding's cited non-interactive collapse. - Write stubs by composing a classification TSV (one line per rank) and passing it on stdin:
${CLAUDE_SKILL_DIR}/scripts/emit-stubs.sh --findings <file> --classes - --out <stub-home> --scan-dir <reviews-home>with the TSV as a quoted heredoc in the same command. - Report: a table of rank, class, basis, rung, owner, stub path; the line
N findings → N stubs in <home>; then per-rung next steps, each with its gate and fallback. - Boundary section stating all five: (a) "promotion" in the detector-findings convention and the autonomy plugin means a candidate detector's guardrail class or a matrix cell's human-ratified knob flip across the C1–C5 work classes; enforcement promotion here means moving a finding class to a cheaper deterministic rung, a different meaning; (b) "enforceability" of a convention (is it machine-checkable, at which tier) is a different question from the enforceability of one finding; (c) not the automation-landscape audit (
audit-automation-gapsin the claude-config plugin walks the repo and self-generates candidates; this skill reads one findings file and walks nothing); (d) not the fix action; (e) never implements a rung. - Gotchas:
\|unescaping; omittedConfidenceis not low; a missing## By dimensionsection is normal for adopter-produced files; the dimension enum is open;## By dimensionrepeats every row, so the table under## Findingsis the only source of rows.
Constraints on every skill body and context file (.claude/rules/skill-bodies-state-current-rules.md): no issue or PR numbers, no incident narration, no model names, no date-conditional guidance, no hardcoded paths, flags, or version numbers stated as bare fact without a verification record. No @melodic-software, no MELODIC_* keys, no repo-relative docs/conventions/ path (an installed plugin never sees this repository; restate what you need, cite only ${CLAUDE_PLUGIN_ROOT} surfaces). A fetchable raw URL to a convention, the form skills/fanout/context/fix-pass-mode.md already carries, is a verification-record basis, not a repo path, and is allowed. The skill-quality check's polarity heuristic (check 25) will WARN on "writes on bare invocation"; a WARN is not a FAIL.
Presence-gated references (seam-phrasing shape: gate names the plugin, fallback in the same sentence)
- Semgrep rung: "invoke
/semgrep-rule-creator:semgrep-rule-creator(if thesemgrep-rule-creatorplugin is installed); otherwise the stub points at Semgrep's rule-writing documentation (https://docs.semgrep.dev/writing-rules/overview) and stops." The install recipe, printed in the report only:/plugin marketplace add trailofbits/skillsthen/plugin install semgrep-rule-creator@trailofbits. The marketplace name appears nowhere else. Plugin and marketplace names were verified by fetching that repository's.claude-plugin/marketplace.jsonon 2026-09-06; recheck trigger: the recipe fails for an operator. - Hook rung: "run
/claude-config:audit-automation-gaps hooks(if theclaude-configplugin is installed) and present the stub as a candidate in its candidate-list step, which is self-generated and takes no findings input; otherwise the stub records the candidate with the evidence that skill's gates ask for (frequency, incident history, the enforcement level already covering it) and stops." - Custom Roslyn analyzer rung: doc pointer only, Microsoft Learn "Tutorial: Write your first analyzer and code fix" (https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix). No installable upstream skill could be named.
- Architecture test rung: doc pointers only, ArchUnitNET (https://archunitnet.readthedocs.io/) for .NET and the dependency-cruiser repository docs (https://github.com/sverweij/dependency-cruiser) for JS/TS.
context/crosswalk.md
Rungs in this fixed cheapest-first order. Class vocabulary and mapping:
| Finding class | Rung | Owner or pointer |
|---|---|---|
| formatting, whitespace, ordering, naming style | editorconfig-severity |
in-repo .editorconfig |
a diagnostic an installed analyzer pack or linter already defines (a cited CAxxxx/IDExxxx/SAxxxx, ESLint, ruff, markdownlint id, or a rule the pack documents) |
analyzer-pack-rule |
in-repo configuration: enable or raise severity in .editorconfig, .globalconfig, or the linter config |
| a project-specific API or usage invariant in C# expressible over syntax or the semantic model (banned API, required attribute, misuse pattern) | custom-analyzer |
Microsoft Learn analyzer tutorial |
| a code pattern expressible as a syntactic match in any language (dangerous call, injection sink, secret shape, cross-language invariant); also the custom-analyzer class in a non-.NET ecosystem | semgrep-rule |
semgrep-rule-creator plugin, gated; else Semgrep docs |
| dependency direction, layering, namespace-to-layer naming, forbidden references | architecture-test |
ArchUnitNET docs (.NET); dependency-cruiser docs (JS/TS) |
| process and workflow: commit shape, file placement, generated-file freshness, session behaviour, anything observed at tool-call or commit time rather than in source | hook |
claude-config plugin's audit-automation-gaps hooks, gated; else record and stop |
design judgment, readability, correctness reasoning, prose quality, unclassified |
llm-only |
none; the finding stays a review-time judgment |
Three lookup sections follow, keyed the way the ladder reads them:
- Rule-id rows (exact match on the qualified id, the one form the detector-findings convention allows): one row per rule id the six producers emit today, with its class. Where the producing detector is itself the deterministic rung, the class is
analyzer-pack-ruleand the owner is that detector ("already deterministic: keep the detector"): everyai-slop/audit/rule-*,docs-hygiene/audit-noise/rule-*,claude-config/audit-instructions/rule-*, andprovenance/audit/rule-*id.testing/audit/rule-*ids →analyzer-pack-rulewhere a test-framework analyzer covers the rule, elsecustom-analyzer.mutation-testing/audit/rule-*ids →llm-only(the covering test is judgment). Enumerate the ids from each producer's crosswalk rows and emitter script; never invent one. - Rule-family rows (prefix match on
<plugin>/<skill>/, a distinct and lower ladder step so an id added upstream later still lands on its family's class): six rows, one per producer. - Dimension rows:
architecture→architecture-test;security→semgrep-rule;docs→llm-only; a default row: any other or unlisted dimension → fall through to the judgment step.
The rule-id and rule-family sections restate ids another document owns, so they carry a four-part verification record (claim, basis, as-of date, recheck trigger). Basis: the detector-findings contract's raw URL, the same form skills/fanout/context/fix-pass-mode.md uses. Trigger: a new producer row lands in that contract's crosswalk. Every row carries its basis in one clause so a reader can dispute it.
context/stub-shape.md
---
type: enforceability-stub
date: <ISO-8601 UTC, the write instant>
source-findings: <file name>
source-sha256: <first 12 hex of the findings file's content digest>
source-branch: <the findings file's branch: value>
rank: <Rank>
finding-class: <class>
class-basis: rule-id | rule-family | dimension | judgment | unresolved
rung: editorconfig-severity | analyzer-pack-rule | custom-analyzer | semgrep-rule | architecture-test | hook | llm-only
owner: <invocation, plugin name, or URL>
---
## Finding
<Location, Tier, Confidence, Surface(s), Finding, Action, verbatim, pipes unescaped>
## Proposed rung
<one paragraph: the rung, why this class lands there, what the check would assert>
## Next step
<the gated invocation or the pointer, with the fallback when the plugin is absent>
## Not done here
This stub proposes. Nothing was implemented.Forbidden in a stub, enforced by the writer: type: review-findings, type: fix-pass-record, a top-level branch: key, a ## Findings heading. Filename: <rank, two digits>-<rung>-<slug>.md, <slug> = first 40 chars of the Location sanitized to [a-z0-9._-].
scripts/emit-stubs.sh CLI contract
emit-stubs.sh --findings <file> --classes <tsv> --out <dir> --scan-dir <dir> [--dry-run]
--findings: must exist, declaretype: review-findings, and carry a parseable## Findingstable; otherwise exit 2, one-line diagnostic, nothing written.- Parse rule: anchor on the
## Findingsheading, read table rows until the next##heading, read nothing else.## By dimensionre-renders every row and is never read. A> DEGRADED:blockquote above the heading is skipped. This is the fleet's first findings-table reader; the safe anchoring idiom is the onescripts/check-detector-findings-crosswalk.shuses to locate a table by its exact header. --classes: TSV, one line per rank:rank<TAB>class<TAB>basis<TAB>rung<TAB>owner; a path, or-to read it from stdin (the skill's path: the caller composes the TSV in the same granted command). A rank in the table but absent from the TSV getsunclassified / unresolved / llm-only / none, never no stub. A rank in the TSV absent from the table is a diagnostic, not a stub.--out: the resolved stub home.--scan-dir: the resolved reviews location the fix action scans for this branch (required; missing → exit 2). Both are resolved by the caller through the binding; the script never resolves either. Refuse (exit 3, nothing written) when--outresolves to--scan-diror any path under it, and also when--outresolves to the findings file's own directory or any path under it.- Split table rows on unescaped pipes; unescape
\|in cells. Never overwrite: an existing path takes-2,-3. - After writing, re-read every stub written and fail (exit 4, written stubs removed) if any contains a forbidden marker.
- Success: print
N findings → N stubs in <out>, exit 0.--dry-runprints planned filenames and writes nothing.
scripts/emit-stubs.test.sh cases
- seven-row fixture → seven stubs, one per rank, exit 0;
- every stub declares
type: enforceability-stub; none matches^type: review-findings|^type: fix-pass-record|^branch:|^## Findings; - the fix action's Step 1 predicate, replicated as
grep -l '^type: review-findings' <out>/*.md, returns nothing; --outequal to, or under,--scan-dir→ exit 3, no files;--outequal to, or under, the findings file's directory → exit 3, no files;- missing
--findings→ exit 2; a file withouttype: review-findings→ exit 2; missing--scan-dir→ exit 2; - a
Findingcell containing\|reaches the stub unescaped and unsplit; - a rank missing from
--classesstill yields a stub with rungllm-only, with the TSV passed as--classes -on stdin (case 1 uses the path form, so both forms are covered); - re-running into the same
--outwrites-2siblings, never overwrites; - the fixture's
## By dimensionsection, which re-renders every row, produces no extra stubs (N, never 2N); - a fixture variant with a three-line
> DEGRADED:blockquote above## Findingsparses to the same N stubs.
Fixture findings-one-per-rung.md: type: review-findings, branch: fixture, date:, seven rows whose Finding cells exercise each class (one leading with a qualified rule id, one containing \|), a ## By dimension section that re-renders all seven rows under two headings (this is what makes case 9 bite), ## Unparsed, ## Surfaces. Both fixtures are referenced by basename in the test and by path in evals.json files[], so the orphaned-fixtures gate counts them consumed.
Evals
At least: one-per-rung fixture run (expects seven stubs, each naming rung and owner); missing-file refusal; a rule-id row classified by its rule-id row, not prose; a Boundary question ("is this the C3 promotion thing?") answered with the disambiguation; a no-implementation case ("just write the analyzer" is declined with a pointer).
Acceptance criteria:
-
plugins/review/skills/audit-enforceability/SKILL.mdexists with the frontmatter literals and eight body sections above (grep -qE '^metadata:\s*$'exits 0), andCHECK_SKILL_SKILLS_ROOT=plugins/review/skills bash plugins/skill-quality/scripts/check-skill.sh --require-evals audit-enforceabilityexits 0. -
context/crosswalk.mdcarries the seven-row class table in the fixed rung order plus the rule-id, rule-family (six rows), and dimension sections (with the default row) and the verification record;context/stub-shape.mdcarries the stub shape and the four forbidden markers. -
bash plugins/review/skills/audit-enforceability/scripts/emit-stubs.test.shexits 0 with all ten cases passing;bash scripts/affected-tests.sh --explain plugins/review/skills/audit-enforceability/scripts/emit-stubs.sh 2>&1 | grep -q emit-stubs.test.shexits 0. - Writer invariants (deterministic, proven by the test): the fixture yields exactly seven stubs, never fourteen; the script refuses a home equal to or under
--scan-dirand a home equal to or under the input's directory; no stub containstype: review-findings,type: fix-pass-record, abranch:key, or a## Findingsheading; the replicated fix-action Step 1 predicate over the stub directory returns nothing. Thetype:marker absence plus this replication plus the--scan-dirfence is the accepted proof that the fix pass consumes no stub; running the real fix action is not required. - Classification (judgment, proven by evals): the one-per-rung eval asserts each row's rung and owner; the rule-id eval asserts the ladder's first step wins over prose.
- The description names the trigger phrases and states the skill's sense of "enforceability"; the Boundary section states all five boundaries, including that detector-findings promotion (C1–C5) is a different meaning.
- Every cross-plugin reference names its plugin, is presence-gated, and states a fallback; the only marketplace-qualified id is in the printed install recipe.
-
test -d plugins/review/skills/audit-enforceability && ! grep -rE -e '@melodic-software' -e 'MELODIC_' -e 'docs/conventions/' plugins/review/skills/audit-enforceability/ | grep -v '://' | grep -q .exits 0 (thegrep -v '://'exempts the fetchable raw URL the verification record cites; a repo-relativedocs/conventions/path still fails). - The reserved name lands at every convention site:
test "$(grep -c enforceability docs/conventions/topic-docs/README.md || true)" -ge 3exits 0 (tier row, reserved list, Implementers row);grep -q enforceability docs/conventions/topic-docs/topic-docs.schema.jsonexits 0;grep -q enforceability docs/conventions/topic-docs/CHANGELOG.mdexits 0 under a minor heading numbered abovemain's newest;bash scripts/check-changelog-parity.sh --check-orderexits 0. - The docs-hygiene roster lands:
grep -q "'enforceability'" plugins/docs-hygiene/skills/audit-noise/scripts/lib/noise-shapes.sh,grep -q enforceability plugins/docs-hygiene/skills/audit-noise/SKILL.md, andgrep -q enforceability plugins/docs-hygiene/skills/audit-noise/scripts/detect.test.shexit 0;bash plugins/docs-hygiene/skills/audit-noise/scripts/detect.test.shexits 0 and its output names an enforceability case;docs-hygienehas a patch bump and matching## [<v>]entry. -
plugins/review/.claude-plugin/plugin.jsonis0.27.0,plugins/review/CHANGELOG.mdhas## [0.27.0], andbash scripts/check-changelog-parity.sh --check-bump origin/mainexits 0. -
grep -q audit-enforceability plugins/review/README.md,grep -q enforceability plugins/review/reference/topic-docs.md, andgrep -q review:audit-enforceability docs/SKILL-CHEAT-SHEET.mdall exit 0;node scripts/generate-cheatsheet.mjs --checkexits 0. -
npx markdownlint-cli2reports 0 issues over every changed markdown file;bash scripts/check-orphaned-fixtures.sh --checkexits 0 (slow; run once at the end).
Out of scope:
- Cross-run recurrence detection and any persisted history of it.
- Implementing any rung. The skill proposes and routes; it never writes an analyzer, rule, architecture test, or hook.
- Reading more than one findings file per invocation.
- Modifying the findings file it reads.
- A persist gate on the stub write (recorded as the switch condition if a consumer of stubs appears).
- Adding instruction-placement/delta: persist baseline in artifact-protocol baselines/ slot instead of ephemeral state-key #3811's
instruction-placementname to the docs-hygiene roster (named in the docs-hygiene changelog entry only).
Blocked by
3806
Amendment note (2026-09-06)
Rewritten from the planning slice (#3806) after two verifier passes. What changed and why:
- Name recorded:
audit-enforceability, from the naming pass; override note kept. - Input contract traced: the findings-file shape carries no finding-class column, so the crosswalk keys on a class vocabulary with a stated derivation ladder (exact rule id → rule family → dimension heading → judgment → unresolved). The original body's table had no class column and could not be built from.
## By dimensionre-renders every row, so the writer's parse rule is stated and tested. - Stub home fixed: a new reserved memory-tier concern name
enforceability/<branch-slug>/, added to the topic-docs convention as a minor entry (the class instruction-placement/delta: persist baseline in artifact-protocol baselines/ slot instead of ephemeral state-key #3811 uses for the same change) and resolved through the review binding likereviews/. A topic-slice home was tried in planning and withdrawn (the binding cannot derive a memory root at its middle rungs; a branch slug is not a topic slug; a second artifact family in a leaf slice creates an index obligation). - Roster in code: the reserved-name roster is enumerated by the docs-hygiene audit-noise detector (script, prose, test), so those edits and a docs-hygiene patch release are in scope, as the 2.5.1 precedent did.
- "Fix pass consumes none of the stubs" made mechanical: the
type:marker is the load-bearing exclusion; the writer also takes--scan-dir(the fix action scans the binding's resolved reviews location, not the input's directory) and refuses a home inside it; the test replicates the Step 1 predicate. Running the real fix action is not a test. - Roslyn owner superseded: the earlier "upstream roslyn-analyzers skill" could not be resolved to any installable plugin, so the custom-analyzer rung points at the Microsoft Learn tutorial. An unnamed collaborator cannot be presence-gated.
- Hook handoff stated honestly:
audit-automation-gapstakes no findings input; the operator carries the stub into its candidate step. Gated on theclaude-configplugin with a stated fallback. - Ecosystem stated: the custom-analyzer rung is .NET-only; other ecosystems fall to the Semgrep rung.
- Bare-invocation write kept, with its basis and the two
overengineering:auditobligations (announce the path; no branch identity → write nothing); a persist gate is the switch condition once a consumer exists. - Frontmatter literals fixed: block-form
metadata(the cheat-sheet generator reads only that form),summary≤100 codepoints, and the${CLAUDE_SKILL_DIR}two-formallowed-toolsgrant. - Writer script and test added so the stub invariants are proven by a fixture-driven test rather than by instruction; the two proof halves (deterministic writer vs judgment classification) are named per criterion.
provenance:auditcounted among the six producers. - Bookkeeping enumerated: version
0.27.0, cheat-sheet regeneration (its--checkruns in CI), review binding rows, the convention edit sites and numbering rule, the docs-hygiene edits.
Activity
kyle-sexton commentedon Sep 6, 2026
feat(review): add the audit-enforceability stub writer and its test
feat(review): add /review:audit-enforceability and reserve the enforc…
chore(review): regenerate the catalog and assert the stdin report line
fix(review): satisfy the repo shellcheck ruleset in the stub writer
fix(review): fold both stub-home fences to one path spelling
feat(review): add the audit-enforceability stub writer and its test
feat(review): add /review:audit-enforceability and reserve the enforc…
2 remaining items
fix(review): fold both stub-home fences to one path spelling
fix(review): anchor the stub home to the tree it was composed from
chore(topic-docs): date the 3.2.0 entry to the day it lands
fix(review): anchor the stub home fence on the memory root
feat(review): add the audit-enforceability stub writer and its test
feat(review): add /review:audit-enforceability and reserve the enforc…
chore(review): regenerate the catalog and assert the stdin report line
fix(review): satisfy the repo shellcheck ruleset in the stub writer
fix(review): fold both stub-home fences to one path spelling
fix(review): anchor the stub home to the tree it was composed from
chore(topic-docs): date the 3.2.0 entry to the day it lands
fix(review): anchor the stub home fence on the memory root
fix(review): refuse a stub home whose last segment is outside the slu…
fix(review): ask the filesystem, not the string, whether a stub home …