Skip to content

Example: Auditor Agent with cryptographic handoff verification #80

Description

@tomjwxf

Problem

Swarm demonstrates lightweight multi-agent orchestration with handoffs. When Agent A hands off context to Agent B, there is no cryptographic proof of what context was transferred, what policy governed the handoff, or that the handoff record hasn't been modified. For production multi-agent systems built on Swarm patterns, this creates an accountability gap.

Proposal

Add an Auditor Agent example that uses Ed25519 receipt signing to cryptographically verify handoff context between swarm agents. Each handoff would produce a signed receipt creating a verifiable chain:

Triage Agent (receipt_001) → Sales Agent (receipt_002, parent=001) → Refund Tool (receipt_003, parent=002)

This transforms the handoff chain from an opaque runtime behavior into verifiable evidence.

Reference

protect-mcp (MIT, v0.5.3) already tracks swarm topology across 11 lifecycle events. Receipt format: IETF Internet-Draft.

This could work as an example in the /examples directory showing enterprise-grade audit patterns for Swarm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions