Commit Graph
5 Commits
Author SHA1 Message Date
Pavlo Ratushnyi 46e62255db STRA-338 params p01: control-plane functions to at most 5 parameters (WorkerInbox, TensorSpan, PartLimits, SessionInputs, EnginePipes and other groups) 2026-11-08 00:14:49 +01:00
Pavlo Ratushnyi b30677001e STRA-338 size-fn: strata-control: kar_* modules within function limits (fn>30 23 -> 0) 2026-11-06 18:19:08 +01:00
Pavlo Ratushnyi 1f8effb97e STRA-338 size-gw: 25 production functions of control-plane and desktop-core brought within the limits (helpers extracted, behaviour unchanged)
Extracted helpers: ReqCtx::new, Profile::gateway, RuntimeServer::new, props, Generate::line, Http::request,
read_events, parse_macos, parse_nvidia, validate_nested_slices, sample_windows, tool_markup, count_input_tokens,
model_control_prelude, vision fetch, admit, decode_tensor_row, Registry::observe, provenance_value,
decode_source_tensor, service_install parse, provision prepare, provision arguments, write_group, pool relay.

Test ids: 543 before and after, 0 missing, 0 outcome changes; warnings in the two crates 0.
Counts (strata-control / strata-desktop-core), functions over 30 lines / complexity 10 / nesting 4 / wide lines:
prod 187/135/17/196 -> 166/130/17/194 and 81/59/6/54 -> 77/59/6/54; test unchanged (214/17/30/133, 65/3/3/27).
2026-11-06 13:30:31 +01:00
Pavlo Ratushnyi f78b89757c STRA-338 S12a: inline unit-test modules move to sibling tests.rs files in 118 oversize files
scripts/dev/extract_tests.py moves a trailing cfg(test) mod tests block into foo/tests.rs for 118 files of leleka-runtime, cuda-driver, control-plane, gateway-text, deploy and nine smaller crates (31,000 lines), leaving production code and test ids untouched; 22 files that are themselves loaded through a path attribute carry an explicit path to their tests file. Not touched: the files the kar-off-ab branch edits (backend.rs, backend_original_serve.rs, backend_original_serve_replay.rs, qwen4exp_resident_expert_source.rs and seven deploy files).

Verified: cargo check --all-targets for the whole workspace on x86_64 Linux and on the Windows host; the 2429 library unit-test ids of the workspace are identical before and after (Linux listing diff empty); the loadable sections of leleka-inference, leleka-daemon, leleka-cli and strata-next are byte-identical between a release build before and after (scripts/dev/elf-sections-equal.sh), so the shipped code is the same. The architecture ratchets exclude tests.rs from the path-include count; the baseline drops from 329 to 311 oversize files and from 302,000 to 273,600 lines.
2026-11-05 15:00:09 +01:00
Pavlo Ratushnyi 4013e0c9bd Import tracked Strata Next source snapshot
Desktop foundation / core (macos-latest) (push) Canceled after 0s
Desktop foundation / core (windows-latest) (push) Canceled after 0s
Linux / verify (push) Canceled after 0s
Linux / keyless-cuda (push) Canceled after 0s
Desktop foundation / core (ubuntu-latest) (push) Failing after 28s
Linux / static-cuda-package (push) Canceled after 0s
Linux / hosted-cuda-package (push) Canceled after 0s
Linux / linux-static-cli (push) Canceled after 0s
Linux / linux-cli-container (push) Canceled after 0s
Linux / release-cli (push) Canceled after 0s
2026-10-05 18:15:08 +02:00