Skip to main content

SpecBoundaryCapture

Struct SpecBoundaryCapture 

Source
pub struct SpecBoundaryCapture {
    pub snap: CacheSnapshot,
    pub pos: usize,
    pub logits: Vec<f32>,
}
Expand description

PREFIX-CACHE BOUNDARY CAPTURE (lane/spec-prefix-cache, 2026-08-14): the state a spec session records at its cold-prime split so the WORKER can publish a cross-request prefix entry — the commit-gated-publication port (research/cache-spec-design-20260814/PORT-PLAN.md item 1). Only the pieces that are DESTROYED by continuing the prime need copies here: the in-place GDN conv/ssm states (via Cache::snapshot, same mechanism as [SpecCheckpoint]) and the boundary logits. Full-attn KV rows [0..pos) and draft-scratch rows [0..pos) are append-only for the session’s lifetime (rollbacks never truncate below the prime boundary), so the worker slices those from the live caches post-burst instead of copying at prime time.

Fields§

§snap: CacheSnapshot§pos: usize

Token boundary (== cache.pos at capture; == the worker’s miss-LCP split).

§logits: Vec<f32>

Full-vocab logits after the prefix prime — the entry’s boundary logits.

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