Pavlo Ratushnyi
dd290cd20a
STRA-338 size-fn: tokenizer: GgufBpe::from_parts split into vocabulary stages (fn>30 prod 1 fewer)
2026-11-06 18:20:45 +01:00
Pavlo Ratushnyi
9938af611e
STRA-338 size-fn: sampler-ref: pick_from_list, sample_tokens, validate, gen_keys, resolve, py_float_repr, coupled_draft_sample, window split (prod fn>30 9 -> 2)
2026-11-06 18:14:17 +01:00
Pavlo Ratushnyi
953ba7df1c
STRA-338 size-fn: serving-policy: parse_embeddings header and positions finish within limits
2026-11-06 18:12:06 +01:00
Pavlo Ratushnyi
142de61f2f
STRA-338 size-fn: kar-codec, serving-policy: build_positions walk, build_tables, decoder checks within limits
2026-11-06 18:10:27 +01:00
Pavlo Ratushnyi
7a86fdba5b
STRA-338 size-fn: gateway-text: call_terminators test split into helpers (fn>30 prod 15 -> 0)
2026-11-06 18:09:55 +01:00
Pavlo Ratushnyi
491c7cd902
STRA-338 size-fn: gateway-text: parse_call, parse_text, json_call, content_text, write_json, Lenient::array within limits
2026-11-06 18:08:45 +01:00
Pavlo Ratushnyi
5a14bc26b0
STRA-338 size-fn: gguf, kar-codec, serving-policy, worker-protocol: helpers within limits, 120-column format
2026-11-06 18:08:04 +01:00
Pavlo Ratushnyi
db6aa80c1e
STRA-338 size-fn: gateway-text: split parse_call scan, parse_text, json_call, regex check, native renderer and template history
2026-11-06 18:07:21 +01:00
Pavlo Ratushnyi
7545422280
STRA-338 size-fn: gguf, kar-codec, serving-policy, worker-protocol: split header/metadata/tensor reads, tensor type table, decoder, calibration, GEN/DONE parsing, sampling config, vision positions, base64 (partial)
2026-11-06 18:05:42 +01:00
Pavlo Ratushnyi
c54a33ddb8
STRA-338 size-fn: gateway-text: split parse_call, Catalog::add, Incremental::feed, tojson writer, JSON visitor and lenient repair reader
2026-11-06 18:03:53 +01:00
Pavlo Ratushnyi
b99d890439
STRA-338 size-fn: runtime-client: split snapshot validation, generation frames, backend probe/start/reconfigure, pump, conversions and tests (fn>30 15 -> 0); gateway-domain: item writer, doc comments
2026-11-06 17:56:01 +01:00
Pavlo Ratushnyi
66d933eb81
STRA-338 size-fn: gateway-domain: split the response trace, requests, validation, replay, budget loop and tests (fn>30 19 -> 0)
2026-11-06 17:15:13 +01:00
Pavlo Ratushnyi
0c594d351f
STRA-338 size-rest: split record, render_request_with entry within 30 lines, allowlist of functions moved verbatim, baselines re-run
...
docs/architecture/size-split-rest.md records the mapping of the 24 oversize files and the test-id parity (27 crates, 0
missing / 0 new / 0 outcome changes on Linux). render_request_with now delegates the template call to render_messages
(gateway-domain fn>30 16 -> 15, cx>10 13 -> 12). limits-allowlist.json gains 80 entries (owner STRA-338, reason "moved
verbatim ... not yet decomposed"); limits-baseline.json and architecture-baseline.json re-run with --update-baseline
(no total raised). Oversize files in the crates of this batch: 0.
2026-11-06 16:33:36 +01:00
Pavlo Ratushnyi
e183b1b237
Merge remote-tracking branch 'origin/claude/hexagonal-integ' into claude/hexagonal-size-gw
2026-11-06 16:29:32 +01:00
Pavlo Ratushnyi
0ad203f7d7
STRA-338 size-rest: tokenizer, gateway-text, gateway-domain, runtime-client, cpu-worker and experimental-ref within 400 lines per file
...
Oversize files before/after: tokenizer 1 -> 0 (lib.rs 840 into construction, encoding, decoding, bpe_merge, vocabulary),
gateway-text 1 -> 0, runtime-client 1 -> 0, cpu-worker 1 -> 0, experimental-ref 1 -> 0 (test files split by topic),
gateway-domain 1 -> 0: render_request_with (385 lines, complexity 93) became an entry function plus one function per
system message and one method per input item kind; messages, check order and rendered text unchanged (gateway-domain 17
tests and strata-control responses 72 tests pass).
Census prod/test (fn>30 / cx>10 / nesting>4 / wide lines): gateway-domain 16/3, 13/0, 6/0, 53/1 -> 16/3, 12/0, 5/0, 45/1;
runtime-client test 9 -> 6 long functions; experimental-ref test wide lines 58 -> 37; tokenizer, gateway-text and
cpu-worker unchanged. Test ids and outcomes unchanged.
2026-11-06 16:28:25 +01:00
Pavlo Ratushnyi
3be0bab601
STRA-338 size-rest: igpu, gptoss-igpu, gptoss-npu, openvino and shm within 400 lines per file
...
Oversize files before/after: igpu 2 -> 0 (lib.rs 1386 into 12 modules with the long Gpu and Recorder impls cut between
methods, shaders.rs 440 into WGSL constant modules), gptoss-igpu 1 -> 0, gptoss-npu 1 -> 0, openvino 1 -> 0,
shm 1 -> 0 (the unix and windows mapping code in their own files). unsafe blocks and SAFETY comments moved verbatim
(openvino 110 -> 110).
Census prod/test (fn>30 / cx>10 / nesting>4 / wide lines): igpu 12/12, 1/1, 0/0, 5/0 -> 10/12, 1/1, 0/0, 5/0;
gptoss-igpu, gptoss-npu, openvino and shm unchanged. Test ids and outcomes unchanged.
2026-11-06 16:28:25 +01:00
Pavlo Ratushnyi
c1e7c02d1e
STRA-338 size-rest: cpu-kernels, cpu-sys, gguf, gptoss and quant-core within 400 lines per file
...
Oversize files before/after: gptoss 2 -> 0 (lib.rs 1788 into 14 modules, synthetic_model.rs 922 into topic modules),
cpu-sys 2 -> 0 (lib.rs 1007, simd.rs 1503 with its inline x86 module split by kernel family), gguf 2 -> 0,
cpu-kernels 1 -> 0, quant-core 1 -> 0 (iq2s_grid.rs reflowed four entries per line, entries unchanged).
Modules are named after what they hold; public paths are re-exported unchanged; unsafe blocks and SAFETY comments moved
verbatim (cpu-sys 70 -> 70).
Census prod/test (fn>30 / cx>10 / nesting>4 / wide lines): cpu-sys 19/16, 3/0, 2/0, 5/2 -> 11/16, 3/0, 2/0, 3/2;
gptoss 13/16, 6/4, 1/0, 1/7 -> 12/14, 6/4, 1/0, 1/8; gguf 6/5, 6/0, 0/0, 3/1 -> 6/3, 6/0, 0/0, 3/1;
cpu-kernels and quant-core unchanged. Test ids and outcomes unchanged (recorded in docs/architecture/size-split-rest.md).
2026-11-06 16:28:24 +01:00
Pavlo Ratushnyi
2ae8d47a00
Merge branch 'claude/size-eng-nz2' into claude/hexagonal-integ
2026-11-06 16:10:41 +01:00
Pavlo Ratushnyi
25d5066d66
STRA-338 size: engine generate_mtp tile_parts split, wide lines wrapped, baselines tightened
2026-11-06 16:10:17 +01:00
Pavlo Ratushnyi
cbe83aac90
Merge branch 'claude/size-cd-am2' into claude/hexagonal-integ
2026-11-06 16:09:46 +01:00
Pavlo Ratushnyi
710dadb648
STRA-338 size: limits baseline tightened after the cuda-driver a-m round 2
2026-11-06 16:09:11 +01:00
Pavlo Ratushnyi
da5a67e773
STRA-338 size: cuda-driver GrMicrobatchRead::close_inner <= 30 lines
2026-11-06 16:06:07 +01:00
Pavlo Ratushnyi
49f9917a82
STRA-338 size: cuda-driver GrMicrobatchRead::inject split into admit/arguments/enqueue/complete (106 -> 18 lines)
2026-11-06 16:05:21 +01:00
Pavlo Ratushnyi
cd1d8c4c93
STRA-338 size: cuda-driver OriginalMtpDraftProgram capture/stage_round/write_mapped_round/finish_after_drain <= 30 lines, complexity <= 10
2026-11-06 16:02:49 +01:00
Pavlo Ratushnyi
685b779da1
STRA-338 size: engine produce_rows, retry settle trimmed
2026-11-06 16:00:00 +01:00
Pavlo Ratushnyi
48ae2be713
STRA-338 size: cuda-driver OriginalMtpForwardProgram capture/validate_flags/stage_coupled <= 30 lines, complexity <= 10
2026-11-06 15:59:42 +01:00
Pavlo Ratushnyi
ad71096f26
STRA-338 size: engine project_impl and cache retry helpers within limits
2026-11-06 15:58:03 +01:00
Pavlo Ratushnyi
bccb8d1b7d
STRA-338 size: cuda-driver split experiment_load and stream_start out of files over 400 lines
2026-11-06 15:58:01 +01:00
Pavlo Ratushnyi
5628289171
STRA-338 size-deploy: merge origin/claude/hexagonal-integ ( d0b2b633b); architecture baseline re-run with --update-baseline, limits baseline re-run (allowlist 349 entries)
2026-11-06 15:55:35 +01:00
Pavlo Ratushnyi
57e4200135
STRA-338 size: cuda-driver prefix_commands/FullGeometry::admit/scalar empty trimmed to <= 30 lines, complexity <= 10
2026-11-06 15:55:29 +01:00
Pavlo Ratushnyi
fb1f1c5901
STRA-338 size: engine q6 project_impl split, cache open retry trimmed
2026-11-06 15:55:27 +01:00
Pavlo Ratushnyi
f36fdd6fd6
STRA-338 size: cuda-driver OriginalMmqCopySchedule::stream_launch <= 30 lines
2026-11-06 15:54:24 +01:00
Pavlo Ratushnyi
e6edd2d86e
STRA-338 size: cuda-driver OriginalMtpPrefill::project split into tile/grid/operand/launch helpers (<= 30 lines)
2026-11-06 15:52:52 +01:00
Pavlo Ratushnyi
4a37d9bff7
STRA-338 size: engine original_cache_startup::open split (open_parts)
2026-11-06 15:52:32 +01:00
Pavlo Ratushnyi
b495f972d9
STRA-338 size-deploy: Profile::validate and resources::compute within the limits (one function per rule / per sizing stage, messages unchanged); oversize files 0; fn>30 101/89, cx>10 48/0, nesting>4 7/0, wide lines 305/63; 220 tests, ids and outcomes unchanged
2026-11-06 15:52:19 +01:00
Pavlo Ratushnyi
5fda2b3b9f
STRA-338 size: cuda-driver Ring::stage_one split into wait/copy/record helpers (<= 30 lines)
2026-11-06 15:50:49 +01:00
Pavlo Ratushnyi
e541a197a5
STRA-338 size: engine sample_and_verify trimmed
2026-11-06 15:50:27 +01:00
Pavlo Ratushnyi
85c5bc51e7
STRA-338 size: engine host run_window split (sample_and_verify, verify_sampled, finish_window)
2026-11-06 15:49:04 +01:00
Pavlo Ratushnyi
aeb895517c
STRA-338 size: cuda-driver GrNativeBatch finish/read end <= 30 lines, complexity <= 10
2026-11-06 15:48:59 +01:00
Pavlo Ratushnyi
210c9ac358
STRA-338 size: cuda-driver MmqWorkspace prepare_original_expert_layer(_device) split into route plan/upload helpers (<= 30 lines)
2026-11-06 15:46:51 +01:00
Pavlo Ratushnyi
38e570872a
STRA-338 size-deploy: mechanical child modules renamed after what they hold, export lines compacted, split recorded in docs/architecture/size-split-deploy.md; oversize files 0; fn>30 103/89, cx>10 50/0, nesting>4 7/0, wide lines 339/63; 220 tests, ids and outcomes unchanged
2026-11-06 15:46:38 +01:00
Pavlo Ratushnyi
f6d2402476
STRA-338 size: engine generate_mtp_resume/handle_command/verify_commit trimmed
2026-11-06 15:46:36 +01:00
Pavlo Ratushnyi
52bfb0d824
STRA-338 size: engine generate_mtp_resume within limits (step/Decoding)
2026-11-06 15:45:07 +01:00
Pavlo Ratushnyi
cbf9f166ef
STRA-338 size: engine verify_commit within limits (commit_parts)
2026-11-06 15:42:56 +01:00
Pavlo Ratushnyi
8f862e5e0f
STRA-338 size: cuda-driver OriginalGroupBank init/load_functions and OriginalMmqCopySchedule close/stream_launch end <= 30 lines
2026-11-06 15:42:53 +01:00
Pavlo Ratushnyi
880f90e84b
STRA-338 size: engine runner::run and generate within the limits (command_loop, Delivery)
2026-11-06 15:40:54 +01:00
Pavlo Ratushnyi
952dcaf4c5
STRA-338 size: cuda-driver OriginalMmqLayer ring helpers and enqueue_ring_project end <= 30 lines, complexity <= 10
2026-11-06 15:40:47 +01:00
Pavlo Ratushnyi
fbb6c87ed3
STRA-338 size: cuda-driver MmqExperiment::new/enable_original_formats/observed_admit end <= 30 lines, complexity <= 10
2026-11-06 15:39:23 +01:00
Pavlo Ratushnyi
95676884b4
STRA-338 size-deploy: every .rs file of leleka-deploy within 400 lines (15 oversize files split into named modules; preflight and plan steps decomposed into one function per check/step); crate census oversize files 15 -> 0; fn>30 105/89 -> 103/89, cx>10 53/0 -> 50/0, nesting>4 7/0, wide lines 387/67 -> 339/63; 220 tests, ids and outcomes unchanged
2026-11-06 15:38:57 +01:00
Pavlo Ratushnyi
0189f777bf
STRA-338 size: engine generate split (Delivery, serve_request_for, finish_request)
2026-11-06 15:38:05 +01:00