pub enum ValidatedForm {
Sem {
s: SymbolId,
p: SymbolId,
o: Value,
source: SymbolId,
source_kind: SourceKind,
confidence: Confidence,
valid_at: ClockTime,
projected: bool,
},
Epi {
event_id: SymbolId,
kind: SymbolId,
participants: Vec<SymbolId>,
location: SymbolId,
at_time: ClockTime,
observed_at: ClockTime,
source: SymbolId,
source_kind: SourceKind,
confidence: Confidence,
},
Pro {
rule_id: SymbolId,
trigger: Value,
action: Value,
precondition: Option<Value>,
scope: SymbolId,
source: SymbolId,
source_kind: SourceKind,
confidence: Confidence,
},
Inf {
s: SymbolId,
p: SymbolId,
o: Value,
derived_from: Vec<SymbolId>,
method: SymbolId,
confidence: Confidence,
valid_at: ClockTime,
projected: bool,
},
Alias {
a: SymbolId,
b: SymbolId,
},
Rename {
old: SymbolId,
new: SymbolId,
},
Retire {
name: SymbolId,
reason: Option<String>,
},
Correct {
target_episode: SymbolId,
corrected: Box<ValidatedForm>,
},
Promote {
name: SymbolId,
},
Query {
selector: Option<Value>,
keywords: BoundKeywords,
},
Episode {
action: EpisodeAction,
label: Option<String>,
parent_episode: Option<SymbolId>,
retracts: Vec<SymbolId>,
},
Flag {
action: FlagAction,
memory: SymbolId,
actor: SymbolId,
},
}Expand description
An AST form after the semantic stage: typed fields are extracted from keyword bags; grounding + confidence + clock invariants are enforced.
Consumed by the canonical-form emitter.
Variants§
Sem
Semantic memory write.
Fields
source_kind: SourceKindDerived grounding kind from the source symbol’s canonical name.
confidence: ConfidenceStored confidence — clamped by source bound.
Epi
Episodic memory write.
Pro
Procedural memory write.
Inf
Inferential memory write.
Fields
confidence: ConfidenceConfidence.
Alias
Alias declaration.
Rename
Rename — old name becomes alias of new.
Retire
Retire a symbol.
Correct
Correct a prior Episodic memory.
Fields
corrected: Box<ValidatedForm>Corrected Episodic body.
Promote
Promote an ephemeral memory.
Query
Read-path query.
Fields
keywords: BoundKeywordsRemaining keyword arguments (uninterpreted at this stage).
Episode
Explicit Episode-boundary directive — pass-through from bind. The semantic stage enforces “at most one Episode directive per batch” so the emitter can trust the batch carries a single deterministic intent.
Fields
action: EpisodeActionOpen or close.
Flag
Pin / unpin / authoritative flag write — pass-through from
bind. See confidence-decay.md §§ 7 / 8.
Trait Implementations§
Source§impl Clone for ValidatedForm
impl Clone for ValidatedForm
Source§fn clone(&self) -> ValidatedForm
fn clone(&self) -> ValidatedForm
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more