[ABI][KN][LD][CC][RT][LAB][SP][NT][TM][GW][Proofs][Docs] M0.5: realign workspace to vetta-infer-* microkernel architecture

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.
This commit is contained in:
adm committed 2026-11-30 00:54:00 +01:00
1 parent 63b1668a92
commit 7b50f1c07c
49 files changed
+3211 -1208

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
[package]
name = "vetta-infer-lab"
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
vetta-infer-rt = { path = "../vetta-infer-rt" }
+20
View File
@@ -0,0 +1,20 @@
//! `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);
}
}