Commit Graph
55 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 b3274c1130 Merge claude/port-gpu-bringup (CUDA runtime port, upstream sync) into main
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-typecheck (push) Failing after 8s
Desktop foundation / core (ubuntu-latest) (push) Failing after 11s
Rust port / port-oracles (push) Failing after 11s
Rust port / port-linux-tests (push) Failing after 14s
Rust port / port-fast (push) Failing after 9s
Linux / verify (push) Failing after 17s
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
Brings the Rust/CUDA port of the Strata mode17 serve path together with the
CPU/iGPU/NPU gpt-oss runtime that main gained meanwhile.

Control plane: the Qwen tokenizer is the implementation behind the Qwen35
variant of codec::TextCodec (qwen(), encode_prompt() widen the trait; QwenCodec
derefs to the tokenizer), so control-token marks, images, chat template, the
runtime backend and vision keep their behavior, while the gpt-oss/Harmony path
and the worker pool keep main's. Config carries the union of fields; extra_workers
is rejected together with runtime, lazy_load, idle_unload_s and vision; the
gpt-oss family refuses top_k/min_p/penalties (its GEN line has no such keys).
leleka-kar-codec takes f16_bits_to_f32 from leleka-quant-core (identical code).
Workspace members and default-members are the union of both sides.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 08:32:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c5be696205 Windows: stop the children with Ctrl-Break in their own process groups (the engine, gateway and API handle it), so leleka down takes seconds instead of three grace periods; hidden mode hides the console instead of freeing it; no readiness summary after up --mode none
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 16:58:41 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e77c98d3f2 Windows: release build recipe (scripts/windows/build-release.ps1), engine tests follow the mapped-only default, Linux-only errno and journal-lock tests gated
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:57:21 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1bbb9d1b8e desktop-core and control-plane build and test natively on Windows: api-key init (hard-link publish, user profile ACL), atomic no-replace directory publish via MoveFileExW, tokenizer export without directory fsync, MSVC link stubs for the ggml bridge, Unix-only shell-script tests gated
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:45:21 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 60b48d8225 runtime reconfiguration: reopen the serve stack with new context/cache/resource settings without reloading the model
serve_tuning (settings document, validation, effective settings), Command::Reconfigure in the Original serve loop with rollback,
Backend::reconfigure, gRPC Runtime.Reconfigure, POST /v1/reconfigure, telemetry.settings; tests for each layer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 03:01:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 08e2c78761 runtime telemetry: GPU load/VRAM (NVML), RAM, CPU cores, prefill/decode tok/s, cache hits, context
leleka-memory::telemetry (sampler + per-request records) -> Backend::telemetry_report -> Snapshot.telemetry_json
(gRPC) -> control plane /v1/status machine -> leleka status.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:58:28 +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 e820b95556 cp-latency: tokenizer kill switches (LELEKA_TOKENIZER_REFERENCE, LELEKA_TOKENIZER_SEGMENT_CACHE_MIB), prompt-text pass-through test, drop dead tokenizer fields
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:49:38 +02:00
Pavlo Ratushnyi 88f74a323d Merge branch 'claude/deploy' into claude/port-gpu-bringup 2026-10-24 01:44:35 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 f96074c360 perf(startup): verify shards and archive in parallel with read-ahead, verification stamps, attested sealed archive, parallel memfd fill, leleka verify
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:28:11 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 2ce4ae13e6 feat: request-end prefix checkpoints (tail nodes) and TTFT stage marks
A hit on a 2048-token grid node makes the agent's next turn re-read the part
block, the whole reply and the new tokens (~2.2k tokens per turn). Add tail
nodes: a checkpoint at the exact end of the previous request (end of the
prefill, or of the decode), a private partial block on top of the grid blocks.
--prefix-cache-tail off|prompt|reply (default off; reply is experimental).
Also per-request TTFT marks (resume, prefill, assemble, first round), a replay
multi-arm mode with per-arm greedy ids, and a short-suffix cost sweep.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:18:25 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 cceb4b4032 perf(startup): phase timing lines (leleka-load-time) and leleka-inference --verify-only
Always-on one-line phase timings for a model load and a CPU-only verification mode that
runs the load-time source verification (shards, KAR archive) with no CUDA. Baseline for
the startup work: no behaviour change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:14:06 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 95340330ac cp-latency: fast tokenizer (scanner + id BPE + segment cache), pass the prompt text through, TCP_NODELAY on the runtime gRPC server, gRPC replay example
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:13:50 +02:00
Pavlo Ratushnyi 0790ba6ec9 Merge branch 'claude/memory-safety' into claude/port-gpu-bringup 2026-10-18 05:09:13 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 505f3ee70f fix(runtime): output cap 4096 -> 32768 (one shared constant); /v1/status omits a null prefix_cache
The Codex tic-tac-toe run (job 943) ended after 4 minutes: the model wrote the whole index.html in one tool call, hit the
runtime's 4096-token output cap three times (tool call unterminated -> response.failed 'tool parameter is incomplete', then
'incomplete: max_output_tokens' -> turn.failed -> Codex exit 1). The Original server has no such cap (max_tokens 0 = the rest
of the context). RuntimeServer, the engine request check, strata-next's runtime default, the leleka-deploy generated config
and the examples now use leleka_backend_api::MAX_OUTPUT_TOKENS = 32768. /v1/status keeps the Python server's key set when no
prefix cache exists (http_surface golden regressed with the prefix-cache merge).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 04:36:37 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 5ebd939b6f feat(memory): wire the governor into the runtime, the gRPC status and the control plane
- leleka-runtime: memory_governor glue (startup plan with refusal, KAR memfd lock/residency guard, VRAM check, load-ledger stages,
  inventory classes), prefix budget from the governor (auto/explicit clamped), shed directive applied per request and per prefill chunk,
  engine-side admission (503 memory_pressure text), page-cache release of the shards after the resident bank load, cgroup-aware
  available_memory.
