Skip to main content

LoopEvent

Enum LoopEvent 

Source
pub enum LoopEvent {
Show 43 variants ConversationSeeded { seed: ConversationSeeded, }, ConversationDelta { record: ConversationDeltaRecord, }, TurnObserved { turn: u32, actor: String, output: TurnOutput, }, ToolCallObserved { call: ProviderToolCall, }, ProposalObserved { call_id: String, proposal: EffectProposal, }, ProposalChecked { call_id: String, proposal: EffectProposal, witness: Box<FullAdmissibilityWitness>, }, EffectApplied { call_id: String, mutated: bool, output: String, }, ToolBatchConflict { call_id: String, conflicts_with: String, resources: Vec<String>, }, EffectDenied { call_id: String, reason: String, class: ResidualClass, }, CandidateMeasured { node_id: String, generation: u32, candidate_id: String, energy: f64, hard_pass: bool, residuals: Vec<ResidualEvent>, }, GateDecisionRecorded { node_id: String, generation: u32, candidate_id: String, decision: GateDecision, observed_energy: Option<f64>, best_accepted_before: Option<f64>, }, DecisionBoundRefused { node_id: String, generation: u32, bound: u64, decisions_used: u64, }, CandidateRestored { checkpoint_id: String, }, EffectBoundaryMeasured { call_id: String, node_id: String, generation: u32, energy: f64, hard_pass: bool, residuals: Vec<ResidualEvent>, }, ContextCheckpointCreated { checkpoint: ContextCheckpoint, }, DurableCandidateCheckpoint { candidate_id: String, state_root: String, control: ControlFrame, conversation: Conversation, birth_deps: Vec<StateDependency>, canonical_scope: Vec<String>, files: Vec<DurableSeedFile>, }, RecoveryControlGranted { failure: FailureKind, level: CascadeLevel, forced_escalation: bool, model: ModelId, }, RouteFailover { from_model: ModelId, to_model: ModelId, cause: String, }, RecoveryContained { reason: String, restored_checkpoint_id: String, }, SearchOpened { forest_id: String, node_id: String, generation: u32, accepted_root: String, limits: SearchLimits, resumed_from: Option<String>, }, SearchUsageSnapshot { forest_id: String, epoch: u64, usage: SearchUsage, }, BranchForked { forest_id: String, branch_id: String, parent_branch: Option<String>, seed_checkpoint: String, seed_witness: WitnessRef, }, BranchStrategySelected { forest_id: String, branch_id: String, strategy_id: String, }, BranchObservation { forest_id: String, branch_id: String, observation: String, }, BranchCandidateMeasured { forest_id: String, branch_id: String, candidate_id: String, measurement: BranchMeasurement, }, PartialCheckpointed { forest_id: String, branch_id: String, checkpoint: PartialCheckpointRef, }, FrontierEpochStarted { forest_id: String, epoch: u64, forest_digest: String, }, FrontierEntryServed { forest_id: String, branch_id: String, epoch: u64, }, BranchIneligible { forest_id: String, branch_id: String, reason: String, }, BranchNotSelected { forest_id: String, branch_id: String, }, BranchAbandoned { forest_id: String, branch_id: String, reason: String, }, BranchSelected { forest_id: String, branch_id: String, candidate_id: String, }, BranchCommitted { forest_id: String, branch_id: String, candidate_id: String, decision: GateDecision, }, NoGoodRecorded { forest_id: String, branch_id: String, key: String, evidence_hash: String, support_kind: String, }, SearchClosed { forest_id: String, usage: SearchUsage, }, ContextWorkingSet { forest_id: String, branch_id: String, turn: u32, page_ids: Vec<String>, }, ContextPagesSelected { forest_id: String, branch_id: String, turn: u32, resident_digest: String, page_ids: Vec<String>, }, ContextMiss { forest_id: String, branch_id: String, turn: u32, key: String, }, ContextPageRecalled { forest_id: String, branch_id: String, turn: u32, page_id: String, }, ContextInfeasible { forest_id: String, branch_id: String, turn: u32, required: u64, allowance: u64, }, ContextCompacted { forest_id: String, branch_id: String, summary_page: String, source_pages: Vec<String>, }, PromptProgramCompiled { turn: u32, program: CompiledPromptProgram, }, PromptProgramInvoked { turn: u32, invocation_digest: String, platform_digest: String, domain_digest: String, tool_spec_hash: String, resident_context_digest: String, },
}
Expand description

