
ai-audit-trail
io.github.sundsoffice-tech由 GitHub 账号 sundsoffice-tech 发布v0.4.7更新于 Oct 27, 2026
Tamper-evident audit trails for AI agents — Ed25519-signed, hash-chained, EU AI Act ready.
发布方自己的服务:audit.domains - Domain Valuation
概览
本地 Python MCP 服务器,提供 ai-audit-trail:为 AI 智能体的决策与工具调用生成 Ed25519 签名、哈希链式防篡改审计凭证。
- 可以做什么
- 为 AI 请求创建并封存决策凭证,记录输入、输出、检查结果、执行动作与模型来源
- 通过签名、自哈希与哈希链校验凭证链和工具调用链的防篡改状态
- 对个人数据做脱敏或哈希,按租户加密字段,并可销毁密钥实现擦除
- 将凭证映射到 ISO 42001、NIST AI RMF 与 EU AI Act 控制项,并导出可离线核验的签名证据包
- 用行为契约、追踪图、来源链、SPRT 认证与漂移检测监控智能体行为
- 以 Merkle 树批量封存凭证、管理链纪元,并输出 OpenTelemetry 指标
- 适用场景
- 适合运行 LLM 智能体或流水线、需要向审计方证明 AI 做了什么、为何如此、记录未被篡改的团队,尤其是需要 EU AI Act、ISO 42001 或 NIST AI RMF 证据的场景。也适合希望自托管、可离线核验审计记录而非依赖 SaaS 日志平台的情况。
- 运行要求
- 作为本地 stdio 进程运行,通过 PyPI 包 ai-audit-trail 提供的 ai-audit-mcp 命令启动。需要 Python 3.11 或更高版本;未声明任何外部服务、账号、API 密钥或环境变量。可选扩展提供 Redis 持久化与 OpenTelemetry。生产环境通常需要持久化的 Ed25519 签名密钥,一般通过 KMS 或 Vault 密钥提供器注入。
安装
在 SourceWeft 中
- 打开 控制台中的 ai-audit-trail,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ai-audit-trail
[PyPI version] [Python] [License: MIT] [CI] [Downloads] [Tests] [mypy] [Ruff] [OpenSSF Scorecard]
Prove what your AI did, why, and that nobody changed the record.
Tamper-evident Decision Receipts with Ed25519 signatures, SHA-256 hash-chains, and formal compliance mappings. No blockchain, no SaaS, no lock-in. Self-hosted, offline-verifiable, Python-native.
Why this exists
The EU AI Act becomes mandatory for high-risk AI systems in August 2026. It requires tamper-evident logs proving every decision was made correctly (Art. 12). Most teams are solving this with normal logging — which is neither tamper-evident nor legally defensible in an audit.
ai-audit-trail closes this gap with cryptographic receipts that any auditor can verify offline, without accessing your systems. Same principle as a blockchain — without the blockchain overhead, the SaaS dependency, or the vendor lock-in.
Who is this for
- Regulated AI teams (FinTech, HealthTech, LegalTech, InsurTech) who must prove compliance
- Enterprise platform teams deploying LLM agents with tool access
- Security and compliance officers who need audit-ready evidence packages
- Developers who want
pip installand 3 lines of code, not a platform migration
What this library provides
ai-audit-trail provides the technical building blocks that support EU AI Act, ISO 42001, and NIST AI RMF compliance. It does not, by itself, guarantee regulatory compliance — compliance is an organizational obligation that extends beyond any single software component. See our Shared Responsibility Model below.
Installation
Requirements: Python 3.11+ | No external services required | Works air-gapped
Quickstart
Architecture Overview
Core Features
Decision Receipts (Ed25519 + SHA-256 + Hash-Chain)
Every AI pipeline decision produces a Decision Receipt — a cryptographically sealed, hash-chained record:
Three-stage verification (< 0.1 ms per receipt):
PII Redaction (GDPR Art. 17)
Personal data is stripped before hashing — the audit log never contains raw PII.
Crypto-Shredding (GDPR Right to Erasure)
Encrypt PII fields with per-tenant AES-256-GCM keys. Destroy the key = data permanently unreadable, hash-chain intact.
Compliance & Governance
ISO 42001 / NIST AI RMF Crosswalk
Maps receipt data directly to recognized management controls with evidence pointers.
ISO 42001 Controls: A.6.2.8 (Logging), A.7.5 (Provenance), A.6.2.6 (Performance), A.8.4 (Output), A.5.3 (Risk) NIST AI RMF: GOVERN, MAP, MEASURE, MANAGE — with quantitative coverage scores
EU AI Act Compliance Reports
Covers Art. 9 (Risk), Art. 12 (Record-Keeping), Art. 13 (Transparency), Art. 17 (Quality), Art. 18 (Logging).
Evidence Package Export (Offline Verification)
Self-contained signed ZIP for external auditors — no system access required.
Continuous Certification (SPRT)
Sequential Probability Ratio Test — live compliance status per tenant.
Drift Detection (Jensen-Shannon Divergence)
Detects behavioral shifts in real-time — pure Python, no scipy required.
Agentic AI Audit (World-First)
Agent Behavioral Contracts
Formal (p, delta, k)-Satisfaction with Reliability Index Theta — transforms EU AI Act requirements into testable specifications.
Cryptographic Tool-Call Receipts
Every agent API call Ed25519-signed — no existing framework provides this.
Multi-Agent Trace-Graphs (DAG)
Audit delegation, handoff, and parallel orchestration — not just linear logs.
Epistemische Integritat / Unforgeable Provenance
Track WHERE every piece of information came from — proves a decision was not influenced by prompt injection.
High-Throughput Architecture
Merkle-Tree Batch Sealing (RFC 6962)
Chain-of-Roots instead of chain-of-receipts — O(log N) verification per batch.
Chain Epochs / Rollover
Prevent unbounded chain growth. Old epochs can be archived or deleted.
Ring-Buffer with Backpressure
Bounded buffer for high-throughput ingestion — fail-closed, no silent data loss.
Storage Backend ABCs
Pluggable persistence — bring your own database.
OpenTelemetry Instrumentation
Native metrics for SRE dashboards — graceful no-op without OTel SDK.
Metrics: ai_audit.seal_duration_seconds, ai_audit.append_total, ai_audit.redis_fallback_total, ai_audit.chain_break_total, ai_audit.drift_score, ai_audit.buffer_size, ai_audit.epoch_sealed_total
Production Setup
Persistent Signing Key
KMS Integration
Redis Persistence
Shared Responsibility Model
Examples
See the examples/ directory:
- end_to_end_audit.py — Full lifecycle: receipts, verification, crosswalk, evidence export
- fastapi_middleware.py — FastAPI audit middleware pattern
- langchain_callback.py — LangChain callback handler
Performance
Run benchmarks: pytest tests/test_benchmark.py -v -s
Project Stats
Security
See SECURITY.md for the full threat model, vulnerability reporting process, and supported versions.
See CONTRIBUTING.md for architecture invariants, the shared responsibility model, and contribution guidelines.
License
MIT — free for commercial use.
Created and maintained by
S&S Connect — Building trust infrastructure for autonomous AI systems.
- Maintainer: Fabrice (@sundsoffice-tech)
- Repository: github.com/sundsoffice-tech/ai-audit-trail
- PyPI: pypi.org/project/ai-audit-trail
- Issues & Feedback: GitHub Issues
If you use ai-audit-trail in production or research, we'd love to hear about it.
来源:README.md,提交 fd04629
工具
0版本历史
1- v0.4.7最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Audit 集成
audit.domains - Domain Valuation
domains.audit官方发布者
确定性的域名估值服务:提供公允价值区间、真实可比成交记录、可用性查询,以及经 DNS 验证的待售域名市场。
Revenue Agent — OpenAPI Audit & Change Detection
news.prh官方发布者
一个远程 MCP 端点,用于审计 OpenAPI 规范并检测 API 变更,每次分析通过 Base 上的 x402 收取 0.10 USDC。

SEO Audit & Broken Link Checker
由 GitHub 账号 prometheus-maker 发布
由 Apify 托管的 MCP 服务器,用于审计网站页面的 SEO 元数据并查找失效链接和图片,返回每页评分。

FinePrint AI Legal Risk & Contract Audit MCP Server
由 GitHub 账号 RitualDev-Lab 发布
本地内存中运行的合同风险扫描器,为编码代理评估法律合同、NDA 与租约风险并生成修订建议。

Mcp Supply Audit
由 GitHub 账号 kimmawla 发布
把 MCP 服务器当作供应链产物来审计:注册表条目、PyPI/npm 包、客户端配置与工具定义,全部为只读静态检查。