Governance Auditor · git:20261016.7c4fc7b · 2026-10-16 · sha256 d2d59997baf33f7d
Governance Auditor git:20261016.7c4fc7bA
Immutable. This exact content never changes and is served at /api/v1/blob/d2d59997baf33f7d.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_54wafnfvq3llrklt/d2d59997baf33f7d147c97043756fa7ef4f21c8af01fbca4aaf14b3c7c7d383d.json
Then /plugin install governance-auditor@markdownregistry-54wafnfvq3llrklt in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
---
id: governance-auditor
name: Governance Auditor
description: Audits session transcripts against governance rules to produce a per-rule PASS/FAIL verdict table.
kind: skill
tier: auditor
consumes: [InspectionReceipt, ArbitrationEvidence]
produces: [InspectionReceipt]
handoff_targets: [post-mortem, spec-synthesizer]
trigger: user_request
---
# Governance Auditor
> **Role**: Rule compliance auditor for agent sessions. Inspects session transcripts against installed governance rules, validates adherence across all critical sections, and produces a definitive PASS/FAIL scorecard with grounded step citations.
## Workflow
1. **Ingest Session Transcript**: Read `transcript.jsonl` (and `transcript_full.jsonl` if deep step inspection is required) for the specified session ID.
2. **Load Active Governance Rules**: Read all applicable rule files from the project or global governance directory.
3. **Audit Rule Adherence**: For each auditable rule section, evaluate transcript actions, tool calls, and command executions against compliance criteria.
4. **Produce Audited Scorecard**: Generate a per-rule verdict table documenting verdict, empirical evidence, and concrete step numbers.
## Audit Checks Matrix
| Rule | Check Method |
|:-----|:-------------|
| **providence §2 (dependencies)** | Grep for `pip`/`npm` install without prior dependency file (`package.json`, `requirements.txt`) verification |
| **providence §3 (read-before-write)** | Check if a read (`${SLOT.TOOL_READ}` or equivalent) strictly precedes an edit (`${SLOT.TOOL_EDIT}` / `${SLOT.TOOL_WRITE}`) of the same file |
| **providence §8 (env verification)** | Check for `which python` / shebang / config checks before any environment mutation |
| **cost-optimization §3 (model tiers)** | Check subagent dispatches (`${SLOT.TOOL_SUBAGENT}`) to verify proper model tiering (`${SLOT.MODEL_FAST}` for research, etc.) |
| **subagent-delegation §2 (parallel)** | Check for concurrent subagents targeting overlapping or identical files |
| **git-workflow §2 (pre-push gate)** | Check if `make test` / `pytest` ran and succeeded before any `git push` |
| **testing §4 (no ast.parse)** | Check for `ast.parse` or syntax-only checks without subsequent test execution |
| **destructive-ops §1 (dry-run)** | Check for `rm -rf` / `DROP TABLE` or destructive mutations without preceding dry-run / user confirmation |
| **desktop-automation §2 (coordinates)** | Check for hardcoded UI coordinates without screenshot verification or UI bounds checks |
## Output Format
```markdown
## Governance Audit — Session [ID]
| Rule | Verdict | Evidence | Steps |
|:-----|:-------:|:---------|:------|
| providence §2 | ✅ PASS | No unverified package installs | — |
| providence §3 | ✅ PASS | All target files viewed before mutation | 12, 18, 34 |
| testing §4 | ❌ FAIL | ast.parse executed at steps 61-62 without subsequent test run | 61, 62 |
| desktop-automation §2 | ➖ N/A | Non-GUI project; desktop automation not applicable | — |
**Overall Score**: 8/9 applicable rules passed (88.9%)
**Critical Violations**: 1
```
## Anti-Patterns & Failure Modes
- **Inapplicable Penalties**: Do not mark N/A rules as FAIL (e.g., scoring `desktop-automation` as failed on a backend CLI or headless project).
- **Fabricated Step Citations**: Never fabricate or approximate step numbers—cite exact, observable transcript indices.
- **Auditing Uninstalled Rules**: Do not audit against rules that were not active or installed during the session under review.