GptOssEngine holds up to N conversation caches (--cache-slots N on the four workers, default 1 = unchanged). crates/cpu-worker/src/slots.rs chooses per prompt: continue in place a slot that is wholly a prefix of the prompt (the same agent's next turn); otherwise take the slot sharing the longest prefix as a donor and either continue it (losing its tail) or copy the shared part into a new/empty/least recently used slot (State::copy_prefix_from), whichever discards fewer cached tokens, so a new agent gets the shared system prompt without destroying another agent's cache. Results are bit-identical to a fresh prefill (synthetic test: copied prefix continues bit for bit, donor untouched). Measured: CPU only, 3 agents, 36 requests: 1.37x/1.46x prompt time, outputs identical. Through the control plane, 4 agents on one iGPU worker, 3 clean alternating pairs: 986/993/995 s with 1 slot against 569/575/575 s with 4 slots (1.73x), answers identical in all six runs. The first run of pair 1 was disturbed by the UTC date in the system prompt changing mid-run and was repeated. Compare-ConcurrentEpisodes.ps1 takes -Agents, -SharedInstructionTokens and the 'slots' arm and records output hashes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Leleka / Strata Next
Leleka is the independent Rust NVIDIA inference runtime being developed from
this repository. The complete tracked Strata Next source tree was imported from
paveldhq/strata-next commit
1263e88f8947b9796924eb7e8d8d7af08b589049; see docs/upstream.md for the
pinned Strata engine provenance. The imported desktop application, Rust control
plane, deployment code, model tooling, tests, and reference engine are all here.
The migration is staged: Leleka must eventually run without a Strata process, Strata source, Python, or a separately installed CUDA Toolkit on the target host. Until the replacement passes the same protocol, model-quality, and operational gates, Strata remains the behavior baseline. No model family or performance gain is claimed for Leleka until its real-model gates pass.
Repository layout
crates/backend-api/— Leleka's versioned Rust backend contract.crates/tokenizer/— the Qwen35 byte-level BPE tokenizer extracted as a backend-independent Rust crate.desktop/,desktop-core/— current desktop application and its Rust core.control-plane/— current Rust API, Responses handling, and worker supervisor.engine/strata/— pinned upstream Strata reference; retained during migration.gpu/— experimental optimization components, including KAR.integrations/,manifests/,deploy/,scripts/— client integration, model profiles, packaging, and development/test tooling.PROJECT_CHARTER.md,docs/— requirements, provenance, decisions, and performance/quality gates.
Model weights, request captures, credentials, local logs, and generated build artifacts remain outside Git or under ignored paths.
Current Leleka scope
Leleka currently has a versioned backend contract and a standalone Qwen35 BPE tokenizer crate. The existing Rust control plane now consumes that shared tokenizer crate instead of maintaining a second copy; its oracle-parity tests remain in the workspace. Leleka still has no independent inference backend or CUDA integration, so this does not yet serve a model independently. The desktop app and the rest of the control plane remain available as migration source in this repository.
Development
Run the Rust workspace tests and lint:
cargo test --workspace --locked
cargo clippy --workspace --all-targets --all-features -- -D warnings
For the Linux release requirements, see PROJECT_CHARTER.md and the independent engine design.