4.7 KiB
Strata upstream record
Leleka is a Rust/CUDA port of the Original mode17 serve path of Strata. The Strata source tree that was vendored under
engine/strata/ is removed; this directory keeps the few files that Rust code and the shipped product still read, and this record.
Pin
| Field | Value |
|---|---|
| Upstream repository URL | https://github.com/Niko1221/Strata.git |
| Upstream commit SHA | 41cf05a06a25dd29103b7b27a2279a3f60c21876 |
| Upstream commit date | 2026-10-25 11:35 +0100 |
| Upstream version at the pin | engine and Control 0.1.50, Terminal and app 0.2.5 |
| Licence | MIT, LICENSE in this directory (shipped by leleka engine license and by the release packager) |
leleka version prints the Upstream commit SHA above (crates/deploy/build.rs reads the row of this table), and the release packager
records it. Do not advance the pin silently: choose a commit, review the diff from the pin, and change this row in the same commit.
The old pin was d9ab8435f654c368c586340d490915f6addf56a3 (engine 0.1.35, upstream tree 487c4cc0, identical to upstream commit
5b734e42; upstream rewrote its history, so d9ab8435 is not an ancestor of upstream main).
What is kept here, and who reads it
All of these are byte-identical to upstream at the pin (.gitattributes keeps them out of line-ending conversion).
| File | Read by |
|---|---|
LICENSE |
leleka engine license (control-plane/src/cli/operations.rs), deploy/Dockerfile.static-cli, the release packagers |
ggml/LICENSE, project-maya/LICENSE, project-maya/NOTICE.md |
release packagers (licence texts shipped in share/leleka/licenses/) |
serve/chat_template.jinja |
leleka-gateway-text (prompt.rs) and leleka-control-plane (server_api.rs), both with include_str! |
serve/chat_golden.json |
leleka-gateway-text prompt tests |
tests/data/native_experts/*.txt |
leleka-control-plane native_pack tests |
control-plane/tests/mcp_hub/mcp_fake_server.py is the upstream serve/mcp_fake_server.py, kept next to the test that runs it.
Local patches that the removed tree carried
The tree at engine/strata/ was upstream 41cf05a0 plus 25 locally patched files (21 modified, 4 new), all default-off or build-profile only:
CMakeLists.txt(STRATA_CUDA_STATICprofile, KAR and PLE targets, keyless sources)include/strata/core/expert_source.hpp,include/strata/core/keyless.hpp(new),include/strata/core/layer.hpp,include/strata/core/verify.hpp,include/strata/kernels/kv_stream.hpp,include/strata/kernels/ngram.hpp,include/strata/kernels/qsa_decode_attn.hppsrc/core/conversation_snapshot.cpp,src/core/conversation_snapshot_test.cpp,src/core/expert_source.cpp,src/core/keyless.cpp(new),src/core/layer.cpp,src/core/mtp.cpp,src/core/verify.cppsrc/kernels/cuda/keyless.cu(new),src/kernels/cuda/kv_q8.cu,src/kernels/cuda/kv_stream.cu,src/kernels/cuda/qsa_decode_attn.cu,src/kernels/keyless_parity.cpp(new),src/kernels/kv_stream_parity.cpp,src/kernels/ngram.cppsrc/prefill/kernels.cu,src/prefill/prefill.cpp,src/program/generate.cpp
Where the removed tree is
The full tree is in git history before the removal: 87e2633af ("bring the Strata subtree to upstream 41cf05a0 (engine 0.1.50)
with the local patches re-applied") is the last commit that changed engine/strata/, and 81039bb40 (main before the removal) still has
the complete tree, so git archive 81039bb40 engine/strata restores it. The removal is two commits: b4db0172 moved the kept files out of
the tree (so 1a4d4a73^ no longer has all of them) and 1a4d4a73 ("Remove the vendored Strata tree engine/strata and its provenance
files (STRA-406)") deleted the rest.
The local patches as a diff (old pin to old subtree, and new pin to new subtree) were engine/upstream/local-patches-on-0.1.35.patch
and engine/upstream/local-patches-on-0.1.50.patch; they are in the same history. The upstream remote is
git remote add strata-upstream https://github.com/Niko1221/Strata.git; the pin commit is fetched from there.
The scripts/gpu-bringup recipes name the include directories of an upstream checkout as strata-41cf05a0/{include,src,third_party/ggml}:
to recompile an asset that includes strata/ headers, extract git archive 81039bb40 engine/strata and place it at strata-41cf05a0/.
Why it was removed (owner decision, 2026-11-23): Leleka never builds or runs it (no Cargo.toml or build.rs depends on it), the vanilla
reference build for benchmarks is made from its own checkout on the benchmark server, the comparison measurements are finished and the
CUDA ports are frozen. Oracles and checks that compiled or read the removed sources were retired with it (see the removal commit message).