- backend-api: Backend::memory_report (default None) and ScriptedEngine support; proto Snapshot.memory_json; desktop-core runtime_rpc and
  runtime-client carry it.
- control-plane: MemoryView, /v1/status `memory`, /metrics `memory`, 503 memory_pressure + Retry-After gate before queueing, engine-side
  refusal text mapped to the same 503; tests incl. a 600-request model-free soak (threads/fds/RSS flat).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 01:33:34 +02:00
Pavlo Ratushnyi 1cd52bc388 Merge branch 'claude/port-gpu-bringup' into claude/e2e 2026-10-18 00:59:49 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 b3da9af763 feat(prefix-cache): default block/grid = prefill capacity (prefill at the chosen chunk speed)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 21:19:50 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 8af18396b8 feat(prefix-cache): pool protocol (summary through runtime gRPC, /v1/status, /v1/prefix_match), --prefix-cache-mib/--prefix-cache-block, laptop profile in the smoke, docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 19:47:53 +02:00
Pavlo Ratushnyi 98b7cf24af Merge branch 'claude/port-gpu-bringup' into claude/e2e 2026-10-17 15:45:13 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e03d97dd86 fix(runtime): production Original Load admits the routed-expert bank; deploy: operation polling, expert-source profile field
The Original serve Load never admitted an expert source (the serve smokes call
load_resident_expert_source themselves), so the stack's prompt arena failed with
InputRead on the first real Load through leleka-inference. leleka-inference gains
--expert-source resident|mapped; backend.rs admits the chosen bank before the
driver. leleka up passes it per profile and the supervisor stops waiting when the
load operation is FAILED/INDETERMINATE.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 15:18:02 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 d84e1a12c9 feat(deploy): leleka up/run - preflight, profiles, assets, install, supervisor, readiness
New crate leleka-deploy (binary leleka): idempotent one-command deployment with
preflight (driver, sm_120/sm_86, VRAM/RAM/disk, WSL2, cuBLAS 12, memfd), memory
profiles, plan/dry-run, stamped asset steps, systemd unit, and a native supervisor
that seals the KAR archive itself and hands it to the engine (no Python holder).
leleka-inference gains --kar-archive-file for the low-RAM read-only archive form.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 14:34:49 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 b4d12bdd53 fix(runtime): bounded generation identity window instead of a 256-generation epoch limit
RuntimeServer and the engine Proxy remembered every accepted request id for the life of
an epoch and refused work after 256 (generation_capacity), which an agent session
exhausts quickly. Both now use leleka_backend_api::RecentIds (16384 most recent ids, FIFO).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 14:21:41 +02:00
Pavlo RatushnyiandClaude Opus 5.5 a9e1d0a3e6 feat(serve): conversation cache on by default (--prompt-cache 6, as in the Original)
StackConfig::new and OriginalServeOptions now enable the cache with the Original's
settings; --prompt-cache 0 turns it off. Tests pin the defaults. Real-model coverage:
jobs 411/412 (and 413 for this exact tree).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:02:50 +02:00
Pavlo RatushnyiandClaude Opus 5.5 9ea8e88529 merge: claude/conversation-cache into the bring-up branch (with claude/kv-streaming)
Conflicts resolved by keeping both features: StackConfig/OriginalServeOptions carry kv_format/kv_resident and the
conversation config; leleka-inference accepts --kv/--kv-resident and --prompt-cache/--prompt-cache-every/
--prompt-cache-root/--turn-token (fixed a lost offset increment after --kv-resident in the merged parser); the smoke file keeps
both the long-context KV test and the conversation-cache test; the ensure_resolver test follows the 5-tuple
window_kv_addresses of the KV branch. Workspace type-checks (WSL, --all-targets).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:58:39 +02:00
Pavlo RatushnyiandClaude Opus 5.5 2262072206 merge: claude/kv-streaming into the bring-up branch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:56:28 +02:00
Pavlo RatushnyiandClaude Opus 5.5 2bd11e4b23 feat(serve): --prompt-cache flags, reused-token usage for the Original serve path
OriginalServeOptions gains prompt_cache (0 = off, the default until the real-model
smoke passes; the Original uses 6), prompt_cache_every, prompt_cache_root and
turn_token, mapped to StackConfig::conversation; leleka-inference parses
--prompt-cache/--prompt-cache-every/--prompt-cache-root/--turn-token. Usage
reports reused_input_tokens from the stack (generate.cpp REUSED) and the outcome
line prints it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:47:52 +02:00
Pavlo RatushnyiandClaude Opus 5.5 70f057578f feat(serve): --kv / --kv-resident on the Original serve stack, KV footprint, long-context smoke
StackConfig gains kv_format (int8 only; fp16, q4_0, k8v4 and keyless are
refused: no sealed owners) and kv_resident (default 32768 = the window every
earlier build used; raised to 20480; 0 = the whole context). open() fixes the
process window (qsa_set_kv_resident) before any QSA owner and prints the
streamed KV footprint (leleka-context KvStreamFootprint: VRAM, prompt stage,
pinned host). leleka-inference takes --kv and --kv-resident.
original_serve_long_context_streamed_kv_smoke (ignored, env-gated): one greedy
request over a 40K-token passcode prompt with a 20480-cell window.
serving_context cross-checks resident pages against the Original kv_plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:47:16 +02:00
Pavlo RatushnyiandClaude Opus 5.5 93fbf3a8f6 merge: sm_86 companions (RTX 3080) into the bring-up branch
Brings claude/sm86-assets: per-architecture PTX companions under crates/cuda-driver/ptx-sm86 behind the sm86 feature (sm_120 stays
the byte-identical default), 127 companions incl. the newly sealed MMQ-group, mapped-expert-copy and scalar-MTP assets, the
double-NUL lookup fix, and scripts/gpu-bringup/regress_3080.sh (31 items pass on the 3080 in 344 s). Conflict in
desktop-core/Cargo.toml resolved by keeping both the Linux/dev dependencies and the sm86 feature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:38:09 +02:00
Pavlo Ratushnyi 7b833d552a chore: clippy-clean the new code (unused import, map_or identity, ptr_arg) 2026-10-16 03:16:18 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 6b34f0101d test: wait for a flock to be released after a dropped handle instead of flaking
flock belongs to the open file description. A child that another test forks while the handle
is open keeps the description until it execs, so a lock can outlive drop() by milliseconds in a
parallel run. The journal and history tests now retry the reopen for up to 10 s; production keeps
refusing a held lock at once. 12 of 12 consecutive parallel runs of the desktop-core lib suite
pass (3 of 5 failed before). Also: documented runtime config example, validated by a test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 03:13:38 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 0ca493be04 test: run the scripted-engine HTTP smokes through the runtime stack (fake_runtime over real gRPC)
fake_runtime is a leleka.runtime.v1 server (the real RuntimeServer) whose engine is the same
engine.sh the smokes already use; fixture.runtime_stack() swaps strata-next's engine child for
it when STRATA_TEST_FAKE_RUNTIME is set, otherwise nothing changes. scripts/test-api-over-runtime.py
runs the ten smokes whose assertions do not depend on strata-next owning the engine process.

