Overview

CommRails (the Allternit Agent System Rails) is the unified execution and coordination substrate for local and platform-hosted agents. It combines an append-only ledger, policy gates, directed-acyclic-graph work identities (WIHs), peer-to-peer messaging, and durable leases into one workspace-scoped service. CommRails powers:
  • Cross-session agent peer discovery and messaging
  • Event-sourced work planning, DAG execution, and handoffs
  • Policy enforcement and steering checkpoints
  • Receipts, vault archival, and context-pack checkpoints
  • Ticket tracking with graph analytics and external-tracker sync
The HTTP surface is mounted in allternit-api at /api/rails and /rails, and is also available as the standalone allternit-rails-service on port 3011.

Base URL

Local development (allternit-rails-service):
All routes below are relative to the base URL. Requests must include an Authorization: Bearer <token> header unless the instance is configured for open local use.

Endpoints

Peers

Steering

Ledger

Receipts

Mail

WIHs

DAGs

Leases

Context packs

Gate / policy

Vault

Tickets

Graph analytics

Request / response examples

Register a peer

Send a message to a peer

Poll a peer inbox

Query the ledger

Create a ticket

Request a lease

Create a DAG

Pick up a WIH

Archive a WIH to the vault

Error codes

Error responses follow this shape:

Concepts

  • Peer — a registered local agent session. Peers discover each other via the workspace registry and can exchange plain-text messages over UDS or HTTP polling.
  • WIH — Work Identity Handle, the runtime envelope for a single DAG node.
  • DAG — directed dependency graph of work nodes.
  • Lease — scoped, time-bounded permission to read/write paths or use tools.
  • Ledger — append-only event log that is the source of truth for all Rails state.
  • Gate — policy enforcer that checks leases, receipts, and injected policy bundles before mutations.
  • Vault — archival store for completed WIH artifacts.
  • Context pack — sealed checkpoint of inputs and policy bundles for reproducible execution.