77 Commits
Author SHA1 Message Date
Pavlo Ratushnyi 056ab3d689 Retire the oracles, generators and scripts that only worked against the vendored Strata tree (STRA-406)
The vendored Strata tree engine/strata is removed for good (owner decision 2026-11-23): Leleka never builds or runs it, the vanilla
benchmark builds from its own checkout, the comparison measurements are finished and the CUDA ports are frozen. Everything below
compiled or read that tree, so it cannot run without it and is retired (the tree stays in git history, see third_party/strata/UPSTREAM.md).
Checked-in fixtures, golden JSON, sealed PTX, seal plans and MANIFEST hashes are untouched and keep being replayed by the cargo tests.

Drift guard
- crates/experimental-ref/tests/literal_port.rs: include_str! of the Original .cu files compared with the checked-in experimental ports.

Oracle generators and builders (they compile or extract from the Strata C++/Python sources; their outputs are the checked-in goldens)
- crates/experimental-ref/oracle/gen_{cvec,kv,remote,stream}_golden.{cpp,sh}, gen_seal_additions.py and the cuda_runtime stub they used
- crates/sampler-ref/oracle/build_oracle.sh, gen_fixtures.cpp, gen_sampling_keys.py, stub/ (run_port_host_tests.sh and the fixtures stay)
- crates/serving-policy/oracle/ (build_oracle.sh, gen_{host,cvec,vision}_fixtures.cpp)
- crates/context/tests/rope_plan_golden/gen_* (plan, rope, kv pool)
- crates/engine-core/src/conversation/golden/gen*.{sh,cpp} and stub/
- crates/cuda-driver/oracle/gen_prefill_ring_trace.py and drivers/prefill_ring_trace.cpp (extracted prefill.cpp), check_cu_syntax.sh
- crates/engine-qwen35-cuda/tests/stra161_reference/reference.py (fixtures.json and the Rust constants stay)
- control-plane/tests/golden/gen_goldens.py, scripts/offline/ (Python differentials and golden generators against the Strata Python tools)

Source-compiling CUDA oracles and builders
- scripts/build-cuda-{projection-family,q5,q6,qsa}-oracle.sh with scripts/cuda-{projection-family,q5,q6,qsa}-oracle/ (include the Original .cu; sha256 pins of them)
- scripts/build-original-verify-ptx.sh, scripts/q8/rebuild_quantizer_ptx.sh, scripts/decode-sm120/make_iq_prefix.py (needs engine/strata/include)
- scripts/cuda-stubs/ (check-cu.py and literal_diff.py need the strata headers and the Original sources; the stub headers served only them)
- tools/chain-probe/build.sh, tools/kernel-ab/{cpp,aa.sh,smoke.sh,time_smoke.sh} (the C++ comparator is built from the Strata CPU kernels; verify_manifest.py stays)
- scripts/e2e/codex/speed/verify-hc-down-kernel-microbench-vs-upstream/ (compiles the upstream kernel from the tree)

Engine builds and Python smokes that need the tree
- scripts/build-cpu.sh, scripts/build-static-cuda.sh, scripts/check-keyless-gpu.sh, scripts/test-static-cuda-profile.py (CMake of engine/strata)
- scripts/compare-real-tokenizer.py, scripts/smoke-mtp-pack.py (reads src/core/mtp.cpp and a bench manifest), scripts/prepare-keyless-routing.py and its test
- scripts/smoke-native-pack.py became scripts/native-pack-fixture.py: the synthetic GGUF fixtures the four other smokes import stay, the iq_pack.py oracle comparison goes

Gates and CI
- scripts/check-local.sh: no live Python oracle differentials, no literal_port note, no check-cu, no build-cpu, no retired test scripts
- .github/workflows/linux.yml: the keyless-cuda, static-cuda-package and hosted-cuda-package jobs (they built the engine from the tree) and their dispatch
  inputs, and the two oracle smoke steps; .github/workflows/port.yml: the Python oracle environment and the llama.cpp fetch of port-oracles
  (the sampler host shim still runs)
