Skip to content

coverage --verify: widen result binding to category + self-audit rule id (close the not-run gap) #206

Closed

Description

@sandstream

Problem

kit coverage --verify (4.0.0) binds AUTO controls by result name only. Four controls
read not-run even when their evidence exists under another key:

  • V6.4.1 — secrets, secrets validate, agent-audit are kit commands, not checkSecurity result names
  • V7.1.1 — R2-secret-argv is a self-audit rule id; runSelfAudit emits the name "secret leaked via exec error"
  • V14.1.1 — gha-audit is a command, not run by checkSecurity
  • V14.2.4 — supply-chain is a category; socket is excluded by design; guarddog opt-in

Conservative-by-design (unproven ⇒ not-run, never verified) — but the binding can be
smarter without weakening that guarantee.

Proposal

  1. Match backing-check ids against result name OR category OR self-audit rule id
    (self-audit results should carry their rule id, e.g. ruleId: "R2", so the mapping's
    R2-secret-argv binds).
  2. Optionally let --verify also run the cheap command-backed checks (gha-audit,
    scan-transcripts, secrets validate) so their controls get live evidence.
  3. Keep the invariant: anything unmatched stays not-run; a failing backing check still
    flips its controls to FAILING.

🤖 Generated with Claude Code

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions