Skip to main content
Version: 0.8.1

The operations

Eleven operations, the same in both projections. Nothing here addresses a plugin or an incarnation: execution is per unit, and policy is not this surface's at all.

The eleven​

OperationSubjectThe CoreAnswers with
authenticatethe channelestablishes the caller, where the address class requires oneaccepted, or a refusal
reada subject this channel may addressderives the current recordthe same record the opening picture carries
subscribea filter on four axestakes a subscription on the client's behalfa snapshot at a sequence, then the changes
confirma subscriptionrecords the positionnothing further — it is the live shape in the client's direction
commanda unit and a command typeissues a control message on that unit's Sessionthe unit's acknowledgement, correlated, or a refusal
querya unit and a query typeissues a query message on that unit's Sessionthe unit's answer, correlated, or a refusal
stream.starta unit and a streamcreates the transport, then activates the stream on the Sessionthe acknowledgement; unit.stream.activated follows as an event
stream.stopa unit and a streaminstructs the unit, then removes the transportthe acknowledgement
stream.subscribea unit and a streamgrants a delivery and creates what carries itwhere the data will arrive (streams to clients)
stream.unsubscribea deliveryreleases it, and removes what carried itacknowledged
reclaimthe channelrecomputes 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 travelsan opaque payload, at most 1 MiB in each direction
How it is carriedthe control or query family of that unit's Session (the families)
How long the Core waits30 s, not declarable; an answer arriving later is discarded
What is recordednothing durable — what the unit did about a command is the unit's to report
What is emittednothing 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 objectRefusal
never declared by the unit's Pluginscope.undeclared
declared, and not granted to the pluginscope.withheld, naming it
declared and granted, on a unit holding no Sessionunit.no_session
declared and granted, on a unit that is not runningunit.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​

OrderCheckedRefusal
1the contract versioncompat.unsupported
2the request decodes and names an operationoperation.malformed, operation.unknown
3the caller is established, where the class requires itauth.required, auth.invalid
4the instance is not stopping, for anything that actsinstance.stopping
5the suspension grade does not withdraw this operationchannel.suspended
6the subject exists and this channel may address itsubject.unknown
7the object is declared and grantedscope.undeclared, scope.withheld
8the unit can be reachedunit.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​

FigureValue
the bound on an opaque command or question, and on its answer1 MiB in each direction
the wait for a unit's acknowledgement or answer30 s