Repository navigation
AgentWire (swarmwire) v0.4.0 — Ed25519 Identity, TLS, Persistent Replay/Idempotency & Real LangGraph Tests
LatestAgentWire (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, andverify_frame_ed25519(FLAG_SIGNED_ED25519, 64-byte signatures bound strictly topublic_keys[source_agent]) — a compromised agent can no longer impersonate another role.
- Added
- Native TLS / mTLS Transport Confidentiality (
swarmwire.transport):- Added
ssl.SSLContextsupport toAgentWireRpcServerandAgentWireRpcClient, verified end-to-end with encrypted TLS handshakes and plaintext rejection.
- Added
- Cross-Restart & Multi-Instance Replay + Idempotency Persistence (
swarmwire.state):- Added pluggable
StateStoreprotocol + zero-dependencySqliteStateStore(SQLite WAL +BEGIN IMMEDIATEatomic writes), verified across server restarts and concurrent multi-server instances.
- Added pluggable
- Idempotent Retry Safety:
AgentWireRpcClientattaches stableidempotency_keyvalues across retries (with fresh transport nonces) and refuses blind retries on non-idempotentMUTATEcalls;AgentWireRpcServerdeduplicates 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.
- Independently measures inbound AST + outbound payload tokens and enforces
- Real Upstream LangGraph Integration + Dual Imports (
import swarmwire&import agentwire):- Added real compiled
langgraph.graph.StateGraphintegration tests (tests/test_real_langgraph.py) running in CI, documented explicit threat boundaries inSECURITY.md, and bundled bothimport swarmwireandimport agentwire.
- Added real compiled
Install
pip install swarmwire==0.4.0