Skip to main content

ContextVmState

Struct ContextVmState 

Source
pub struct ContextVmState {
Show 13 fields pub handles: Vec<HandleState>, pub next_handle_id: u32, pub pending_payload_loads: Vec<PendingPayloadLoadState>, pub active_skills: Vec<SkillLeaseState>, pub knowledge: Vec<KnowledgeSlotState>, pub signals: Vec<String>, pub messages: Vec<StoredMessageState>, pub task_state: LogicalTaskState, pub partition_tokens: PartitionTokenState, pub history_len: u32, pub frozen_history_len: u32, pub last_activity_ms: WireU64, pub last_compact_ms: Option<WireU64>,
}
Expand description

§12.1 · the P3 plane: the handle table and its allocator, skills and their leases, the knowledge slots, the signal partition and the compaction/renewal clocks.

What is here is everything the context VM cannot re-derive: identity (handle ids and the allocator that mints them), leases, pin/evict marks, the pending page-in verification targets, the clocks the decay ladders read — and, since Task 16, the stored messages themselves.

The message projection is what makes §12.2 true (adjudication §5q-2). Task 15 carried only token counts and lengths on the theory that a tail replay could rebuild the bodies; it cannot, because a tail that starts above genesis never replays the inputs that produced the older messages. And as long as the bodies were unrecoverable, acking a checkpoint and pruning the journal prefix destroyed the rendering input for good. So they are here — as StoredMessageState, a source projection. §15.2’s ban is on derived planned steps and rendered context; nothing here is either. A body that is over §7.10’s inline threshold is not inlined: an External/PagedOut residency travels as its handle reference and digest, exactly as it does in working context.

Fields§

§handles: Vec<HandleState>

The home of P3 handle identity and residency.

§next_handle_id: u32

The monotonic allocator. Checkpointing it is what stops a restored kernel from re-issuing a handle id that an outstanding effect still addresses.

§pending_payload_loads: Vec<PendingPayloadLoadState>

§7.10 rule 4 · the digest each pending LoadPayload will verify its body against. Held here rather than re-read from the handle table at resolution time, so a residency that moved in between cannot change what a page-in is checked against.

§active_skills: Vec<SkillLeaseState>§knowledge: Vec<KnowledgeSlotState>§signals: Vec<String>§messages: Vec<StoredMessageState>

§5q-2 · the stored messages of the system and history partitions, in render order. The home of message bodies; the knowledge partition carries its own inside KnowledgeSlotState, because a knowledge entry is an identified slot rather than a positional message.

§task_state: LogicalTaskState

The durable task board (goal / plan / progress / directives). It renders into the prompt like a message does, survives compression by construction, and is the one partition of §12.1’s P3 plane that is neither a message list nor a handle.

§partition_tokens: PartitionTokenState§history_len: u32§frozen_history_len: u32

Message-count boundary projected as frozen_prefix_len on future provider effects.

§last_activity_ms: WireU64§last_compact_ms: Option<WireU64>

Trait Implementations§

Source§

impl Clone for ContextVmState

Source§

fn clone(&self) -> ContextVmState

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 ContextVmState

Source§

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

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

impl Default for ContextVmState

Source§

fn default() -> ContextVmState

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ContextVmState

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 PartialEq for ContextVmState

Source§

fn eq(&self, other: &ContextVmState) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ContextVmState

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
Source§

impl StructuralPartialEq for ContextVmState

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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

Source§

type Output = T

Should always be 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.