Skip to content

claude-config: make the audit skill script-first with audit-pass-shaped findings and declared posture #3989

Closed

Description

@kyle-sexton

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-pass consumes 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, sites of surface plus anchor/v1) with lane, attempt, tier as 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, and audit-pass may 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.json rows in audit-pass's identity shape to the topic's memory tier, and audit-pass appends those rows through its own partial append without 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 at info.
  • 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-state owns 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

Activity

  1. added
    needs-triage
    on Sep 8, 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