Skip to content

Evidence effects

Every authority transition the nucleus makes is recorded, and the nucleus itself performs no IO. Evidence is therefore an effect: after an admitted transition the nucleus produces a typed evidence event and issues an EmitEvidence effect for the nucleus host to carry out. The nucleus decides what must be recorded and whether the transition waits for it; the host writes it. This page covers the evidence event, the three event classes, the visibility barrier, and the receipt that releases it.

From transition to persisted evidence

flowchart TB
  subgraph NUC["NUCLEUS"]
    direction TB
    T["Admitted transition"]
    E{{"Evidence event<br/>class, outage behaviour"}}
    B[("Visibility barrier")]
    T --> E
    E -->|"terminal class"| B
  end
  subgraph HOSTBOX["NUCLEUS HOST"]
    direction TB
    S["Evidence sink"]
  end
  RLN[("Return lane<br/>digest-chained journal")]
  E -->|"EmitEvidence effect"| S
  S -->|"append"| RLN
  RLN -.->|"committed envelope digest"| S
  S -.->|"EvidencePersisted receipt"| B

The EvidencePersisted receipt carries the digest of the envelope committed to the return lane. Admitting that receipt releases the barrier, through the same receipt admission every other effect uses. An effect outcome produces no further evidence event of its own. See Evidence sink bridge.

Event classes

The class of an event decides what the transition waits for.

Class Persistence State visible
Authoritative informational Local durable spool Immediately
Authoritative terminal Persisted to the return lane first After the EvidencePersisted receipt is admitted
Telemetry The telemetry-loss behaviour declared on the event Immediately

Each event also carries its behaviour when the sink is unavailable, one of fail_closed, local_durable_spool, degraded_execution or telemetry_only_loss. The nucleus selects among these declared behaviours only. See Evidence backpressure by event class.

"Terminal" in the class names the end of the authority subject: one task, one channel, one cell. The end of the whole project runtime is marked separately, by the terminal envelope. See The terminal envelope.

The evidence event

Field Holds
event_id Stable identifier of the event
operation The transition recorded, such as grant_admitted, cell_start_accepted, task_acknowledged, channel_closed
class, outage_behavior The event class and its declared behaviour during a sink outage
causal_transition_id The transition that caused the event
kernel_epoch, local_sequence The kernel instantiation and the event's position in it
cell_id, cell_epoch The cell, when the transition concerns one
grant_slot_generation The grant the transition ran under
task_id, parent_task_id, call_id, attempt_id The task, its parent, the logical call and the concrete attempt
channel_id, channel_epoch The channel, when the transition concerns one
handle_slot_generation The handle, when the transition concerns one
provider_observation_digest, typed_result_digest, task_terminal_evidence_digest What the provider reported, the admitted typed result and the caller-acknowledged task evidence
effect_receipt_digest The exact acknowledged host receipt when the event records an applied effect
runtime_closure_identity Closure, foundation, capsule, provider, provider-layout, environment-view, native-loader-view, compatibility and containment identity for the affected cell or task

An event carries the identity fields that apply to its transition. The recorded operations cover grant admission and transitions, cell declaration and transitions, the requested and accepted events of cell start, monitor registration and provider readiness, task creation and dispatch, accepted provider observations and admitted typed results, channel proposal, installation, revocation and closure, and every credit movement. See Cell evidence.

A requested effect and an accepted effect are separate operations. cell_start_accepted, cell_monitor_registration_accepted and provider_readiness_accepted are recorded after the matching effect receipt is admitted. Task dispatch records the provider observation digest, and typed completion records the typed-result digest. These events reach the node on the operator lane's return stream, so the node reads live, receipt-backed facts. See The operator lane.

Receipts keep their meaning

Adjacent facts are recorded as separate events and proved by separate receipts. ProcessStarted proves process creation. The nucleus then issues a distinct monitor-registration effect, and the CellMonitorRegistered receipt moves the cell to registered. See Cells, epochs, and lifecycle.