Skip to main content

WriteEngine

Struct WriteEngine 

Source
pub struct WriteEngine<'a> { /* private fields */ }
Expand description

Write engine providing mutation operations across all domains.

Implementations§

Source§

impl<'a> WriteEngine<'a>

Source

pub fn run_coherence_check( &mut self, check: CoherenceCheck, ) -> RealityResult<()>

Run a coherence check and record the result.

Source

pub fn record_violation( &mut self, violation: CoherenceViolation, ) -> RealityResult<()>

Record a coherence violation.

Source

pub fn resolve_violation( &mut self, idx: usize, resolution: String, ) -> RealityResult<()>

Resolve a coherence violation.

Source

pub fn begin_transition( &mut self, transition: PendingTransition, ) -> RealityResult<TransitionId>

Begin a context transition.

Source

pub fn advance_transition( &mut self, id: &TransitionId, phase: TransitionPhase, ) -> RealityResult<()>

Advance a transition to the next phase.

Source

pub fn complete_transition(&mut self, id: &TransitionId) -> RealityResult<()>

Complete a transition.

Source

pub fn abort_transition(&mut self, id: &TransitionId) -> RealityResult<()>

Abort a transition.

Source

pub fn rollback_transition(&mut self, id: &TransitionId) -> RealityResult<()>

Rollback a transition.

Source§

impl<'a> WriteEngine<'a>

Source

pub fn initialize_soul( &mut self, soul: DeploymentSoul, ) -> RealityResult<IncarnationId>

Initialize the deployment soul — the agent’s existential identity.

Source

pub fn update_substrate( &mut self, substrate: PhysicalSubstrate, ) -> RealityResult<()>

Update the physical substrate.

Source

pub fn record_birth(&mut self, birth: BirthContext) -> RealityResult<()>

Record birth context.

Source

pub fn update_vitals(&mut self, vitals: SoulVitals) -> RealityResult<()>

Update soul vitals.

Source

pub fn record_death(&mut self, death: DeathRecord) -> RealityResult<()>

Record death of the current incarnation.

Source

pub fn add_past_life(&mut self, past: PastIncarnation) -> RealityResult<()>

Add a past incarnation.

Source

pub fn update_lineage( &mut self, lineage: DeploymentLineage, ) -> RealityResult<()>

Update deployment lineage.

Source

pub fn set_role(&mut self, role: DeploymentRole) -> RealityResult<()>

Set the deployment role.

Source

pub fn set_nature(&mut self, nature: ExistentialNature) -> RealityResult<()>

Set the existential nature.

Source

pub fn update_cardinality( &mut self, cardinality: Cardinality, ) -> RealityResult<()>

Update cardinality.

Source

pub fn record_wisdom(&mut self, wisdom: IncarnationWisdom) -> RealityResult<()>

Record a piece of wisdom from a past incarnation.

Source

pub fn update_karma(&mut self, karma: IncarnationKarma) -> RealityResult<()>

Update incarnation karma.

Source§

impl<'a> WriteEngine<'a>

Source

pub fn sense_environment( &mut self, medium: EnvironmentMedium, ) -> RealityResult<()>

Sense the environment — set the full environment medium.

Source

pub fn update_environment_state( &mut self, state: EnvironmentState, ) -> RealityResult<()>

Update environment state.

Source

pub fn update_mood(&mut self, mood: EnvironmentMood) -> RealityResult<()>

Update environment mood.

Source

pub fn record_incident(&mut self, incident: ActiveIncident) -> RealityResult<()>

Record an active incident.

Source

pub fn clear_incident(&mut self, incident_id: &str) -> RealityResult<()>

Clear an incident by ID.

Source

pub fn update_physics( &mut self, physics: EnvironmentPhysics, ) -> RealityResult<()>

Update environment physics (constraints).

Source

pub fn record_weather(&mut self, event: WeatherEvent) -> RealityResult<()>

Record a weather event.

Source

pub fn update_fingerprint( &mut self, fingerprint: ContextFingerprint, ) -> RealityResult<()>

Update the context fingerprint.

Source

pub fn add_inhabitant(&mut self, inhabitant: String) -> RealityResult<()>

Add an inhabitant.

Source

pub fn remove_inhabitant(&mut self, inhabitant: &str) -> RealityResult<()>

Remove an inhabitant.

Source§

impl<'a> WriteEngine<'a>

