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
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
Pavlo Ratushnyi
79cada8a59
STRA-338 size-fn: harmony, offline-tools: test functions split into builders and asserts, wide lines wrapped (fn>30 -> 0)
2026-11-06 18:50:18 +01:00
Pavlo Ratushnyi
a4e6db8a0b
STRA-338 size-fn: strata-control: v1_reconfigure, status_value, service_unit render, Vision::spawn split; shared codec/decoder aliases (dyn ratchet), wide lines (fn>30 4 -> 0)
2026-11-06 18:50:13 +01:00
Pavlo Ratushnyi
ebdb35f3cb
STRA-338 size-fn: tokenizer: bench examples keep every changed line within 120 columns
2026-11-06 18:49:54 +01:00
Pavlo Ratushnyi
5805884567
STRA-338 size-fn: cpu-kernels: bench_variants example split
2026-11-06 18:46:50 +01:00
Pavlo Ratushnyi
3df69b1ebe
STRA-338 size-fn: tokenizer: test functions and examples within limits, from_vocabulary within 30 lines (fn>30 test 7 -> 0)
2026-11-06 18:46:39 +01:00
Pavlo Ratushnyi
9d533647a0
STRA-338 size-fn: cpu-kernels: bench_pinning example split
2026-11-06 18:46:03 +01:00
Pavlo Ratushnyi
aaf9866e30
STRA-338 size-fn: npu-service service test helpers split
2026-11-06 18:45:04 +01:00
Pavlo Ratushnyi
12c4c97ca5
STRA-338 size-fn: experimental-ref: q4 append test split
2026-11-06 18:44:10 +01:00
Pavlo Ratushnyi
6db99bb45a
STRA-338 size-fn: leleka-deploy: more e2e helpers
2026-11-06 18:43:38 +01:00
Pavlo Ratushnyi
588221cbd2
STRA-338 size-fn: strata-control: worker generate loop moved into Generation::next_line (fn>30 1 -> 0)
2026-11-06 18:43:36 +01:00
Pavlo Ratushnyi
5e8dcd4e82
STRA-338 size-fn: experimental-ref: kv_stream test split
2026-11-06 18:43:28 +01:00
Pavlo Ratushnyi
2dc383588f
STRA-338 size-fn: gateway-text, sampler-ref: tool fixtures as consts, check_shapes and fixed-point test within limits
2026-11-06 18:43:15 +01:00
Pavlo Ratushnyi
d7f4c3d6b1
STRA-338 size-fn: experimental-ref: cvec reduction test split
2026-11-06 18:42:49 +01:00
Pavlo Ratushnyi
49ce020c3e
STRA-338 size-fn: experimental-ref: int8/k8v4 append test split by section
2026-11-06 18:42:05 +01:00
Pavlo Ratushnyi
7475cd9ee4
Merge claude/szfn-k2 into claude/hexagonal-size-gw
2026-11-06 18:41:55 +01:00
Pavlo Ratushnyi
3aa29dc01e
Merge claude/szfn-k1 into claude/hexagonal-size-gw
2026-11-06 18:41:54 +01:00
Pavlo Ratushnyi
13d26b9642
Merge claude/szfn-cpt into claude/hexagonal-size-gw
2026-11-06 18:41:53 +01:00