Skip to main content

WalRecordContent

Enum WalRecordContent 

Source
pub enum WalRecordContent {
    Submit {
        seq: u64,
        instance: InstanceId,
        principal: Principal,
        actor: Option<EntityId>,
        caps_at_submit: u64,
        at: Tick,
        action_type_code: TypeCode,
        action_bytes: Vec<u8>,
        allocated_id: ScheduledActionId,
    },
    Step {
        seq: u64,
        instance: InstanceId,
        popped_id: ScheduledActionId,
        now: Tick,
        session_caps: u64,
        verdict: StepVerdict,
        post_state_digest: [u8; 32],
    },
}
Expand description

Kind-discriminated canonical content of a WAL record. The serde variant tag is the record WalRecordKind and the first hashed body field. The CIL records only non-reproducible facts: exogenous submissions and per-step verdicts + post-state digest — every deterministic effect (child schedules, signal routing, internal ids) is re-derived on replay.

Variants§

§

Submit

Exogenous admission of an external action — the only non-reproducible scheduling input (internal Op::ScheduleAction schedules are re-derived by re-executing the parent, never logged).

Fields

§seq: u64

Monotonic record sequence within this WAL.

§instance: InstanceId

Instance the action was submitted to.

§principal: Principal

Principal the external caller submitted under.

§actor: Option<EntityId>

Submitting entity, if any (feeds ActionContext::actor, so it is canonical input and chain-hashed).

§caps_at_submit: u64

Capability ceiling granted to this submission — bounds the action’s effective caps at execution (replay reconstructs it).

§at: Tick

Tick the action is scheduled for.

§action_type_code: TypeCode

Type code of the submitted action.

§action_bytes: Vec<u8>

Canonical action bytes (replay deserializes from these).

§allocated_id: ScheduledActionId

ScheduledActionId the kernel minted — replay re-injects with this exact id so the id sequence is reproduced verbatim.

§

Step

One step_one pop: which entry ran, when, under what operator session ceiling, with what verdict, and the full-state digest afterward (the bit-identity witness).

Fields

§seq: u64

Monotonic record sequence within this WAL.

§instance: InstanceId

Instance the step ran against.

§popped_id: ScheduledActionId

ScheduledActionId popped this step (scheduler-order witness).

§now: Tick

Tick the step ran at.

§session_caps: u64

Operator session capability ceiling in force at step time — the final intersection applied over the action’s resolved caps. It is a non-reproducible per-step operator input (like caps_at_submit is per submission), so it is recorded for the verdict to be re-derivable on replay.

§verdict: StepVerdict

Step outcome — replay must re-reach this exact verdict.

§post_state_digest: [u8; 32]

BLAKE3 digest of the instance’s full post-step state; replay measures the replayed instance and asserts equality (A1).

Trait Implementations§

Source§

impl Clone for WalRecordContent

Source§

fn clone(&self) -> WalRecordContent

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 WalRecordContent

Source§

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

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

impl<'de> Deserialize<'de> for WalRecordContent

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 WalRecordContent

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