Source

pub fn set_reality_layer(&mut self, layers: RealityLayers) -> RealityResult<()>

Set the current reality layer.

Source

pub fn update_layer_status(&mut self, status: LayerStatus) -> RealityResult<()>

Update a specific layer status.

Source

pub fn update_freshness( &mut self, freshness: FreshnessPerception, ) -> RealityResult<()>

Update freshness perception.

Source

pub fn add_anchor(&mut self, anchor: RealityAnchor) -> RealityResult<AnchorId>

Add a reality anchor.

Source

pub fn remove_anchor(&mut self, id: &AnchorId) -> RealityResult<()>

Remove a reality anchor.

Source

pub fn verify_anchor( &mut self, id: &AnchorId, value: AnchorValue, ) -> RealityResult<()>

Verify an anchor and update its value.

Source

pub fn record_anchor_drift(&mut self, drift: AnchorDrift) -> RealityResult<()>

Record drift in an anchor.

Source

pub fn detect_hallucination( &mut self, hallucination: DetectedHallucination, ) -> RealityResult<()>

Detect a hallucination.

Source

pub fn clear_hallucination(&mut self, id: &str) -> RealityResult<()>

Clear a resolved hallucination.

Source

pub fn add_unverified_claim( &mut self, claim: UnverifiedClaim, ) -> RealityResult<()>

Add an unverified claim.

Source

pub fn verify_claim(&mut self, claim_text: &str) -> RealityResult<()>

Verify a pending claim (remove from pending).

Source

pub fn update_grounding( &mut self, grounding: GroundingStatus, ) -> RealityResult<()>

Update grounding status.

Source§

impl<'a> WriteEngine<'a>

Source

pub fn sense_resources(&mut self, body: ResourceBody) -> RealityResult<()>

Sense resources — set the full resource body.

Source

pub fn update_mind(&mut self, mind: MindCapacity) -> RealityResult<()>

Update mind (memory) capacity.

Source

pub fn update_energy(&mut self, energy: ProcessingEnergy) -> RealityResult<()>

Update processing energy (CPU).

Source

pub fn update_reach(&mut self, reach: NetworkReach) -> RealityResult<()>

Update network reach.

Source

pub fn update_storage(&mut self, storage: StorageCapacity) -> RealityResult<()>

Update storage capacity.

Source

pub fn update_visual( &mut self, visual: Option<GpuCapacity>, ) -> RealityResult<()>

Update GPU capacity.

Source

pub fn add_sensation( &mut self, sensation: ResourceSensation, ) -> RealityResult<()>

Add a resource sensation.

Source

pub fn clear_sensation(&mut self, resource: ResourceType) -> RealityResult<()>

Clear sensations for a resource type.

Source

pub fn update_pressure_gradient( &mut self, gradient: ResourcePressureGradient, ) -> RealityResult<()>

Update the resource pressure gradient.

Source

pub fn discover_capability( &mut self, capability: Capability, ) -> RealityResult<()>

Discover a new capability.

Source

pub fn lose_capability(&mut self, name: &str) -> RealityResult<()>

Lose a capability by name.

Source

pub fn update_cost(&mut self, cost: CostConsciousness) -> RealityResult<()>

Update cost consciousness.

Source

pub fn update_capacity_intuition( &mut self, intuition: CapacityIntuition, ) -> RealityResult<()>

Update capacity planning intuition.

Source

pub fn set_budget(&mut self, budget: BudgetConstraints) -> RealityResult<()>

Set budget constraints.

Source§

impl<'a> WriteEngine<'a>

Source

pub fn set_stakes_level(&mut self, stakes: StakesLevel) -> RealityResult<()>

Set the stakes level.

Source

pub fn add_consequence(&mut self, consequence: Consequence) -> RealityResult<()>

Add a potential consequence.

Source

pub fn remove_consequence(&mut self, effect: &str) -> RealityResult<()>

Remove a consequence by effect description.

Source

pub fn add_irreversible_action( &mut self, action: IrreversibleAction, ) -> RealityResult<()>

Add an irreversible action.

Source

pub fn update_safety_margins( &mut self, margins: SafetyMargins, ) -> RealityResult<()>

Update safety margins.

Source

pub fn add_guardrail(&mut self, guardrail: Guardrail) -> RealityResult<()>

Add a guardrail.

Source

