Configuration knobs for createLifecycleTransformer.
interface LifecycleTransformerOptionsWhen true, the transformer emits the root lifecycle.started (or
.running) event synchronously from onRegister and emits the
terminal root event from finalize/fail. Set to false when an
outer authority (e.g. RunProtocolSession) is responsible for
root lifecycle emission; in that case the transformer still tracks
root status internally for cascade purposes but does not write to
the wire.
Optional async hook consulted by finalize() to override the
computed terminal status. Returning a status here wins over the
pending-interrupt heuristic. Useful for carriers (like the API
session) that have authoritative knowledge of thread state.
Lifecycle status emitted for the root namespace when
LifecycleTransformerOptions.emitRootOnRegister is true.
Human-readable name for the root graph. Used as graph_name for
the root lifecycle event.
Converts an unknown failure value to a string for the
lifecycle.failed error field.