From f1723b582d1efadd65af27ea91076db7b2316126 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Fri, 6 Nov 2026 21:52:37 +0100 Subject: [PATCH] STRA-338 size-fn2: allowlist 133 -> 1 entry, baselines tightened, cpu-sys attention test helpers moved to tests/attention/kernel_checks.rs (file back under 400 lines, test ids unchanged), size-fn record of pass 2 Census of these crates: production fn>30 17 -> 2 (igpu gemm WGSL, OpenVino::load FFI table), cx>10 11 -> 0, wide 449 -> 38 (33 USAGE lines of the deploy --help text, 5 WGSL lines); test fn>30 122 -> 0, cx>10 3 -> 0, nesting>4 4 -> 0, wide 150 -> 0. --- architecture-baseline.json | 2 +- crates/cpu-sys/tests/attention.rs | 187 +-- .../cpu-sys/tests/attention/kernel_checks.rs | 196 +++ docs/architecture/size-fn.md | 82 +- limits-allowlist.json | 1256 +---------------- limits-baseline.json | 130 +- 6 files changed, 274 insertions(+), 1579 deletions(-) create mode 100644 crates/cpu-sys/tests/attention/kernel_checks.rs diff --git a/architecture-baseline.json b/architecture-baseline.json index 1b97ced3..c40a193d 100644 --- a/architecture-baseline.json +++ b/architecture-baseline.json @@ -61,7 +61,7 @@ "instant-now:leleka-npu-service": 5, "instant-now:leleka-obs": 3, "instant-now:strata-control": 22, - "instant-now:strata-desktop-core": 15, + "instant-now:strata-desktop-core": 14, "path-include:leleka-cuda-driver": 118, "path-include:leleka-engine-qwen35-cuda": 100, "path-include:leleka-model-format": 12, diff --git a/crates/cpu-sys/tests/attention.rs b/crates/cpu-sys/tests/attention.rs index f1414404..7dc5525f 100644 --- a/crates/cpu-sys/tests/attention.rs +++ b/crates/cpu-sys/tests/attention.rs @@ -3,6 +3,10 @@ use leleka_cpu_sys as sys; +#[path = "attention/kernel_checks.rs"] +mod kernel_checks; +use kernel_checks::*; + struct Rng(u64); impl Rng { @@ -194,10 +198,6 @@ fn the_vector_exp_is_accurate_and_flushes_deep_underflow_to_zero() { assert!((f64::from(sv) - f64::from(ss)).abs() <= f64::from(ss) * 1e-4); } -fn expect_mismatch(name: &str, result: Result<(), sys::KernelError>) { - assert_eq!(result, Err(sys::KernelError::LengthMismatch), "{name}"); -} - #[test] fn bad_shapes_are_refused_before_any_read() { let q = [1.0f32; 16]; // two heads of width 8 @@ -206,79 +206,6 @@ fn bad_shapes_are_refused_before_any_read() { refuse_weighted_sum_shapes(&keys); } -fn refuse_score_shapes(q: &[f32; 16], keys: &[f32; 20]) { - let mut out = [0.0f32; 6]; - let check = expect_mismatch; - // three positions at stride 8 need 8 * 2 + 8 = 24 floats - check( - "keys too short", - sys::attn_scores_scalar(q, 2, keys, 8, 3, 1.0, &mut out), - ); - check( - "output too short", - sys::attn_scores_scalar(q, 2, keys, 8, 2, 1.0, &mut out[..3]), - ); - check( - "no heads", - sys::attn_scores_scalar(q, 0, keys, 8, 2, 1.0, &mut out), - ); - check( - "heads do not divide q", - sys::attn_scores_scalar(q, 3, keys, 8, 2, 1.0, &mut out), - ); - check( - "empty q", - sys::attn_scores_scalar(&[], 1, keys, 8, 2, 1.0, &mut out), - ); - check( - "stride overflow", - sys::attn_scores_scalar(q, 2, keys, usize::MAX, 3, 1.0, &mut out), - ); - refuse_avx2_score_shape(q, keys); -} - -fn refuse_avx2_score_shape(q: &[f32; 16], keys: &[f32; 20]) { - let mut out = [0.0f32; 6]; - let check = expect_mismatch; - if sys::avx2_available() { - check( - "avx2 keys too short", - sys::attn_scores_avx2(q, 2, keys, 8, 3, 1.0, &mut out), - ); - } -} - -fn refuse_weighted_sum_shapes(keys: &[f32; 20]) { - let mut o = [0.0f32; 16]; - let check = expect_mismatch; - check( - "weights too short", - sys::attn_weighted_sum_scalar(&[1.0; 5], 2, 3, keys, 4, &mut o), - ); - check( - "values too short", - sys::attn_weighted_sum_scalar(&[1.0; 6], 2, 3, &keys[..10], 8, &mut o), - ); - check( - "no heads", - sys::attn_weighted_sum_scalar(&[1.0; 6], 0, 3, keys, 4, &mut o), - ); - if sys::avx2_available() { - check( - "avx2 values too short", - sys::attn_weighted_sum_avx2(&[1.0; 6], 2, 3, &keys[..10], 8, &mut o), - ); - } -} - -/// Round `values` to half precision and return the bit patterns and the decoded values. -fn to_half(values: &[f32]) -> (Vec, Vec) { - let mut bits = vec![0u16; values.len()]; - sys::f32_to_f16_slice_scalar(values, &mut bits).unwrap(); - let decoded = bits.iter().map(|b| sys::simd::f16_to_f32(*b)).collect(); - (bits, decoded) -} - #[test] fn half_precision_keys_and_values_match_f64_references_on_the_decoded_values() { let mut rng = Rng(31); @@ -297,74 +224,6 @@ fn half_precision_keys_and_values_match_f64_references_on_the_decoded_values() { } } -/// The scalar and (when available) AVX2 half-precision scores. -fn half_scores(shape: Shape, q: &[f32], keys16: &[u16]) -> [Vec; 2] { - let (heads, _hd, stride, n) = shape.parts(); - let mut scores_s = vec![0f32; heads * n]; - sys::attn_scores_f16_scalar(q, heads, keys16, stride, n, 0.125, &mut scores_s).unwrap(); - let mut scores_v = scores_s.clone(); - if sys::avx2_available() { - scores_v.fill(f32::NAN); - sys::attn_scores_f16_avx2(q, heads, keys16, stride, n, 0.125, &mut scores_v).unwrap(); - } - [scores_s, scores_v] -} - -/// The scalar and (when available) AVX2 half-precision weighted sums. -fn half_sums(shape: Shape, weights: &[f32], values16: &[u16]) -> [Vec; 2] { - let (heads, hd, stride, n) = shape.parts(); - let mut sums_s = vec![0f32; heads * hd]; - sys::attn_weighted_sum_f16_scalar(weights, heads, n, values16, stride, &mut sums_s).unwrap(); - let mut sums_v = sums_s.clone(); - if sys::avx2_available() { - sums_v.fill(f32::NAN); - sys::attn_weighted_sum_f16_avx2(weights, heads, n, values16, stride, &mut sums_v).unwrap(); - } - [sums_s, sums_v] -} - -fn check_f16_scores(shape: Shape, q: &[f32], keys: &[f32], [scores_s, scores_v]: [&[f32]; 2]) { - let (heads, hd, stride, n) = shape.parts(); - for g in 0..heads { - for i in 0..n { - let terms: Vec = (0..hd) - .map(|j| f64::from(q[g * hd + j]) * f64::from(keys[i * stride + j])) - .collect(); - let exact = terms.iter().sum::() * 0.125; - let tol = terms.iter().map(|t| t.abs()).sum::() - * 0.125 - * (hd as f64 + 8.0) - * 2f64.powi(-23); - for got in [scores_s[g * n + i], scores_v[g * n + i]] { - assert!( - (f64::from(got) - exact).abs() <= tol, - "scores {heads}x{hd} head {g} #{i}" - ); - } - } - } -} - -fn check_f16_sums(shape: Shape, weights: &[f32], values: &[f32], [sums_s, sums_v]: [&[f32]; 2]) { - let (heads, hd, stride, n) = shape.parts(); - for g in 0..heads { - for j in 0..hd { - let terms: Vec = (0..n) - .map(|i| f64::from(weights[g * n + i]) * f64::from(values[i * stride + j])) - .collect(); - let exact: f64 = terms.iter().sum(); - let tol = - terms.iter().map(|t| t.abs()).sum::() * (n as f64 + 8.0) * 2f64.powi(-23); - for got in [sums_s[g * hd + j], sums_v[g * hd + j]] { - assert!( - (f64::from(got) - exact).abs() <= tol, - "sums {heads}x{hd} head {g} col {j}" - ); - } - } - } -} - #[test] fn the_vector_half_conversion_is_bit_identical_to_the_portable_one() { if !sys::avx2_available() { @@ -418,22 +277,6 @@ fn half_precision_kernels_refuse_short_buffers() { } } -/// Gate and up vectors with extremes at the front: far beyond the clamps and at the clamp edges. -fn swiglu_inputs(rng: &mut Rng, len: usize) -> (Vec, Vec) { - let mut gate: Vec = (0..len).map(|_| rng.f32(12.0)).collect(); - let mut up: Vec = (0..len).map(|_| rng.f32(12.0)).collect(); - for (i, g) in [-200.0f32, 200.0, -7.0, 7.0, 0.0, -0.0, 50.0, -50.0] - .iter() - .enumerate() - { - if i < len { - gate[i] = *g; - up[i] = if i % 2 == 0 { 100.0 } else { -100.0 }; - } - } - (gate, up) -} - #[test] fn the_expert_activation_matches_an_f64_reference_including_extremes() { let mut rng = Rng(101); @@ -460,28 +303,6 @@ fn the_expert_activation_matches_an_f64_reference_including_extremes() { ); } -fn check_swiglu( - len: usize, - [gate, up]: [&[f32]; 2], - [s, v]: [&[f32]; 2], - (alpha, limit): (f32, f32), -) { - for i in 0..len { - let x = f64::from(gate[i]).min(f64::from(limit)); - let y = f64::from(up[i]).clamp(-f64::from(limit), f64::from(limit)); - let exact = x / (1.0 + (-f64::from(alpha) * x).exp()) * (1.0 + y); - for (name, got) in [("scalar", s[i]), ("avx2", v[i])] { - let err = (f64::from(got) - exact).abs(); - assert!( - err <= 3e-6 * exact.abs() + 1e-30, - "{name} len {len} #{i}: gate {} up {}: {got} vs {exact}", - gate[i], - up[i] - ); - } - } -} - #[test] fn the_vector_half_to_float_conversion_is_exact_for_every_bit_pattern() { if !sys::avx2_available() { diff --git a/crates/cpu-sys/tests/attention/kernel_checks.rs b/crates/cpu-sys/tests/attention/kernel_checks.rs new file mode 100644 index 00000000..cb2afc6d --- /dev/null +++ b/crates/cpu-sys/tests/attention/kernel_checks.rs @@ -0,0 +1,196 @@ +//! The shape-refusal, half-precision and activation helpers of the attention tests. + +use super::*; + +pub(super) fn expect_mismatch(name: &str, result: Result<(), sys::KernelError>) { + assert_eq!(result, Err(sys::KernelError::LengthMismatch), "{name}"); +} + +pub(super) fn refuse_score_shapes(q: &[f32; 16], keys: &[f32; 20]) { + let mut out = [0.0f32; 6]; + let check = expect_mismatch; + // three positions at stride 8 need 8 * 2 + 8 = 24 floats + check( + "keys too short", + sys::attn_scores_scalar(q, 2, keys, 8, 3, 1.0, &mut out), + ); + check( + "output too short", + sys::attn_scores_scalar(q, 2, keys, 8, 2, 1.0, &mut out[..3]), + ); + check( + "no heads", + sys::attn_scores_scalar(q, 0, keys, 8, 2, 1.0, &mut out), + ); + check( + "heads do not divide q", + sys::attn_scores_scalar(q, 3, keys, 8, 2, 1.0, &mut out), + ); + check( + "empty q", + sys::attn_scores_scalar(&[], 1, keys, 8, 2, 1.0, &mut out), + ); + check( + "stride overflow", + sys::attn_scores_scalar(q, 2, keys, usize::MAX, 3, 1.0, &mut out), + ); + refuse_avx2_score_shape(q, keys); +} + +pub(super) fn refuse_avx2_score_shape(q: &[f32; 16], keys: &[f32; 20]) { + let mut out = [0.0f32; 6]; + let check = expect_mismatch; + if sys::avx2_available() { + check( + "avx2 keys too short", + sys::attn_scores_avx2(q, 2, keys, 8, 3, 1.0, &mut out), + ); + } +} + +pub(super) fn refuse_weighted_sum_shapes(keys: &[f32; 20]) { + let mut o = [0.0f32; 16]; + let check = expect_mismatch; + check( + "weights too short", + sys::attn_weighted_sum_scalar(&[1.0; 5], 2, 3, keys, 4, &mut o), + ); + check( + "values too short", + sys::attn_weighted_sum_scalar(&[1.0; 6], 2, 3, &keys[..10], 8, &mut o), + ); + check( + "no heads", + sys::attn_weighted_sum_scalar(&[1.0; 6], 0, 3, keys, 4, &mut o), + ); + if sys::avx2_available() { + check( + "avx2 values too short", + sys::attn_weighted_sum_avx2(&[1.0; 6], 2, 3, &keys[..10], 8, &mut o), + ); + } +} + +/// Round `values` to half precision and return the bit patterns and the decoded values. +pub(super) fn to_half(values: &[f32]) -> (Vec, Vec) { + let mut bits = vec![0u16; values.len()]; + sys::f32_to_f16_slice_scalar(values, &mut bits).unwrap(); + let decoded = bits.iter().map(|b| sys::simd::f16_to_f32(*b)).collect(); + (bits, decoded) +} + +/// The scalar and (when available) AVX2 half-precision scores. +pub(super) fn half_scores(shape: Shape, q: &[f32], keys16: &[u16]) -> [Vec; 2] { + let (heads, _hd, stride, n) = shape.parts(); + let mut scores_s = vec![0f32; heads * n]; + sys::attn_scores_f16_scalar(q, heads, keys16, stride, n, 0.125, &mut scores_s).unwrap(); + let mut scores_v = scores_s.clone(); + if sys::avx2_available() { + scores_v.fill(f32::NAN); + sys::attn_scores_f16_avx2(q, heads, keys16, stride, n, 0.125, &mut scores_v).unwrap(); + } + [scores_s, scores_v] +} + +/// The scalar and (when available) AVX2 half-precision weighted sums. +pub(super) fn half_sums(shape: Shape, weights: &[f32], values16: &[u16]) -> [Vec; 2] { + let (heads, hd, stride, n) = shape.parts(); + let mut sums_s = vec![0f32; heads * hd]; + sys::attn_weighted_sum_f16_scalar(weights, heads, n, values16, stride, &mut sums_s).unwrap(); + let mut sums_v = sums_s.clone(); + if sys::avx2_available() { + sums_v.fill(f32::NAN); + sys::attn_weighted_sum_f16_avx2(weights, heads, n, values16, stride, &mut sums_v).unwrap(); + } + [sums_s, sums_v] +} + +pub(super) fn check_f16_scores( + shape: Shape, + q: &[f32], + keys: &[f32], + [scores_s, scores_v]: [&[f32]; 2], +) { + let (heads, hd, stride, n) = shape.parts(); + for g in 0..heads { + for i in 0..n { + let terms: Vec = (0..hd) + .map(|j| f64::from(q[g * hd + j]) * f64::from(keys[i * stride + j])) + .collect(); + let exact = terms.iter().sum::() * 0.125; + let tol = terms.iter().map(|t| t.abs()).sum::() + * 0.125 + * (hd as f64 + 8.0) + * 2f64.powi(-23); + for got in [scores_s[g * n + i], scores_v[g * n + i]] { + assert!( + (f64::from(got) - exact).abs() <= tol, + "scores {heads}x{hd} head {g} #{i}" + ); + } + } + } +} + +pub(super) fn check_f16_sums( + shape: Shape, + weights: &[f32], + values: &[f32], + [sums_s, sums_v]: [&[f32]; 2], +) { + let (heads, hd, stride, n) = shape.parts(); + for g in 0..heads { + for j in 0..hd { + let terms: Vec = (0..n) + .map(|i| f64::from(weights[g * n + i]) * f64::from(values[i * stride + j])) + .collect(); + let exact: f64 = terms.iter().sum(); + let tol = + terms.iter().map(|t| t.abs()).sum::() * (n as f64 + 8.0) * 2f64.powi(-23); + for got in [sums_s[g * hd + j], sums_v[g * hd + j]] { + assert!( + (f64::from(got) - exact).abs() <= tol, + "sums {heads}x{hd} head {g} col {j}" + ); + } + } + } +} + +/// Gate and up vectors with extremes at the front: far beyond the clamps and at the clamp edges. +pub(super) fn swiglu_inputs(rng: &mut Rng, len: usize) -> (Vec, Vec) { + let mut gate: Vec = (0..len).map(|_| rng.f32(12.0)).collect(); + let mut up: Vec = (0..len).map(|_| rng.f32(12.0)).collect(); + for (i, g) in [-200.0f32, 200.0, -7.0, 7.0, 0.0, -0.0, 50.0, -50.0] + .iter() + .enumerate() + { + if i < len { + gate[i] = *g; + up[i] = if i % 2 == 0 { 100.0 } else { -100.0 }; + } + } + (gate, up) +} + +pub(super) fn check_swiglu( + len: usize, + [gate, up]: [&[f32]; 2], + [s, v]: [&[f32]; 2], + (alpha, limit): (f32, f32), +) { + for i in 0..len { + let x = f64::from(gate[i]).min(f64::from(limit)); + let y = f64::from(up[i]).clamp(-f64::from(limit), f64::from(limit)); + let exact = x / (1.0 + (-f64::from(alpha) * x).exp()) * (1.0 + y); + for (name, got) in [("scalar", s[i]), ("avx2", v[i])] { + let err = (f64::from(got) - exact).abs(); + assert!( + err <= 3e-6 * exact.abs() + 1e-30, + "{name} len {len} #{i}: gate {} up {}: {got} vs {exact}", + gate[i], + up[i] + ); + } + } +} diff --git a/docs/architecture/size-fn.md b/docs/architecture/size-fn.md index d2ed5793..86e85774 100644 --- a/docs/architecture/size-fn.md +++ b/docs/architecture/size-fn.md @@ -59,19 +59,79 @@ Per crate (before -> after; production columns, then test columns; "wide" counts | **total** | 486 -> 17 | 340 -> 11 | 46 -> 0 | 756 -> 449 | 507 -> 122 | 35 -> 3 | 47 -> 4 | 332 -> 150 | +## Pass 2 (drive the census of these crates to zero) + +Same method, then the owner's single-responsibility rule: one function does one action, a helper is named verb + object, a name +that needs "and" or "then" is split again, the decision (which branch) is separate from the execution (how), a `check_*` is a +predicate and does not mutate or compute, a test is setup, action and assertion as named steps. + +* `strata-desktop-core`: the 15 production functions and the 6 test functions left by pass 1 (`ToolResponse::complete` and + `preflight` with the new module `runtime_tool_response/preflight.rs`, `hardware::inventory`, node `respond` with the new + module `node/respond.rs`, `node_connection::session`, `node_proxy::respond`, `planner::plan`, `Pool::new`, `cli::node`, `main`, + `managed_worker` start/run, ...). +* Test functions and examples over 30 lines in `leleka-deploy` (64), `cpu-sys`, `cpu-kernels`, `igpu`, `experimental-ref`, + `gptoss`, `gptoss-igpu`, `gptoss-npu`, `npu-worker`, `npu-service`: builder, step and assert helpers; test names, ids and + assertions unchanged. `cpu-sys/tests/attention.rs` keeps its test ids and moved its non-test helpers to + `tests/attention/kernel_checks.rs`; `leleka-deploy/tests/e2e_windows.rs` moved its checks to `tests/e2e_windows/checks.rs`. +* Lines over 120 columns: 599 -> 38 in these crates. Comments are re-filled by paragraph; a long message string is broken at a + space with a trailing backslash (Rust strips the leading whitespace of the next line, so the evaluated text is byte-identical) + or split with `concat!`; JSON macros are re-wrapped. A lexer comparison of the evaluated string literals of every changed + file against the previous commit found identical sequences in 234 of 295 files and identical multisets in 34; the other 27 + are files whose code changed (a helper took the format arguments, a literal moved to another function) and were read. The + probe script of `desktop-core/src/remote.rs` is a raw string; its `nvidia-smi` line is continued with a shell backslash + (the same command, not the same bytes). +* Single responsibility (review of pass 1): about 50 two-action test helpers split (for example `assert_response_status` and + `assert_response_headers`); `check_*` functions that mutated or computed became a predicate plus an explicit step + (`trace_items::check_call` / `record_call_id`, `verify_still_attached` over `check_snapshot_is_attached`, + `catalog_changed_during_cold_preparation` / `abort_cold_preparation`, `check_context_budget` returning nothing); decision + apart from execution in `runtime_rpc` (`judge_load`, `admit_generation`), the backend worker (`fail_start`, + `served_after_refusal`, `judge_request`), `harmony`, `gateway-text` and `gptoss` (`softmax_scores_in_place` says it rewrites + the scores; `rotate_queries` is pure and `store_rotated_kv` writes the cache; arithmetic and attributes unchanged). +* Regression of pass 1 fixed: `spawn_engine` turned a spawn error into `StartupFailed` with `map_err`, which cannot await, so + the status stayed `Starting`; the original set `Failed` first. Restored, with the test + `a_failed_engine_spawn_marks_the_worker_failed`. + +Per crate (pass 1 end -> pass 2; production fn>30, cx>10, wide, then test fn>30, cx>10, nesting>4, wide): + +| Crate | prod fn>30 | cx>10 | wide | test fn>30 | cx>10 | nest>4 | wide | +|---|---|---|---|---|---|---|---| +| `leleka-cpu-kernels` | 0 -> 0 | 0 -> 0 | 0 -> 0 | 6 -> 0 | 1 -> 0 | 3 -> 0 | 1 -> 0 | +| `leleka-cpu-sys` | 0 -> 0 | 0 -> 0 | 3 -> 0 | 16 -> 0 | 0 -> 0 | 0 -> 0 | 2 -> 0 | +| `leleka-cpu-worker` | 0 -> 0 | 0 -> 0 | 5 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 5 -> 0 | +| `leleka-deploy` | 0 -> 0 | 0 -> 0 | 247 -> 33 | 64 -> 0 | 0 -> 0 | 0 -> 0 | 60 -> 0 | +| `leleka-experimental-ref` | 0 -> 0 | 0 -> 0 | 4 -> 0 | 9 -> 0 | 1 -> 0 | 1 -> 0 | 37 -> 0 | +| `leleka-gateway-domain` | 0 -> 0 | 0 -> 0 | 16 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 1 -> 0 | +| `leleka-gateway-text` | 0 -> 0 | 0 -> 0 | 61 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 6 -> 0 | +| `leleka-gguf` | 0 -> 0 | 0 -> 0 | 1 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 1 -> 0 | +| `leleka-gptoss` | 0 -> 0 | 0 -> 0 | 1 -> 0 | 5 -> 0 | 0 -> 0 | 0 -> 0 | 7 -> 0 | +| `leleka-gptoss-igpu` | 0 -> 0 | 0 -> 0 | 2 -> 0 | 1 -> 0 | 0 -> 0 | 0 -> 0 | 3 -> 0 | +| `leleka-gptoss-npu` | 0 -> 0 | 0 -> 0 | 2 -> 0 | 1 -> 0 | 0 -> 0 | 0 -> 0 | 5 -> 0 | +| `leleka-gpu-npu-worker` | 0 -> 0 | 0 -> 0 | 2 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 1 -> 0 | +| `leleka-igpu` | 1 -> 1 | 0 -> 0 | 5 -> 5 | 12 -> 0 | 1 -> 0 | 0 -> 0 | 0 -> 0 | +| `leleka-igpu-worker` | 0 -> 0 | 0 -> 0 | 1 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | +| `leleka-native-parity-bench` | 0 -> 0 | 0 -> 0 | 9 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | +| `leleka-npu-service` | 0 -> 0 | 0 -> 0 | 3 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 1 -> 0 | +| `leleka-npu-worker` | 0 -> 0 | 0 -> 0 | 2 -> 0 | 2 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | +| `leleka-openvino` | 1 -> 1 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | +| `leleka-runtime-client` | 0 -> 0 | 0 -> 0 | 3 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | +| `leleka-serving-policy` | 0 -> 0 | 0 -> 0 | 5 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 1 -> 0 | +| `leleka-tokenizer` | 0 -> 0 | 0 -> 0 | 14 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 2 -> 0 | +| `strata-control` | 0 -> 0 | 0 -> 0 | 50 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | 17 -> 0 | +| `strata-desktop-core` | 15 -> 0 | 11 -> 0 | 13 -> 0 | 6 -> 0 | 0 -> 0 | 0 -> 0 | 0 -> 0 | +| **total** | 17 -> 2 | 11 -> 0 | 449 -> 38 | 122 -> 0 | 3 -> 0 | 4 -> 0 | 150 -> 0 | + +Allowlist entries: 133 -> 1 (`OpenVino::load`); the entries of functions that only had wide lines went when the lines were +wrapped. `limits-baseline.json` and `architecture-baseline.json` were regenerated with `--update-baseline` only (nothing raised). + ## What stays over a limit, and why -* `igpu/src/shaders/gemm.rs :: gemm` (175 lines): WGSL shader text returned as one string; data, not logic. -* `openvino/src/library.rs :: OpenVino::load` (84): FFI symbol table of about 25 `dlsym` lookups; the table is the point. -* `strata-desktop-core` (15 production functions: `ToolResponse::complete`/`preflight`, `hardware::inventory`, - `node_proxy::respond`, `node_connection::session`, `Agent::respond`, `planner::plan`, `Pool::new`, `managed_worker` - `start`/`run`/`Owner::command`, `cli::node::serve`/`parse_mode`, `main`/`file_command`, `evaluation_measurement`, and a few - within 1 to 4 lines of the limit): time box. They carry allowlist entries (owner STRA-338) and are the first items of the next batch. -* `leleka-deploy` tests (64 functions, all over 30 lines, none over complexity 10; mostly `e2e_windows`, `recipe`, the planner - tests and unit tests in `src/*/tests*`) and the tests/examples of `cpu-sys`, `cpu-kernels`, `igpu`, `experimental-ref`, - `gptoss`, `npu-worker`: time box. -* Wide lines: 449 production lines and 150 test lines remain over 120 columns, mostly long messages and the JSON literals of - fake runtimes; rustfmt cannot wrap them and the text must stay byte-identical. +* `igpu/src/shaders/gemm.rs :: gemm` (175 lines, five lines over 120 columns): WGSL shader text returned as one string; data, not + logic. It has no allowlist entry because no diff touches it; the census baseline holds it. +* `openvino/src/library.rs :: OpenVino::load` (84): FFI symbol table of about 25 `dlsym` lookups; the table is the point + (allowlist entry, owner STRA-338). +* `leleka-deploy/src/cli.rs` `USAGE` (33 lines over 120 columns): the `--help` text is user-visible and + `scripts/release/package-5090.sh` parses it by line. +* The three `Supervisor` types are not renamed (`AttachLoop`, `SessionSupervisor`, `ServiceSupervisor`). ## Kernels diff --git a/limits-allowlist.json b/limits-allowlist.json index 96954c7c..f058b679 100644 --- a/limits-allowlist.json +++ b/limits-allowlist.json @@ -1,1073 +1,6 @@ { "_comment": "Functions that may miss a limit of scripts/check-limits.py because they were moved verbatim from legacy code. Every recorded number may only fall; an entry whose function is back within the limits is stale and must go (scripts/check-limits.py --update-baseline). New entries: --allowlist-add --reason ... --owner ...", "functions": [ - { - "path": "control-plane/examples/cp_replay/instant_backend.rs", - "name": "reply_text", - "fn_lines": 11, - "complexity": 1, - "nesting": 0, - "width": 4, - "reason": "moved verbatim from the oversize test/source file it was split out of (STRA-338 size-gw); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "control-plane/tests/backend_worker_http/monitor.rs", - "name": "engine_telemetry", - "fn_lines": 15, - "complexity": 1, - "nesting": 2, - "width": 3, - "reason": "moved verbatim from the oversize test/source file it was split out of (STRA-338 size-gw); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "control-plane/tests/backend_worker_http/monitor.rs", - "name": "the_request_monitor_is_off_by_default_and_keeps_nothing", - "fn_lines": 17, - "complexity": 1, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize test/source file it was split out of (STRA-338 size-gw); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/cpu-sys/src/simd/x86.rs", - "name": "", - "width": 1, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/entry.rs", - "name": "", - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/install_flow.rs", - "name": "powershell_try", - "fn_lines": 5, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/install_flow.rs", - "name": "summary_json", - "fn_lines": 22, - "complexity": 1, - "nesting": 2, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/machine_tests.rs", - "name": "the_machine_view_names_every_figure_the_operator_asked_for", - "fn_lines": 31, - "complexity": 2, - "nesting": 2, - "width": 4, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/machine_tests.rs", - "name": "the_settings_block_lists_every_member_and_the_prefix_cache_on_one_line", - "fn_lines": 20, - "complexity": 2, - "nesting": 2, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/preflight_report.rs", - "name": "", - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/settings_change.rs", - "name": "", - "width": 5, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/settings_change.rs", - "name": "reconfigure_by_restart", - "fn_lines": 29, - "complexity": 3, - "nesting": 1, - "width": 2, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/settings_change.rs", - "name": "send_reconfigure", - "fn_lines": 28, - "complexity": 5, - "nesting": 3, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/status_report.rs", - "name": "", - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/status_report.rs", - "name": "render_supervisor", - "fn_lines": 29, - "complexity": 4, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/status_tests.rs", - "name": "the_supervisor_part_of_status_shows_age_restarts_and_a_dead_supervisor", - "fn_lines": 25, - "complexity": 5, - "nesting": 1, - "width": 2, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/stop_flow.rs", - "name": "down", - "fn_lines": 19, - "complexity": 2, - "nesting": 2, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/verify_flow.rs", - "name": "", - "width": 3, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/app/verify_flow.rs", - "name": "verify", - "fn_lines": 28, - "complexity": 4, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/bin/fake_runtime/cli_double.rs", - "name": "status_answer", - "fn_lines": 8, - "complexity": 2, - "nesting": 2, - "width": 1, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/bin/fake_runtime/gateway_double.rs", - "name": "answer", - "fn_lines": 18, - "complexity": 9, - "nesting": 1, - "width": 1, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/cli/tests/flags.rs", - "name": "flags_accept_both_forms_and_reject_mistakes", - "fn_lines": 32, - "complexity": 1, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/cli/tests/flags.rs", - "name": "logs_and_report_take_their_own_flags_and_the_locating_ones", - "fn_lines": 42, - "complexity": 4, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/cli/tests/flags.rs", - "name": "other_commands", - "fn_lines": 34, - "complexity": 1, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/cli/tests/reconfigure_args.rs", - "name": "reconfigure_collects_the_settings_and_locates_the_service_with_the_up_flags", - "fn_lines": 47, - "complexity": 2, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/config/engine_launch.rs", - "name": "", - "width": 2, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/config/engine_launch.rs", - "name": "RunConfig::engine_args", - "fn_lines": 28, - "complexity": 2, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/config/tests.rs", - "name": "generated_configs_are_consistent", - "fn_lines": 35, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/config/tests.rs", - "name": "server_engine_command_matches_the_documented_one", - "fn_lines": 14, - "complexity": 1, - "nesting": 0, - "width": 2, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/expert_profile/tests/embedded_table.rs", - "name": "", - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/expert_profile/tests/embedded_table.rs", - "name": "an_embedded_table_that_fails_its_digest_falls_back_to_the_download", - "fn_lines": 35, - "complexity": 2, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/expert_profile/tests/embedded_table.rs", - "name": "the_embedded_table_is_installed_offline_before_any_download", - "fn_lines": 42, - "complexity": 2, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/expert_profile/tests/sources.rs", - "name": "a_download_is_verified_then_installed_and_a_present_file_is_left_alone", - "fn_lines": 37, - "complexity": 1, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/expert_profile/tests/sources.rs", - "name": "a_local_file_is_installed_offline_and_a_wrong_one_is_refused", - "fn_lines": 34, - "complexity": 1, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/plan/tests.rs", - "name": "context", - "fn_lines": 43, - "complexity": 3, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/plan/tests/expert_profile_steps.rs", - "name": "only_a_profile_with_another_digest_needs_a_download_or_a_file", - "fn_lines": 29, - "complexity": 4, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/plan/tests/expert_profile_steps.rs", - "name": "the_expert_profile_step_covers_every_state_and_never_stays_silent", - "fn_lines": 47, - "complexity": 10, - "nesting": 1, - "width": 2, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/plan/tests/expert_profile_steps.rs", - "name": "the_gathered_environment_names_the_table_unless_the_tier_is_opted_out", - "fn_lines": 39, - "complexity": 3, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/plan/tests/install_steps.rs", - "name": "fresh_server_plans_every_step", - "fn_lines": 31, - "complexity": 2, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/plan/tests/install_steps.rs", - "name": "the_archive_step_covers_the_shards_and_trust_archive_does_not", - "fn_lines": 49, - "complexity": 1, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/plan/tests/mode_resolution.rs", - "name": "mode_resolution", - "fn_lines": 32, - "complexity": 1, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/preflight/tests/host_resources.rs", - "name": "an_inherited_sealed_archive_is_not_counted_twice", - "fn_lines": 27, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/preflight/tests/host_resources.rs", - "name": "laptop_under_default_wsl_memory_gets_wslconfig_advice", - "fn_lines": 38, - "complexity": 3, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/preflight/tests/windows_host.rs", - "name": "a_windows_laptop_is_judged_natively_with_dll_names_and_no_systemd_or_memfd", - "fn_lines": 48, - "complexity": 3, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/profile/catalog.rs", - "name": "resolve", - "fn_lines": 28, - "complexity": 5, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/profile/memory_budget.rs", - "name": "", - "width": 2, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/profile/profile_limits.rs", - "name": "", - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/profile/tests/budget_arguments.rs", - "name": "the_5090_profile_carries_an_explicit_prefix_cap_so_freed_ram_cannot_grow_the_store", - "fn_lines": 38, - "complexity": 3, - "nesting": 1, - "width": 2, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/profile/tests/budget_arguments.rs", - "name": "the_builtin_profiles_carry_the_memory_budget_into_engine_arguments_and_environment", - "fn_lines": 32, - "complexity": 2, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/profile/tests/builtin_profiles.rs", - "name": "only_the_server_profile_enables_the_mtp_draft_attention_switch", - "fn_lines": 25, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/profile/tests/builtin_profiles.rs", - "name": "only_the_server_profile_turns_the_prompt_routing_seed_off", - "fn_lines": 13, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/profile/tests/sparse_memfd.rs", - "name": "the_extents_pin_is_the_compiled_one_or_an_explicit_operator_value_and_never_silent", - "fn_lines": 37, - "complexity": 3, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/reconfigure/tests/planning.rs", - "name": "a_budget_change_is_planned_against_the_host_and_keeps_everything_else", - "fn_lines": 35, - "complexity": 1, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/reconfigure/tests/planning.rs", - "name": "an_old_installation_without_a_recorded_base_cannot_undo_the_workstation_preset", - "fn_lines": 33, - "complexity": 1, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/reconfigure/tests/planning.rs", - "name": "the_resident_archive_is_not_charged_twice_to_the_host", - "fn_lines": 26, - "complexity": 1, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/reconfigure/tests/planning.rs", - "name": "the_workstation_preset_applies_and_dedicated_undoes_it", - "fn_lines": 43, - "complexity": 1, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/reconfigure/tests/recording.rs", - "name": "recording_settings_updates_the_profile_and_the_base_and_lets_an_explicit_worker_count_win", - "fn_lines": 35, - "complexity": 1, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/reconfigure/tests/recording.rs", - "name": "the_effective_summary_names_the_numbers_in_force", - "fn_lines": 11, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/reconfigure/tests/settings_ranges.rs", - "name": "runtime_settings_become_profile_fields_with_the_engines_ranges", - "fn_lines": 28, - "complexity": 2, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/reconfigure/tests/settings_ranges.rs", - "name": "unsafe_values_are_refused_by_the_planner", - "fn_lines": 64, - "complexity": 3, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/resources/sizing.rs", - "name": "", - "width": 7, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/resources/tests/presets_and_workers.rs", - "name": "the_prompt_chunk_follows_what_the_gpu_budget_can_lend", - "fn_lines": 36, - "complexity": 1, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/resources/tests/presets_and_workers.rs", - "name": "workers_never_exceed_the_physical_cores_but_the_hosts_where_those_are_known", - "fn_lines": 33, - "complexity": 1, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/resources/tests/ram_fit.rs", - "name": "a_resident_sealed_archive_is_not_charged_to_the_footprint_twice", - "fn_lines": 44, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/resources/tests/ram_fit.rs", - "name": "a_sparse_memfd_fits_a_host_the_full_copy_does_not_and_a_resident_one_is_credited_by_its_own_size", - "fn_lines": 20, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/resources/tests/ram_fit.rs", - "name": "the_file_form_of_the_server_profile_is_charged_the_engine_only_not_the_archive", - "fn_lines": 44, - "complexity": 2, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/resources/tests/windows_presets.rs", - "name": "the_windows_workstation_preset_leaves_the_desktop_more_and_keeps_its_floors", - "fn_lines": 34, - "complexity": 1, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/sealed/exec_arguments.rs", - "name": "", - "width": 2, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/sealed/linux.rs", - "name": "", - "width": 6, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/sealed/linux/tests.rs", - "name": "a_sparse_seal_copies_only_the_extents_keeps_every_offset_and_leaves_holes", - "fn_lines": 57, - "complexity": 6, - "nesting": 2, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/sealed/linux/tests.rs", - "name": "seal_is_exact_sealed_unlinked_and_cloexec", - "fn_lines": 31, - "complexity": 5, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/supervisor/children.rs", - "name": "", - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/supervisor/children.rs", - "name": "Supervisor::child_env", - "fn_lines": 18, - "complexity": 4, - "nesting": 2, - "width": 2, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/supervisor/live_reconfigure.rs", - "name": "", - "width": 4, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/supervisor/logfile.rs", - "name": "", - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/supervisor/sparse.rs", - "name": "", - "width": 2, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/supervisor/sparse.rs", - "name": "Supervisor::sparse_pin", - "fn_lines": 19, - "complexity": 4, - "nesting": 2, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/supervisor/status.rs", - "name": "", - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/supervisor/supervise.rs", - "name": "", - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/supervisor/tests.rs", - "name": "operation_records_are_parsed_from_the_cli_output", - "fn_lines": 37, - "complexity": 1, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/supervisor/tests.rs", - "name": "status_parsing_matches_the_gateway_document", - "fn_lines": 8, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/src/winfront/routing.rs", - "name": "print_service_dry_run", - "fn_lines": 13, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/dry_run_and_usage.rs", - "name": "a_failing_preflight_stops_before_any_change_and_says_how_to_fix_it", - "fn_lines": 42, - "complexity": 3, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/dry_run_and_usage.rs", - "name": "dry_run_prints_the_plan_and_changes_nothing", - "fn_lines": 39, - "complexity": 4, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/engine_supervision.rs", - "name": "a_hung_engine_is_killed_and_restarted_by_the_health_check", - "fn_lines": 35, - "complexity": 4, - "nesting": 2, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/engine_supervision.rs", - "name": "a_killed_api_or_gateway_is_restarted_in_place_and_the_engine_is_left_alone", - "fn_lines": 33, - "complexity": 4, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/engine_supervision.rs", - "name": "a_refused_load_fails_fast_and_shows_the_engine_log", - "fn_lines": 34, - "complexity": 2, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/engine_supervision.rs", - "name": "engine_restarts_back_off_survive_failed_attempts_and_give_up_in_the_end", - "fn_lines": 46, - "complexity": 2, - "nesting": 2, - "width": 2, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/expert_profile_install.rs", - "name": "first_start_installs_the_embedded_expert_profile_without_a_network", - "fn_lines": 52, - "complexity": 2, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/harness.rs", - "name": "Fixture::http_status", - "fn_lines": 14, - "complexity": 1, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/harness.rs", - "name": "Fixture::write_state", - "fn_lines": 24, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/reconfigure_flow.rs", - "name": "persist_writes_the_files_and_a_crash_restart_keeps_the_new_numbers", - "fn_lines": 32, - "complexity": 1, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/reconfigure_flow.rs", - "name": "settings_alone_are_recorded_and_persisted_without_a_restart", - "fn_lines": 37, - "complexity": 1, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/reconfigure_flow.rs", - "name": "the_cli_asks_the_supervisor_and_prints_the_answer", - "fn_lines": 48, - "complexity": 4, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/reconfigure_flow.rs", - "name": "what_the_planner_refuses_changes_nothing_and_a_failing_new_engine_restores_the_old_one", - "fn_lines": 31, - "complexity": 1, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/sealed_archive.rs", - "name": "", - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/sealed_archive.rs", - "name": "a_sparse_memfd_profile_starts_on_the_compiled_digest_and_refuses_when_none_is_pinned", - "fn_lines": 39, - "complexity": 3, - "nesting": 1, - "width": 1, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/sealed_archive.rs", - "name": "a_sparse_memfd_profile_tells_every_engine_the_extents_digest_and_never_claims_the_archive_was_verified", - "fn_lines": 34, - "complexity": 3, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/sealed_archive.rs", - "name": "seal_exec_hands_the_command_a_sealed_memfd_of_the_file_and_refuses_what_it_cannot_seal", - "fn_lines": 37, - "complexity": 2, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/up_flow.rs", - "name": "trust_archive_skips_the_strict_rederivation_but_still_fetches_and_verifies_the_shards", - "fn_lines": 33, - "complexity": 2, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/verify_commands.rs", - "name": "a_broken_configuration_is_exit_code_two_with_a_clear_message", - "fn_lines": 32, - "complexity": 1, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/verify_commands.rs", - "name": "verify_quick_reports_the_health_of_the_installation_without_reading_the_model", - "fn_lines": 37, - "complexity": 5, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/deploy/tests/e2e/verify_commands.rs", - "name": "verify_runs_the_engine_in_full_rehash_mode_and_reports_a_failure", - "fn_lines": 46, - "complexity": 4, - "nesting": 1, - "width": 0, - "reason": "moved verbatim from the oversize file it was split out of (STRA-338 size-deploy); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "crates/gateway-text/src/tool_output/tests/array_arguments_and_typed_values.rs", - "name": "parses_typed_values_and_preserves_text_around_calls", - "fn_lines": 16, - "complexity": 1, - "nesting": 4, - "width": 1, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, - { - "path": "crates/gateway-text/src/tool_output/tests/quoted_values_and_drifted_forms.rs", - "name": "a_quoted_call_in_a_value_does_not_end_the_value_and_a_cut_outer_call_is_not_published", - "fn_lines": 21, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, - { - "path": "crates/gateway-text/src/tool_output/tests/upstream_fixtures_and_undeclared_calls.rs", - "name": "a_call_without_function_close_is_read_when_the_wrapper_closes_it", - "fn_lines": 18, - "complexity": 2, - "nesting": 4, - "width": 1, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, - { - "path": "crates/gateway-text/src/tool_output/tests/upstream_fixtures_and_undeclared_calls.rs", - "name": "parses_upstream_terminator_fixture_without_truncating_content", - "fn_lines": 15, - "complexity": 1, - "nesting": 4, - "width": 2, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, - { - "path": "crates/gptoss-npu/src/accelerator.rs", - "name": "PrefillAccelerator for NpuPrefill::admit", - "fn_lines": 18, - "complexity": 2, - "nesting": 1, - "width": 1, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, - { - "path": "crates/gptoss/src/profile.rs", - "name": "Profile::report", - "fn_lines": 24, - "complexity": 1, - "nesting": 0, - "width": 1, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, - { - "path": "crates/gptoss/src/tests.rs", - "name": "the_kar_probe_loses_less_with_more_levels_and_keeps_q8_0_layout", - "fn_lines": 38, - "complexity": 3, - "nesting": 2, - "width": 0, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, - { - "path": "crates/gptoss/tests/synthetic_model/decoder_and_prefill.rs", - "name": "", - "width": 1, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, - { - "path": "crates/gptoss/tests/synthetic_model/decoder_and_prefill.rs", - "name": "chunked_prefill_is_bit_identical_to_feeding_tokens_one_at_a_time", - "fn_lines": 32, - "complexity": 3, - "nesting": 2, - "width": 0, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, - { - "path": "crates/igpu/src/tests.rs", - "name": "threaded_repacking_equals_the_plain_definition", - "fn_lines": 34, - "complexity": 6, - "nesting": 2, - "width": 0, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, { "path": "crates/openvino/src/library.rs", "name": "OpenVino::load", @@ -1077,193 +10,6 @@ "width": 0, "reason": "FFI symbol table: about 25 dlsym lookups bound to the C API by name; the table is the point, not logic", "owner": "STRA-338" - }, - { - "path": "crates/tokenizer/src/decoding.rs", - "name": "", - "width": 1, - "reason": "moved verbatim by the size split of STRA-338 (size-rest); not yet decomposed", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/cli/node.rs", - "name": "parse_mode", - "fn_lines": 26, - "complexity": 15, - "nesting": 2, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/cli/node.rs", - "name": "serve", - "fn_lines": 33, - "complexity": 15, - "nesting": 2, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/cli/worker.rs", - "name": "run", - "fn_lines": 22, - "complexity": 13, - "nesting": 1, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/evaluation_measurement.rs", - "name": "check_output_directory", - "fn_lines": 25, - "complexity": 11, - "nesting": 1, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/gateway/responses/relay.rs", - "name": "next_chunk", - "fn_lines": 31, - "complexity": 5, - "nesting": 2, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/main.rs", - "name": "file_command", - "fn_lines": 25, - "complexity": 23, - "nesting": 1, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/main.rs", - "name": "main", - "fn_lines": 26, - "complexity": 13, - "nesting": 1, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/managed_worker/start.rs", - "name": "Owner::command", - "fn_lines": 44, - "complexity": 6, - "nesting": 1, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/managed_worker/start.rs", - "name": "run", - "fn_lines": 34, - "complexity": 4, - "nesting": 2, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/managed_worker/start.rs", - "name": "start", - "fn_lines": 39, - "complexity": 8, - "nesting": 2, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/planner.rs", - "name": "plan", - "fn_lines": 47, - "complexity": 9, - "nesting": 2, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/remote.rs", - "name": "tests::ssh_stdin_closes_and_hung_probe_times_out", - "fn_lines": 47, - "complexity": 2, - "nesting": 1, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/remote/inventory.rs", - "name": "parse", - "fn_lines": 31, - "complexity": 7, - "nesting": 1, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/runtime_rpc/clear_active.rs", - "name": "pump", - "fn_lines": 34, - "complexity": 7, - "nesting": 2, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/runtime_rpc/tests/auth_and_capacity.rs", - "name": "assert_backend_status_proves_acceptance_only_when_certain", - "fn_lines": 31, - "complexity": 3, - "nesting": 1, - "width": 0, - "reason": "legacy, not yet decomposed: left by the size-fn pass (STRA-338 size-fn, time box); splits in a follow-up batch", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/runtime_rpc/tests/auth_and_capacity.rs", - "name": "runtime_rpc_auth_epoch_bounds_and_operation_capacity", - "fn_lines": 57, - "complexity": 1, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize test/source file it was split out of (STRA-338 size-gw); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/runtime_rpc/tests/lifecycle.rs", - "name": "runtime_rpc_disconnect_cancels_and_missing_terminal_closes_admission", - "fn_lines": 36, - "complexity": 1, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize test/source file it was split out of (STRA-338 size-gw); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" - }, - { - "path": "desktop-core/src/runtime_rpc/tests/load_dedup.rs", - "name": "runtime_rpc_load_dedup_preserves_mode_and_generation_order", - "fn_lines": 33, - "complexity": 1, - "nesting": 0, - "width": 0, - "reason": "moved verbatim from the oversize test/source file it was split out of (STRA-338 size-gw); the function itself is legacy and shrinks in later batches", - "owner": "STRA-338" } ] -} \ No newline at end of file +} diff --git a/limits-baseline.json b/limits-baseline.json index 0fe635ca..2d6a41ec 100644 --- a/limits-baseline.json +++ b/limits-baseline.json @@ -13,12 +13,6 @@ "complexity": 2, "fn_lines": 3 }, - "leleka-cpu-sys": { - "width": 3 - }, - "leleka-cpu-worker": { - "width": 5 - }, "leleka-cuda-driver": { "fn_lines": 586, "width": 815, @@ -26,7 +20,7 @@ "nesting": 23 }, "leleka-deploy": { - "width": 247 + "width": 33 }, "leleka-engine-core": { "fn_lines": 11, @@ -38,37 +32,10 @@ "complexity": 526, "nesting": 10 }, - "leleka-experimental-ref": { - "width": 4 - }, - "leleka-gateway-domain": { - "width": 16 - }, - "leleka-gateway-text": { - "width": 61 - }, - "leleka-gguf": { - "width": 1 - }, - "leleka-gptoss": { - "width": 1 - }, - "leleka-gptoss-igpu": { - "width": 2 - }, - "leleka-gptoss-npu": { - "width": 2 - }, - "leleka-gpu-npu-worker": { - "width": 2 - }, "leleka-igpu": { "fn_lines": 1, "width": 5 }, - "leleka-igpu-worker": { - "width": 1 - }, "leleka-libc-shim": { "width": 35, "fn_lines": 2, @@ -80,41 +47,15 @@ "width": 601, "nesting": 24 }, - "leleka-native-parity-bench": { - "width": 9 - }, - "leleka-npu-service": { - "width": 3 - }, - "leleka-npu-worker": { - "width": 2 - }, "leleka-openvino": { "fn_lines": 1 }, "leleka-runtime": { "width": 2 }, - "leleka-runtime-client": { - "width": 3 - }, - "leleka-serving-policy": { - "width": 5 - }, - "leleka-tokenizer": { - "width": 14 - }, "python": { "complexity": 1, "width": 2 - }, - "strata-control": { - "width": 50 - }, - "strata-desktop-core": { - "fn_lines": 15, - "complexity": 11, - "width": 13 } }, "test": { @@ -125,29 +66,12 @@ "fn_lines": 5, "complexity": 1 }, - "leleka-cpu-kernels": { - "fn_lines": 6, - "nesting": 3, - "complexity": 1, - "width": 1 - }, - "leleka-cpu-sys": { - "fn_lines": 16, - "width": 2 - }, - "leleka-cpu-worker": { - "width": 5 - }, "leleka-cuda-driver": { "fn_lines": 106, "complexity": 31, "width": 60, "nesting": 5 }, - "leleka-deploy": { - "fn_lines": 64, - "width": 60 - }, "leleka-engine-core": { "fn_lines": 11, "width": 2, @@ -160,40 +84,6 @@ "complexity": 12, "nesting": 6 }, - "leleka-experimental-ref": { - "fn_lines": 9, - "width": 37, - "complexity": 1, - "nesting": 1 - }, - "leleka-gateway-domain": { - "width": 1 - }, - "leleka-gateway-text": { - "width": 6 - }, - "leleka-gguf": { - "width": 1 - }, - "leleka-gptoss": { - "width": 7, - "fn_lines": 5 - }, - "leleka-gptoss-igpu": { - "width": 3, - "fn_lines": 1 - }, - "leleka-gptoss-npu": { - "width": 5, - "fn_lines": 1 - }, - "leleka-gpu-npu-worker": { - "width": 1 - }, - "leleka-igpu": { - "fn_lines": 12, - "complexity": 1 - }, "leleka-libc-shim": { "width": 2 }, @@ -215,26 +105,8 @@ "width": 130, "nesting": 6 }, - "leleka-npu-service": { - "width": 1 - }, - "leleka-npu-worker": { - "fn_lines": 2 - }, - "leleka-serving-policy": { - "width": 1 - }, - "leleka-tokenizer": { - "width": 2 - }, "python": { "width": 1 - }, - "strata-control": { - "width": 17 - }, - "strata-desktop-core": { - "fn_lines": 6 } } }