Back to browse
GitHub Repository

Cryptographic accountability ledger for AI agents

2 starsPython

GuardClaw – cryptographically verifiable execution logs for AI agents

by viruswami5511·Mar 4, 2026·1 point·0 comments

AI Analysis

●●●BangerWizardryZero to One

Cryptographically chained audit logs for AI agents; offline verification means no SaaS lockdown.

Strengths
  • Zero-trust architecture: plain JSONL file with Ed25519 signatures, verifiable without trusting original runtime
  • Solves real AI liability gap — trading bots, infrastructure automation need provable audit trails
  • Minimal spec (RFC 8785 + SHA256 + Ed25519) is language-neutral and verifiable by anyone with the public key
Weaknesses
  • Narrow audience: only matters if you're deploying autonomous agents at scale
  • No standard adoption yet — value accrues if the spec becomes industry-wide standard
Category
Target Audience

AI agent developers, infrastructure engineers, compliance teams running autonomous systems

Post Description

Logs tell you what a system claims happened. GuardClaw proves what was actually recorded.

If an autonomous agent executes trades, runs shell commands, or modifies infrastructure — how do you prove what it actually did? Imagine a trading bot loses $2M — and the only evidence is logs that can be edited.

Traditional logs are mutable. Append-only files aren’t cryptographically linked. Database rows can be edited.

GuardClaw implements GEF-SPEC-1.0 (Guard Execution Format) — a minimal protocol combining:

• RFC 8785 canonicalized envelopes • SHA-256 causal hash chaining • Ed25519 per-entry signatures • Offline verification via CLI

The ledger is a plain JSONL file. No server required.

pip install guardclaw guardclaw verify your_ledger.jsonl

Anyone with the public key can verify the full history — no access to the original runtime required.

The demo intentionally tampers with a signed entry to show deterministic failure:

[2] execution SIG:FAIL CHAIN:OK [3] execution SIG:OK CHAIN:BREAK Violations: 2 — TAMPERED

You can also edit the JSONL file yourself and re-run verification.

Benchmark (1M entries, single-threaded): ~762 writes/sec ~9k full verifies/sec ~39MB RAM for streaming verification

Limitation: if the signing key is compromised, past history can be rewritten. Key management is intentionally out of scope for the protocol.

Would appreciate feedback on the threat model and failure cases.

PyPI: https://pypi.org/project/guardclaw Spec: https://github.com/viruswami5511/guardclaw/blob/master/SPEC.... Demo: https://github.com/viruswami5511/guardclaw-demo

Similar Projects

Security●●●Banger

AIP – A Cryptographic Identity Protocol for Autonomous AI Agents

OAuth + TLS for AI agents with Ed25519 identity and global kill switch before agents act.

Zero to OneBig BrainBold Bet
theaniketgiri
113mo ago