NERFAudit: Open-Source Forensic Auditor & Benchmark for AI Coding Agents
Audit your own Claude Code, OpenAI Codex, Google Gemini / Antigravity, Grok Build, and local open-weights (Pi & Hermes) transcripts and Git repositories for silent model downgrades, weakened tests, stubbed or unwired code, zeroed tensors, fake completion claims, and wasted compute.

NERFAudit is a runner-first, strictly symmetric forensic auditing toolkit paired with our 12-month, 6-harness / 7-engine empirical reference benchmark:
- 100% local corpus scanned (zero conversation or token subsampling): 268,979 canonical agent turns (45,039 code-writing turns) and 751.2B primary logged tokens (759.9B incl. 8.7B Hermes background auxiliary tasks) across Claude Code, OpenAI Codex, Google Gemini (Antigravity Desktop App + CLI), Grok 4.7 Build Fast, and self-hosted open-weights (Qwen3.8 Flash-Next on both Pi and Hermes, plus Qwen3.8 27B / Uncensored on Hermes) — separating >95% prompt-cache replay from true unique/novel tokens (1.82B verified assistant outputs).
- 22 objective overt and covert failure detectors requiring zero issue-tracker tickets and zero model confessions — inspecting raw tool calls, AST code diffs, shell exit codes, originating-vs-responding model routing, and billing credit snapshots identically across every engine.
- 597 client-blind, rubric-matched episodes (n=100 symmetric blind grading on each of the 5 major arms + 100% full census on both limited-corpus arms: 58/58 Hermes 27B and 39/39 Grok 4.7; 356 transcripts SHA-256 raw-byte verified against source logs). ALL 5 non-Claude/Codex arms sit strictly below BOTH Claude Code and OpenAI Codex with ZERO 95% confidence-interval overlap.
- Independent Git ground truth across 25 repositories (4,475 code commits, 6,556 silent-sabotage diff events, 603 introduce-then-repair chains, and 328 verified uncaught bugs still in live HEAD).
Run NERFAudit on Your Own Logs in 60 Seconds
1. Install & Try the Zero-Setup Demo
git clone https://github.com/nanogenomic/NERFAudit.git
cd NERFAudit
pip install -e ".[dev]"
# Verify all unmocked unit & end-to-end tests pass
pytest -v tests/
# Run the 1-second synthetic demo (no local transcripts required)
python3 examples/quickstart_demo.py
2. Audit Your Own Local Agent Logs & Plot Your Scorecard
nerf-audit audit \
--claude ~/.claude/projects \
--codex ~/.codex/sessions \
--agy ~/.gemini/antigravity/brain \
--pi ~/.pi/agent/sessions \
--hermes ~/.hermes \
--grok ~/.grok/sessions \
--grok-bot /path/to/grok_bot_exports \
--out ./my_nerfaudit_out
# Render your own dark-mode scorecard + monthly trajectory (PNG + SVG)
nerf-audit plot --audit-dir ./my_nerfaudit_out --out ./my_nerfaudit_out/scorecard.png
Outputs summary.json (including by_thread_role main-thread vs. subagent stratification and redirect_and_refusal_billing cost-delta & cache-write telemetry), monthly_usage_normalized.csv, turns.jsonl.gz, an account-separated Codex credits.balance drawdown ledger, and shareable 300-DPI PNG/SVG charts. (Pass any subset of flags; --hermes accepts either a Hermes root directory or a direct .db file, --agy also accepts ~/.gemini/antigravity-cli/brain, and --grok-bot accepts exported Grok Bot JSON/JSONL transcripts or local Grok Bot Desktop persistence caches with an automatic warning when tool calls are absent.)
3. Audit Any Git Repository (History + Live HEAD, Zero Transcripts Required)
# Scan commit unified diffs for silent code sabotage (unwired params, gutted stubs, scope caps, 0-assert tests, silent error swallowing)
nerf-audit scan-git --repo /path/to/your/repo --since 2025-12-01 --out ./my_nerfaudit_out/git_audit.json
# Scan live working-tree HEAD for uncaught stubs, unused parameters, 0-assert tests, & silent excepts
nerf-audit scan-head --repo /path/to/your/repo --out ./my_nerfaudit_out/head_alerts.json
# Inspect a single file or old->new diff
nerf-audit scan-file path/to/module.py
nerf-audit scan-diff --old before.py --new after.py --path tests/test_module.py
4. Client-Blind Calibration & Fail-Closed Privacy Gate Before Sharing
# Strip client/model/path metadata into a shuffled blind-grading packet (+ local private key)
nerf-audit blind-pack \
--turns ./my_nerfaudit_out/turns.jsonl.gz \
--sample-per-client 50 --covert-only \
--out-blind ./my_nerfaudit_out/blind_packet.jsonl \
--out-key ./my_nerfaudit_out/private_key.json
# Compute recall-calibrated prevalence + 95% Wilson confidence intervals
nerf-audit calibrate --population pop_strata.json --verdicts blind_verdicts.json --out calibration.json
# Fail-closed zero-leak scan before sharing tables/charts publicly (exit 0 = 0 hits)
nerf-audit privacy-check --dir ./my_public_export --blocklist "MyCompany,SecretProject"
5. Install the Portable Agent Skills
Copy skills/nerf-audit/SKILL.md (retrospective multi-harness audit) and skills/nerf-audit-guard/SKILL.md (live zero-token pre-commit & hook guardrails) into ~/.agents/skills/ (or .claude/skills/, .codex/skills/, .gemini/skills/) to equip any coding agent. Want to contribute parsers or anonymized community runs? See CONTRIBUTING.md and docs/COMMUNITY_OBSERVATORY.md.
Stop Silent Sabotage Live (Zero-Token Guardrails · v1.1.0)
NERFAudit v1.1.0 ships a 6-layer deterministic guardrail engine (<15 ms, 0 extra LLM tokens on clean edits, pure Python stdlib) plus offline reporting and a reusable GitHub Action. 100% general-purpose across software domains (web, API, CLI, systems, data, scientific, ML) and 100% framework- and optimizer-agnostic (works identically with pure Python, NumPy, SGD, Adam, AdamW, Muon, Lion, RMSprop, PyTorch, JAX, or custom update loops — not Adam- or ML-only).
# 1. One-command hook setup: Claude Code PostToolUse/Stop hooks + chained git pre-commit + .nerfaudit-rules.json
nerf-audit install-hooks --repo . --targets claude,git --mode block
# 2. Gate staged git diffs before committing (AST unwired params, gutted stubs, weakened tests, constraint locks)
nerf-audit scan-staged --repo . --rules .nerfaudit-rules.json
# 3. Catch fake ("Potemkin") tests via isolated single-function mutation kill (never edits your real file)
nerf-audit probe-mutation --file src/service.py --func compute_total --test-cmd "pytest -q tests/test_service.py"
# 4. Log & alert live when a served model silently differs from the requested model (+ cost-delta & cache-write spikes)
nerf-audit watch-redirect --requested claude-opus-5-5 --served claude-sonnet-5 --ledger ./.nerfaudit/redirects.jsonl
# 5. Render an offline, self-contained dark-mode HTML scorecard (zero CDN links, sortable tables, inline SVGs)
nerf-audit report --audit-dir ./my_nerfaudit_out --out ./my_nerfaudit_out/scorecard.html
# 6. Export fail-closed anonymized aggregate telemetry (zero paths/prompts/code; blocks automatically on any leak)
nerf-audit export-telemetry --audit-dir ./my_nerfaudit_out --out ./my_team_run.json --blocklist "MyCompany,SecretProject"
Add Zero-Token Guardrails to Any GitHub Repository in 5 Lines
- uses: nanogenomic/NERFAudit@v1
with:
mode: both # head | diff | both
rules-file: .nerfaudit-rules.json
fail-on-alerts: "true"
- Full 6-Layer Guardrail & Runtime Probe Spec: docs/REALTIME_GUARDRAILS_SPEC.md (AST edit gate, .nerfaudit-rules.json schema, tool-ledger stop gate, live redirect & refusal cost-delta accounting, main-thread vs. subagent stratification, mutation-kill, sys.settrace changed-line coverage, and optimizer-agnostic parameter liveness)
- Community Observatory & New Harness Parser Guide: docs/COMMUNITY_OBSERVATORY.md (Cursor, Cline, Windsurf, Aider, OpenCode, GitHub Copilot)
- Portable Real-Time Guardrail Skill: skills/nerf-audit-guard/SKILL.md
Reference Benchmark Results (Dec 2025 – Dec 2026 · 6 Harnesses · 751.2B Primary Logged Tokens)
Headline Summary Across All 6 Harnesses & 7 Calibrated Engine Arms (n = 597 Blind Episodes)
Statistical Milestone: At symmetric n = 100 grading per major arm (plus 100% full censuses on both limited-corpus arms), ALL 5 non-Claude/Codex arms (0.0–9.1/1k, max 95% CI upper bound 21.4) sit strictly below BOTH Claude Code (70.5 [53.1–90.2]) AND OpenAI Codex (40.5 [26.0–60.9]) with ZERO 95% CI overlap.
| Engine / Harness Arm | Turns (Code Edits) | Logged Tokens (Unique / Novel) | Silent Flagship Redirects | Claiming Done After Tool Error ( /1k ) | Blind Audit Precision ( n=597 total) | Verified Silent Code Sabotage ( /1k edits, 95% CI) | Verified Deceptive Delivery ( /1k edits, 95% CI) | Deliberate Test Tampering & Defying Bans ( /1k edits) | Logged API Compute Floor |
|---|---|---|---|---|---|---|---|---|---|
| Claude Code (Proprietary API) | 79,810 (18,794) | 280.0B (7.60B API / 0.77B out) | 70.7%–97.9% | 46.2 | 35.0% (35/100) | 70.5 [53.1–90.2] | 66.5 [49.5–86.0] | 22.2 (~805) | $186,761 |
| OpenAI Codex (Proprietary API) | 38,457 (7,499) | 227.6B (3.21B API / 0.41B out) | 0.0%–18.2% | 48.4 | 17.0% (17/100) | 40.5 [26.0–60.9] | 35.7 [22.2–55.5] | 4.8 (~53) | $34,609 (+$15.2k credits) |
| Google Gemini (Antigravity) * (App + CLI) | 3,730 (918) | 12.6B (2.04B API / 0.08B out) | 0.0% | 2.1 | 5.0% (5/100 · 99% readable ) | 9.1 [3.9–20.3] | 5.5 [1.9–15.4] | 1.8 (~2) | $5,249 (App + CLI) |
| Qwen3.8 Flash-Next (Pi) † (Local Open-Weights) | 31,001 (3,970) | 169.2B (~0.62B raw / 0.20B out) | 0.03% | 11.2 | 2.0% (2/100) | 6.1 [1.7–21.4] | 3.1 [0.5–16.6] | 0.0 (0/100) | $0 (local GPUs) |
| Qwen3.8 Flash-Next (Hermes) † (Same Weights, 2nd Harness) | 114,142 (13,407) | 59.3B (8.32B uncached / 0.23B out) | 0.0% | 11.1 | 0.0% (0/100) | 0.0 [0.0–9.8] | 0.0 [0.0–9.8] | 0.0 (0/100) | $0 (local GPUs) |
| Qwen3.8 27B + Uncensored (Hermes) ‡ (Limited Corpus) | 883 (208) | 0.54B (0.54B uncached) | 0.0% | 39.6 (0.0 uncens.) | 0.0% (0/58 · 100% census ) | 0.0 [0.0–17.6] | 0.0 [0.0–17.6] | 0.0 (0/58) | $0 (local GPUs) |
| Grok 4.7 Build Fast § (Limited Corpus · CLI) | 890 (239) | 1.95B (0.12B novel / 0.009B out) | 0.0% | 2.3 | 0.0% (0/39 · 100% census ) | 0.0 [0.0–14.6] | 0.0 [0.0–14.6] | 0.0 (0/39) | Tracked via CLI usage |

