Skip to main content

Verifiable state continuity and provenance infrastructure for autonomous AI agents

Project description

🛡️ HDAR Protocol

Verifiable State Continuity & Provenance Infrastructure for Autonomous AI Agents

License: MIT Python: 3.9+ Build Status Awwwards Nominee GitHub Pages


⚡ The Trust Gap in Agentic Workflows

As autonomous agents transition from suggestions to active execution (modifying codebases, running unit tests, deploying containerized infrastructure), they move across distinct sandbox boundaries (Local Desktop $\rightarrow$ GitHub Actions $\rightarrow$ Isolated Docker Sandboxes $\rightarrow$ Cloud VMs).

Without HDAR, organizations cannot prove:

  • Identity: Which agent or platform host produced a given state change?
  • Integrity: Was the workspace tampered with during transport between hosts?
  • Compliance: Did the execution occur in a secure, attested environment?

HDAR (High-Density Agent Recovery) solves this by packaging workspace state, continuation points, and cryptographic signatures into verifiable Agent Capsules that chain across host transitions.


✨ Features & Moats

  • 🔒 Ed25519 Cryptographic Signatures: Every capsule manifest is signed by the workspace owner, preventing unauthorized state modification and spoofing.
  • 📦 Content-Addressed Blocks: Deduplicated file storage (blocks/<sha256[:2]>/<sha256>) ensuring fast, bandwidth-efficient state transfers.
  • 🔗 Cryptographic Lineage Chains: Successor epochs reference parent manifest hashes forming a verifiably immutable Merkle chain ($E_1 \rightarrow E_2 \rightarrow E_3$).
  • 📋 Clipboard Teleportation: Base64 encode and copy entire signed capsules to the system clipboard for zero-latency transport between environments.
  • ⚡ Two-Pass Consensus & Trajectory OCR: Fully integrated with the SpeedOCR engine to harvest rendered UI states with >98% line recall.

🚀 Quick Start: Clipboard Teleportation

Experience the power of instant workspace transport:

1. Seal & Copy Workspace (Machine A)

python3 src/hdar_cli.py seal --workspace src --to-clipboard

Result: Capsule sealed, signed, and copied to system clipboard!

2. Restore Workspace Instantly (Machine B)

python3 src/hdar_cli.py restore --from-clipboard --target /tmp/teleport_target

Result: Byte-exact workspace restored instantly from your clipboard.

3. Verify Security Predicates

python3 src/hdar_cli.py verify --capsule /tmp/enterprise_test.hdar.tar.gz

🧮 Theoretical Bounds & Metrics

Character Error Rate (CER)

$$\text{CER} = \frac{S + D + I}{N} = \frac{\sum_{i=1}^{M} \operatorname{lev}(g_i, r_i)}{\sum_{i=1}^{M} |g_i|}$$

Capture Miss Probability ($P_{\text{miss}}$)

$$P_{\text{miss}}(T, f_{\text{effective}}) = \max\left(0, 1 - f_{\text{effective}} \cdot T\right)$$

Merkle Workspace Hashing

$$\mathcal{H}_{\text{root}} = \operatorname{SHA256}\left( \text{CanonicalJSON}\left( { \text{rel_path}_i : \operatorname{SHA256}(\text{Block}i) }{i=1}^K \right) \right)$$


🌐 Live Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hdar_canonical-1.0.0.tar.gz (38.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hdar_canonical-1.0.0-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file hdar_canonical-1.0.0.tar.gz.

File metadata

  • Download URL: hdar_canonical-1.0.0.tar.gz
  • Upload date:
  • Size: 38.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for hdar_canonical-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6b504349fa4f718a727dc769a06f2d1ccdad8bc3268c36ea328e0f4e00520603
MD5 580b711bae6b805add7cb32bad7d62f5
BLAKE2b-256 f3c8c3aa01da4fb646b4b822518090bb3c197bf574df5d31e0f612778553ad74

See more details on using hashes here.

File details

Details for the file hdar_canonical-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: hdar_canonical-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for hdar_canonical-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce77935b4e2a1afdf49c3efc39054ec6d9a66158ba28d7a31092fe1a811189b5
MD5 68cf1e419335f6e78b3d35d7131e115a
BLAKE2b-256 c78d3a84a1d16d2cf071420044368df8af09210c3e062d7b6764c37c8c102c0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page