Skip to main content

SemanticParentBinding

Struct SemanticParentBinding 

Source
pub struct SemanticParentBinding {
Show 33 fields pub recovered_instance: Option<Identity256>, pub source: [SemanticTextSlot; 32], pub prefix: Vec<SemanticTextSlot>, pub ring_head: u64, pub provenance_records: u64, pub prefix_capacity: u64, pub feedback_capacity: u64, pub max_position: u64, pub pad_token: u64, pub terminal_tokens: Vec<u64>, pub final_intent_payload_bytes: u64, pub intent_effect: Vec<u8>, pub intent_entry_capacity: u64, pub intent_payload_capacity_bytes: usize, pub acknowledgement_payload_capacity_bytes: usize, pub model_generation: u64, pub model_numerical_mode: Vec<u8>, pub model_contract_layout: SemanticModelContractLayout, pub policy_generation: u64, pub neural_generation: u64, pub cache_generation: u64, pub authority_generation: u64, pub training_cursor: u64, pub training_rng: [u64; 4], pub fuel: u64, pub rng: SemanticRngBinding, pub topology_identity: Identity256, pub table_identity: Identity256, pub role_counts: [u64; 55], pub records: Vec<SemanticStateRecord>, pub tensors: Vec<SemanticTensorInput>, pub model_memory: SemanticModelMemory, pub active_layouts: Vec<SemanticTensorLayout>,
}
Expand description

Initial canonical parent only. A model continuation cannot be supplied here: it is admitted after a real Acquire and a forward using that acquired parent. PrefixIdentity is native-owned: fresh publication derives its 32 bytes from the actual PrefixSource. Supplying a caller record for that role is an error.

Fields§

§recovered_instance: Option<Identity256>§source: [SemanticTextSlot; 32]§prefix: Vec<SemanticTextSlot>§ring_head: u64§provenance_records: u64§prefix_capacity: u64§feedback_capacity: u64§max_position: u64§pad_token: u64§terminal_tokens: Vec<u64>§final_intent_payload_bytes: u64§intent_effect: Vec<u8>

Actual application effect descriptor. The native owner constructs the empty intent queue; callers never encode its private header or entries.

§intent_entry_capacity: u64§intent_payload_capacity_bytes: usize§acknowledgement_payload_capacity_bytes: usize§model_generation: u64§model_numerical_mode: Vec<u8>

Complete versioned numerical-mode contribution from the model owner. The Python binding uses exact canonical ColdValue metadata, not a digest or repr. Native code owns the surrounding RuntimeContract record.

§model_contract_layout: SemanticModelContractLayout§policy_generation: u64§neural_generation: u64§cache_generation: u64§authority_generation: u64§training_cursor: u64§training_rng: [u64; 4]§fuel: u64§rng: SemanticRngBinding§topology_identity: Identity256§table_identity: Identity256§role_counts: [u64; 55]

Every one of the 55 roles is explicit, including actual zero tensor counts.

§records: Vec<SemanticStateRecord>§tensors: Vec<SemanticTensorInput>§model_memory: SemanticModelMemory§active_layouts: Vec<SemanticTensorLayout>

Model-declared 51..54 capacities only; no active output exists before Acquire and the original forward. Initial ranges are unreachable.

Implementations§

Source§

impl SemanticParentBinding

Source

pub fn bind_initial_sources( &mut self, sources: &[SemanticObservedSource], mapping: &[SemanticSourceMapping], authority: &[u8], capacity_records: u64, ) -> Result<(), SemanticTransitionError>

Construct the private initial SOURCE ledger from admitted observations. The complete authority record is retained in the parent by the same controller. Fresh GENERATED rows must instead enter through restoration.

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