- limits.json and scripts/check_limits_test.py exclude third_party/strata/ instead of engine/strata/

Documentation and comments: README.md names third_party/strata and the pin; deploy/README.md marks the retired build and smoke commands; comments
in Rust, Python and Markdown that named engine/strata/... now name "Strata 41cf05a0, ..."; the gpu-bringup scratch-copy test no longer copies the
removed include directories. Stale engine/strata paths in sealed .cu, .ptx, seal-plan and MANIFEST files are left as they are (hashes may depend on the bytes).
2026-11-23 21:19:11 +01:00
Pavlo Ratushnyi b4db01728c Keep the Strata files Rust and the product read in third_party/strata (STRA-406)
Owner decision 2026-11-23: the vendored Strata tree engine/strata is removed for good. This first step moves what is still read
at build, test or ship time into one small directory, byte for byte:

- third_party/strata/LICENSE (MIT; `leleka engine license` embeds it, the packagers ship it)
- third_party/strata/ggml/LICENSE, project-maya/LICENSE, project-maya/NOTICE.md (licence texts the release packager ships)
- third_party/strata/serve/chat_template.jinja (one copy, embedded by control-plane server_api.rs and gateway-text prompt.rs)
- third_party/strata/serve/chat_golden.json (gateway-text prompt tests)
- third_party/strata/tests/data/native_experts/*.txt (control-plane native_pack tests)
- control-plane/tests/mcp_hub/mcp_fake_server.py next to its test harness
- third_party/strata/UPSTREAM.md replaces engine/upstream.md: pin 41cf05a0, URL, the 25 locally patched files, where the removed tree is in history

include_str! paths, deploy/build.rs (the `leleka version` Strata pin now reads third_party/strata/UPSTREAM.md), Dockerfile.static-cli,
.dockerignore, .gitattributes, the release packagers (package-5090.sh, package-release.py: the subtree facts of the removed tree are
dropped from PROVENANCE) and the evidence capture scripts follow the move. The tree itself is deleted in a later commit.
2026-11-23 21:11:53 +01:00
Pavlo Ratushnyi 3f22c4ae29 Drop stale docs/ references from scripts, tools and deploy files; add rope-regeneration.json 2026-11-23 09:34:33 +01:00
Pavlo Ratushnyi 94592f4fa0 wip: rename strata-next/strata-control/strata-desktop-core (to be squashed in the final rename commit) 2026-11-14 20:30:41 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 54194d7eac Runner arm T1 and the every-1/48 throughput blocks job
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 10:59:01 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 2b0fa9f40c host-round doc: control-relative gate of the tier bursts; extra controls job
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 10:37:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 2c9d8483ea Cumulative paired A/B job and the C arm of the host-round runner
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 09:00:04 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 bae4b9a231 Job stubs on the 71354841ed package; tier job with a profile block and three throughput blocks
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 07:12:05 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 71354841ed Span report: only blocks with an engine log
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 07:08:50 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 61d914d54b host-round doc: timeline of the owner default
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 06:47:40 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b64c4e2c8a Placement-gate job stub for the tier-swap bursts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 00:51:52 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e3fc878a64 Job stubs on the 22d9689e73 package
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 00:27:59 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 22d9689e73 Host-round span report; identity stub with the sparse-extent guard and the input manifest check
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 00:24:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ac29af2010 PLE on chain: gather also in swap rounds once the swap copies have finished (read-only event query), tier-burst arms in the host-round runner
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 00:19:18 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9c93828614 Round profile spans for the controller's plan, checkpoints and adoption; host-round runner: tier-burst arm T
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 00:01:27 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6ef5f7bb2d PLE on chain: the held rows pass the binding admission; identity and step-profile job stubs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 23:48:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 42754e609a Decode round: the next window's PLE rows are gathered behind the draft steps (LELEKA_PLE_ON_CHAIN, off by default; verify mode compares every taken row bit for bit); LocalDrain for stream-0-only drains; host-round A/B runner and CUPTI job stub
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 23:46:43 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 48eef5508e Arm guard: profile engine_env keeps only the prefixes the release accepts (LELEKA_SPEC_STATS stays in the shell env); rerun stub for critical path step A
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 19:44:47 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4c84a63c6d Pool-layer job reduced to the old placement (candidate is hex-finish's PT block); step A without the SP/SC step-profile sessions
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:52:50 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a2cf9aff75 Runner: SPD_PREPARE for a new release layout, pool-layer variants TP/TC; stub for the pool-layer trace at 67k
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:52:04 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 adc8af982c Untraced launch-latency microbench for a verify-sized CUDA graph (plan 6b step 1) and its holder stub
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:47:03 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 97d548e2b8 Between-graphs host breakdown (4.30 ms per round, stage by stage): between_graphs_report.py and ledger
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:43:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ee51d31ce8 Runner: several CUPTI windows per session (SPD_TRIG_LINES), release layout tag (SPD_TAG), variants RP/RC/RD/SP/SC; stub for critical path step A
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:33:04 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d1ff767ccd K7/K7a closed as parity (GDN role and mixer phases equal vanilla in the current profile); critical_path_report.py gets --mode VANL; ledger
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:29:07 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8f31ba11e7 Critical path of the verify graph: critical_path_report.py (host wait per layer, mixer/FFN phases, reach of a device saving) and the first read of the 67k windows; ledger
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:26:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f6bd8722b1 A/A twins (PH, QQ) in the reruns, A/A control stub, reserve-240 256k retry; ledger: guard incident
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 01:13:23 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 43467fd7b0 256k floor stub for the quota=no + PCIE_FRAC 0.65 candidate (arm profile via QC_ARM_PROFILE_SET in a copy of the q245 codex job)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 01:10:03 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6b613b1a85 A/A guard: engine-log switch line is checked after the arm ran (it appears with the first request); at ready only the engine-environment line. Rerun stubs for pb-vs-pg, slots/adapt, tail CUPTI windows
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 01:09:13 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 544ffac4d3 256k PS stub: summary lists the expert cache (N slots filled) and VRAM-free lines for the candidate comparison
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 20:22:16 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 0d4d8d67c1 A/A guard for the spd A/B arms (effective switches vs exports, per-arm profile via SPD_ARM_PROFILE); ledger: PB/PN is valid (binaries with the old profile)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 19:08:48 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 42c7998ff5 spd_ab_job: record the effective engine switches per arm (A/A guard: a binary-embedded profile may override shell env)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 19:06:06 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ffa736a782 256k stub for the PS slot lever: Codex q245 session through the release package with alias + reserve 130, 100 ms VRAM sampler
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:52:03 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 290dd06300 Tail head-chain switch: probe, identity and window stubs, variants QP/QT; ledger R6/R7 proved-equal, R8 fixing
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:32:48 +01:00
Pavlo Ratushnyi 26dd97c994 Merge branch 'claude/tail-fusion' into claude/speed-vs-strata-08143a 2026-11-11 17:28:23 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d1ad19e765 Tail fusion: LELEKA_SM120_HEAD_CHAIN_BATCH (off), residual write and head mix of all rows in 6 launches
Analysis (docs/experiments/verify-tail-and-gaps.md, CUPTI windows CP.1 / CL.2 / CY.1 against VANL): R6 is the
single-stream control (2035 gaps, 211 us) against VANL (1194, 119 us); with the side streams LEL has 1124 / 123.7 us,
residual +0.006 ms. R7 has no gap. R8 (+86.5 us at LEL's T mix) is the hyper-connection chain 31.2, the head matmul at
T >= 3 38.4 and the greedy pick 18.0.

The switch batches the 6 T launches of the tail (mtp_full_native_write plus the five lm_head_mix kernels a row) into
6: new sealed sm120_head_chain.cu/.ptx (final write, head norm, pre-final mix with the row as grid.y, compiled with the
--use_fast_math flags of the originals), the existing multi-column bf16 gemv, mtp_full_down_silu over the contiguous
rows. Bitwise by construction (same bodies, same per-column fma chain). Flag in GrConfig::head_chain_batch like U5a;
HEAD_MIX_MULTI untouched. Model-free probe tools/decode-sm120/sm120_probe_head_chain.cpp (built, not run), report
script scripts/e2e/codex/speed/verify_tail_report.py, 15 unit tests (288 original_verify tests pass).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:27:58 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4770912f1a Env-only tier levers group A/B stub (PS slots, PW adapt every 2) after the hit share analysis
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:21:22 +01:00
Pavlo Ratushnyi 3afdeb346c Merge branch 'claude/hit-share-gap' into claude/speed-vs-strata-08143a 2026-11-11 17:19:59 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 350ff9f070 Hit-share gap research: slots (about 0.9 point), window width (0.55), per-layer quotas (second order), start of request; ranked experiments
Read-only analysis of the surviving replay and CUPTI logs on the 5090 server: VRAM hit share of ours against vanilla per cause, per-layer quota
evidence, start-of-request curve, tier knob A/Bs recomputed, ranked list of changes. Adds hit_share_gap.py (server) and hit_share_layers.py (local).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:19:34 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 60cf7b0018 PA variant and stub: PcieAuto group A/B (PG vs PA)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:15:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 0cb24b840c Final stage group A/B stub PB vs PG (n=5), variant PG (PN + D1 + D2); D3 retry key in the ledger
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 16:54:38 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ee9264c528 FFN switches D1-D3: CUPTI window section deltas (D1 gain, D2 small gain, D3 loss) and report script
Reads the five independent windows CP/WD/WH/WW/WZ of request 29 (read-only on the server) per window rows T:
D1 DOWN_SUB16 -0.21 ms per graph on F layers (resolved at every T), D2 HITS_IN_COMBINE -0.043 ms per graph
(tail after the CPU rows, resolved), D3 WAIT_M_ROWS a resolved loss (kernel floor 1.4 us + 0.43 us per block).
ffn_window_report.py extracts one trace per call (stdlib, lct.py) and prints the report with the noise estimates.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 16:50:56 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 31b00093b9 Stage group A/B stub PB vs PN (n=5), variants PN and PF in the window job
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 16:24:02 +01:00
Pavlo Ratushnyi 0dbb4db2f6 Merge branch 'claude/s11-s9-u5a-windows' into claude/speed-vs-strata-08143a 2026-11-11 01:24:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6c0a5fc1f0 Windows of S11, S9, U5a: section deltas with the repeat as noise (reader script and note)
window_increment_report.py reads CUPTI windows offline (extract on the server, report on the laptop): switches that
really ran (kernel names, engine log), per-T per-launch durations, increment deltas against the CZ-CD repeat.
The note records that the windows of verify-s11-s9-u5a-cupti-windows are cumulative and the deltas per switch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 01:24:28 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b8bcd7e777 FFN switches D1-D3: probe, identity and window stubs; ledger rows and job names
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 01:19:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8b2bd4d5e5 Window job: variants WD/WH/WW/WZ for the FFN switches; unset the per-variant switches between variants (a CS export leaked into CH/CD)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 01:13:47 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d19d08b698 V2 FFN phase: loss analysis and design (offline CUPTI timeline script)
Per kind/T/layer-class timeline of the FFN phase for LEL (CL.2, CT.1, CY.1)
and VANL from the request-29 windows, shift-share of the +0.95 ms into device
chain / arrival of the CPU rows / tail / tier mix, and the device-side options
that remain (sub16 down kernel with PCIe pass rows, add_hits in combine, wait M
folded into copy rows) with a task split. Analysis only: no engine code, no GPU.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 00:40:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6129eed3e2 Probe stub run2: stage the frozen probe binaries with the executable bit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 00:04:09 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d885dc5019 Window scripts: holder env var goes before nohup (nohup HOLDER_MEMFD=... failed to start the holder)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 20:27:08 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 fc1e94ea55 Speed program: window variants CP/CS/CH/CD/CZ, ledger S11/S9/U5a built and queued (probes, identity, CUPTI windows)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 19:23:28 +01:00