Skip to main content
Version: 0.11.0

The envelope

Every event carries the same eight fields, whatever its type. An event's authority is nil: it tells a consumer that something happened, and a consumer about to decide anything asks the Core.

The eight fields​

FieldTypePresentHolds
typea name under the grammaralwayswhat happened, and what a subscription filters on
subjecta kind and an identityalwayswhat it is about
timethe Core's clockalwayswhen the Core reached the conclusion
actorone of four classesalwayswho caused it
severityan integer, 0–99alwayshow serious, on the one ordered scale
occurrencea class the unit declared and was grantedonly on unit.occurrence.reportedwhich domain occurrence this is
causethe sequence of another eventoptionalthe event this one follows from
detailtyped per typeoptionalwhat that type needs

The subject​

KindIdentityAlso carries
instancethe instance's name—
unitthe unit's declared identityits incarnation: a fact about a unit is a fact about one of its lives
pluginthe plugin's namespaced identity—
channelthe channel's declared name—
documentthe document as it was read — a path—
connectionthe connection's identity, assigned when it opened—
  • Six kinds, closed. The kind travels apart from the identity: identities are unique only within their kind, and a subscriber filters on what an event is about without knowing every type.
  • A connection is not a Session. A Session is what a Plugin unit holds with the Core; a connection is a person or a tool attached to the administrative surface. Only connections held open are subjects.
  • A stream is not a kind. A stream identifier is unique only within its unit; an event about a stream is an event about its unit, naming the stream in detail.

The clock​

time is the Core's, taken when it reached the conclusion. One instance is one process, so one clock stamps every event it emits. A unit's report becomes an event stamped when the Core received and concluded it; a sender's own clock is never used.

The actor​

ClassMeansCarries
corea conclusion the Core reachednothing further
operatorsomebody acting through a surfacethe person's identity, where the surface's channel established one
unitthe Core translating something a unit reportednothing further: the subject names the unit
hosta fact about a process, from the kernel or a container enginenothing further

Four classes and no free text. The actor is established by the Core, never stated by the party it names. The class also says which source graded the event: see severity.

The sequence, and cause​

Whatan integer the Core assigns when it publishes an event
Scopemonotonic within one life of the instance, meaningless outside it
Carried incause, which holds the sequence of the earlier event
Notthe log store's sequence: an event is published before its durable counterpart is written
  • A dependent that did not start points at the unit that failed; a restart storm reads as one chain.
  • A chain is followed by reading cause repeatedly, and ends at an event with no cause.
  • The sequence is not filterable, and a consumer that ignores it loses only the chain.

What never travels​

  • A domain payload. That a stream was activated travels; what the stream carries does not.
  • Evidence, rather than a conclusion. A heartbeat that arrived, or one that was missed, is not an event; what is published is the state change the misses eventually caused, with its reason.
  • Anything before the instance exists. A bundle refused before a Core starts is reported by whoever attempted the start. A declaration the running Core rejects is an event.

Figures​

the severity scaleintegers 0–99, higher more serious
the event sequencean integer, monotonic within one life of the instance
subject kindssix, closed
actor classesfour, closed