Commit Graph
1879 Commits
Author SHA1 Message Date
Pavlo Ratushnyi 263cd08650 STRA-338 S23: record the test parity of the second review (0 missing, 0 changed, 38 new; 552 ok) 2026-11-06 23:45:19 +01:00
Pavlo Ratushnyi 906b64ae2d STRA-338 S23: output-event.md after the second review: what adding a family touches, the stronger golden, the worker metrics of an early cancel 2026-11-06 23:37:58 +01:00
Pavlo Ratushnyi 34c7f74e25 Merge remote-tracking branch 'origin/claude/hexagonal-integ' into claude/hexagonal-s23 2026-11-06 23:37:56 +01:00
Pavlo Ratushnyi ddea3ac916 STRA-338 S23: close the golden gaps of the second review, recorded on the code before S23
29 more cases (159 cases, 318 captures), recorded on 08afbf216 in a temporary worktree and checked against the new code; none
differs. New cases: the request's max_output_tokens reached (text, reasoning, closed reasoning, tools, structured, gpt-oss);
Qwen reasoning on with json_schema valid and violated; gpt-oss json_schema, tools with structured output, effort none with
tools; Qwen reasoning plus tools at the length limit with calls inside the unclosed reasoning, and without; namespaced tools
through the stream and the buffered reading (Qwen with and without reasoning, gpt-oss); DONE before the first token and an error
after DONE (all four readings); a worker that reports fewer generated tokens than the reasoning took (the reasoning_tokens
clamp, usage output_tokens).
New tests of the binary (15 pass on 08afbf216 and on the new code): the stored response equals the one the client was sent
(streamed and not, six cases); a client that leaves at DONE closes the source (five cases, among them the final preview
flush); what reaches the worker: gpt-oss gets none of the server defaults for the samplers it lacks (top_k 20 and
penalty_last_n 64 included), accepts neutral values, Qwen keeps all five samplers and penalty_last_n, own and default.
In the lib: BufferedRun finishing its generation twice returns the shared GENERATION_ENDED error and fail() sends
response.failed; a token after the end fails the stream.
regenerate_output_golden now refuses unless OUTPUT_GOLDEN_RECORD names the pre-S23 commit and the tree has no output module
(checked: it panics on this tree); output_events.recorded_on names 08afbf216 and a test pins it.
2026-11-06 23:37:15 +01:00
Pavlo Ratushnyi 2d25958e42 STRA-338 size2: merge of the 14 function-size slices; seven files over 400 lines split again, baselines regenerated (dyn-trait ratchet raised by helper parameters that repeat an existing &dyn seam, allowlist gets the legacy functions the splitter moved) 2026-11-06 23:36:21 +01:00
Pavlo Ratushnyi 1c3bcdf290 Merge branch 'claude/size2-en4' into claude/hexagonal-integ 2026-11-06 23:29:07 +01:00
Pavlo Ratushnyi bd036b52b8 STRA-338 S23: names, one cut struct, sampler_limit.rs, no dead live reading for gpt-oss
Renames: ReasoningSplit to ReasoningPreview, Bytes to TokenBytes, Split and Cut to the one CutGeneration (the tokens are
counted from its extent by Generation::count_tokens), split_reasoning to cut_reasoning_for_corpus. AtEndDecoder::read_answer
returns the events and the notes, and build_events keeps the notes (two steps). decode_lossy has its doc comment. The
message of a decode error after the generation ended is one constant, output::GENERATION_ENDED, used by the decoders and by
the buffered stream. The sampler types and the admission functions move from codec.rs and effort.rs to sampler_limit.rs
(with their tests); lib.rs no longer names TokenDecoder.
TextCodec::live_decoder returns Option and defaults to None: a model that always reasons is read at its end, so the
gpt-oss live arm and LiveDecoder::harmony are deleted; the two live streams fail the response with NO_LIVE_READING if they
ever get None. harmony_family tests pin reasoning_enabled(effort none, gpt-oss) = true and the missing live reading.
New unit tests: preview off with an unclosed block at the length limit, and the same reasoning tokens with preview on and
off when the marker is split over two multi-byte tokens.
Proof: golden (260 captures recorded on 08afbf216) identical, strata-control lib 316, gateway-domain 36, tool corpus 4.
2026-11-06 23:26:53 +01:00
Pavlo Ratushnyi 569329bfff Merge branch 'claude/size2-en7' into claude/hexagonal-integ 2026-11-06 23:26:01 +01:00
Pavlo Ratushnyi 4bdd736a78 Merge branch 'claude/size2-en6' into claude/hexagonal-integ 2026-11-06 23:26:00 +01:00
Pavlo Ratushnyi 70c6b1f23c Merge branch 'claude/size2-en5' into claude/hexagonal-integ 2026-11-06 23:25:59 +01:00
Pavlo Ratushnyi 407f83de01 Merge branch 'claude/size2-en2' into claude/hexagonal-integ 2026-11-06 23:25:58 +01:00
Pavlo Ratushnyi 831a77e43e Merge branch 'claude/size2-en1' into claude/hexagonal-integ 2026-11-06 23:25:57 +01:00
Pavlo Ratushnyi f509d39868 Merge branch 'claude/size2-cd7' into claude/hexagonal-integ 2026-11-06 23:25:55 +01:00
Pavlo Ratushnyi a808e4e7cb Merge branch 'claude/size2-cd6' into claude/hexagonal-integ 2026-11-06 23:25:54 +01:00
Pavlo Ratushnyi 1bd04f60c1 Merge branch 'claude/size2-cd5' into claude/hexagonal-integ 2026-11-06 23:25:53 +01:00
Pavlo Ratushnyi 6586653876 Merge branch 'claude/size2-cd4' into claude/hexagonal-integ 2026-11-06 23:25:52 +01:00
Pavlo Ratushnyi 65ce8a267a Merge branch 'claude/size2-cd3' into claude/hexagonal-integ 2026-11-06 23:25:51 +01:00
Pavlo Ratushnyi 81ff6b1a9d Merge branch 'claude/size2-cd2' into claude/hexagonal-integ 2026-11-06 23:25:50 +01:00
Pavlo Ratushnyi fdd032fc29 Merge branch 'claude/size2-cd1' into claude/hexagonal-integ 2026-11-06 23:25:48 +01:00
Pavlo Ratushnyi e96ac874af STRA-338 size2 en4: remaining complexity offenders of the slice files split (slotpack, route, mtp frame/norm/attend, transports) 2026-11-06 23:24:29 +01:00
Pavlo Ratushnyi 712ecc93fd STRA-338 size2 cd1: batch_gr_preview launch takes its arguments by value 2026-11-06 23:24:05 +01:00
Pavlo Ratushnyi 1a1e3ebdf8 STRA-338 size2 cd2: mmq numeric/resident/stress tests, k-quant admission and group output helpers split; restore backslash string continuations 2026-11-06 23:21:42 +01:00
Pavlo Ratushnyi 3dd90f49ac STRA-338 size2 en4: mtp decode, batch/transport proofs and expert transport functions split into phases 2026-11-06 23:18:50 +01:00
Pavlo Ratushnyi 0be6c15961 STRA-338 size2 cd1: GR batch workspace and microbatch read, prompt device, fused t1 smoke and gpu report split into phases 2026-11-06 23:17:30 +01:00
Pavlo Ratushnyi 160aa3b8fc STRA-338 size2 cd3: mtp original full forward/round/drafter, int8 ring and ffi owners under the limits 2026-11-06 23:16:23 +01:00
Pavlo Ratushnyi 8db0fba156 STRA-338 size2 en6: complexity trims in the qsa decode/prefill/index helpers and clippy cleanups 2026-11-06 23:12:45 +01:00
Pavlo Ratushnyi de6533c341 STRA-338 size2 en5: validate_ready frame checks in their own fn 2026-11-06 23:10:37 +01:00
Pavlo Ratushnyi 8ea40da057 STRA-338 size2 cd5: sampler, session state, stream_all and verify functions cut to the lawbook limits 2026-11-06 23:09:44 +01:00
Pavlo Ratushnyi 7edd23d673 STRA-338 size2 en1: remaining gpu proof, adaptive five-case and laptop bench functions split into child modules 2026-11-06 23:09:38 +01:00
Pavlo Ratushnyi 04130c7b54 STRA-338 S23: rustfmt and clippy fixes, record the test parity numbers (0 missing, 0 changed, 27 new; 541 ok) 2026-11-06 23:06:51 +01:00
Pavlo Ratushnyi 5f3def25c0 STRA-338 size2 cd4: short-prompt GPU proof imports the arena type; cleanup_fns needs no unused-import allowance 2026-11-06 23:05:02 +01:00
Pavlo Ratushnyi 7a848a87cb STRA-338 size2 cd7: the grouped-workspace and columns-loan fixtures move their cases into child files 2026-11-06 23:04:03 +01:00
Pavlo Ratushnyi 6c0aa04954 STRA-338 size2 cd2: mmq original group, ring, host stage, chunk stream, stream-all, enqueue ffi, asset and layout tables split into phases 2026-11-06 23:03:06 +01:00
Pavlo Ratushnyi d800f58992 STRA-338 size2 cd1: GDN fused t1, native batch, state guard and gemm loan split into phases 2026-11-06 23:02:30 +01:00
Pavlo Ratushnyi 42c7a7a2ed STRA-338 size2 en6: ple transport, qsa index/attention/decode/prefill, q6 columns and GPU proof functions cut into phases 2026-11-06 23:00:38 +01:00
Pavlo Ratushnyi f7d3ff8b69 STRA-338 size2 cd7: complexity of the new routed and qsa test helpers 2026-11-06 22:58:18 +01:00
Pavlo Ratushnyi 665b5bdd10 STRA-338 size2 en5: last small overages of the split helpers and the wide comment lines 2026-11-06 22:57:26 +01:00
Pavlo Ratushnyi d5fe490db7 STRA-338 size2 en4: mtp and mtp_attention functions split into phases 2026-11-06 22:54:00 +01:00
Pavlo Ratushnyi 688d2d1a47 STRA-338 size2 cd7: routed_*, s_gemv, vram_ledger and shared-tail functions cut into helpers 2026-11-06 22:53:36 +01:00
Pavlo Ratushnyi 78781f1084 Merge remote-tracking branch 'origin/claude/hexagonal-integ' into claude/hexagonal-s23 2026-11-06 22:53:22 +01:00
Pavlo Ratushnyi 1e88437cb8 STRA-338 S23: correct output-event.md after the review: the decoder types, the stronger golden recorded on the code before S23, the behaviour changes
Corrected: the per-token decoding claim (new only for the structured-output stream on Qwen; the reasoning stream already
decoded per token, the non-stream answer still decodes at the end in spawn_blocking); the post_decode stage now times only
finish and is not comparable with older numbers (docs/cp-latency.md, scripts/cp/summarize.py); the list of behaviour changes
(debug copy in the buffered stream, the order of the generation-failure line and the debug copy in the non-stream answer,
flags read at stream start, a decode error at the offending token in the structured stream, a generation ends once);
the identity proof (130 cases, 260 captures recorded on 08afbf216, ids with suffix, multi-byte vocabulary, timing tests).
tech-debt.md and hexagonal.md follow.
2026-11-06 22:53:20 +01:00
Pavlo Ratushnyi 00f3636c17 STRA-338 S23: sampling_limit carries the set of samplers the worker cannot carry
TextCodec::sampling_limit returns SamplingLimit { unsupported: &[Sampler], message }; gpt-oss lists TopK, MinP,
RepetitionPenalty, FrequencyPenalty, PresencePenalty in the order they were checked. unsupported_sampler and
drop_unsupported_samplers (effort.rs) read the set, so neither admit.rs nor effort.rs names a gpt-oss field any more
(unsupported_gptoss_sampling is gone; clearing penalty_last_n goes with the repetition penalty, as before). Unit tests of
both functions in gateway-domain; a_sampler_the_gptoss_worker_lacks_is_refused_and_named in the golden binary (400, the
param named, the family's message, the first sampler of the list wins) passes on 08afbf216 and on the new code.
Proof: golden (260 captures recorded on 08afbf216) identical, strata-control lib 315, gateway-domain 34, tool corpus pass.
2026-11-06 22:53:04 +01:00
Pavlo Ratushnyi d9166c4fb5 STRA-338 size2 cd6: remaining over-long fns of the slice are cut (gpu proofs, mapped journal append, stage run, late/queue cases) 2026-11-06 22:52:07 +01:00
Pavlo Ratushnyi 7bc294bb40 STRA-338 size2 cd3: mtp input workspace, original mtp ffi/mapped owners and logical prefix functions split into phases 2026-11-06 22:50:16 +01:00
Pavlo Ratushnyi 2ee93e05ab STRA-338 size2 en1: gpu proof test-support functions split into helpers, shared single-load rig 2026-11-06 22:50:01 +01:00
Pavlo Ratushnyi e00d4435cf STRA-338 size2 cd4: expert cache, stager, file expert source and driver table loaders cut to the lawbook limits 2026-11-06 22:49:32 +01:00
Pavlo Ratushnyi 7371355bf6 STRA-338 size2 en5: residency tier, seed, gpu proof and serve stack functions split under the limits 2026-11-06 22:47:59 +01:00
Pavlo Ratushnyi 532f322113 STRA-338 size2 en7: session, chunk, verify, original-prompt/draft and serve-meta functions cut to the limits 2026-11-06 22:44:33 +01:00
Pavlo Ratushnyi 3bcced5be4 STRA-338 size2 cd6: long fns of verify window, qsa, ple, q6 and gpu proofs are cut into helpers (batch 1) 2026-11-06 22:43:14 +01:00
Pavlo Ratushnyi 7caefe2bdc STRA-338 size2 en4: moe_weight_cache functions split into phases, the main-entry fill path shared 2026-11-06 22:42:51 +01:00