
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 套件、用戶端設定與工具定義,全為唯讀靜態檢查。