Commit Graph
6 Commits
Author SHA1 Message Date
Pavlo Ratushnyi 672e4bfc72 STRA-338 params p01: deploy, gateway-domain, gateway-text, desktop-core and the rest of control-plane to at most 5 parameters; domain names for the new structs 2026-11-08 00:59:37 +01:00
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 a830d8f110 STRA-338 size-fn2: check_* that act are named for what they do (cancel_stalled_generation, probe_host, fail_if_api_exited, fail_if_engine_exited, read_assistant_text, detach_if_unattached), helpers named verb + object (report_stopping / report_engine_lost leave the Flow to the caller, count_failed_start, answer_refused_start, require_free_endpoint + spawn_worker_process, pin_engine_gpu, describe_load_verdict, run_worker_action, open_watch_stream, ...), the cold path reuses catalog_changed, the three Supervisor types are AttachLoop, SessionSupervisor and ServiceSupervisor; behaviour unchanged 2026-11-06 23:07:59 +01:00
Pavlo Ratushnyi 3140224119 STRA-338 size-fn2: check_ functions that mutate or compute become predicates plus an explicit step (trace_items check_call / record_call_id, runtime-client verify_still_attached over a pure check_snapshot_is_attached, service_switch catalog_changed_during_cold_preparation / abort_cold_preparation, check_context_budget returns nothing and the caller takes remaining_tokens, origins_and_sampling -> read_origins / read_sampling); spawn_engine keeps within 30 lines (admit_gpu) 2026-11-06 21:31:21 +01:00
Pavlo Ratushnyi 0b4c3623e7 STRA-338 size-fn: strata-control: cli, config, backend_worker, app, chat, gguf/ggml streams, derived/misc (fn>30 83 -> 23 listed) 2026-11-06 17:49:28 +01:00
Pavlo Ratushnyi 5dc28316ab STRA-338 S7: split worker, vision, prometheus, service_install and config by responsibility; name the modules after what they hold
* worker.rs (1271 lines, 1120 of them tests) is 149 lines; the supervisor tests are worker/tests.rs (shared fixtures) and
  worker/tests/{deadlines,handshake,generation,restart,lifecycle,reasoning}.rs. The test names are unchanged; their path
  gains the topic module (worker::tests::restart::..., see scripts/dev/test-outcomes.py compare: 23 MOVED, outcomes equal).
* vision.rs 402 -> 120 lines (tests are vision/tests.rs, same test ids); prometheus.rs 441 -> 50 (the series table is
  prometheus/series.rs); service_install.rs 436 -> 30 (the unix half is service_install/unix.rs and unix/tests.rs, same ids).
* config: Config::load_with_path (430 lines in one function) hands its limits, engine-worker and MCP sections to
  config/methods/load_sections.rs; the same checks run in the same order with the same messages.
* mcp, request_log, vision, worker, config: impl_*/note_*/check_* file names are now hub.rs, server.rs, stdio_transport.rs,
  http_transport.rs, parse_config.rs, obs_handle.rs, engine_counters.rs, encoder.rs, cleanup.rs, generation_result.rs, ...
  Public paths are unchanged (the modules re-export with glob as before).

Architecture gate: five oversize entries leave the baseline (worker.rs, vision.rs, prometheus.rs, service_install.rs,
config impl_config_2_2.rs); no number rose.
2026-11-05 20:33:04 +01:00