Recorded loop events (the ledger consumes these in system 14).

Variants§

§

ConversationSeeded

The fold base for the model context (Gate O). Additive: old ledgers without seeds still replay.

§

ConversationDelta

One digest-chained model-context change, recorded before it is applied to the live projection.

§

TurnObserved

Fields

§turn: u32
§actor: String

Which actor observed this output (PSP-10 system 27). Empty on pre-PSP-10 rows; the observation is always recorded before any parse.

§output: TurnOutput
§

ToolCallObserved

Fields

§

ProposalObserved

Fields

§call_id: String
§

ProposalChecked

Fields

§call_id: String
§

EffectApplied

Fields

§call_id: String
§mutated: bool
§output: String
§

ToolBatchConflict

A same-turn footprint collision (Gate P): the call was returned to the model as an observation, never given an invented order.

Fields

§call_id: String
§conflicts_with: String
§resources: Vec<String>
§

EffectDenied

Fields

§call_id: String
§reason: String
§class: ResidualClass

Typed admissibility residual (PSP-9 system 9): CapabilityDenied for kernel denials, BudgetExhausted for budget boundaries.

§

CandidateMeasured

Fields

§node_id: String
§generation: u32
§candidate_id: String

Candidate identity "{node}/{gen}/c{seq}" (PSP-10 Phase 2). The accepted fold keys by it; empty on pre-PSP-10 rows.

§energy: f64
§hard_pass: bool
§residuals: Vec<ResidualEvent>
§

GateDecisionRecorded

Fields

§node_id: String
§generation: u32
§candidate_id: String

Shares the measurement’s candidate identity so the two events key together (Proposition 2). Empty on pre-PSP-10 rows.

§decision: GateDecision
§observed_energy: Option<f64>

Recorded from the trajectory’s GateDecisionRef, never recovered by correlation. None marks a pre-PSP-10 row.

§best_accepted_before: Option<f64>
§

DecisionBoundRefused

The loop refused to submit a candidate past the finite-decision bound N_gate = floor(V0/rho) + B + 1 (PSP-10 Gate X). The refusal itself appends no gate decision.

Fields

§node_id: String
§generation: u32
§bound: u64
§decisions_used: u64
§

CandidateRestored

Fields

§checkpoint_id: String
§

EffectBoundaryMeasured

Fields

§call_id: String
§node_id: String
§generation: u32
§energy: f64
§hard_pass: bool
§residuals: Vec<ResidualEvent>
§

ContextCheckpointCreated

Fields

§

DurableCandidateCheckpoint

A gate acceptance made durable: the control frame plus every mutated path’s content-addressed artifact handle, sufficient to rebuild the accepted candidate and continue the loop after a crash.

Fields

§candidate_id: String

The accepted candidate this checkpoint makes durable (PSP-10 Phase 2). Empty on pre-PSP-10 rows.

§state_root: String
§conversation: Conversation

Exact provider-neutral projection selected for the next model turn.

§birth_deps: Vec<StateDependency>

Per-message birth dependencies, parallel to the conversation (Gate AF): a resumed loop restores each page’s real birth state instead of relabelling everything with the live root. Empty on pre-provenance rows.

§canonical_scope: Vec<String>

Exact scope used to compute state_root, including read paths.

§

RecoveryControlGranted

Fields

§failure: FailureKind
§forced_escalation: bool
§model: ModelId
§

RouteFailover

Fields

§from_model: ModelId
§to_model: ModelId
§cause: String
§

RecoveryContained

Fields

