Direct Messaging Protocol (RFC-0835) — Libertaria L4 messaging layer
  • Zig 92%
  • Gherkin 8%
Find a file
2026-02-24 13:29:32 +01:00
.zig-cache feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
docs/adr feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
features feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
src feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
build.zig feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
demo_agent_messaging feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
DMP-JANUS-PORT.md feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
README.md feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
test_basic.jan feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
test_crypto feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
test_crypto.zig feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
test_crypto_simple.zig feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
test_minimal.zig feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
test_proof_of_life.zig feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
test_session.zig feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
test_simple.zig feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00
test_wire.zig feat(dmp): Zig 0.16 refactor complete 2026-02-24 13:26:28 +01:00

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.