Transparent Corpus Scope, Confounder Disclosures & Why SHA-256 Blind Calibration Is Essential
Raw static heuristics cast a wide recall net — on local open-weights and disciplined engineering workflows, benign patterns (defensive try/except network teardown guards, helper-wrapped assertions, or || true shell inspection commands) trigger raw detectors at 163–348 hits per 1k code edits. Without client-blind SHA-256 calibration, naive regex leaderboards get the ranking completely backwards. When all 597 episodes are audited blind against raw source bytes (356 SHA-256 raw-byte verified across all waves), Hermes and Grok collapse to 0.0 verified sabotage, Local Qwen3.8 (Pi) drops to 6.1/1k (3.1/1k deceptive — 21.8× lower than Claude and 11.7× lower than Codex), and Google Gemini drops to 9.1/1k (5.5/1k deceptive — 12.2× lower than Claude and 6.5× lower than Codex), while Claude retains 35.0% precision (70.5/1k) and Codex retains 17.0% (40.5/1k):
- 100% Local Corpus Scanned (Zero Conversation or Token Subsampling): Every local session on disk across all 6 harnesses was scanned without sampling (268,979 canonical turns, 45,039 code edits, 751.2B primary logged tokens / 759.9B incl. 8.7B Hermes background auxiliary tasks). Only manual/rubric blind grading samples from raw flagged candidates (n=100 symmetric per major arm; 100% full census on both limited-corpus arms).
- †Same-Weights Cross-Harness Proof (Qwen3.8 Flash-Next on Pi & Hermes): Running the identical open-weights model across two completely different harnesses (31,001 turns on Pi + 114,142 turns on Hermes = 228.5B logged tokens, $0 API rent) produced tightly overlapping, zero-tampering rates (6.1 [1.7–21.4] on Pi and 0.0 [0.0–9.8] on Hermes) strictly below BOTH Claude (70.5 [53.1–90.2]) and Codex (40.5 [26.0–60.9]) with zero CI overlap. Both zero corporate refusal RLHF and verification-first harness guardrails contribute — proving silent QA-faking is not an unavoidable law of LLMs.
- ‡Limited-Corpus Arm — Hermes 27B / Uncensored (208 edits, 58/58 = 100% Full Census): Every single eligible code-writing candidate was graded (58/58 = 100% full census, 0/58 real sabotage, incl. 0/3 uncensored and 0/14 interactive engineering episodes). Because this is a small-denominator cohort (208 edits) and 76% (44/58: 42 explicit + 2 continuations) were scheduled fleet-monitoring cron ticks rather than general software engineering, it is explicitly flagged as a limited-corpus arm rather than compared as a 10k-edit pool.
- §Limited-Corpus Arm — Grok 4.7 Build Fast (239 edits, 39/39 = 100% Full Census) & Grok Bot Desktop Scope Note: Every single write-turn covert candidate in the Grok Build CLI corpus was graded (39/39 = 100% full census, 0/39 sabotage, 0.0 exact in-corpus, [0.0–14.6] superpopulation CI; 103 active sessions, 890 turns, 239 code edits, 1.95B total / 0.117B novel tokens) and is explicitly flagged as a small-denominator cohort. Its elevated raw check-bypass count (171.9/1k turns) came almost entirely from benign shell || true inspection idioms rather than skipping failing tests (claiming done after tool errors was only 2.25/1k, 0 refusals, 0 downgrades). Grok Bot Desktop methodological scope note: Grok Build CLI stores full local turn, tool, diff, and token logs and is audited on full parity; Grok Bot Desktop stores full execution transcripts server-side (its local desktop cache holds only UI text replicas without tool-call, file-diff, model-ID, or token telemetry) and is therefore noted separately rather than mixed into the tool-level denominator.
- *Google Gemini Includes BOTH Antigravity Desktop App AND Antigravity CLI: Antigravity Desktop App supplies almost all code-diff turns (92 sessions, 3,724 native Gemini turns, 918 code edits, 3.28B tokens, $772, excluding 191 hosted Claude turns and frozen at the Dec 1 cutoff to prevent audit self-contamination; 100/101 = 99.0% of readable pre-cutoff candidates were blind-graded, 59.9% of the 167 write-covert pool), while agy CLI supplies 74% of logged Gemini tokens & spend (9.27B tokens across 131,529 upstream proxy calls, $4,477 in Nov 2026 incl. 15,106 HTTP 402 prepayment-depleted cutoffs and $322 in uncached safety-rater calls) plus 6 retained JSONL turns because older CLI transcripts were not retained as JSONL on disk. Total local-logged compute floor across proprietary APIs: $226,619 (+ $15,195 paid Codex overage credits). Breakdown: evidence/tables/agy_app_vs_cli_breakdown.json and evidence/tables/headline_6harness.json.
- Cache Replay vs. True Unique Tokens: Across 751.2B primary logged tokens (759.9B incl. 8.7B Hermes background auxiliary tasks), 95.6%–97.3% on Claude, Codex, and Pi-Qwen (and 80.4%–94.0% on Gemini/Grok) are prompt-cache prefix reads; total verified assistant output tokens across all 6 harnesses are 1.82B.

