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.
16 lines
625 B
Rust
16 lines
625 B
Rust
//! `vetta-infer-kn`: the pure microkernel (docs/ARCHITECTURE.md §2).
|
|
//!
|
|
//! Three responsibilities, zero model logic:
|
|
//! 1. Service registry & lifecycle (two-phase commit, STOP/cancellation drain)
|
|
//! — verified in `proofs/bus_lifecycle.lean`.
|
|
//! 2. Typed control bus (delivery gated on lifecycle state).
|
|
//! 3. Memory/DMA broker (`SlabRing` fence-guarded UMA slot ownership)
|
|
//! — verified in `proofs/slab_ring_dma.lean`.
|
|
//!
|
|
//! The data plane never crosses this crate: services exchange UMA handles,
|
|
//! the bus carries only control-plane messages.
|
|
|
|
pub mod bus;
|
|
pub mod registry;
|
|
pub mod slab;
|
|
pub mod uma; |