Expand description
v0.4.0 (P1-5) — agent-on-agent deal ledger.
Anthropic Project Deal (announced 2026-04-25) opens up
agent-on-agent commerce: one agent contracts another to perform a
task and the buyer’s host needs a tamper-evident record of the
agreed terms + completion. This crate ships the substrate: a
chained-HMAC log of DealEnvelopes, each one signed in line
with the existing memory-provenance chain so audit-log export
emits one continuous ledger.
Three pieces:
envelope::DealEnvelope— the minimal contract shape (who, what, when, prev_hash, hmac).ledger::DealLedgertrait +InMemoryDealLedgerimpl — append-only log with replay over an offset range.dispute::verify_chain+dispute::DisputeReport— walks the chain, finds the first divergence between expected and observed hashes, and pinpoints the offset that broke.
Re-exports§
pub use discovery::AgentAdvertisement;pub use discovery::DealCapability;pub use discovery::Ed25519PubBytes;pub use dispute::DisputeReport;pub use dispute::verify_chain;pub use envelope::AgentId;pub use envelope::DealEnvelope;pub use envelope::EnvelopeError;pub use ledger::DealLedger;pub use ledger::InMemoryDealLedger;pub use ledger::LedgerError;pub use ledger::LedgerOffset;pub use reputation::ReputationScore;pub use reputation::compute_reputation;
Modules§
- discovery
- Counterparty discovery (v0.4.1 P1-5).
- dispute
- Chain-verification + dispute reporting (v0.4.0 P1-5).
- envelope
- Deal envelope shape (v0.4.0 P1-5).
- ledger
- Append-only deal ledger (v0.4.0 P1-5).
- reputation
- Advisory reputation score (v0.4.1 P1-5).