Capsule Protocol v1.0

Every Decision.
Cryptographically Sealed. Forever.

Every AI decision creates an immutable record with dual cryptographic signatures. Tamper-evident, post-quantum ready, legally defensible.You can prove exactly what your AI decided and why.

6
Sections per capsule
48
Conformance vectors
SHA3-256
Hash algorithm
PQ
Post-quantum ready
Explore the Protocol
Anatomy of a Capsule

6 Sections. Complete Provenance.

Every capsule captures the full lifecycle of an AI decision, from trigger to outcome.

Trigger

Section 1/6

What initiated this action? Captures the event source, timestamp, and originating entity.

trigger: { type: "user_query", source: "workspace_chat", timestamp: "2026-04-06T14:32:01Z" }

Tamper-Evident Hash Chain

Each capsule references the previous capsule's SHA3-256 hash. Modifying any record breaks every subsequent record.

cap_001
vault_search
a3f8c1...e29b04
cap_002
agent_decision
7d2e5a...b1f093
cap_003
tool_execution
f19c84...d4a7e2

Dual Cryptographic Signatures

Every capsule is signed twice: once classical, once post-quantum. If either algorithm is broken, the other still holds.

Ed25519

Classical
RFC 8032 compliant
64-byte signatures
Proven since 2011
Fast verification

ML-DSA-65

Post-Quantum
FIPS 204 standard
Lattice-based
Quantum-resistant
NIST Level 3
Multi-Language

One Protocol. Every Language.

The Capsule Protocol is language-agnostic. Seal a capsule in Python, verify it in Rust. The format is interoperable across all implementations.

🐍
Python
Shipping
📘
TypeScript
Shipping
🔷
Go
Planned
🦀
Rust
Planned
seal_capsule.py
# Create and seal a capsule
from qp_capsule import Capsule, seal
capsule = Capsule(
trigger=TriggerSection(
type="user_query",
source="workspace_chat",
),
reasoning=ReasoningSection(
strategy="retrieval_augmented",
confidence=0.94,
),
)
sealed = seal(capsule, key_pair)
# SHA3-256 hash + Ed25519 + ML-DSA-65

Prove What
Your AI Decided.

Every action, every decision, every outcome. Cryptographically sealed and tamper-evident. For auditors, regulators, and your own peace of mind.

FIPS 202 (SHA3) FIPS 204 (ML-DSA) RFC 8032 (Ed25519)