autogen icon indicating copy to clipboard operation
autogen copied to clipboard

Feature: Cryptographic action receipts (AAR) for multi-agent conversation provenance

Open Cyberweasel777 opened this issue 8 months ago • 6 comments

Cryptographic Action Receipts for Multi-Agent Conversations

In AutoGen's multi-agent conversation patterns, agents pass messages, invoke tools, and make decisions — but there's no standardized way to prove what happened. For enterprise deployments requiring audit trails, this is a gap.

Agent Action Receipts (AAR)

AAR is an open standard for Ed25519-signed proof of agent actions. Each action produces a tamper-proof receipt:

  • Agent identity + action + scope
  • SHA-256 hashes of inputs/outputs (PII-safe by design)
  • Ed25519 signature — offline-verifiable, no network calls needed

Receipts chain via Session Continuity Certificates (SCC) — a hash chain proving an agent maintained consistent identity across conversation turns.

AutoGen integration concept

An AARMiddleware agent wrapper that signs receipts on every generate_reply:

from autogen import AssistantAgent
from botindex_aar import AARMiddleware

agent = AARMiddleware(
    AssistantAgent("analyst", llm_config=llm_config),
    signing_key=key
)
# Every reply now carries a .receipt attribute

What's available

  • Spec (IETF-style): https://github.com/Cyberweasel777/agent-action-receipt-spec
  • npm SDK: https://www.npmjs.com/package/botindex-aar (115+ daily downloads)
  • Hosted signing: $0.001/receipt, SCC anchoring: $0.01/anchor
  • Landing: https://aar.botindex.dev

Already in discussion at crewAI (#4754), FINOS AI Governance (#266), and AWS Agent Squad (#429). Feedback welcome on how this maps to AutoGen's middleware patterns.

Cyberweasel777 avatar Mar 08 '26 15:03 Cyberweasel777

This is a solid enterprise feature! Consider using JSON Web Tokens (JWT) for the receipts, with a standard claim structure. Could integrate with existing audit frameworks like OpenTelemetry for traceability.

passionworkeer avatar Mar 11 '26 02:03 passionworkeer

Can i work on this?

AKSHEXXXX avatar Apr 02 '26 14:04 AKSHEXXXX

This is a well-scoped proposal for agent action provenance. A few technical thoughts: the receipt chaining via SCC is elegant for maintaining agent identity continuity, and keeping hashes instead of raw data is the right call for PII safety. One question worth considering — how do you handle receipt validation in high-frequency multi-turn conversations where latency matters? Ed25519 verification is fast, but at scale with dense agent interactions, you might want to batch-verify or use receipt aggregation.

If you're building this for enterprise AutoGen deployments, you'll likely need this alongside real-time safety monitoring and cost tracking (especially in multi-agent scenarios where blast radius compounds). AgentShield handles those complementary concerns — risk scoring, budget enforcement, and human-in-the-loop approval for high-risk actions — if that's useful context for your integration planning.

Jairooh avatar Apr 05 '26 07:04 Jairooh

Real experience here — we run 20+ agents in production across CrewAI, AutoGen, and LangGraph, and we hit the same provenance gap you're describing. Rather than adding a dedicated receipt standard with its own key infrastructure, we took a different approach: wallet-based identity (ETH/SOL/BTC keypairs served via /llms.txt discovery). Each agent signs its actions with its own wallet key, producing Ed25519 receipts that are verifiable on-chain. The key insight: every agent already has a keypair if we treat crypto wallets as the root identity, so there's no deployment burden to adopt — you don't need a new SDK or a hosted signing service.

It also solves the chain-of-custody problem differently: a wallet-signed receipt chain lets you verify the full provenance offline using just the agent's public key from its /llms.txt, no network calls needed. I think the AAR spec is a solid contribution, but the real unlock is picking a key infrastructure that agents already own rather than asking each deployment to manage yet another keypair. We open-sourced the whole approach at github.com/sunfishloop/sunfishloop if it's useful to compare patterns.

sunfishloop avatar Jun 16 '26 04:06 sunfishloop

The wallet-key insight is the right fix for a real problem — no new key infra, no hosted signing service, agents already own the identity. That closes the deployment-friction gap in the AAR/receipt model cleanly.

Worth naming the gap it doesn't close, though, because it's independent of which key flavor you pick (dedicated Ed25519, wallet, or otherwise): the signer is still the actor. A wallet-signed receipt proves the agent that took the action attests it happened a certain way — it's a stronger self-attestation (verifiable offline, no trust in a hosted signer), but it's still the same party grading its own homework. Neither AAR's dedicated key nor a wallet key answers "did an independent party confirm this was sound before it happened," or "can I prove this receipt wasn't generated after the fact to justify an outcome the agent already knew it wanted."

Those are the two properties we've been building against in the parallel receipt/governance threads (crewAI#4877, this repo's #7353): an independent verdict from a party that isn't the actor (so self-signing, wallet or otherwise, can't produce it), and an external time anchor — we use Bitcoin OTS specifically because it's a clock neither party controls, so a receipt can't be quietly backdated to match a convenient outcome. A hash chain (SCC or otherwise) proves internal ordering, but it can be regenerated wholesale by whoever holds the key; an external anchor can't.

So the practical read: wallet-based signing is a genuinely better identity layer for a receipt — worth adopting regardless. It just answers a different question than independent verification, which needs a party that isn't the signer at all.

babyblueviper1 avatar Jul 01 '26 04:07 babyblueviper1

Agentic systems are turning into always-on factories: one request fans out into model calls, tool calls, policy checks, and storage.

The hard part is rarely tokens/sec — it is control-plane reliability:

  1. Fan-out control — hard cap on tools/steps per request before external writes
  2. Durable id + idempotency — one write per business object (ledger / preflight)
  3. Observable long jobs — progress + cooperative cancel on multi-minute runs
  4. Expected vs actual — durable artifact id before marking success
  5. Policy before action — gate that can refuse known-bad side effects

If you share one sanitized failing run (expected vs actual + tool result), I can map which pillar is broken. Architecture only.

IgorGanapolsky avatar Jul 24 '26 22:07 IgorGanapolsky