Pavlo RatushnyiandClaude Sonnet 5.5 9b07fdd995 fix: a string argument that quotes a tool call is no longer cut at the quoted text
tool_output::find_parameter_end ended a value at the first </parameter> followed by <parameter= or </function>, so a write
whose content quoted a whole call (a file that documents the format, a heredoc, a test) was published with content cut at the
quote and the rest as plain text, whole and streamed, without any error (upstream #4078, fixed there in 77794e34 and b72f56e0).
It now follows upstream's quote rule: a close inside a call the value itself quotes (more quoted <function=NAME> openers
followed by <parameter= or </function> than </function> closers before it) is part of the value. One forward pass over the
value. Incremental also stops re-trying candidate call ends it has already rejected.

A call whose value quotes an opener and never closes it is now unterminated (an error) instead of being cut at the first
plausible close, so a long write that quotes a call and is itself cut by the token limit is not published truncated.

Deliberately not taken from upstream: a value that reopens its own parameter (</parameter><parameter=content> inside content).
Upstream reads it as text; here it is byte for byte a parameter written twice, which desktop-core's
native_tools_sdet::unknown_incomplete_duplicate_or_late_invalid_call_refuses_entire_output requires to be refused, and merging
the two into one argument would hide a malformed call. It stays an error (duplicate tool parameter), listed as known failure.

Regression tests: specimens 4078-nested-call and 4078-heredoc and the quoted-value shapes "quoted call", "quoted call at the
end" and "heredoc" of the ported corpus failed on the previous commit and pass here (13 of 41 specimens, 5 of 6 shapes), plus a
unit test for the cut outer call. The 8 existing tool_output tests and the 14 native_tools_sdet tests pass unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 03:45:24 +01:00

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.

S
Description
No description provided
Readme MIT
77 MiB
Languages
Rust 69.4%
Python 12.1%
Cuda 10.1%
Shell 4%
C++ 2.3%
Other 1.8%