Overview
Implement the messaging layer using NATS JetStream for all inter-agent and orchestrator communication.
Architecture: docs/ARCHITECTURE.md §6.2
Implementation
- Message envelope with SPIFFE ID, timestamp, Ed25519 signature, payload hash
- Subject hierarchy:
cipher.events.*, cipher.agent.{id}.inbox, cipher.approval.*, cipher.audit
- Durable consumers for audit stream (never lose a message)
- Publisher signs every message before sending
- Subscriber verifies signature before processing (via Trust Broker)
- Dead letter handling for failed deliveries
Docker Compose
- Add NATS JetStream service to
docker/docker-compose.yml
Overview
Implement the messaging layer using NATS JetStream for all inter-agent and orchestrator communication.
Architecture:
docs/ARCHITECTURE.md§6.2Implementation
cipher.events.*,cipher.agent.{id}.inbox,cipher.approval.*,cipher.auditDocker Compose
docker/docker-compose.yml