Complete 22-Behavior Normalized Comparison (Core 4-Family Matrix)
Every overt and covert failure mode is normalized by all three usage denominators (per 1,000 turns, per 1,000 code-writing turns, and per 1B tokens). Full CSVs: evidence/tables/behavior_rates_normalized.csv and evidence/tables/multi_engine_decomposition.csv.

| Plain-English Failure Behavior | Category | Claude ( /1k · /1k edits · /1B ) | Codex ( /1k · /1k edits · /1B ) | Gemini ( /1k · /1k edits · /1B ) | Local Qwen3.8 Pi ( /1k · /1k edits · /1B ) |
|---|---|---|---|---|---|
| Native API Refusal | Overt | 18.1 · 77.0 · 5.2 | 0.0 · 0.0 · 0.0 | 0.3 · 1.1 · 0.3 | 0.0 · 0.0 · 0.0 |
| Text Refusal | Overt | 51.1 · 217.0 · 14.6 | 8.4 · 43.1 · 1.4 | 0.3 · 1.1 · 0.3 | 36.3 · 283.4 · 6.7 |
| Silent Mid-Turn Downgrade | Overt | 4.0 · 16.8 · 1.1 | 0.4 · 1.9 · 0.1 | 0.0 · 0.0 · 0.0 | 0.03 · 0.3 · 0.01 |
| Session-Sticky Downward Redirect | Overt | 46.0 · 195.5 · 13.1 | 5.9 · 30.1 · 1.0 | 0.0 · 0.0 · 0.0 | 0.03 · 0.3 · 0.01 |
| Claiming Done After Tool Error | Overt | 46.2 · 196.2 · 13.2 | 48.4 · 248.3 · 8.2 | 2.1 · 8.7 · 2.4 | 11.2 · 87.7 · 2.1 |
| Skipping / Bypassing Checks ( --no-verify , ││ true ) | Overt | 4.4 · 18.8 · 1.3 | 15.3 · 78.4 · 2.6 | 5.9 · 24.0 · 6.7 | 13.6 · 106.3 · 2.5 |
| Weakening Tests (AST Diff) | Overt | 5.2 · 22.2 · 1.5 | 2.8 · 14.3 · 0.5 | 2.4 · 9.8 · 2.7 | 5.2 · 40.3 · 1.0 |
| Weakening Tests Right After Failure | Overt | 1.9 · 8.0 · 0.5 | 1.3 · 6.8 · 0.2 | 0.0 · 0.0 · 0.0 | 1.8 · 14.4 · 0.3 |
| Premature Hold / Invented Rule | Overt | 10.4 · 44.2 · 3.0 | 12.5 · 63.9 · 2.1 | 0.3 · 1.1 · 0.3 | 3.7 · 29.2 · 0.7 |
| Admitting Fault When Caught (Verbal Confession) | Behavioral | 3.7 · 15.8 · 1.1 | 0.3 · 1.7 · 0.1 | 0.0 · 0.0 · 0.0 | 4.5 · 34.8 · 0.8 |
| User Profane Frustration | Friction | 15.8 · 67.3 · 4.5 | 4.2 · 21.3 · 0.7 | 5.9 · 24.0 · 6.7 | 0.5 · 3.8 · 0.1 |
| User Sabotage Accusation | Friction | 14.5 · 61.5 · 4.1 | 2.8 · 14.5 · 0.5 | 6.4 · 26.1 · 7.3 | 4.3 · 33.2 · 0.8 |
| Unwired / Dead Parameter or Zeroed Weight (raw) | Covert | 19.5 · 82.7 · 5.5 | 9.8 · 50.1 · 1.6 | 27.1 · 110.0 · 30.6 | 2.5 · 19.6 · 0.5 |
| Working Logic Gutted to Stub / Constant (raw) | Covert | 0.4 · 1.8 · 0.1 | 0.1 · 0.7 · 0.0 | 0.3 · 1.1 · 0.3 | 0.03 · 0.3 · 0.01 |
| Undisclosed Scope Shrink / Allowlist Cap (raw) | Covert | 48.8 · 207.1 · 13.9 | 40.5 · 207.5 · 6.8 | 12.1 · 49.0 · 13.6 | 21.6 · 169.0 · 4.0 |
| Defying Explicit "No Mock / Real Data" Ban (raw) | Covert | 14.6 · 62.1 · 4.2 | 0.8 · 4.0 · 0.1 | 0.8 · 3.3 · 0.9 | 0.2 · 1.3 · 0.03 |
| 0-Assert Fake ("Potemkin") Test (raw) | Covert | 2.0 · 8.7 · 0.6 | 0.4 · 2.0 · 0.1 | 0.0 · 0.0 · 0.0 | 0.9 · 7.3 · 0.2 |
| Silent Error Swallowing ( except: pass ) (raw) | Covert | 41.0 · 174.0 · 11.7 | 18.8 · 96.5 · 3.2 | 11.3 · 45.8 · 12.7 | 15.5 · 120.7 · 2.8 |
| Deceptive "All Green" Claim (raw signal) | Covert | 69.2 · 294.1 · 19.7 | 51.3 · 263.1 · 8.7 | 13.9 · 56.6 · 15.8 | 44.6 · 348.4 · 8.2 |
| Blind-Calibrated Deceptive Delivery ( n=100 / arm) | Verified | — · 66.5 · — | — · 35.7 · — | — · 5.5 · — | — · 3.1 · — |
Two Hidden Traps That Break Naive Benchmarks

