_audit-export

_audit-export is an agent for coding agents from samibs/skillfoundry. It costs 0 tokens per session (1,367 once invoked), scanned A, original, MIT.

An audit record system that saves feature commits and quality decisions in an append-only log, with optional forwarding to an external webhook.

In plain words
What is it for?
Use it to record implementation results, test outcomes, security checks, overrides, and gate decisions for later review.
Why use it?
Git history and repository files can be rewritten, deleted, or lost during migrations, so important decisions may otherwise disappear.

Agent

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.

agentmods
npx agentmods add agents/samibs/skillfoundry/_audit-export
Clone the repo
git clone --depth 1 https://github.com/samibs/skillfoundry

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-export

README.md
[![agentmods](https://agentmods.dev/badge/agents/samibs/skillfoundry/_audit-export.svg)](https://agentmods.dev/agents/samibs/skillfoundry/_audit-export)
Your own site
<a href="https://agentmods.dev/agents/samibs/skillfoundry/_audit-export"><img src="https://agentmods.dev/badge/agents/samibs/skillfoundry/_audit-export.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00000 $0.01367
Opus 5 $0.00000 $0.00683
Sonnet 5 $0.00000 $0.00273
Haiku 4.5 $0.00000 $0.00137

Measured yesterday against content hash 8a1539e05660, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

_audit-export scanned grade A with 1 finding 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 yesterday.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST "$WEBHOOK_URL" \
agents/_audit-export.md · 189 lines

How it starts

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

Audit Export Protocol

CORE FRAMEWORK MODULE Writes structured audit entries after each feature commit and gate decision. Entries are append-only. Optional webhook exports to external systems. Referenced by: feature-lifecycle (Stage 5), forge (Phase 6), gate-keeper, hotfix


Purpose

Override logs in logs/overrides.md and evaluator verdicts in commit bodies live inside the git repo and can be destroyed by force-push, branch deletion, or repo migration. This protocol writes a parallel logs/audit-trail.jsonl (newline-delimited JSON, append-only) and optionally POSTs entries to a webhook for external durability.


Entry Types

feature_commit

Written by feature-lifecycle at Stage 5 completion:

{
  "ts": "ISO8601",
  "type": "feature_commit",
  "story_id": "STORY-001",
  "feature": "JWT login flow",
  "commit_hash": "abc1234",
  "commit_message": "feat(auth): JWT login flow [STORY-001]",
  "execution_mode": "REAL",
  "stages": {
    "implement": "done",
    "testloop": {"status": "done", "iterations": 2, "tests_passed": 89, "tests_failed": 0, "coverage_lines": 91.2},
    "semgrep": {"status": "done", "hard_blocks": 0, "warnings": 1},
    "challenge": {"status": "done", "cycles": 2, "final_verdict": "✅"},
    "document": "done",
    "commit": "done"
  },
  "overrides_used": 0,
  "files_committed": 7,
  "complexity_tier": "MEDIUM"
}

override_decision

Written by any agent when --override is used:

{
  "ts": "ISO8601",
  "type": "override_decision",
  "stage": "testloop",
  "reason": "accepting 1 flaky E2E test — tracked in STORY-045",
  "commit_context": "abc1234",
  "user": "git-config-user-name",
  "verdict_at_override": "🔴"
}

gate_blocked

Written by gate-keeper when a gate is locked (even if later resolved):

{
  "ts": "ISO8601",
  "type": "gate_blocked",
  "stage": "STORY-001",
  "violations": ["Missing unit tests in auth.service.ts", "Security headers not configured"],
  "resolution": "auto-fixed | manually-fixed | overridden | unresolved",
  "resolved_at": "ISO8601"
}

Read the full file on GitHub · 189 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. yesterday First seen · 189 lines · 0 tokens per session scan A 8a1539e05660

Subscribe to this mod's changes

_audit-export is an agent published in the GitHub repository samibs/skillfoundry (12 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,367 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.