§reason: String
§restored_checkpoint_id: String
§

SearchOpened

Fields

§forest_id: String
§node_id: String
§generation: u32
§accepted_root: String
§resumed_from: Option<String>

The interrupted forest this one deterministically re-runs, when resuming (additive; absent on fresh forests and legacy rows).

§

SearchUsageSnapshot

The forest’s consumption at an epoch boundary, so an interrupted run’s usage is reconstructible from the ledger (Gate AC + resume).

Fields

§forest_id: String
§epoch: u64
§

BranchForked

Fields

§forest_id: String
§branch_id: String
§parent_branch: Option<String>
§seed_checkpoint: String
§seed_witness: WitnessRef
§

BranchStrategySelected

Fields

§forest_id: String
§branch_id: String
§strategy_id: String
§

BranchObservation

Fields

§forest_id: String
§branch_id: String
§observation: String
§

BranchCandidateMeasured

Fields

§forest_id: String
§branch_id: String
§candidate_id: String
§measurement: BranchMeasurement
§

PartialCheckpointed

Fields

§forest_id: String
§branch_id: String
§

FrontierEpochStarted

Fields

§forest_id: String
§epoch: u64
§forest_digest: String

Digest of the folded forest state; strict resume recomputes and compares it.

§

FrontierEntryServed

Fields

§forest_id: String
§branch_id: String
§epoch: u64
§

BranchIneligible

Fields

§forest_id: String
§branch_id: String
§reason: String
§

BranchNotSelected

Fields

§forest_id: String
§branch_id: String
§

BranchAbandoned

Fields

§forest_id: String
§branch_id: String
§reason: String
§

BranchSelected

Fields

§forest_id: String
§branch_id: String
§candidate_id: String
§

BranchCommitted

Fields

§forest_id: String
§branch_id: String
§candidate_id: String
§decision: GateDecision
§

NoGoodRecorded

Fields

§forest_id: String
§branch_id: String
§key: String

The exact key K_ng (Gate AB); support evidence hashed separately.

§evidence_hash: String
§support_kind: String

The Gate AB support class this record’s evidence belongs to (compiler-code, failed-test, contract-diagnostic, unchanged-state, denied-capability); additive for replay verification, empty on legacy rows.

§

SearchClosed

Fields

§forest_id: String
§

ContextWorkingSet

Fields

§forest_id: String
§branch_id: String
§turn: u32
§page_ids: Vec<String>
§

ContextPagesSelected

Fields

§forest_id: String
§branch_id: String
§turn: u32
§resident_digest: String
§page_ids: Vec<String>
§

ContextMiss

Fields

§forest_id: String
§branch_id: String
§turn: u32
§

ContextPageRecalled

Fields

§forest_id: String
§branch_id: String
§turn: u32
§page_id: String
§

ContextInfeasible

Fields

§forest_id: String
§branch_id: String
§turn: u32
§required: u64
§allowance: u64
§

ContextCompacted

Fields

§forest_id: String
§branch_id: String
§summary_page: String
§source_pages: Vec<String>
§

PromptProgramCompiled

A prompt program recompiled mid-loop — the offered tool surface or the failover route changed, so the program identity changed (PSP-10 Gate Z).

Fields

§turn: u32
§

PromptProgramInvoked

The exact prompt binding of one model call: both program digests and the invocation digest (one record per call, Gate Z).

Fields

§turn: u32
§invocation_digest: String
§platform_digest: String
§domain_digest: String
§tool_spec_hash: String
§resident_context_digest: String

Trait Implementations§

Source§

impl Clone for LoopEvent

Source§

fn clone(&self) -> LoopEvent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LoopEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for LoopEvent

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for LoopEvent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
§

impl<T> ToAst for T

§

fn ast(self, begin: usize, end: usize) -> Spanned<Self>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<T> AsTypeStaticRegistered for T

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> HasTyVTable for T
where T: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

impl<T> StarlarkAnyBound for T
where T: Debug + Send + Sync + 'static,