Dissolve the M0 crates (core/io/proto/telemetry/hip/cli) into the approved service layout abi/kn/ld/cc/rt/lab/sp/nt/tm/gw (docs/ARCHITECTURE.md). - kn: Lean-verified control bus + service registry (bus_lifecycle.lean, 14 thms) and SlabRing/UMA broker; rt: PrefixState + hybrid checkpoint pool. - sp: faithful throughput-aware Adaptive-K port of clover_policy.h (cooldowns, probes, throughput guards) with scenario parity tests. - gw: strata-ctl-compatible wire emitters + serve session FSM (serve_session.lean, 10 thms); abi::serve accepts image= (Vision delta closed). - abi: pure contracts, checked JSON/VTC1/GEN parsers, zero-alloc sampler. - ld/cc: checked safetensors reader + write-once VTC1 writer / O_RDONLY reader. - tm: lock-free telemetry; nt: LyraRpc; lab shares the rt executor core. - Docs: ARCHITECTURE.md decision-complete spec (MoE-only scope, .vbundle, .vplan->CompiledPlan, wire contract, migration map); AGENTS.md Lean rule + tandem/review workflow. Verified live: cargo test --workspace -D warnings = 46/46 PASS; lean proofs = 34 theorems (slab_ring_dma 10, bus_lifecycle 14, serve_session 10), 0 sorryAx, standard axioms only; vetta-infer info on Inkling = 1244 tensors, 18.18 GiB, checked bounds.
20 lines
828 B
Rust
20 lines
828 B
Rust
//! `vetta-infer-lab`: laboratory runtime (docs/ARCHITECTURE.md §5).
|
|
//!
|
|
//! Executes the *identical* `CompiledPlan` as `rt` — the executor core is
|
|
//! shared by construction, not duplicated. `lab` only interleaves the
|
|
//! observation points declared in `probe.vplan`; `rt` runs with an empty
|
|
//! probe table (zero probes, zero debug branching on the hot path).
|
|
//!
|
|
//! The probe-hook table and the shared plan executor land with M1; this crate
|
|
//! already pins the structural guarantee: lab depends on rt's executor.
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
#[test]
|
|
fn shares_executor_core_with_rt() {
|
|
// Structural guarantee: lab sees the exact same prefix/state machinery
|
|
// as rt (no forked executor).
|
|
let st = vetta_infer_rt::prefix::PrefixState::target_only(4);
|
|
assert_eq!(st.len(), 4);
|
|
}
|
|
} |