Commit Graph
222 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 6be35e9752 Spec window and MTP chain stay inside the context's cells (plan 0.3; upstream e85567b6)
The controller ended a request as length when a full window did not fit, losing the rows that did, and the MTP chain drafted its full
length whatever the context had left. Near the end the window now takes the rows that fit, the chain is clamped to the cells that exist
(restored on the next round), the driver's chain loop is bounded by the ring's cells, and the draft launch no longer refuses a window
only because the unused part of a full chain would pass the ring.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 17:08:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f7ab3fd59c Control-token text inside messages is ordinary text (plan 0.1; upstream c16f31f8, 98b7ea94, 0d613031)
leleka_tokenizer::LiteralMarks swaps every special literal (GGUF token type 3 and 4) in a client string for a plane-15 private-use mark
before the chat template runs (a forged mark is escaped); Tokenizer::encode_marked parses the template's own literals as special tokens and
encodes each mark's literal as ordinary text. render_request marks instructions, message text, reasoning, call arguments, tool outputs and
tool descriptions/schemas; the gateway's own tool markers stay literal. Generation and /input_tokens share the one encoding; the text
contract carries the marked string and leleka-runtime reads it with encode_marked.

Not covered: strata-desktop-core still renders unmarked text; live Codex session (gate L) not run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 23:31:05 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e7fd12b77b docs: plan for porting the Strata upstream changes into the Leleka runtime (phases 0-3, gates, status table)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 17:44:56 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 885bfb457e docs/windows.md: measured outcomes of the real runs on this laptop (WSL2 bridge and native engine), findings, fixes; stage-model.ps1 drops the robocopy progress when redirected
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 17:04:05 +01:00
Pavlo Ratushnyi 7fa275c12c Merge branch 'claude/windows' into claude/port-gpu-bringup
Rust port / port-fast (push) Failing after 8s
Rust port / port-typecheck (push) Failing after 9s
Rust port / port-oracles (push) Failing after 10s
Rust port / port-linux-tests (push) Failing after 17s
2026-10-25 15:54:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8623932c98 Windows round 2: leleka service (Task Scheduler / user unit), doctor names what is missing and the fix, stage-model.ps1 and fetch-cublas.ps1, native supervisor end-to-end test with the fake runtime, WSL find-binary fix, docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 15:53:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 07b1fdfc0b deploy planner: the resident expert copy (53.5 GiB) and the governor reserve count against the free-RAM target; the workstation preset is not reachable in the resident form on a 121 GiB host (live check plat-reconf-live)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 15:47:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5efa590886 deploy planner: 15 CPU workers (the pool's limit) and a 2 GiB workstation VRAM margin, from the measured cost of the preset (job 9p0)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 15:33:14 +01:00
Pavlo Ratushnyi e64a3da1b7 Merge branch 'claude/platform' into claude/port-gpu-bringup
# Conflicts:
#	crates/deploy/src/app.rs
#	crates/deploy/src/cli.rs
2026-10-25 14:06:50 +01:00
Pavlo Ratushnyi 4965126d14 Merge branch 'claude/windows' into claude/port-gpu-bringup
Rust port / port-fast (push) Failing after 10s
Rust port / port-typecheck (push) Failing after 10s
Rust port / port-oracles (push) Failing after 16s
Rust port / port-linux-tests (push) Failing after 22s
2026-10-25 13:15:34 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5a2c5cdb6b docs/windows.md: build, model files, the WSL2 bridge and the native route, telemetry, reconfigure, limits
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 13:15:08 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1a77b2805c metrics: history is the last 60 health-tick samples, documented as such
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:57:51 +01:00
Pavlo Ratushnyi 231ea009b7 Merge branch 'claude/upstream-sync' into claude/port-gpu-bringup
Rust port / port-fast (push) Failing after 9s
Rust port / port-typecheck (push) Failing after 8s
Rust port / port-oracles (push) Failing after 9s
Rust port / port-linux-tests (push) Failing after 16s
2026-10-25 12:49:38 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 92802d0053 docs: upstream provenance for 41cf05a0, local patch files, and the 2026-10-25 upstream digest
docs/upstream.md: new pin, pin history (both SHAs of the old pin), local patches as re-applied, conflict table,
left-out list, verification. docs/upstream/*.patch: the local patches on the old and the new pin.
docs/upstream-digest-2026-10-25.md: Qwen-path shortlist for the Rust runtime, KAR generality versus the
DeepSeek-V4.1 engine, the DeepSeek engine, new tools, compatibility, server build plan (not run).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:49:15 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 27d070162d docs: telemetry GPU fallback and request block; clippy: collapse a let-chain
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:42:59 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4d28f0a250 reconfigure: kv_resident is fixed per process and cpu_workers is 1..=15 (found by live job 9r1); reconfigure takes 7 s and waits for the request in flight
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:42:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d2701dbc65 docs: feasibility decisions for KAR routed/prefill experts and the multi-GPU handoff; bring-up print review with a source-scan guard
Item 5: the patch source is not in the tree but is in the git objects of the codex KAR branch; recorded what it is, what can be recovered and why it is not ported. Item 6: scope of set_stage/set_next and what a layer split needs; nothing implemented. Item 8: every production DBG/PROBE print is behind LELEKA_BRINGUP_TRACE or a switch of its own; crates/leleka-runtime/tests/bringup_prints_gated.rs keeps it so.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:36:50 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ee1717e2f7 leleka reconfigure: --persist, and --gpu-budget-gib/--preset by restarting only the engine under the supervisor
The CLI hands budget and preset changes to the supervisor through a request file; the supervisor checks them with the resource planner twice (before and after stopping the engine), restarts the engine with the sealed archive descriptor it holds, keeps the gateway and API processes and ports, and restores the previous settings when the planner or the new engine refuses. --persist writes the result into leleka.json (and strata.json for the context). leleka.json now records the profile before the preset changed it so that dedicated undoes workstation.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:29:39 +01:00
Pavlo Ratushnyi 75e7e47dcc control-plane: /api/requests monitor, the Python Monitor members of /metrics, Prometheus text exposition
Opt-in api_monitor keeps the last 100 requests of the chat, messages and responses dialects; /metrics gains engine, live, requests, totals, hardware, history; ?format=prometheus (or a scraper Accept) renders the same document as gauges and counters. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:18:32 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 570201a0dc deploy: the rtx5090-32g profile uses the adaptive speculative window (spec_min_p 0): +5.1% decode on the live CRM replay
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 03:54:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 81fc8a7717 leleka reconfigure: change context, caches and resources of a running engine (CLI, docs)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 03:03:03 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f96cdeedc8 chain kernels: agreement at 70k context (rounding-level, inside the chunk-cut control) and enabled in the rtx5090-32g profile
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 02:42:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4a8047ac46 docs: AGENTS.md repository state and upstream provenance note reflect the port
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 02:32:37 +01:00
Pavlo Ratushnyi c3d4cce4e6 Merge branch 'claude/adaptive-spec' into claude/port-gpu-bringup
# Conflicts:
#	crates/leleka-runtime/src/backend_original_serve_replay.rs
#	crates/leleka-runtime/src/backend_original_serve_smoke.rs
#	crates/leleka-runtime/src/qwen_forward/original_spec_controller.rs
2026-10-25 02:51:11 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 c4b76a8009 deploy: the rtx5090-32g profile runs --prefix-cache-tail reply (slot-equivalent session resume)
Live Codex CRM: median prefill 2265 -> 706 ms, p90 3620 -> 1064 ms, decode unchanged; teacher-forced agreement
(job 9d4) is within the noise of a chunk-cut change (control 9d5). docs/prefix-cache.md has the numbers.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 02:35:44 +02:00
Pavlo Ratushnyi 897f2aa476 Merge branch 'claude/chain-kernels' into claude/port-gpu-bringup 2026-10-24 20:54:12 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 07a540aa52 prefix cache: 60-minute session retention (wall-time expiry, oldest-idle displaced first), idle sweep; docs for telemetry and retention
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 20:02:09 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 b726c4615b deploy: resource presets fall back to the mapped (SSD/HDD) form when RAM cannot hold the pinned one
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:51:44 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 4e53d8474a deploy: resource presets (dedicated/workstation) computed from the host facts
leleka up --preset dedicated|workstation (env LELEKA_PRESET): CPU expert workers, host RAM floors and VRAM budget are
computed from cores, MemTotal/MemAvailable and free VRAM, printed, preflighted and baked into leleka.json.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:46:25 +02:00
Pavlo Ratushnyi 1344cd807d Merge branch 'claude/e2e' into claude/port-gpu-bringup 2026-10-24 11:03:25 +02:00
Pavlo Ratushnyi b06de93dbc docs/e2e: complete reference-config Codex sessions (943d, 945d); run-codex.sh does not fail when the browser checks run elsewhere 2026-10-24 11:03:12 +02:00
Pavlo Ratushnyi 04b2b038b0 Merge branch 'claude/e2e' into claude/port-gpu-bringup 2026-10-24 06:47:48 +02:00
Pavlo Ratushnyi 73218c957e docs/e2e: diagnosis of the reference-config reruns and their partial numbers 2026-10-24 06:47:10 +02:00
Pavlo Ratushnyi d3f6df9c28 Merge branch 'claude/prefill-overlap' into claude/port-gpu-bringup 2026-10-24 02:27:42 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 01bd477cef docs(prefill): aligned stream copies, deferred guards, 180k
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 02:27:24 +02:00
Pavlo Ratushnyi b46cfe6c3b Merge branch 'claude/decode-parity' into claude/port-gpu-bringup 2026-10-24 02:23:59 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 ce7eed156a chain: probe harness fixes (sync after uploads), trimmed GR down variants, QSA phase profile, vocabulary replay job, doc draft
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 02:22:37 +02:00
Pavlo Ratushnyi c667a2edd7 docs(adaptive-spec): wording 2026-10-24 02:20:42 +02:00
Pavlo Ratushnyi 9849cdb6ad docs(adaptive-spec): design, knobs, results 2026-10-24 02:20:36 +02:00
Pavlo Ratushnyi 65074758c9 docs: decode parity round 2 2026-10-24 02:03:29 +02:00
Pavlo Ratushnyi acabd3fc82 Merge branch 'claude/cp-latency' into claude/port-gpu-bringup 2026-10-24 02:00:07 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 254425d4b0 cp-latency: results and method (docs/cp-latency.md), run-ab.sh, replay --store
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:59:27 +02:00
Pavlo Ratushnyi 88f74a323d Merge branch 'claude/deploy' into claude/port-gpu-bringup 2026-10-24 01:44:35 +02:00
Pavlo Ratushnyi 1ec61fd548 Merge branch 'claude/ttft' into claude/port-gpu-bringup 2026-10-24 01:41:08 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 ccfcbcfa97 docs: fix a reference
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:38:23 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 0003ef7d7b scripts: startup profile job templates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:38:19 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 681a2d193d docs(deploy): startup profile jobs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:38:12 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 0fe1c0298c docs(deploy): fast restarts - phases, changes, stamp rules, laptop numbers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:36:11 +02:00
Pavlo Ratushnyi fd182ef8f4 Merge branch 'claude/port-gpu-bringup' into claude/ledger 2026-10-24 01:28:20 +02:00
Pavlo Ratushnyi a1e6d2e2ba docs/ledger.md: wording 2026-10-24 01:28:15 +02:00