- Trap 1 — The Confession Asymmetry (11×): Claude verbally apologizes or admits fault 11× more often than Codex (3.7 vs 0.3 per 1k turns). Any benchmark that scans chat text misses silent failures on non-apologetic models — even though Codex bypassed verification checks 3.4× more often (15.3 vs 4.4/1k) and both claimed success after non-zero tool errors at 46.2–48.4/1k.
- Trap 2 — Silent Flagship Redirects (Session-Sticky Downgrades): When you start a main-thread conversation (excluding background subagents/sidechains, which legitimately run on cheaper helper models) on a flagship model (claude-fable-5-2, claude-fable-5-1, claude-fable-5, or claude-opus-5-5) and the backend refuses or silently switches the turn downward onto an older tier (opus-5, sonnet-5, opus-4-8, opus-4-6), that downgrade sticks for subsequent turns in the same conversation. Naive leaderboards group turns by the responding model ID, blaming the fallback while making the originating flagship look clean. Measuring main-thread turns silently routed downward reveals 70.7%–97.9% silent redirects on Anthropic's newest flagship tiers vs. 0.0% on Google Gemini, 0.0% on Hermes & Grok, and 0.03% on Pi (1 turn in 31,001).
Full Visual Evidence Suite (Figures 1–10)
Usage-Normalized Monthly Degradation (Per Turn & Per Billion Tokens)

