Commit Graph
6 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 ac60df040f STRA-338: architecture gate forbids new mechanical file names (impl_*, *_fn, numbered), baseline lists the 964 existing; rustsplit names modules after what they hold
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 00:50:17 +01:00
Pavlo Ratushnyi e4993d1516 STRA-338 S25: preview execution path behind the default-on cargo feature preview-path 2026-11-07 18:23:52 +01:00
Pavlo Ratushnyi 40896ba217 STRA-338 S24: peel the pure host-side models out of cuda-driver into leleka-cuda-model
New L1 crate crates/cuda-model (leleka-cuda-model, forbid(unsafe_code), depends on leleka-context only) holds:
Error/Result with Display, DenseFormat, RoutedFormat, ProjectionKind (+ layout/alignment/required_modes), ProjectionSpec,
the Bf16/Q5K/Q6K projection shapes, bringup_trace_enabled, and the modules serving_context, host_profile, command_profile,
original_mtp_loader, original_prefill_schedule, qsa_prompt_attention_select, original_expert_slots, native_flash_attn,
s_gemv_legacy, device_arena, mmq_original_prefill_misc (moved with git mv; code unchanged apart from pub visibility and
#[inline] on the tiny cached-switch readers, host_profile::add split into an inlined gate and a cold body).

leleka-cuda-driver re-exports every item at its old path, so no use path in the driver, engine-qwen35-cuda or
native-parity-bench changes. Tests moved with their modules; they read the .cu sources and oracle fixtures of the driver
through driver_source!; the one loader test that needs the driver's session geometry stays in the driver.

Housekeeping: workspace members/default-members, Cargo.lock, architecture.json (L1), hexagonal.md, ci-coverage.json,
check-local.sh, port.yml, linux-tests/run.sh, AGENTS.md. architecture-baseline.json: the source ratchets of the moved code
change crate key (dyn-trait driver 56 to 49 + model 3, env-read 72 to 67 + 5, process-global 110 to 99 + 11), regenerated
with --allow-increase for the new keys only; per-pattern totals do not rise. limits-baseline.json is unchanged: no moved
function is over a limit.
2026-11-07 17:40:24 +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 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 8890db316b STRA-338 S26: docs/architecture/hexagonal.md (layers, ports, how to add an engine family, gates, evidence rules, state after S22); tech-debt.md records S19 to S22 and corrects statements they made stale; AGENTS.md and README.md link the page 2026-11-06 11:57:26 +01:00