Direct Messaging Protocol (RFC-0835) — Libertaria L4 messaging layer
- Zig 92%
- Gherkin 8%
| .zig-cache | ||
| docs/adr | ||
| features | ||
| src | ||
| build.zig | ||
| demo_agent_messaging | ||
| DMP-JANUS-PORT.md | ||
| README.md | ||
| test_basic.jan | ||
| test_crypto | ||
| test_crypto.zig | ||
| test_crypto_simple.zig | ||
| test_minimal.zig | ||
| test_proof_of_life.zig | ||
| test_session.zig | ||
| test_simple.zig | ||
| test_wire.zig | ||
DMP Janus - Direct Messaging Protocol in Pure Janus
Status: 🚧 In Development Started: 2026-02-20 Timeline: 1-2 weeks MVP RFC: RFC-0835 (Direct Messaging Protocol)
Goal
Build a Direct Messaging Protocol client in pure Janus that replaces Telegram dependency for agent coordination.
Architecture
Based on RFC-0835:
Session Lifecycle:
DORMANT → INITIATING → ACTIVE → STALE/FROZEN → CLOSED
Wire Types:
0x0AB0: DMP_SESSION_INIT
0x0AB1: DMP_SESSION_ACK
0x0AB2: DMP_MESSAGE
...
0x0AB7: DMP_AGENT_COORDINATE (agent-to-agent)
Crypto Stack
Native Janus:
- Ed25519 (LWF)
- BLAKE3
- HMAC-SHA256
Zig Fallback (for now):
- ChaCha20-Poly1305
- X25519
- Kyber768
Project Structure
dmp-janus/
├── src/
│ ├── crypto_backport.jan
│ ├── session.jan
│ ├── wire_types.jan
│ ├── agent_coord.jan
│ └── main.jan
├── tests/
├── build.zig
└── README.md
Development Log
2026-02-20 17:10 CET - Project Started
- Repo created
- Crypto strategy defined (Zig fallback)
- Implementation plan set
First Libertaria app in pure Janus.