185 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 15faea9d46 Explicit-imports tool, libc-shim trace modules named for what they hold, two import ratchets, docs of the debt rework
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 19:27:50 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b5e7c2834f Merge claude/tail-skip-default: confirmation of the tail skip default on package 945fc44f32
Rust port / port-fast (push) Failing after 32s
Linux / verify (push) Failing after 45s
Linux / keyless-cuda (push) Skipped
Linux / static-cuda-package (push) Skipped
Linux / hosted-cuda-package (push) Skipped
Linux / linux-static-cli (push) Skipped
Linux / linux-cli-container (push) Skipped
Linux / keyless-cuda-gate (push) Skipped
Linux / release-cli (push) Skipped
Rust port / port-oracles (push) Failing after 38s
Rust port / port-linux-tests (push) Failing after 26s
Rust port / port-typecheck (push) Successful in 1m12s
Product / product (push) Failing after 23m26s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 15:22:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f404b3e118 Tail skip as the 5090 default, confirmation on package 945fc44f32 (default profile, no shell exports): CRM decode 214.2 tok/s relaxed 56/56 x3, ttt decode 211.2 14/14 x3; results in the speed-gap doc, ledger H9, plan 6f, deploy.md; watcher argument fix
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 15:22:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 15eddec4f1 Confirmation series of the 5090 default profile with tail skip + tier bursts ON (package 26647522b1, no shell exports): job stubs r1-r3, report, common script
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 13:17:58 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 67bf39a984 Merge main into claude/host-round (profiles: tail skip keys from main + LELEKA_PLE_ON_CHAIN)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 12:32:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 78dd3e27bd Confirmation series of the 5090 default profile with the lossy tail skip ON (package 945fc44f32, no shell exports): job stubs r1-r3, report, common script
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 12:27:12 +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 2105f46c20 Merge main into claude/host-round
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 09:46:09 +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 Ratushnyi fa76ff99d0 Merge branch 'main' into claude/tail-skip-gate 2026-11-13 02:34:48 +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 7d580590d2 Orchestrator sub-agent smoke: mock sub-agent server (P0), task builder, job, queue stub, run analysis
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 00:17:01 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 aab962fbce Ledger and pool-thread-trace: CPU expert kernels IQ3_S/IQ4_NL verdict (identity bitwise 2057/2057 rows and 1036/1036 draft lines; 243k group A/B decode -0.34 % with A/A twin -0.43 %; pool window median -15 %, tail unchanged); pool_layer_report --by-experts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 00:05:10 +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 8769469461 Tail skip quality gate (plan stage 6f): job stubs r1-r3 and report for LELEKA_ROUTE_TAIL_SKIP=7 on release 83bdd85bb4, acceptance under both accept.py versions (cmp_accept_both.py)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 23:18:08 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4f6b8319b6 Kernel stubs: refuse to start when the frozen inputs differ from MANIFEST.sha256
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 20:35:18 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 dbaeb7c4f7 Kernel A/B stubs (identity, 243k and 67k group A/B, pool thread trace), arm guard reads the engine environment line when the bounded engine log has lost the meta line
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 20:31:09 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 bcbfa2c994 Group A/B driver: package arms (PF_ARMS, one release per arm, binary digest guard); two-binary draft-round identity script for changes without an environment switch
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 20:09:16 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 72813d8be8 Merge main into claude/speed-vs-strata-08143a
Rust port / port-fast (push) Failing after 41s
Rust port / port-linux-tests (push) Failing after 36s
Linux / verify (push) Failing after 53s
Linux / keyless-cuda-gate (push) Skipped
Linux / keyless-cuda (push) Skipped
Linux / static-cuda-package (push) Skipped
Linux / hosted-cuda-package (push) Skipped
Linux / linux-static-cli (push) Skipped
Linux / linux-cli-container (push) Skipped
Linux / release-cli (push) Skipped
Desktop foundation / core (ubuntu-latest) (push) Successful in 5m40s
Rust port / port-oracles (push) Failing after 43s
Rust port / port-typecheck (push) Successful in 1m10s
Product / product (push) Failing after 14m29s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 19:45:45 +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 12826daba9 docs: kernel/pool bench result (pool linear 63 us per expert, 800 us thread time against 377 us of the Original one-thread kernel); second CPU-only stub (one thread without spin, window amortisation)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 19:41:17 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b9d652df56 kernel_ab pool-window: the real CPU expert pool on a large replicated bank, HOT against COLD windows; stub for the kernel resident/streamed and pool-window benchmarks (CPU only); notes on the vanilla trace and the existing tasks-per-thread knob
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 18:54:53 +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 b5b6ed6988 prefill group A/B: D/PT arms (owner default, pool thread trace) with a pool-layer line guard; pool trace stub for release 0ac612d2df
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:49:32 +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 0ac612d2df CPU expert pool: per-phase thread timers behind LELEKA_POOL_TIMING=layers (wake, last, busy, tasks, task times) and a pool-layer engine-log line per layer window; offline report script; instant-now baseline lowered 30 -> 27
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:45:16 +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 Ratushnyi 71e42ec137 Merge branch 'main' into claude/prefill-latency 2026-11-12 16:33:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 da3b3fe697 prefill: GGUF-PLE e2e (rtx5090-32g-gguf-ple, owner-default release): cmp_codex_job_gguf.sh and stubs r1-r3 + report
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:33:22 +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 Ratushnyi 3800bbe792 Merge claude/speed-vs-strata-08143a: stage 6b critical path, K7/K7a closed 2026-11-12 16:31:48 +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 8232f62790 prefill: 243k group A/B stub (candidate vs old default), confirmation e2e stubs for the owner-default release, drop the experimental profile file (now the built-in default)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:28:34 +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 dab1177a97 prefill group A/B: ring prefetch (RP) vs default (AD) 5-pair stub; q script gets RP/AD/ADT arms with a RING-PREFETCH / RING-REFUSE guard
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:13:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f04a143621 pf_ab_job_q.sh: arm guard reads the meta: config line (the last meta line is the cache line)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 09:47:42 +01:00