The HTTP layer clamps reasoning_tokens to the engine-reported output total, which a text-level
engine's re-tokenized pieces can otherwise exceed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 03:00:55 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 26574ae3e7 test(desktop-core): the API in front of the real RuntimeServer over gRPC with a scripted engine
Six chain tests: streaming and JSON Responses, length/tool-call/stop-marker, client
disconnect cancelling through gRPC, engine failure and a dying engine ending with
response.failed, a restarted runtime flipping readiness and being reattached, and a test
that records the runtime's 256-generations-per-epoch limit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 02:50:34 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 c9aad38caa refactor: extract the runtime gRPC client into leleka-runtime-client and add GrpcBackend
proto/runtime.proto, the wire conversions and the validated RuntimeClient move out of
strata-desktop-core so strata-next can use them; strata-desktop-core re-exports them
unchanged. GrpcBackend implements the Backend contract by attaching to a runtime an
operator already loaded (no Load/Unload RPC), re-reading epoch and handle before every
generation, and ending a generation without a terminal event on any transport or frame
error. 9 loopback HTTP/2 tests with a scripted runtime server.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 02:42:11 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e77c9e529e docs: delivery gap audit, Rust runtime run recipe, example gateway config and systemd templates
docs/delivery-gap-audit.md: host test counts, Python audit, Codex-direct and
deployment gaps with file:line, recommended tasks with acceptance criteria.
docs/rust-runtime-run.md: leleka-seal-exec + leleka-inference (--backend-mode original)
behind leleka-daemon, what was executed without a model or GPU context.
desktop-core/examples/daemon.original.json and deploy/rust-runtime/*: configuration
and user-unit templates (systemd-analyze --user verify only; not run with the model).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 02:14:17 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 414169be0a feat(desktop-core): leleka-seal-exec seals the KAR archive for leleka-inference without Python
leleka-inference --kar-archive-fd needs a sealed memfd of the pinned length. The
bring-up used operator Python scripts outside the repo to make it; the production
path must not. leleka-seal-exec copies one regular file into a memfd with the
WRITE|GROW|SHRINK|SEAL seals (no close-on-exec, optional exact length pin),
substitutes {FD} in the command and execs it. Linux only; other hosts exit 2.

Tests: the copy has the properties open_sealed_archive_fd checks (regular,
unlinked, pinned size, all seals) and refuses writes, growth and shrinking; the
descriptor survives a real exec and is readable through /proc by the child.
rustix =1.1.5 is the version leleka-runtime already pins.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 01:59:26 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 203b88f9d5 test(desktop-core): the tool adapter accepts in-range temperature since sampling forwarding
declarations_are_bounded_unique_and_closed_before_render still asserted that
temperature 0.4 is rejected, which cce4333 made valid. Assert acceptance of an
in-range value and rejection of an out-of-range one (2.5).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 01:59:26 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 1884e4ab5f cuda-driver: sm86 feature swaps the sm_86 companion in at module-load time
Default build unchanged (arch_ptx::image is the identity without the feature,
sm_120 PTX and all pins untouched). With --features sm86 every cuModuleLoadData
site hands its sealed image to arch_ptx::image, which on a device with
8.6 <= cc < 12.0 looks the image up by the SHA-256 of the sealed sm_120 body in
the generated table and admits the companion only through sealed_ptx::pinned.
The four sm_120-only capability gates (MMQ resident, scalar/full/prefill MTP)
accept sm_86-class devices under the feature. leleka-runtime and
strata-desktop-core forward the feature. run_gpu_smokes.sh: SMOKE_SM86=1 adds
it to the test builds.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 01:56:23 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 4fbc8a1ca0 fix(desktop-core): Message.parts after the vision port
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 17:10:43 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 d124b7c78d fix(desktop-core): minijinja deps and prompt render error conversion after the Jinja prompt port
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 16:44:36 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 f329f2790a merge claude/port-main into claude/port-serve-host; attach the window weight families
Resolves the window-producer and experimental-modes merges. The verifier
assembly now attaches the native projections, hyper-connection/PLE, QSA and
router/shared-expert operands (borrowed from the dense and MoE caches) to every
window graph and the commit graph; the asset probe also lists the unsealed
window kernels; auto selection refuses a configuration with an experimental mode.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 16:38:57 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 f1de06f425 feat(serve): backend-mode and Original options in the inference binary
--backend-mode auto|original|preview (default auto; an --experimental-* flag
selects preview unless the mode is given), --original-prefill-capacity,
--mtp-rt-dir, --spec-min-p, parsed first at tuple boundaries. The two binaries
get the kar_expert_source initializer their runtime config already required.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 16:18:51 +02:00
Pavlo Ratushnyi 49f22a8daf Merge branch 'claude/port-api' into claude/port-main
# Conflicts:
#	Cargo.toml
2026-10-14 15:53:19 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 7466426ed7 style: cargo fmt model-format and desktop-core
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:37:19 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 cce433339d feat(serving): forward all Original GEN sampling fields end to end
control-plane wire.rs builds GEN/GENI lines through RequestSampling::gen_keys plus
strata_tune and the per-request cvec switch (golden-tested against the real
StrataEngine.generate); Responses, Chat Completions and Messages accept and validate
top_k, min_p, repetition/frequency/presence penalties, penalty_last_n, seed and the
engine knobs with the Original's defaults and ranges; server-wide defaults (config
sampling block plus POST /settings shared values) merge under the request. The desktop
runtime gRPC contract carries the full sampling set and the gateway no longer refuses
temperature != 0. New crate leleka-serving-policy holds the pure Original policies
(shared settings, reasoning budget tracker, fixed-point sampling conversion) with
fixtures generated by running the Python handlers.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:17:04 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 3ca559cebc feat(serving): serve non-greedy requests through the Original sampler chain
backend-api carries SamplingOptions; backend.rs plans each request with the
validated SamplingParams instead of refusing temperature != 0; the output stage
bypasses the compact argmax for an armed request and draws with the bit-exact
host reference (counter = fed-token position, penalty history = prompt+generated).
MTP with sampling is refused explicitly. Desktop RPC only bounds temperature.
Docs: docs/sampler-reference.md (verified vs open).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 14:55:55 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 7f896a8bb8 import: Original-literal source-port snapshot (frozen 2026-10-12 06:36, uncompiled together, no GPU run)
Snapshot of target/stra169-direct-port-integration/source-port (without target/), now the tracked base for the full Strata Rust port.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 14:38:46 +02:00
Pavlo Ratushnyi 35e68653e6 Reuse sealed KAR archive across Linux inference processes 2026-10-10 08:26:46 +02:00
Pavlo Ratushnyi ba055f4b5a Preserve accepted generation identity before capacity refusal 2026-10-10 02:29:23 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 47a8f6f175 fix(daemon): keep a generation slot owned without a real terminal and end only a failed worker's own operation
- pump: a terminal synthesized because the backend channel ended is not a
  completion proof; on client disconnect or oversize frame it closes model
  admission and keeps the slot owned instead of clearing it.
- cancel: a request that finished between the active check and the backend call
  is acknowledged idempotently instead of failing with cancel_uncertain.
- load/unload workers that panic end exactly their own unresolved operation as
  indeterminate (LifecycleGuard is disarmed under the completion lock and only
  acts on an operation still Accepted), never a later operation.

Accepted request identities are still never forgotten; the 256-identity
capacity refusal is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 02:20:59 +02:00