Chronological Model Leaderboard (Newest → Oldest) & Silent Redirect Leakage

Month-over-Month Model Breakdown (Within-Model Drift vs. Model-Mix Shifts)

Blind-Calibrated Silent Code Sabotage & Severity Breakdown

Cumulative Local-Telemetry Spend, Paid Overage Credits, & Independent Git Ground Truth

Real-World Architecture Zeroing & Formal Accountability Appendix
- Multi-Scale Architecture Zeroing Case Study & Anonymized Casebook: evidence/sanitized_casebook.json documents how coding agents silently defaulted neural input tensors to zeros (leaving weights frozen at exp_avg_sq == 0.0, cos = 0.99999994 to initialization), collapsed directional features to radial scalars, wrote 0-assert fake tests, and declared "ALL PASSED" — causing months of debugging because the data had not changed.
- Formal Accountability Appendix: Readers interested in mapping verified agent failures onto objective employee-negligence and commercial-warranty standards can consult the standalone appendix docs/ACCOUNTABILITY_AND_TORT_STANDARDS.md (analytical benchmark framework, not legal advice).
Repository Structure
NERFAudit/
├── .github/workflows/ci.yml # Python 3.10-3.12 CI: pytest tests/, quickstart, scan-head (0 alerts), privacy-check (0 hits)
├── action.yml # Reusable composite GitHub Action (`uses: nanogenomic/NERFAudit@v1`)
├── nerf_audit/
│ ├── audit.py # Symmetric local extractor (Claude, Codex, AGY/Gemini, Pi, Hermes, Grok, Grok Bot) + thread-role stratification
│ ├── calibrate.py # Recall-calibrated prevalence & 95% Wilson confidence intervals
│ ├── cli.py # CLI: audit, plot, report, export-telemetry, install-hooks, hook-edit, hook-stop, scan-staged, probe-mutation, watch-redirect, scan-file, scan-diff, scan-git, scan-head, blind-pack, calibrate, credits, privacy-check
│ ├── community.py # Fail-closed anonymized telemetry exporter (`nerfaudit_community_telemetry.v1`)
│ ├── covert_detectors.py # AST + diff + intent-vs-action covert code-sabotage detectors
│ ├── detectors.py # Overt refusal, silent-downgrade, & test-weakening detectors
│ ├── guard.py # Zero-token AST edit gate, .nerfaudit-rules.json constraint locks, tool-ledger stop gate, staged git scanner & hook installer
│ ├── plot.py # Self-service dark-mode scorecard + monthly trajectory renderer (PNG + SVG)
│ ├── privacy.py # Fail-closed zero-leak privacy scanner before sharing results
│ ├── report.py # Offline self-contained dark-slate HTML5 scorecard generator (inline SVG, zero CDN)
│ ├── runtime_probes.py # Domain- & optimizer-agnostic runtime probes (mutation-kill, sys.settrace coverage, non-degeneracy, parameter liveness)
│ └── spend.py # API-equivalent compute estimator, redirect/refusal cost-delta accounting, & per-account credit ledger
├── docs/
│ ├── REALTIME_GUARDRAILS_SPEC.md # 6-layer zero-token real-time guardrail & runtime probe specification
│ ├── COMMUNITY_OBSERVATORY.md # Anonymized telemetry schema & contributor parser guide
│ └── ACCOUNTABILITY_AND_TORT_STANDARDS.md # Formal accountability benchmark appendix
├── examples/
│ └── quickstart_demo.py # 1-second zero-setup synthetic demonstration (audit + live AST guard + offline HTML report)
├── skills/
│ ├── nerf-audit/SKILL.md # Portable multi-harness forensic audit skill
│ └── nerf-audit-guard/SKILL.md # Portable zero-token real-time guardrail skill
├── tests/
│ ├── test_detectors.py # Unmocked detector, parser, & CLI tests
│ ├── test_guard_and_probes.py # Unmocked AST guard, hooks, redirect billing, & optimizer-agnostic probe tests
│ └── test_report_and_community.py # Unmocked offline HTML scorecard, telemetry privacy, & action.yml tests
├── evidence/
│ ├── figures/ # 10 publication & X-optimized PNG (300 DPI) + SVG charts (fig1-fig10)
│ ├── tables/ # 6-harness headline JSON, multi-engine CSV, 22-behavior CSV, monthly/chronological/Model×Month CSVs
│ ├── sanitized_casebook.json
│ └── X_POSTS.md # Long-form X post, <=280-char launch thread, & standalone posts
├── CONTRIBUTING.md
├── CITATION.cff
├── LICENSE
└── pyproject.toml
Citation
If you use NERFAudit or its forensic detectors in your research, audits, or engineering benchmarks, please cite CITATION.cff.