Commit Graph
1820 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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 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 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 dfb6d8b870 STRA-338 size2 cd2: projection shapes, native activation, kar level decode and tests, kv stream proofs, mapped expert bank, mapped file dma stress split into phases 2026-11-06 22:42:47 +01:00
Pavlo Ratushnyi 8d92132660 STRA-338 size2 cd1: ffi tables and the GDN row queue split into phases 2026-11-06 22:40:48 +01:00
Pavlo Ratushnyi 0fa4dad1a9 STRA-338 size2 cd3: moe group/prefill-batch/prompt-packet functions and their GPU proofs split into phases 2026-11-06 22:31:18 +01:00
Pavlo Ratushnyi 27342d1d62 STRA-338 size2 cd4: native head, native parity, nvml, mapped and conversation facts functions cut to the lawbook limits 2026-11-06 22:28:03 +01:00
Pavlo Ratushnyi 00eb77d05c STRA-338 size2 cd1: experimental and closed program GPU smokes split into cases 2026-11-06 22:25:00 +01:00
Pavlo Ratushnyi 773decb47a STRA-338 size2 cd5: mtp loader/bank/draft head/lifecycle, pcie smoke, prefill arena/layout/schedule functions cut to the lawbook limits 2026-11-06 22:24:21 +01:00
Pavlo Ratushnyi 2d5215bcda STRA-338 size2 cd1: drain timing, deferred status, owned copy proof and experimental KV launches under the limits 2026-11-06 22:21:00 +01:00
Pavlo Ratushnyi 5139b59b45 STRA-338 size2 cd2: gr_native_batch, gr_read_guard, grouped gpu tests, head_greedy, Context projections and teardown split into phases 2026-11-06 22:17:10 +01:00
Pavlo Ratushnyi c84337ae77 STRA-338 size2 cd3: mmq resident GPU proof tests split into phase helpers 2026-11-06 22:10:05 +01:00
Pavlo Ratushnyi 431c20156d STRA-338 size2 cd4: mtp_original layout, prefill, ring state, scalar prefill/graph/ffi, session and batch workspace functions cut to the lawbook limits 2026-11-06 22:07:49 +01:00
Pavlo Ratushnyi 1789ef9928 STRA-338 size2 cd1: stream_k_off, async owned copy, gr batch preview, bringup trace and closed kernels functions under the limits 2026-11-06 22:03:02 +01:00
Pavlo Ratushnyi dfbfac8252 STRA-338 size2 cd5: gpu_schedule, ffi platform and moe_prompt_device functions cut to the lawbook limits 2026-11-06 21:59:33 +01:00
Pavlo Ratushnyi b534293c75 STRA-338 size2 cd3: mmq original stream-all, weights triplet and resident workspace functions under the limits 2026-11-06 21:58:01 +01:00
Pavlo Ratushnyi 3d90b08e46 Merge remote-tracking branch 'origin/claude/hexagonal-s23' into claude/hexagonal-integ 2026-11-06 21:37:13 +01:00
Pavlo Ratushnyi a337119255 Merge remote-tracking branch 'origin/claude/hexagonal-size-gw' into claude/hexagonal-integ 2026-11-06 21:30:32 +01:00
Pavlo Ratushnyi 2e65ec2bae STRA-338 S23: record the identity and gate results in output-event.md, correct the case count (37 Qwen3.5 and 29 gpt-oss scripts) 2026-11-06 21:30:13 +01:00
Pavlo Ratushnyi b645cb9ac5 Merge remote-tracking branch 'origin/claude/hexagonal-integ' into claude/hexagonal-s23 2026-11-06 21:18:42 +01:00
Pavlo Ratushnyi 8b5d5cb281 STRA-338 S23: remove the readers OutputDecoder replaced, move their tests, document the output flow
Removed: decode_generation_noted and DecodedGeneration (gateway-domain), decode_generation_with / decoded_items /
decode_generation (strata-control), ReasoningStream and the drain_utf8 copy (their code lives in output/). The test ids are
kept: reasoning_marker_and_unicode_split_at_every_byte and the unclosed-reasoning test now read through the output decoder,
the utf8 test calls the domain drain_utf8; two unit tests of the moved pieces are added to gateway-domain.
docs/architecture/output-event.md: how output flows for each family, every site that asked for the family (before and after),
the canonical type, the identity proof, the behaviours kept on purpose and what is not done and why; hexagonal.md and
tech-debt.md point to it. architecture-baseline.json tightened with --update-baseline (dyn-trait: gateway-domain 5 to 4,
strata-control 14 to 12; nothing raised).
2026-11-06 21:18:35 +01:00
Pavlo Ratushnyi f1bb0bdb28 STRA-338 S23: the family is a capability of the codec, not a branch of the protocol code
TextCodec gets always_reasons() (gpt-oss: true) and sampling_limit() (gpt-oss: the worker takes temperature, top_p and
seed only; the error message is the family's own). reasoning_enabled(request, codec) and admit.rs (check_live_features,
apply_sampling_defaults) read them instead of comparing Family::GptOss, and text.rs / reasoning.rs / tool_recovery.rs pass
the codec instead of its family. Proof: output_golden (132 captures) identical, strata-control and gateway-domain lib tests
pass, gates green, 0 warnings.
2026-11-06 21:12:53 +01:00
Pavlo Ratushnyi 6149cc7820 STRA-338 S23: the reasoning and structured-output stream reads OutputEvent
responses/stream/buffered.rs holds one reading-at-the-end OutputDecoder for the whole stream: ReasoningDelta events become
the reasoning deltas of the SSE stream, and at DONE the decoder is finished off the async threads (post_decode stage) and
the remaining events become the response with output_items. The stream no longer keeps token ids, no longer runs
ReasoningStream or decode_generation_with, and no longer asks the codec for its family (the decoder plan says whether the
output starts inside a reasoning block). Proof: output_golden (132 captures) identical, strata-control lib tests 317 pass,
gates green. Logging difference: a refused tool call in this stream now also writes the STRATA_DEBUG_FAILED_OUTPUT debug
copy to stderr when that variable is set (the non-stream answer already did); no response byte changes.
2026-11-06 21:09:28 +01:00
Pavlo Ratushnyi 59f0c089a3 STRA-338 S23: the buffered (non-stream) answer reads OutputEvent
responses/create/answer.rs reads the generated ids through a reading-at-the-end OutputDecoder (decode and tool-call parse
errors keep their classes: detokenization_failed and tool_call_parse_failed) and builds the items with output_items,
replacing decode_generation_with / decoded_items. tool_recovery.rs gets the two helpers both buffered sites share
(at_end_plan, finish_output: the notes log, the call-in-reasoning log and the debug copy of a refused call).
Proof: output_golden (132 captures) identical, strata-control lib tests 317 pass, gates green.
2026-11-06 21:05:39 +01:00
Pavlo Ratushnyi da6c080472 STRA-338 S23: the tool-call stream reads OutputEvent
responses/stream/tool_run.rs (the stream of a response whose request declares tools, no reasoning) takes the text and the
whole calls from a live OutputDecoder instead of draining UTF-8 and driving tool_output::Incremental itself;
ToolStream::event_item publishes an OutputEvent. The debug copy of a failed output and the notes log come from the
decoder. Proof: output_golden (132 captures) identical, strata-control lib tests 317 pass, gates green, 0 warnings.
2026-11-06 21:02:02 +01:00
Pavlo Ratushnyi 0e3216bf45 STRA-338 size (fix): review findings of the size splits: native_prompt_device finish phases keep the failure path on a poisoned workspace, the DBG window and nan-guard log lines are one line again, with_qsa_moe binds QSA before MoE as before 2026-11-06 21:02:00 +01:00
Pavlo Ratushnyi eb003147a6 STRA-338 S23: OutputEvent and per-family OutputDecoder in leleka-gateway-domain; the plain-text stream reads events
New pure module leleka-gateway-domain::output: OutputEvent (reasoning delta, reasoning, text, whole tool call),
OutputError (decode / parse), OutputDecoder (an enum over the families: Qwen3.5 tokenizer bytes, the Harmony decoder),
a live reading (text and tool calls as bytes arrive) and a reading at the end (reasoning split on </think>, batch parse
of the answer, the unclosed-reasoning rules, reasoning token count), and output_items (events to response items).
The Harmony decoder moved from control-plane/src/harmony_family.rs unchanged (it still writes the Qwen-style markup
the readers parse); TextCodec gets output_decoder(plan). The readers are ports of the code in stream/ and tool_calls.rs.