pub fn remove_guardrail(&mut self, name: &str) -> RealityResult<()>

Remove a guardrail by name.

Source

pub fn update_risk_field( &mut self, risk_field: RiskFieldPerception, ) -> RealityResult<()>

Update the risk field.

Source

pub fn update_blast_radius( &mut self, blast: BlastRadiusAwareness, ) -> RealityResult<()>

Update blast radius awareness.

Source

pub fn record_consequence( &mut self, record: ConsequenceRecord, ) -> RealityResult<()>

Record a consequence that occurred.

Source§

impl<'a> WriteEngine<'a>

Source

pub fn ground_time(&mut self, awareness: TemporalAwareness) -> RealityResult<()>

Ground the agent’s time awareness.

Source

pub fn update_temporal_context( &mut self, context: TemporalContext, ) -> RealityResult<()>

Update temporal context.

Source

pub fn add_causal_event(&mut self, event: CausalEvent) -> RealityResult<EventId>

Add a causal event.

Link two events causally.

Source

pub fn add_deadline(&mut self, deadline: Deadline) -> RealityResult<()>

Add a deadline.

Source

pub fn remove_deadline(&mut self, id: &str) -> RealityResult<()>

Remove a deadline by ID.

Source

pub fn update_deadline(&mut self, deadline: Deadline) -> RealityResult<()>

Update a deadline.

Source

pub fn add_timeline(&mut self, timeline: Timeline) -> RealityResult<TimelineId>

Add a timeline.

Source

pub fn record_timeline_event( &mut self, timeline_id: &TimelineId, event: TimelineEvent, ) -> RealityResult<()>

Record an event on a timeline.

Source

pub fn resolve_timeline_conflict( &mut self, timeline_id: &TimelineId, conflict_idx: usize, ) -> RealityResult<()>

Resolve a timeline conflict.

Source§

impl<'a> WriteEngine<'a>

Source

pub fn set_position(&mut self, position: TopologyPosition) -> RealityResult<()>

Set the agent’s position in the topology.

Source

pub fn add_upstream(&mut self, upstream: UpstreamEntity) -> RealityResult<()>

Add an upstream entity.

Source

pub fn remove_upstream(&mut self, id: &ServiceId) -> RealityResult<()>

Remove an upstream entity by service ID.

Source

pub fn add_downstream( &mut self, downstream: DownstreamEntity, ) -> RealityResult<DependencyId>

Add a downstream dependency.

Source

pub fn remove_downstream(&mut self, id: &DependencyId) -> RealityResult<()>

Remove a downstream dependency.

Source

pub fn update_downstream_health( &mut self, id: &DependencyId, health: HealthStatus, ) -> RealityResult<()>

Update the health of a downstream dependency.

Source

pub fn add_sibling(&mut self, sibling: SiblingEntity) -> RealityResult<()>

Add a sibling entity.

Source

pub fn remove_sibling(&mut self, id: &NeighborId) -> RealityResult<()>

Remove a sibling entity.

Source

pub fn update_sibling_state( &mut self, id: &NeighborId, health: HealthStatus, load: LoadLevel, ) -> RealityResult<()>

Update sibling state.

Source

pub fn add_observer(&mut self, observer: ObserverEntity) -> RealityResult<()>

Add an observer.

Source

pub fn remove_observer(&mut self, id: &ObserverId) -> RealityResult<()>

Remove an observer.

Source

pub fn update_topology_health( &mut self, health: TopologyHealth, ) -> RealityResult<()>

Update topology health.

Source

pub fn record_mesh_event(&mut self, _event: String) -> RealityResult<()>

Record a mesh event.

Source

pub fn update_graph(&mut self, graph: TopologyGraph) -> RealityResult<()>

Update the full topology graph.

Source§

impl<'a> WriteEngine<'a>

Source

pub fn new(engine: &'a mut RealityEngine) -> Self

Auto Trait Implementations§

§

impl<'a> Freeze for WriteEngine<'a>

§

impl<'a> RefUnwindSafe for WriteEngine<'a>

§

impl<'a> Send for WriteEngine<'a>

§

impl<'a> Sync for WriteEngine<'a>

§

impl<'a> Unpin for WriteEngine<'a>

§

impl<'a> UnsafeUnpin for WriteEngine<'a>

§

impl<'a> !UnwindSafe for WriteEngine<'a>

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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.