Package com.valhalla.sdk
Class SafeInterruptTelemetry
java.lang.Object
com.valhalla.sdk.SafeInterruptTelemetry
Runtime-owned serializer for the safe-interrupt telemetry contract.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne normalized safe-interrupt observation emitted by the runtime. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStable policy mode consumed by Command Center. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbreakPolicyJson(InterruptGate gate, boolean requested) Serializes the standardbreakPolicyobject.snapshot(InterruptGate gate, boolean requested) Samples one interrupt gate exactly once and returns its normalized state.
-
Field Details
-
MODE_DEFER_UNTIL_SAFE
Stable policy mode consumed by Command Center.- See Also:
-
-
Method Details
-
snapshot
Samples one interrupt gate exactly once and returns its normalized state. A faulty gate is treated as unsafe so it can never authorize a mid-work platform pause.- Parameters:
gate- script-owned gate, ornullwhen unavailablerequested- whether Command Center has requested a safe boundary- Returns:
- a fail-closed policy snapshot
-
breakPolicyJson
Serializes the standardbreakPolicyobject. Script authors do not call this method; the injected runtime attaches it to each telemetry frame for scripts that overrideAbstractScript.interruptGate().
-