Commit Graph
9 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 e03bedc3b1 Debt rework: doc headers everywhere, two import ratchets with the baseline, process-global counts uses and not import lists, 400-line fixes, docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 19:48:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a6f36378cf Explicit imports and generated doc headers for the small and mid-size crates (obs, gateway-*, tokenizer, context, backend-api, harmony, runtime-client, serving-policy, experimental-ref, cuda-model, engine-core, model-format, control-plane, desktop-core, deploy, npu-service, cpu-sys, native-cpu-expert headers)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 19:27:40 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b686f6ab75 STRA-338: rename the 854 mechanically named modules (impl_*, *_fn, *_<N>) after what they hold; mechanical_names census 854 -> 0
git mv of the files and of the module directories next to them, mod declarations, #[path] attributes and
the paths that name the modules, rewritten by scripts/dev/rename_mechanical.py from a reviewed name table.
Two files lost one to two lines so the 400-line limit holds again (qsa_prompt_index, original_verify_expert_probe).
limits-baseline.json: test fn_lines 0 -> 1 is --allow-increase for crates/deploy builtin_profiles.rs:149 (37 lines,
the speed-vs-strata session's file, not touched here); the prod params census falls 108 -> 1 (w_launch, extern C ABI).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 13:43:56 +01:00
Pavlo Ratushnyi 1b05aba13a STRA-338 params p03: group parameters into named structs (context, cuda-model, engine-core, model-format, quant-core, sampler-ref, tokenizer, worker-protocol, kar-codec) and fix the call sites 2026-11-08 00:26:53 +01:00
Pavlo Ratushnyi df15e7afd5 STRA-338 size6 r01: split oversized tests and example, wrap wide lines in small crates 2026-11-07 17:04:17 +01:00
Pavlo Ratushnyi fbc7e82596 STRA-338 size: leleka-engine-core: split begin_request/park_current, adaptive choose/observe/draft_plan, prefix store admission/scoring/eviction, K/V layout/save/verify, snapshot, state, prompt plan (production fn_lines/complexity/width to 0; test helpers still pending) 2026-11-06 14:20:44 +01:00
Pavlo Ratushnyi cdfec56460 STRA-338 size: the engine crates are rustfmt-clean at 120 columns (per-crate rustfmt.toml: max_width 120, Max heuristics); width violations 6869 -> 2862 prod, 1273 -> 717 test; files that grew are re-split. Reasons for the raised census numbers: fn_lines +119 and complexity +14 are functions that cross 30 lines / 10 branches only because rustfmt put their one-line bodies on several lines (nothing was added); test lists identical (1793), 800 tests pass, the same 5 known failures; bring-up print gate lookback 20 -> 30 lines for the same reason 2026-11-06 13:03:51 +01:00
Pavlo Ratushnyi adf65a53b9 STRA-338 size: 28 oversize test files of the engine crates split by topic with scripts/dev/split_tests.py (tests keep their names, gain a topic module; 1793 tests listed before and after, same leaf names; baseline tightened: 121 -> 98 oversize files) 2026-11-06 12:41:45 +01:00
Pavlo Ratushnyi 38eb771a44 STRA-338 S19a: the cross-session prefix cache and the pure memory admission move to the new leleka-engine-core crate (L2); leleka-runtime re-exports them under the old paths 2026-11-06 10:54:33 +01:00