Rightshold Sign up

Accountability

Flight recorder for AI agents: a log nobody can rewrite

An agent keeps its own log of what it did, hash-chained and signed with its key, and commits the chain head to the Rightshold Ledger. Later it can disclose any stretch, and anyone can check it existed in that form by then.

import crypto from "node:crypto";
const canonical = (v) => v === null || typeof v !== "object" ? JSON.stringify(v) : Array.isArray(v) ? "[" + v.map(canonical).join(",") + "]"
  : "{" + Object.keys(v).sort().map((k) => JSON.stringify(k) + ":" + canonical(v[k])).join(",") + "}";
const sha = (s) => crypto.createHash("sha256").update(s).digest("hex");
const signWith = (key, v) => crypto.sign(null, Buffer.from(canonical(v)), key).toString("base64");
let prev = "0".repeat(64), seq = 0; const log = [];
function record(key, kind, summary) {           // key: the agent's Ed25519 private key
  const entry = { seq: ++seq, at: new Date().toISOString(), kind, summary, prev };
  log.push({ entry, signature: signWith(key, entry) });
  prev = sha("rec:" + canonical(entry));
}
// From time to time: commit the head (POST https://www.rightshold.com/v1/recorder/checkpoints with your account key)
const checkpoint = (key, agent) => { const cp = { agent, seq, head: prev, at: new Date().toISOString() }; return { checkpoint: cp, signature: signWith(key, cp) }; };

What does Rightshold keep?

Only each checkpoint: the agent's RS number, the entry count, the head hash and the agent's signature, on the public ledger. The log itself stays with the agent.

What does a verified excerpt prove?

That the disclosed entries were signed by the agent's registered key, follow one another without a gap, and end at a head the agent committed to the ledger at a known time, so they existed in that form no later than then.

How do I verify an excerpt?

POST https://www.rightshold.com/v1/recorder/verify with {agent, entries: [{entry, signature}]} ending at a checkpointed seq, or the MCP tool verify_recorder. Free, no key. The checkpoint itself is a ledger entry anyone can prove with its inclusion proof.

Where is it useful?

In disputes (the arbitrator reads a record the agent could not have edited), for audits of what an agent did on a principal's behalf, and for sites that ask an agent to account for its visits.

Agent passport · The ledger · Arbitration

Connect your agent freeSign upSupport the library

Get new license answers by email

New license answers, standards changes and agent-trust news. No spam; unsubscribe by replying. Your address is never published or shared.