Skip to content

AgentWire (swarmwire) v0.4.0 — Ed25519 Identity, TLS, Persistent Replay/Idempotency & Real LangGraph Tests

Latest

Choose a tag to compare

@alok-108 alok-108 released this 23 Nov 18:53

AgentWire (swarmwire) v0.4.0 — Ed25519 Per-Agent Identity, TLS Transport, Persistent Replay/Idempotency & Real LangGraph Validation

Closes all 6 production-security and distributed-systems gaps identified during code review:

  • Per-Agent Asymmetric Ed25519 Identity (agentwire-core, agentwire-py):
    • Added generate_ed25519_keypair, sign_ast_ed25519, and verify_frame_ed25519 (FLAG_SIGNED_ED25519, 64-byte signatures bound strictly to public_keys[source_agent]) — a compromised agent can no longer impersonate another role.
  • Native TLS / mTLS Transport Confidentiality (swarmwire.transport):
    • Added ssl.SSLContext support to AgentWireRpcServer and AgentWireRpcClient, verified end-to-end with encrypted TLS handshakes and plaintext rejection.
  • Cross-Restart & Multi-Instance Replay + Idempotency Persistence (swarmwire.state):
    • Added pluggable StateStore protocol + zero-dependency SqliteStateStore (SQLite WAL + BEGIN IMMEDIATE atomic writes), verified across server restarts and concurrent multi-server instances.
  • Idempotent Retry Safety:
    • AgentWireRpcClient attaches stable idempotency_key values across retries (with fresh transport nonces) and refuses blind retries on non-idempotent MUTATE calls; AgentWireRpcServer deduplicates retried requests (deduplicated=True) without double-executing handlers.
  • Independent Server-Side Usage Metering (IndependentTokenMeter / UsageMeter):
    • Independently measures inbound AST + outbound payload tokens and enforces max(measured, handler_reported) during two-phase budget settlement so handlers cannot zero-out usage.
  • Real Upstream LangGraph Integration + Dual Imports (import swarmwire & import agentwire):
    • Added real compiled langgraph.graph.StateGraph integration tests (tests/test_real_langgraph.py) running in CI, documented explicit threat boundaries in SECURITY.md, and bundled both import swarmwire and import agentwire.

Install

pip install swarmwire==0.4.0