From 2e65ec2bae4e8a0c723f49144d94b70583c4a172 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Fri, 6 Nov 2026 21:30:13 +0100 Subject: [PATCH] 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) --- docs/architecture/output-event.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/architecture/output-event.md b/docs/architecture/output-event.md index ef3db412..b102e1e6 100644 --- a/docs/architecture/output-event.md +++ b/docs/architecture/output-event.md @@ -95,7 +95,7 @@ no consumer changes. ## Identity proof -`responses::tests::output_golden` drives the real `create` handler with 66 scripted token sequences (33 per family) in both modes +`responses::tests::output_golden` drives the real `create` handler with 66 scripted token sequences (37 Qwen3.5, 29 gpt-oss) in both modes (stream and buffered), 132 captures, and compares status, content type and body bytes (SSE framing included; ids made of the clock and a counter, and timestamps, are replaced) with `output_events.json`. The scripts cover: plain text, multi-byte text split over tokens, a terminal token followed by more tokens, tools with text, one call, two calls, unknown tool, schema violation, an unfinished call @@ -106,6 +106,18 @@ and two calls, calls without declared tools, unknown tool, schema violation, inv arguments, a cut call, two finals, analysis after the answer, multi-byte text, trailing newlines. The captures were recorded on `cbc1a9587` and have not been rewritten since. Scripts are synthetic. +Results: the golden passed unchanged after each migration step. `cargo test --no-fail-fast --all-targets` for `strata-control`, +`leleka-gateway-domain`, `leleka-gateway-text`, `leleka-harmony`, `leleka-tokenizer` and `leleka-runtime-client` on Linux (WSL), before +(`cbc1a9587`) and after, compared with `scripts/dev/test-outcomes.py compare`: 0 missing, 0 outcome changes, 13 new ids (10 unit +tests of `output/` in `leleka-gateway-domain`, the two golden tests and the ignored `regenerate_output_golden`); 515 ok / 1 ignored +before, 527 ok / 2 ignored after. The tests that read the replaced code (`reasoning_marker_and_unicode_split_at_every_byte`, the +unclosed-reasoning test, the utf8 test) keep their ids and now read through the new decoder. `cargo check --all-targets` and +`cargo clippy --no-deps --all-targets -- -D warnings` for `strata-control` and `leleka-gateway-domain`: 0 warnings. `rustfmt --check` +on the changed files: no diff. `check-limits.py --base origin/claude/hexagonal-integ`, `check-architecture.py` and +`check-ci-coverage.py`: green; `architecture-baseline.json` tightened (`dyn-trait` gateway-domain 5 to 4, strata-control 14 to 12). +No performance claim is made: the buffered readings now decode each token as it arrives instead of once at the end, which was +not measured. + ## Behaviours kept on purpose These are in the golden, so the migration could not change them silently: