The operations
Eleven operations are everything an interface can do. It can sign in; read, subscribe and confirm what it has seen; command a unit or ask it a question; start, stop and receive a unit's streams; and reclaim its channel. The operations are the same in both projections. A command and a question carry a payload the Core never reads: it routes them to the unit's Session and hands back what comes. This page lists the operations, what is opaque, what authorises one, and the order in which refusals are checked.
Nothing here addresses a plugin or an incarnation: execution is per unit, and policy is not this surface's at all.
The eleven
| Operation | Subject | The Core | Answers with |
|---|---|---|---|
authenticate | the channel | establishes the caller, where the address class requires one | accepted, or a refusal |
read | a subject this channel may address | derives the current record | the same record the opening picture carries |
subscribe | a filter on four axes | takes a subscription on the client's behalf | a snapshot at a sequence, then the changes |
confirm | a subscription | records the position | nothing further — it is the live shape in the client's direction |
command | a unit and a command type | issues a control message on that unit's Session | the unit's acknowledgement, correlated, or a refusal |
query | a unit and a query type | issues a query message on that unit's Session | the unit's answer, correlated, or a refusal |
stream.start | a unit and a stream | creates the transport, then activates the stream on the Session | the acknowledgement; unit.stream.activated follows as an event |
stream.stop | a unit and a stream | instructs the unit, then removes the transport | the acknowledgement |
stream.subscribe | a unit and a stream | grants a delivery and creates what carries it | where the data will arrive (streams to clients) |
stream.unsubscribe | a delivery | releases it, and removes what carried it | acknowledged |
reclaim | the channel | recomputes arbitration in this channel's favour, where it may (arbitration) | the channel's state after the recomputation |
The set grows when something needs it; an addition names the subject it takes and the shape of its answer, and appears in both projections at once.
What is opaque
A command and a question carry a domain payload the Core does not read: it routes, correlates and hands back what came.
| What travels | an opaque payload, at most 1 MiB in each direction |
| How it is carried | the control or query family of that unit's Session (the families) |
| How long the Core waits | 30 s, not declarable; an answer arriving later is discarded |
| What is recorded | nothing durable — what the unit did about a command is the unit's to report |
| What is emitted | nothing for the command itself; the unit's own behaviour produces its events |
- The type name is the one part the Core reads, because the capability that governs the command is named against it.
- The unit cannot tell which channel a request came from. The message the Core issues carries no channel identity.
What decides whether a client may issue one
Reaching the channel is the whole of the client's authorisation. There is no per-client policy: what a channel's address class demands before a client is admitted is attaching's.
What may be asked of a unit is bounded by what its plugin was granted. A capability governs a stream, a command type, a query type or a class of occurrence (capabilities), and the scope computed at the unit's admission is what an operation is tested against.
| The named object | Refusal |
|---|---|
| never declared by the unit's Plugin | scope.undeclared |
| declared, and not granted to the plugin | scope.withheld, naming it |
| declared and granted, on a unit holding no Session | unit.no_session |
| declared and granted, on a unit that is not running | unit.not_running |
Everything the opening picture lists is within scope, so a client rendering itself from the picture never builds an operation that will be refused for scope.
The order a refusal is decided in
| Order | Checked | Refusal |
|---|---|---|
| 1 | the contract version | compat.unsupported |
| 2 | the request decodes and names an operation | operation.malformed, operation.unknown |
| 3 | the caller is established, where the class requires it | auth.required, auth.invalid |
| 4 | the instance is not stopping, for anything that acts | instance.stopping |
| 5 | the suspension grade does not withdraw this operation | channel.suspended |
| 6 | the subject exists and this channel may address it | subject.unknown |
| 7 | the object is declared and granted | scope.undeclared, scope.withheld |
| 8 | the unit can be reached | unit.not_running, unit.no_session, unit.unanswered |
A suspended channel learns that it is suspended rather than that a unit is unreachable, and a client whose scope is short learns which object it lacks.
reclaim is not subject to step 5: no grade withdraws the operation that ends a suspension.
The figures
| Figure | Value |
|---|---|
| the bound on an opaque command or question, and on its answer | 1 MiB in each direction |
| the wait for a unit's acknowledgement or answer | 30 s |