amaru
Memory + attestation, Cardano-anchored
Cardano-anchored governance receipt minting with Shor-9 encoded provenance. Every agent memory operation emits a DSSE-wrapped SHA-256 receipt, chained and optionally checkpointed to the Cardano L1. Audit your AI's memory — cryptographically.
What amaru is
amaru is a memory attestation runtime for AI agents. It wraps every memory read and write in a cryptographic receipt chain, optionally anchoring checkpoint hashes to the Cardano Layer 1 blockchain for tamper-evident provenance. The name comes from the Andean cosmic serpent — an ouroboros that loops, converges, and preserves. amaru is built on three interlocking primitives:
Governance Receipts
COSE_Sign1-wrapped receipts (RFC 9052) minted per memory operation. Each receipt carries a Λ score, Shor-9 encoded provenance hash, Lamport timestamp, and optional Cardano Tx reference. Source: amaru README.
7-Chakra Scheduler
A single-thread serpentine pipeline: ASCEND (propose) then DESCEND (commit). No branching mid-tick. The scheduler fires all 7 chakras sequentially — each emits a receipt trace entry. Source: amaru_scheduler.py:8.
Shor-9 Provenance
Provenance hashes are Shor-9-qubit-encoded before Cardano anchoring, providing single-qubit error correction on the immutable receipt chain. Mathematical basis: Shor 1995.
Cardano L1 Anchor
Checkpoint hashes are anchored to the Cardano blockchain as transaction metadata — hash anchoring only, no new token. Provides public, permissionless auditability for any downstream verifier.
7-Chakra Serpentine Scheduler
The scheduler (src/amaru_scheduler.py)
fires 7 named chakras in fixed serpentine order. Each chakra has its own kernel (≤10 SLOC).
The ASCEND list at line 8 defines the sequence:
["KALLPA", "YACHAY", "RIMAY", "YUYAY", "RUWAY", "NAWI", "HATUN"].
Below are all seven chakras, with source citations to the exact function definition.
Energy-budget dispatcher. Uses Butler-Volmer electrochemical kinetics (NINA) to score each compute path — CPU, GPU, QUANTIZED, MoE — and route to the minimum-cost option. Seeds all downstream randomness via a deterministic RNG.
Retrieve-and-codex kernel. Scores feature store (pirwa) and codex store with cosine similarity via NumPy, returning top-k features and top-8 codex priors to feed the proposal stage. No external API call — fully deterministic.
Proposal kernel. Distilled from vllm's multinomial sampler — blends retrieved priors with feature logits, applies softmax, and draws a discrete action via a seeded torch generator. Produces the candidate action for downstream critique.
9-axis critique gate. Scores the proposal across axes: cleanliness, horizon, resonance, frustum, gaussClosure, invariance, moralGrounding, ontologicalGrounding, measurabilityHonesty — with elevated thresholds on the two moral axes. Gate blocks commit if any axis fails.
Commit kernel. If the gate passed (YUYAY), hashes the merged
(state, proposal, critic) triple with SHA-256, embeds the
receipt in the new state under __receipt, and
appends it to the yawar bus. If gate failed, state is frozen —
no-op commit.
Toolcall boundary kernel. Ranks available tools by intent string matching, selects the highest-scored tool, constructs a typed argument map, and dispatches. HATUN (crown) must authorise which external reads NAWI may open before the call proceeds.
Crown sovereignty kernel. Chains SHA-256 over (prev_hash, state, proposal, critic_result, timestamp) — the continuum hash. Checks all 10 HUKLLA tripwires (T01–T10). Any tripwire firing freezes allegiance and halts the chain. Hash seeds the next tick's energy budget via KALLPA.
Serpentine firing order — ASCEND then crown loops back
Memory Attestation Flow
The attestation pipeline is deterministic and reproducible. The DSSE (Dead Simple Signing Envelope) PAE v1 format wraps receipts before Cardano anchoring. A caller-supplied ISO-8601 timestamp enables 5× byte-identical replay for any audit.
Replay guarantee: caller supplies an ISO-8601 timestamp string; all downstream SHA-256 inputs are deterministic. Any receipt can be replayed 5× and produce byte-identical output for audit verification. Source: chakra_7_crown/kernel.py:5.
Cardano Anchoring
Cardano is the L1 of choice for hash anchoring — this is not a token, smart contract, or new blockchain. amaru writes a checkpoint hash as transaction metadata on the Cardano public chain. Any party with a Cardano node can verify the hash against the local receipt chain.
What is anchored
The SHA-256 continuum hash output of HATUN (crown chakra). Written as Cardano transaction metadata — a standard, low-cost on-chain operation requiring no custom smart contract. See Cardano transaction metadata docs.
Checkpoint cadence
Anchoring is optional and periodic — not every tick. A typical deployment checkpoints every N receipts (configurable). Between checkpoints, the local SHA-256 chain is auditable without any on-chain interaction.
Why Cardano
Cardano's eUTxO model provides deterministic Tx fees and native metadata support without EVM execution overhead. See cardano.org for the base protocol. amaru uses no ADA-specific token or smart contract — only the metadata slot.
Verification path
A verifier fetches the Cardano Tx by hash, reads metadata field 674 (community standard), and compares against the local receipt chain's HATUN hash. No trust in SZL Holdings required — the chain speaks for itself.
Honest disclosure: amaru does not issue, sell, or hold any cryptocurrency or token. Cardano anchoring requires standard ADA transaction fees (fractions of a cent per checkpoint at current rates). SZL Holdings has no financial interest in ADA or Cardano ecosystem tokens.
Live Receipt Chain
The live amaru-memory-attestation Space runs the full 7-chakra scheduler in your browser. Submit a memory event, view the DSSE-wrapped receipt JSON, and inspect the growing Plotly receipt chain graph on the "View Chain" tab.
Can't load iframe? See static screenshot
amaru vs Memory Architectures
This table compares amaru against three mainstream agent-memory approaches on cryptographic auditability dimensions. Sources cited in table footer.
| Feature | LangChain Memory | OpenAI Threads | Anthropic MCP | amaru |
|---|---|---|---|---|
| Cryptographic receipt per memory op | ✗ | ✗ | ~ partial (tool-call provenance only) | ✓ SHA-256 per tick |
| 7-step audit checkpoint pipeline | ✗ | ✗ | ✗ | ✓ KALLPA→HATUN |
| L1 blockchain anchor (hash only) | ✗ | ✗ | ✗ | ✓ Cardano metadata |
| Plotly receipt chain visualization (built-in) | ✗ | ✗ | ✗ | ✓ live Space |
| 5× byte-identical replay | ✗ | ✗ | ✗ | ✓ timestamp-seeded |
| Open source (Apache 2.0) | ✓ | ✗ proprietary | ~ spec open, impl mixed | ✓ |
| Works with any LLM / agent runtime | ✓ | ✗ OpenAI only | ✓ | ✓ |
Sources: LangChain Memory docs · OpenAI Threads API · Anthropic MCP Specification · amaru source (szl-holdings/amaru)
What amaru is NOT
Precision matters. amaru has a specific, bounded scope. These are explicit non-claims, in alignment with SZL Holdings Doctrine v6.
Not a token
amaru does not issue, mint, sell, or require any cryptocurrency token. Cardano anchoring uses only standard ADA metadata transactions. No financial instrument is created.
Not a blockchain L1
amaru is application software that uses Cardano. It does not operate its own consensus, node network, or distributed ledger. It is a receipt-minting library.
Not custodial
SZL Holdings holds no user keys, funds, or data. All receipt chains run in the operator's environment. Cardano transactions are signed by the operator's own keys.
Not a vector database
amaru provides attestation infrastructure. It does not replace or replicate vector search, semantic memory, or embedding stores. It layers on top of them — orthogonal concerns.
Not a complete agent framework
amaru is one component in a larger stack. It handles memory attestation, not LLM inference, routing, or tool orchestration — see the ouroboros thesis for the full picture.
Not production-hardened alone
amaru is research-grade software (Apache 2.0). Production deployments should add monitoring, key management, and their own security review. See SECURITY.md.
Citations
- [1] Cardano Protocol — cardano.org/what-is-ada/. L1 blockchain used for hash anchoring only. No endorsement implied.
- [2] Cardano Transaction Metadata — docs.cardano.org/developer-resources/transaction-metadata/. Used for checkpoint hash storage in field 674.
- [3] DSSE — Dead Simple Signing Envelope — Provenance-aware envelope format, PAE v1. github.com/secure-systems-lab/dsse.
- [4] Shor, P.W. (1995) — "Scheme for reducing decoherence in quantum computer memory." Phys. Rev. A 52, R2493. DOI: 10.1103/PhysRevA.52.R2493. Shor-9 qubit encoding used for provenance hashes.
- [5] Lamport, L. (1978) — "Time, clocks, and the ordering of events in a distributed system." CACM 21(7). DOI: 10.1145/359545.359563. Lamport timestamps used for causal ordering across distributed anchor nodes.
- [6] amaru Zenodo DOI (v1) — Lutar, S.P. (2026). amaru — Cardano-anchored governance receipt minting. doi.org/10.5281/zenodo.20434276.
- [7] Ouroboros Thesis v18.0 — Lutar, S.P. (2026). SZL Holdings v18.0 Master Thesis. DOI: 10.5281/zenodo.20434276. Mathematical foundations for amaru's convergence proofs.
- [8] RFC 9052 — COSE Structures and Serialization — rfc-editor.org/rfc/rfc9052. COSE_Sign1 used for governance receipt envelope format.
- [9] LangChain Memory concepts — python.langchain.com/docs/concepts/memory/. Referenced for comparison table.
- [10] OpenAI Threads API reference — platform.openai.com/docs/api-reference/threads. Referenced for comparison table.
- [11] Anthropic MCP Specification — modelcontextprotocol.io/specification. Referenced for comparison table.