pub enum ExperienceEvent {
Show 14 variants
ProposalCreated {
proposal: KernelProposal,
chain_id: ChainId,
step: DecisionStep,
policy_snapshot_hash: Option<ContentHash>,
},
ProposalValidated {
proposal_id: ProposalId,
chain_id: ChainId,
step: DecisionStep,
contract_results: Vec<ContractResultSnapshot>,
all_passed: bool,
validator: ActorId,
},
FactPromoted {
proposal_id: ProposalId,
fact_id: FactId,
promoted_by: ActorId,
reason: String,
requires_human: bool,
},
RecallExecuted {
query: RecallQuery,
provenance: RecallProvenanceEnvelope,
trace_link_id: Option<TraceLinkId>,
},
ReplayTraceRecorded {
trace_link_id: TraceLinkId,
trace_link: ReplayTrace,
},
ReplayabilityDowngraded {
trace_link_id: TraceLinkId,
from: Replayability,
to: Replayability,
reason: ReplayabilityDowngradeReason,
},
ArtifactStateTransitioned {
artifact_id: ArtifactId,
artifact_kind: ArtifactKind,
event: LifecycleEvent,
},
ArtifactRollbackRecorded {
rollback: RollbackRecord,
},
BackendInvoked {
backend_name: BackendId,
adapter_id: Option<BackendId>,
trace_link_id: TraceLinkId,
step: DecisionStep,
policy_snapshot_hash: Option<ContentHash>,
},
OutcomeRecorded {
chain_id: ChainId,
step: DecisionStep,
passed: bool,
stop_reason: Option<StopReason>,
latency_ms: Option<u64>,
tokens: Option<u64>,
cost_microdollars: Option<u64>,
backend: Option<BackendId>,
metadata: HashMap<String, String>,
},
BudgetExceeded {
chain_id: ChainId,
resource: BudgetResource,
limit: String,
observed: Option<String>,
},
PolicySnapshotCaptured {
policy_id: PolicyId,
policy: PolicySnapshot,
snapshot_hash: ContentHash,
captured_by: ActorId,
},
HypothesisResolved {
chain_id: ChainId,
fact_id: FactId,
domain: DomainId,
claim: String,
confidence: f64,
outcome: HypothesisOutcome,
contradiction_id: Option<TensionId>,
formed_cycle: u32,
resolved_cycle: u32,
},
GateDecisionRecorded {
request: GateRequest,
decision: GateDecision,
},
}Expand description
Append-only experience event payloads.
Variants§
ProposalCreated
Kernel proposal was created.
ProposalValidated
Proposal was validated (contracts/truths evaluated).
FactPromoted
Proposal was promoted into a fact.
Fields
§
proposal_id: ProposalIdRecallExecuted
Recall operation executed with full provenance.
ReplayTraceRecorded
Trace link recorded as a first-class object.
ReplayabilityDowngraded
Replayability downgraded for a trace.
Fields
§
trace_link_id: TraceLinkId§
from: Replayability§
to: Replayability§
reason: ReplayabilityDowngradeReasonArtifactStateTransitioned
Governed artifact state transition recorded.
ArtifactRollbackRecorded
Governed artifact rollback recorded.
Fields
§
rollback: RollbackRecordBackendInvoked
Backend invocation occurred (useful for audit/latency analysis).
OutcomeRecorded
Outcome recorded for a chain step.
BudgetExceeded
Budget exceeded event for a chain/run.
PolicySnapshotCaptured
Policy snapshot captured for provenance.
HypothesisResolved
A tracked hypothesis reached a terminal outcome.
Fields
§
outcome: HypothesisOutcomeGateDecisionRecorded
Human decision on a HITL gate recorded for audit and later policy mining.
Implementations§
Source§impl ExperienceEvent
impl ExperienceEvent
Sourcepub fn kind(&self) -> ExperienceEventKind
pub fn kind(&self) -> ExperienceEventKind
Get the event kind for filtering.
Trait Implementations§
Source§impl Clone for ExperienceEvent
impl Clone for ExperienceEvent
Source§fn clone(&self) -> ExperienceEvent
fn clone(&self) -> ExperienceEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExperienceEvent
impl Debug for ExperienceEvent
Source§impl<'de> Deserialize<'de> for ExperienceEvent
impl<'de> Deserialize<'de> for ExperienceEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExperienceEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExperienceEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ExperienceEvent
impl Serialize for ExperienceEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ExperienceEvent
impl RefUnwindSafe for ExperienceEvent
impl Send for ExperienceEvent
impl Sync for ExperienceEvent
impl Unpin for ExperienceEvent
impl UnsafeUnpin for ExperienceEvent
impl UnwindSafe for ExperienceEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more