A fact becomes
available to work.
Use Relay when several independent consumers need to react to the same committed event. Each subscription progresses at its own pace.
- Publish a typed fact
A publisher appends an event to a project or system topic. Lifecycle notices follow committed changes through a transactional outbox; rolled-back changes produce no notice.
- Admit input for each subscriber
The server copies the event payload and selected routes into durable branches before advancing that subscriber’s seen position. One subscriber’s position does not advance another’s.
- Dispatch the selected branches
A branch can submit an agent job, run a pinned JavaScript handler, start a granted orchestration or forward the original payload to another topic in the same project.
- Follow the owning result
Seen means the input became available. An ACCEPTED work branch records the receiver’s receipt. Follow that job or orchestration and its conversation for completion and actual effects.
Choose the contract for your exchange.Direct agent messaging provides addressed conversations and correlated replies. Relay provides topic subscriptions and independent fan-out. Messaging and Board wakes use Relay internally while their owning inboxes, histories and recovery rules remain in place.
Address an assistant and follow its reply →
Keep events
in their scope.
Topic scope and payload type are part of the contract. Lifecycle events carry references; their original content stays in the owning system.
Built-in Relay publications| Topic family | What it carries | Scope |
schedule.due | A due schedule occurrence; the built-in subscriber admits its existing firing. | Owning schedule scope |
job.started, job.ended | Job reference, persisted agent definition and actual lifecycle state. | Project, or system for global jobs |
approval.*, orchestration.* | Approval decisions, run changes, questions and child completion references. | Owning project, or system for a global conductor |
board.* | Public topic, post, resolution and closure references. | Board project |
message.* lifecycle and native wake topics | Private mailbox lifecycle and already admitted wake references. | Server-private system scope |
The asterisks above group related names; subscriptions select exact topics. Lifecycle notices include no message body, command, question text, answer or orchestration result. Private messaging topics preserve account-private visibility.
Routing preserves authority
Dispatch checks current project access, exported agents, orchestration grants and remote session ownership. A cross-project work destination also needs the existing two-sided messaging route authority. A routing file cannot grant tools or access.
Personal and system visibility
Project inspection requires live access. Personal logs are owner-only; system inspection requires server administration. Private execution receipts and conversation links are returned only to their submitting owner.
Exact topic names, payloads and scope rules ↗
Activate work
deliberately.
A project route declares what to do. Automatic project subscriptions also need an explicit project/account binding in server configuration; the default binding list is empty.
One bounded pass
relay.process runs an authenticated pass with Contributor access. It admits at most one publication per subscription, with overall limits of 32 inputs and 32 branch dispatches, or a requested lower limit. A subscription with another live owner is skipped.
Automatic workers
Configured workers supervise active packages and consume each subscription independently. Database leases fence ownership. Committed publications signal local workers; startup and fallback reads recover missed signals. Server bindings change on restart, while project activation changes are detected during configuration checks.
Invalid configuration, lost access or offline definition sources pause work while retaining input. Removing an active package stops its automatic workers and preserves its offsets and branches for reactivation. The scheduler’s compatibility subscriber operates independently of these project bindings.
Worker configuration, limits and supervision ↗
Read the log.
Follow the receipt.
The desktop Relay page shows scoped publications, retention policy, gaps, seen positions, recent deliveries and pinned source hashes. It can open owned execution trajectories.
Authenticated Relay operations| Operation | Purpose |
relay.topics | List existing topics in a selected project or authorized system scope. |
relay.log | Read publications, subscriber positions, gaps and recent branches. |
relay.process | Perform a bounded admission and dispatch pass for a project. |
relay.operate | Apply an explicit manager control to an inspected project topic or subscription. |
Java’s RelayClient, the shared TypeScript client and CLI expose these operations. CLI commands are relay topics, relay log, relay process and relay operate, using their normal JSON payloads and an explicitly configured server connection.
Reads preserve processing state.Refreshing and paging never create a subscriber, advance its position or acknowledge a gap. Positions and pagination cursors are decimal strings. A recent branch can remain visible after its original publication expires; its receiver receipt is the path to the owning result.
Request shapes, paging and client contracts ↗
Keep gaps and
uncertainty visible.
Topic retention defaults to four days. Optional Relay/topics.json sets project topic policies. Expiry records a boundary; lagging subscriptions report a gap.
Retained input survives expiry
Already admitted payloads and branches survive topic expiry. A gap stops new admission for that subscription while its existing branches can still dispatch. Reading or processing never acknowledges the gap.
Unknown effects stay unknown
A dispatch intent with an unknown outcome becomes UNCERTAIN. A lost acknowledgment or expired lease cannot authorize blind replay. Read-only reconciliation checks the owning receiver receipt; an absent receipt still leaves the effect unknown.
Explicit recovery controls| Action | Meaning |
ACKNOWLEDGE_GAP | Advance only through the exact inspected expired boundary. |
RECONCILE | Record a known resolution from the owning receiver receipt. |
ABANDON | Abandon ready or uncertain branch handling; an unknown effect remains ABANDONED_UNCERTAIN. Receiver work is not cancelled. |
REMOVE_SUBSCRIPTION, REMOVE_TOPIC | Remove inactive, empty metadata only when the required configuration and retained-state checks pass. |
Controls require project Manager access, or the exact Personal owner, an explicit reason, a stable UUID request ID and generations from current inspection. Branch controls also check state and fence. System topics and built-in subscribers stay under their owning runtime’s control.
Retention, recovery and operational control reference ↗