Sixteen operations, each taking one of four kinds of subject. Policy is per plugin, execution is per
unit, and the rest is per instance. The set is initial: an addition is a member of the one union, so it
appears on both projections at once.
The set
| Operation | Subject | Changes | Where the change lives |
|---|
plugin.enable, plugin.disable | plugin | whether it is enabled | the Registry, with a decision record beside it |
plugin.grant, plugin.withdraw | plugin and capability | a grant | the Registry, with a decision record beside it |
unit.start, unit.stop, unit.restart | unit | what is running | nowhere durable: this life of the instance |
unit.stream.start, unit.stream.stop | unit and stream | whether a stream is flowing | nowhere durable: a control instruction |
unit.retention.set, unit.retention.clear | unit | its group's retention override | the log store |
unit.ask | unit | nothing | nothing: an answer |
read | a subject kind, and an identity where one is named | nothing | nothing |
log.query, log.follow | unit, incarnation, a time range, a severity floor | nothing | nothing |
subscribe | a filter on the event axes | nothing | nothing |
An incarnation qualifies rather than addresses: nothing is done to an incarnation, and log entries and
past states are read by one.
What a change answers
| Field | Holds |
|---|
| previously | the value the operation replaced: the enablement, the grant, the state, the retention override |
| effective | immediately, or at the unit's next admission |
| consequences | one entry per unit affected: the unit, its incarnation, and what happened to it |
- An operation whose effect is already true succeeds and says nothing changed.
previously carries
what the value was, so a caller knows whether it changed anything without reading first.
- A decision and its consequences are reported separately, and the consequences are a list.
| Operation | effective | consequences |
|---|
plugin.disable | immediately | every live Session of the plugin is revoked; one entry per unit |
plugin.enable | immediately | none: an enabled plugin runs when a unit of it is launched |
plugin.grant, plugin.withdraw | at the unit's next admission | each unit running that plugin, still under the scope computed at its own admission |
unit.start, unit.stop, unit.restart | immediately | the one unit named, with the incarnation ended and the one begun |
unit.stream.start, unit.stream.stop | immediately | the one unit named |
unit.retention.set, unit.retention.clear | immediately | none: the next cleaning cycle reads the override |
- A change of policy reaches a unit at its next admission, never mid-Session. To apply it now,
change the policy and restart the unit — not the instance.
- Disabling is not stopping. It prevents future admission. A disabled plugin whose unit is still
running is a coherent state, and the surface reports it.
- A decision is durable; an act against a running unit is not. A stopped unit stays stopped for this
life of the instance and comes back at the next start unless something declared otherwise.
- No operation sets what the Core observed. Nothing marks a unit healthy, places it in a state or
assigns it a Session, and no request field carries a state.
Every operation terminates in the Core
An administrative caller never opens a unit's socket, and nothing is forwarded to a unit as if the
caller were the Core. An operation about a unit causes the Core to act.
| Operation | The Core | The caller observes |
|---|
unit.start, unit.stop, unit.restart | launches or ends a process | the answer, and the state changes as events |
unit.stream.start | creates the stream's transport, listens on it, then sends the activation as a control message on the unit's Session | the unit's acknowledgement, and unit.stream.activated |
unit.stream.stop | sends the instruction, then removes the transport | the acknowledgement, and unit.stream.stopped |
unit.ask | sends a query message on the unit's Session and correlates the answer | the opaque answer |
- A unit that is not answering cannot be reached by an operator either: nobody has a path around the
state the Core reports.
- The Core waits 30 s for a unit's acknowledgement or answer. The figure is not declarable. An
elapsed wait is refused
unit.unanswered, and an answer arriving after it is discarded.
unit.ask
| |
|---|
| What travels | an opaque question and an opaque answer, each at most 1 MiB |
| How | the query family of the unit's Session, correlated by the message identity the Core assigns there |
| What is recorded | a log entry naming the actor, the unit, the incarnation and that a question was asked — never the question or the answer |
| What is emitted | nothing |
The Core routes and correlates the question and never decodes it.
A stream's data never travels on this surface. That a stream was activated is an event; what the
stream carries travels only on its own transport.
| |
|---|
| the wait for a unit's acknowledgement or answer | 30 s, not declarable |
| the bound on a question or an answer | 1 MiB each way |
| an answer after the wait | discarded |