Migrated site: responses/stream/text.rs (plain-text stream) now takes OutputEvent::Text from the decoder instead of
draining UTF-8 itself. Proof: output_golden (132 captures) identical, strata-control and gateway-domain lib tests
pass, check-limits / check-architecture / check-ci-coverage green, 0 new warnings.
2026-11-06 20:56:04 +01:00
Pavlo Ratushnyi 08afbf2160 STRA-338 S23: golden captures of the gateway answers for scripted model output, both families
Adds a test that drives the real create handler with 66 scripted token sequences (33 Qwen3.5, 33 gpt-oss/Harmony) as a
stream and as a buffered answer, and compares the bytes a client would read (status, content type, SSE frames, JSON
body, with ids and timestamps normalised) with tests/fixtures/golden/output_events.json. The cases cover plain text,
tool calls, reasoning, structured output, unclosed reasoning, length cuts, invalid and unknown calls, calls without
declared tools and worker failures. The captures were recorded on cbc1a9587 and are the identity proof of the S23
steps; the test also checks that two runs give the same captures. Synthetic scripts only, nothing from a real session.
2026-11-06 20:42:23 +01:00
Pavlo Ratushnyi cbc1a9587a STRA-338 size-fn: record the test parity result 2026-11-06 19:23:55 +01:00
Pavlo Ratushnyi b8765786b7 STRA-338 size-fn: fetch_steps within the limits, allowlist 429 -> 133 entries (fixed functions dropped, 18 unfinished desktop-core functions recorded), baselines tightened, size-fn record 2026-11-06 19:16:24 +01:00
Pavlo Ratushnyi 39f67e9d05 Merge origin/claude/hexagonal-integ into claude/hexagonal-size-gw 2026-11-06 19:11:51 +01:00
Pavlo Ratushnyi ec2dbe54e1 STRA-338 size-fn: rustfmt of the files this batch changed (strata-control, strata-desktop-core, runtime-client, deploy) 2026-11-06 19:11:35 +01:00
Pavlo Ratushnyi 521c3d0d91 STRA-338 size-fn: dyn-trait aliases in desktop-core bins, result_large_err allowed where the error is the HTTP response 2026-11-06 19:11:19 +01:00
Pavlo Ratushnyi 5da74034ef Merge branch 'claude/szfn-cpc' into claude/hexagonal-size-gw 2026-11-06 19:06:55 +01:00
Pavlo Ratushnyi 06ee0c185b Merge branch 'claude/szfn-dc' into claude/hexagonal-size-gw 2026-11-06 19:06:17 +01:00