audit-mirage-report

audit-mirage-report is a command for Claude Code from axiomantic/spellbook. It costs 17 tokens per session (1,978 once invoked), scanned A, original, MIT.

A reporting step for the Green Mirage audit, which checks whether passing tests actually verify behavior.

In plain words
What is it for?
Use it after the audit analysis to summarize test counts, detected patterns, severity, and specific findings for developers or automated fixing tools.
Why use it?
It preserves findings in both a readable report and structured YAML so later tools can consume them, while keeping the report complete and self-contained.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it after the audit analysis to summarize test counts, detected patterns, severity, and specific findings for developers or automated fixing tools.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/axiomantic/spellbook/audit-mirage-report
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/axiomantic/spellbook

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit-mirage-report

README.md
[![agentmods](https://agentmods.dev/badge/commands/axiomantic/spellbook/audit-mirage-report/github.svg)](https://agentmods.dev/commands/axiomantic/spellbook/audit-mirage-report)
Your own site
<a href="https://agentmods.dev/commands/axiomantic/spellbook/audit-mirage-report"><img src="https://agentmods.dev/badge/commands/axiomantic/spellbook/audit-mirage-report/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for audit-mirage-report

Your own site · 80×15
<a href="https://agentmods.dev/commands/axiomantic/spellbook/audit-mirage-report"><img src="https://agentmods.dev/badge/commands/axiomantic/spellbook/audit-mirage-report.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,978 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.01978
Opus 5 $0.00009 $0.00989
Sonnet 5 $0.00003 $0.00396
Haiku 4.5 $0.00002 $0.00198

Measured 10d ago against content hash f909b80bb156, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

audit-mirage-report scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/audit-mirage-report.md · 245 lines

How it starts

The opening of the file, as written. The whole thing — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Phase 5-6: Findings Report and Output

Invariant Principles

  1. Machine-parseable output is mandatory - The YAML block enables downstream tools (fixing-tests) to consume findings directly.
  2. Severity determines fix order - Critical blocks shipping; important must be addressed; minor queued.
  3. Reports must be self-contained - A reader must understand every finding without re-running the audit.

Machine-Parseable YAML Block

patterns_found below and the Patterns list under Human-Readable Summary MUST each carry one slot per ### Pattern N defined in commands/audit-mirage-analyze.md. A pattern with no slot is a finding silently dropped from a report that looks complete. tests/test_skills/test_audit_mirage_pattern_sync.py fails when the two drift.

---
audit_metadata:
  timestamp: "2024-01-15T10:30:00Z"   # ISO 8601; generate actual time
  test_files_audited: 5
  test_functions_audited: 47
  production_files_touched: 12

summary:
  total_tests: 47
  solid: 31
  green_mirage: 12
  partial: 4
  skipped_total: 3
  skipped_unjustified: 2

patterns_found:
  pattern_1_existence_vs_validity: 3
  pattern_2_partial_assertions: 4
  pattern_3_shallow_matching: 2
  pattern_4_lack_of_consumption: 1
  pattern_5_mocking_reality: 0
  pattern_6_swallowed_errors: 1
  pattern_7_state_mutation: 1
  pattern_8_incomplete_branches: 4
  pattern_9_skipped_tests: 2
  pattern_10_strengthened_still_partial: 1
  pattern_11_self_manufactured_evidence: 2

findings:
  - id: "finding-1"
    priority: critical          # critical | important | minor
    test_file: "tests/test_auth.py"
    test_function: "test_login_success"
    line_number: 45
    pattern: 2
    pattern_name: "Partial Assertions"
    effort: trivial             # trivial | moderate | significant
    depends_on: []
    blind_spot: "Login could return malformed user object and test would pass"
    production_impact: "Broken user sessions in production"

  - id: "finding-2"
    priority: critical
    test_file: "tests/test_auth.py"
    test_function: "test_logout"
    line_number: 78
    pattern: 7
    pattern_name: "State Mutation Without Verification"
    effort: moderate
    depends_on: ["finding-1"]
    blind_spot: "Session not actually cleared, just returns success"
    production_impact: "Session persistence after logout"

remediation_plan:
  phases:
    - phase: 1
      name: "Foundation fixes"
      findings: ["finding-1"]
      rationale: "Other tests depend on auth fixtures"

    - phase: 2
      name: "Auth suite completion"
      findings: ["finding-2"]
      rationale: "Depends on phase 1 fixtures"

  total_effort_estimate: "2-3 hours"
  recommended_approach: sequential  # sequential: findings have dependencies; parallel: independent findings; mixed: partial dependencies
---

Read the full file on GitHub · 245 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 245 lines · 17 tokens per session scan A f909b80bb156

Subscribe to this mod's changes

audit-mirage-report is a command published in the GitHub repository axiomantic/spellbook (10 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 1,978 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.