Repository navigation
Description
Summary
Interview-locked Brief for the audit skill's next shape. Purpose is unchanged: config-file correctness against upstream truth. What changes is how it gets there (a script engine for every deterministic row), what it leaves behind (audit-pass-shaped findings), and how it handles session posture (declared, never sniffed). The full Brief is committed at docs/topics/claude-config-audit-improvements/PLAN.md on claude/config-audit-a4277l; this body carries the TLDR, constraints, and acceptance criteria verbatim so the issue stands alone.
TLDR
- A script engine decides every deterministic audit row and emits JSON; the model does only judgment rows and the report.
- Findings persist as audit-pass-shaped rows so
audit-passconsumes them and a re-run can diff. - Session posture is declared in a concern file, never sniffed; allow-list completeness rows drop to info.
- Hook coverage for the third baseline narrowing comes from a manifest the hook plugin declares (touches guardrails).
Constraints
- Only rows decidable by
jq, a file-exists test, a regex, or a grep of a page fetched in the run move into the engine. Every row that needs a reading stays with the model: the Category B narrowings, Category C disable reasons, "timeouts reasonable", "justified custom var", the Category G levers, and all of Phase 3. - Findings rows use audit-pass's identity tuple (
check,claim,sitesofsurfaceplusanchor/v1) withlane,attempt,tieras run metadata. No second row schema in the plugin. - Session posture is declared by the consuming repo in a concern file layered per the config-cascade convention. The skill never reads
CLAUDE_CODE_REMOTE, auto-mode state, or any environment signal to decide it. - Every composition is presence-gated with a hard degrade: the guardrails coverage manifest,
claude-ops:known-issues, andaudit-passmay each be absent in a consumer repo and the audit still completes with the same categories. - The bootstrap script and the fleet plugin list are out of scope. Environment-side state is reported only where it changes what the audit can claim.
Acceptance criteria
- One engine script run emits a JSON document covering every Category A row, the Category D rows for path resolution, readability, millisecond-shaped timeouts, matcher classification, placeholder quoting and duplicates, the Category E static and drift rows, the Category F secret scan and forward-slash check, and the Category H and I value checks; a full audit on this repository issues no more than ten Bash calls before Phase 4.
- The audit writes
findings.jsonrows in audit-pass's identity shape to the topic's memory tier, andaudit-passappends those rows through its ownpartial appendwithout transformation. - With a concern file declaring an exempted baseline family, the report omits that family's finding and names the declaration; with no concern file, the finding stands at its unnarrowed severity.
- The B.5 allow-list rows (
git commit,git fetch,git stash) report atinfo. - When a hook plugin ships a coverage manifest, the third narrowing cites the manifest and names its opt-out levers; when none ships, the finding is stated conditionally as today.
- IF the engine cannot read a scope, THEN it reports that scope as not inspectable rather than clean.
- WHILE a fetched page is truncated, no Phase 3 finding is reported from it.
Captured assumptions
- audit-pass's anchor grammar fits JSON config files through its no-heading-concept path; revisit if the row emitter shows the excerpt discriminator collides on repeated JSON keys.
- Consumer repos will adopt a concern file for posture; revisit if the first two consumers instead ask for a settings key.
Out of scope
- Auditing the cloud bootstrap or the fleet plugin list.
- Sniffing session mode from environment variables.
- A full environment audit (
claude-ops:audit-install-stateowns it). - Retiring Phase 3.2 in favour of claude-ops.
Evidence
A 2026-09-08 cloud run on this repository took about 35 tool calls, most re-deriving what jq answers; produced three Category B rows the operator cannot act on in a harness-mandated-push session; required reading block-dangerous-git.sh by hand to map guard to baseline families; and left no artifact audit-pass could consume.
Related
- Bug issue for the independent mechanical fixes: claude-config: audit-skill mechanical fixes observed on a 2026-09-08 cloud run #3990
- Adjacent: context: fork pilot on read-only audit skills, plus an invocation-context owner doc #3545 (fork pilot on read-only audit skills)
Activity