Expand description
Error taxonomy and the supervisor decider for context-poisoning recovery (§5.3, §5.11 of the architecture document).
Rakka’s supervisor (atomr_core::supervision::Decider) inspects a panic
message string rather than a typed error value. To trigger the doc’s
OneForOne::default().on::<ContextPoisoned>(Restart) behaviour, an
actor that detects context poisoning panics with a message containing
the string "ContextPoisoned". The decider exposed here parses these
markers back into supervisor directives.
Structs§
- Device
Supervisor - Typed
SupervisorOf<ContextActor>adapter forDeviceActor.
Enums§
Constants§
- CONTEXT_
POISONED_ TAG - Marker prefix used in panic messages to signal a poisoned-context error.
Matched by
decider. - OUT_
OF_ MEMORY_ TAG - Marker prefix for OOM errors that the supervisor should
Resumepast. - UNRECOVERABLE_
TAG - Marker prefix for fatal errors that should stop the device entirely.
Functions§
- decider
- The supervisor decider used by
DeviceActorto routeContextActorfailures (§5.11). - device_
supervisor_ strategy - Build the
SupervisorStrategyDeviceActorapplies to itsContextActorchild (§5.11). Three retries inside a one-minute window; past that, the circuit opens and the device stops.