Commit Graph
1797 Commits
Author SHA1 Message Date
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 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 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 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 00eb77d05c STRA-338 size2 cd1: experimental and closed program GPU smokes split into cases 2026-11-06 22:25:00 +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 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 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
Pavlo Ratushnyi 00c8e39fcc STRA-338 size-fn: desktop-core: handle_generate and Sizing::dedicated within the limits 2026-11-06 19:04:22 +01:00
Pavlo Ratushnyi 113231a5df STRA-338 size-fn: strata-control: part_layout and plan_parts within the limits (fn>30 2 -> 0) 2026-11-06 19:03:31 +01:00
Pavlo Ratushnyi 44b428dd9a STRA-338 size-fn: strata-control: stream_parts layout/plan, loopback url, switch begin, run_session split into engine_io (fn>30 8 -> 0) 2026-11-06 19:01:38 +01:00
Pavlo Ratushnyi 03c7e83b07 STRA-338 size-fn: desktop-core planner, evaluation_measurement, managed_worker within the function limits 2026-11-06 19:00:46 +01:00
Pavlo Ratushnyi e9a82e5f73 STRA-338 size-fn: desktop-core runtime_gateway: responses, render, load, tool_responses, credential within the function limits 2026-11-06 19:00:08 +01:00
Pavlo Ratushnyi da0d931a83 Merge branch 'claude/szfn-dep' into claude/hexagonal-size-gw 2026-11-06 18:59:26 +01:00
Pavlo Ratushnyi b896072b03 Merge branch 'claude/szfn-r2' into claude/hexagonal-size-gw 2026-11-06 18:59:24 +01:00
Pavlo Ratushnyi b1191fa963 Merge branch 'claude/szfn-r1' into claude/hexagonal-size-gw 2026-11-06 18:59:23 +01:00
Pavlo Ratushnyi d04ad93149 STRA-338 size-fn: Gpu::with_tile within 30 lines 2026-11-06 18:58:22 +01:00
Pavlo Ratushnyi 6d64ad9919 STRA-338 size-fn: leleka-deploy: split the persisted-numbers check 2026-11-06 18:58:17 +01:00
Pavlo Ratushnyi b3aca3ddd9 STRA-338 size-fn: desktop-core journal, remote install, remote probe and ssh tunnel within the function limits 2026-11-06 18:57:47 +01:00
Pavlo Ratushnyi e6306202c3 STRA-338 size-fn: desktop-core runtime_rpc: generate, load, unload, reconfigure, watch, pump, snapshot and four tests within the limits 2026-11-06 18:57:40 +01:00
Pavlo Ratushnyi 0b20e0250f STRA-338 size-fn: leleka-deploy: reconfigure e2e checks in their own module 2026-11-06 18:55:05 +01:00
Pavlo Ratushnyi 00ad202f28 STRA-338 size-fn: strata-control: worker generate and Generation::new within the limits (fn>30 2 -> 0) 2026-11-06 18:53:46 +01:00
Pavlo Ratushnyi 04d945da7a STRA-338 size-fn: strata-control: tensor_export record builder (fn>30 1 -> 0) 2026-11-06 18:53:45 +01:00
Pavlo Ratushnyi 8d1b2fbb21 STRA-338 size-fn: ab_slots and ab_speculation last trims 2026-11-06 18:53:42 +01:00
Pavlo Ratushnyi 01ff42428e STRA-338 size-fn: leleka-deploy: remaining e2e and unit test helpers 2026-11-06 18:53:20 +01:00
Pavlo Ratushnyi f47b501f17 STRA-338 size-fn: strata-control: switch transaction, wait_ready, runtime_config resolve, tokenizer extract within the function limits (fn>30 12 -> 0) 2026-11-06 18:53:09 +01:00
Pavlo Ratushnyi 0c95bca7d1 STRA-338 size-fn: strata-control: stream_parts layout and shard planning split into modules (fn>30 2 -> 0) 2026-11-06 18:52:52 +01:00
Pavlo Ratushnyi e4da26d74b STRA-338 size-fn: ab_speculation: replay policies in their own file 2026-11-06 18:52:42 +01:00
Pavlo Ratushnyi 8cfc4a8022 STRA-338 size-fn: cpu-kernels: bench_pinning main split 2026-11-06 18:51:46 +01:00
Pavlo Ratushnyi 5cc57c2b9b STRA-338 size-fn: example mains trimmed 2026-11-06 18:51:23 +01:00
Pavlo Ratushnyi 3350154e72 STRA-338 size-fn: examples: long strings continued, more helpers 2026-11-06 18:50:59 +01:00