Commit Graph
467 Commits
Author SHA1 Message Date
Pavlo Ratushnyi eecbfce60d STRA-338: integrate the engine track (kar-off-ab base, S5a, S5b, S13 ratchets) into the hexagonal base; the baseline is recomputed on the merged tree (growth only in the seven kar-off-ab files) 2026-11-05 21:51:28 +01:00
Pavlo Ratushnyi 7699138a6e STRA-338 S5b: decompose serve_load into ordered phase functions
serve_load (about 1000 lines, 1170 after rustfmt) becomes load.rs (a 20-line order of
the phases) plus: load_admit (every refusal that needs no model byte, the memory
governor start), load_sources + load_bind (verify, bind, identity digest chain, expert
bank), load_identity, load_cuda (driver, context, probes, hand-over to the Original
serve stack), load_weights + load_moe + load_moe_gates (output head, KAR PLE, dense and
MoE caches; the adaptive and learned-main witness gates), serve_loop + serve_generate +
serve_run + serve_report (the command loop and one Generate), serve_close (teardown).
owner() is split the same way. Each phase takes a small context (LoadEnv, Bound,
Identity, Weights, Serving, Exchange) and returns a typed result.

Order and side effects are kept: the admission checks, the env reads
(LELEKA_ORIGINAL_SERVE_GGUF_PLE is still read in gguf_ple_load and in the refusal
detail line), the log texts (including the load-gate detail line and the
KAR_MTP_PROFILE / NATIVE_MTP_PROFILE logic of the kar-off-ab branch), the cancellation
checks, the lap marks, and the drop order of the CUDA objects (Weights drops dense, MoE,
KAR PLE, output head; the context is closed after the weights and outlives the binding).
The three conditions of the former execution gates are one match, the policy flags one
PolicyFlags::of. No GPU or numerical path was touched.

New tests (backend/load_tests.rs): PolicyFlags against the former expressions, the
execution gates against the former three sequential checks for all 6 executions x 8
boolean combinations, and the weight-cache log line against its exact text and the
saturating subtraction. Test ids: 689 before the S5 work, 694 now (the five added), the
same 2 environment-dependent failures and 58 ignored; cargo check --all-targets for
leleka-runtime and leleka-deploy gives the same warning counts, clippy reports nothing
in backend/. All new and changed functions are within 30 lines, complexity 10, nesting 4,
except one 127-column line that is a 119-character MoeWeightCache constructor name
(docs/architecture/tech-debt.md, which also lists what S5a moved verbatim and still misses
the limits). moe_weight_cache.rs gains three pub(crate) use lines for the witness types.
The architecture baseline loses the transient backend/load.rs entry.
2026-11-05 21:39:26 +01:00
Pavlo Ratushnyi 705125f858 STRA-338 S21: Clock in three more handlers, gateway-track report and ports doc
server_api::{ensure_loaded, model_busy, load_post} stamp last_activity from state.services.clock instead of
tokio::time::Instant::now() (instant-now:strata-control 34 -> 31; SystemClock returns the same value). The baseline is
tightened. docs/experiments/stra-338-gateway-track.md records the commands, the per-step test-outcome comparison (Linux:
597 ok before, 615 ok after, 0 changed, 0 missing), the gate movement and what was not done;
docs/architecture/gateway-ports.md shows the AppState groups and the domain crate.
2026-11-05 20:49:47 +01:00
Pavlo Ratushnyi 35bf3a03d3 STRA-338 S16: gateway ports (EngineClient, ResponseStore, Clock, ToolHub, VisionEncoder) with adapters and fakes
AppState now holds ports instead of concrete types: `engine: Option<SharedEngine>` replaces the
mpsc::Sender<GenerationCommand>, `responses: SharedResponseStore` replaces Arc<RwLock<ResponseHistory>>,
`clock: SharedClock` serves queue deadlines, uptime and response timestamps, `mcp` is a ToolHub and `vision` a
VisionEncoder. The channel (adapters::ChannelEngine), the history with its disk snapshot
(responses::HistoryResponseStore), the system clock, mcp::Hub and vision::Vision are the adapters; main.rs serve()
composes them. No behaviour change: the HTTP handlers make the same calls in the same order, the queue claim race is
unchanged, only the deadline now reads the injected clock.

Ports are called per request, never per token or stream event (docs/architecture/gateway-ports.md).
ports/fakes has an in-memory adapter per port; control-plane/tests/ports_fakes.rs (12 tests), queue.rs and
adapters/channel_engine.rs add tests that drive the real handlers through them.

Architecture gate: dyn-trait:strata-control fell 35 -> 21 (a BoxError alias replaces 20 `Box<dyn Error>` spellings,
which pays for the 6 new port aliases); main.rs 1156 -> 1155 lines. Also adds scripts/dev/test-outcomes.py (per-test
outcome comparison of two cargo test logs) and scripts/dev/wsl-cargo.sh.
2026-11-05 20:06:28 +01:00
Pavlo Ratushnyi 5aec7c2c5f STRA-338: integrate the kar-off-ab branch (GGUF-PLE profile, replay smoke) into the hexagonal base so backend.rs can be split on top of it 2026-11-05 18:24:17 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5cc2257ea7 kar-off-ab: results page, codex/browser evidence, cmp_report knows LELK/LELG
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 16:30:18 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 740d841137 kar-off-ab: speed A/B evidence (3 interleaved passes of each arm, 59 recorded requests) and quality (a) analysis
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 13:59:51 +01:00
Pavlo Ratushnyi 7b1922d116 gateway-text: prompt, response_tools and tool_output become one crate; desktop-core no longer compiles them twice (STRA-338 S8)
control-plane/src/{prompt,response_tools,tool_output}.rs (pure text logic: pinned chat template renderer, tool catalog, tool-call
parser) move by git mv to the new leaf crate crates/gateway-text. strata-control re-exports them under the same module paths
(crate::prompt, crate::tool_output keep working for tests and callers); strata-desktop-core replaces its three #[path] includes with
imports. The leleka-runtime GPU proof modules that hash prompt.rs follow the new location. The only text change in the moved files is
the relative include_str path to engine/strata. serde_json features (preserve_order + float_roundtrip) equal what both hosts already
got through unification.

Verified: cargo test strata-control + strata-desktop-core + gateway-text on the host: 504 tests, 0 failed; the 30 tests that vanish
are exactly the duplicate runtime_prompt/runtime_tool_catalog/runtime_tool_parser copies of the same 30 tests (11+2+17), which now run
once. WSL x86_64-linux cargo check --tests leleka-runtime: 62 warnings, unchanged. fmt clean on the new crate.
2026-11-05 13:32:35 +01:00
Pavlo Ratushnyi 0aab895444 native-cpu-expert: drop the production edge to cuda-driver; CPU-vs-CUDA parity bench moves to leleka-native-parity-bench (STRA-338 S11)
rust_bench_cuda.rs and the native_expert_parity bin (the only users of leleka-cuda-driver in the CPU expert adapter) become the new
tool crate crates/native-parity-bench (L4, cargo-checked in the product gate). leleka-native-cpu-expert no longer depends on
leleka-cuda-driver; the architecture baseline drops that violation. Code moved byte-for-byte except the use paths.

Verified (WSL x86_64-linux): cargo check --all-targets for the new crate, native-cpu-expert and leleka-runtime; cargo test -p
leleka-native-cpu-expert all ok (22+2+4+... tests, 0 failed); check-architecture and check-ci-coverage pass.
2026-11-05 13:20:39 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8cc8fd6b60 engine: Original serve accepts the native-PLE MTP load without a KAR source under LELEKA_ORIGINAL_SERVE_GGUF_PLE=1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 11:29:12 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 02c578e24d kar-off-ab: quality job, queue stubs, deploy.md row for rtx5090-32g-gguf-ple
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 10:35:01 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 0a30049913 codex-compare: results page (18 cells, three arms), browser check outcomes, gap-clustering probe
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 08:22:15 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 42dcceff20 codex-compare: results tables of the 18 cells (3 arms x 2 tasks x 3 repetitions), acceptance re-run with the corrected board check
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 07:31:26 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 01e0504942 codex-compare: VANL (vanilla, lossy defaults off) is the reference arm; paired differences against it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 02:32:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ba26e685bf codex-compare: nestng-crm task (NestJS + Angular), frozen manifest, shared node_modules installer with Codex sandbox proof, optional-task guard
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 02:01:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9e9895fc9e codex-compare: vanilla Strata vs Leleka on Codex with two tasks: job, window, report, installer, design page; cell.py --link-tree
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 01:45:40 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 362da67488 release 5090 v0.1: checklist 7.3, confirmation run on the final package (tag leleka-5090-v0.1 is on the commit before this one)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:48:12 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 17e3729442 release 5090 v0.1: acceptance numbers (candidate package on the 5090: up, verify, cold start, Codex smoke), checklist closed, doc debt statuses
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:29:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 98f725f9c5 release 5090: deploy.md back to LF, acceptance job copies the provenance file, notes: no self-referential TBD markers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:00:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7ba9ab2f18 release 5090 phase B: checklist and audit refresh, acceptance job script
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 22:35:43 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ff1ad3aea1 release 5090 v0.1 phase B: README, short release notes, profile/deploy text fixes, packager for the merged state
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 22:31:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4cbbd2729c Merge claude/window-policy: draft-floor ceiling default 0.60 (LELEKA_SPEC_POLICY=legacy restores 0.9), replay-arm policy tooling, spec-trace bar/slope, run-e2e ATTN_DAILY_MTP default
Paired A/B 245k (8 blocks): +1.09% tok/s, se 1.86 (not resolved); replay screening +0.35..+1.72 tok/s; argmax flips 1.9-2.0% vs A/A 1.3-1.55% (<2.8% bound). Not claimed as a speedup.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 05:57:14 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 77e0554a2a docs: window-policy-5090 (cause, replay screening, identity, paired A/B, fused-commit decision); adaptive-spec knobs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 05:56:26 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 97c33d8b2c Offline differentials: port the Strata 0.1.50 chat-template empty-turn filter, GGUF types 143-146, native PLE key types; fix two stale smokes
chat template (prompt bytes): ChatTemplate.render (#843) drops completed empty assistant turns
(no text after strip, no picture, no tool calls; the final message is kept; STRATA_KEEP_EMPTY_TURNS=1
keeps them) before the template runs. prompt.rs now does the same in Renderer::render and in the typed
render_with_images path. diff_chat_template: 136/3000 -> 0 (also 2 x 12000). chat_template_oracle.json
regenerated from the Original; one responses.rs test asserted the old behaviour.

gguf: block_geometry knows the APR trellis types 143-146 (PTQ1_0, TQ2_T, TQK6, TQK7); gguf_headers.json
regenerated. diff_gguf_header: 188/400 -> 0.

native pack: NATIVE_PLE_KEY gained IQ3_XXS/IQ4_XS (#381); NVFP4 expert tails and prism.hadamard experts
are refused (not ported, the runtime reads neither). diff_native_pack f16_nan uses a quiet NaN (numpy's
widening of a signaling NaN differs between builds). The live differential still needs one run on Linux.

smoke-mtp-pack.py reads the Q8_0 names from required[]/wq(); Dockerfile.systemd-smoke drops its apt
version pins. docs/ci-audit.md findings 14, 15, 16, 18 updated in place.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 03:39:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 af387583f9 Merge claude/ci-audit2: CI fixes verified in containers (musl MADV_COLLAPSE, PTX pins, mock gates, buildx), ci-audit.md section 3.4
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 03:05:40 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8e6071e150 docs: ci-audit section 3.4 (Docker- and tool-dependent steps run in containers), findings 14 to 18; linux-static-cli apt list gets docker-buildx and systemd
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 03:03:28 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8b7bd2e811 Merge claude/experimental-resync: re-port kv_q4/kv_q8/kv_stream/qsa_attn to the 41cf05a0 Original, literal_port 8/8; the four programs refuse to open until their PTX is resealed on the server
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 02:28:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4df5f3dcf0 docs, check-local: experimental ports re-synced to Strata 41cf05a0; literal_port is a hard gate again
* docs/experiments/2026-10-14-experimental-modes-port.md: "Re-sync" section (what drifted per program, what was done, verification,
  the stale-PTX gate, the server-side reseal list and steps, open items found on the way: remote experts host code, K8V4 streaming,
  multi-token append entries).
* scripts/check-local.sh: --fast no longer skips `_bodies_are_literal` and no longer carries literal_port as debt.
* docs/ci-audit.md (findings 4, 5 and the "what changed" note) and docs/windows.md: literal_port closed, minimal edits.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 02:27:51 +01:00
Pavlo Ratushnyi 0111c3dc62 Merge claude/single-copy: sparse memfd (PLE extents only) is the rtx5090-32g default; O_DIRECT loading, page-cache release; file source kept as experimental
Identity PASS (2057/2057 rows, 1036/1036 draft traces); 245k A/B +0.58% (n.s., 5/6 blocks); MemAvailable +36.6 GiB; seal 79-97 s -> 28 s.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

# Conflicts:
#	desktop-core/src/bin/leleka-inference.rs
2026-11-03 02:15:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f5a9b3bcf3 experimental ports: re-sync kv_q4, kv_q8, kv_stream and qsa_attn to Strata 41cf05a0, literal_port guard with named exclusions, stale-PTX gate
The 2026-10-25 upstream sync moved the Original kernels and the four experimental CUDA ports were not re-synced
(literal_port failed 4 of 6: 1, 5, 20 and 197 Original kernel-body lines missing).

* kv_stream: guarded shared atomicAdd; kv_q4: step_stride / planes; kv_q8: template <bool MULTI>; qsa_attn: attn_chunk_body with
  reduce12_gfx906 / reduce12_head_of_lane. Bodies are copied verbatim; the entries keep their ABI and instantiate the Original's
  single-token launch, so the sealed entry tables and the Rust facade are unchanged. The thread-emulation harness gives bitwise
  identical results on the previous and the re-synced sources (fwht, q4, q8, route, cvec, attention m2/m3/m4).
* tests/literal_port.rs: per-function bodies; a device function of the Original that the port does not carry (SM60-only gather,
  pre75 / merge_v2 / v3 / slot / row variants of the same arithmetic) is listed with its reason; the list is checked both ways, an
  unlisted new function or a stale entry fails; self-test of the guard.
* experimental.rs: the PTX is not rebuilt (no nvcc on this host), so PINS[..].source_sha256 of the four programs still names the
  previous source. admit() gains a source-seal gate (source_is_sealed) and PENDING_RESEAL lists the four programs: they refuse to
  open until the server reseals them, and a unit test keeps the list exact. The sealed PTX and their PTX digests are untouched.
* docs/cuda-seal-plan-additions-experimental.json: new cu_pin of the four sources. reseal_own.py: --plan, refreshes seal_sha256 /
  seal_length when the plan entry has them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 01:55:58 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 373137bcdb docs: ci-audit results after the rebase onto main (observability merge) and commit references by subject
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 00:31:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e57562740e window-policy: draft-floor ceiling default 0.60 (was 0.9), LELEKA_SPEC_POLICY=legacy restores it; spec-trace prints the bar and the row slope
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 23:50:45 +01:00
Pavlo Ratushnyi 1d1ddc5eec design doc: 2026-11-02 update (census, B0 built, on-the-fly candidate not built) 2026-11-02 23:37:06 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 70f1fd5aff docs: ci-audit (what the CI proves, step-by-step results, findings, what it cannot prove); desktop.yml Lints --no-deps
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 23:32:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 fb10bf0e70 observability: structured bounded logs, per-request record, metrics, leleka logs / report
* crates/obs (leleka-obs, std only): one event per line (JSON under `leleka run`, key=value on a terminal, the lab's plain lines when a
  binary is started by hand into a file), UTC ms timestamp, level, component, event, flat fields; prompt/completion text and credentials
  never appear (key classes + value scrub + registered secrets), per-event token buckets with a `suppressed` count, value and line caps,
  histogram with Prometheus exposition, size-capped file sink for requests.log.
* control-plane: `observe` middleware gives every generation request an id (x-leleka-request-id header) and a session tag (hash of the
  client's session header); the worker marks engine start / first token / terminal / error on it and one record is written at request end
  (tokens, cached prefix, queue wait, TTFT, prefill/decode tok/s, finish, error class, engine restart, GPU clock/temp/throttle). All
  elog! lines go through the log layer (sampled per call site). /metrics?format=prometheus gains request counters and histograms, engine
  lost/attached counters, uptime and supervisor restarts, PCIe, memory clock, throttle reasons, speculative tokens per round, expert-tier
  entries by tier and hit ratio.
* engine: one structured line per request with the same id (rounds, tokens per round, expert-tier share served from VRAM/PCIe/CPU for that
  request); telemetry gains spec / expert_tier / last_request; NVML sampler reads PCIe throughput, memory clock, throttle reasons.
* supervisor: structured events (engine exit, health, restarts), secrets registered with the log layer, children get LELEKA_REQUEST_LOG,
  LELEKA_STATUS_FILE, LELEKA_PROFILE and JSON logging; runtime-client and gateway log connect/probe failures as sampled events.
* leleka logs (--tail/--since/--level/--component/--source/--request/--follow), leleka report (sanitized support bundle, written only with
  --yes, nothing sent anywhere), request statistics in leleka status / verify --quick.
* generation, sampling and kernels are untouched; the lab scripts keep their plain lines (LELEKA_LOG_FORMAT=legacy or a hand-started binary).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 23:25:24 +01:00
Pavlo Ratushnyi 7be63d7f0e docs: sparse memfd status, census, deploy profile row 2026-11-02 23:00:58 +01:00
Pavlo Ratushnyi 5304e5f35d docs: sparse memfd status, census, deploy profile row 2026-11-02 23:00:43 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 478f0c4812 Merge claude/unattended: O_DIRECT bulk model load, supervision/hang detector/log rotation, leleka status/verify --quick, service unit + installer scripts (owner-run), soak harness
Identity gate (legacy vs new bank read, 256k replay): 2057/2057 rows, 1036/1036 draft traces identical. Soak not yet run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 22:21:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 85f63a583a docs/unattended.md: replay identity gate passed (2057/2057 logprob rows, 1036/1036 draft-trace lines identical, legacy vs direct bank read)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 22:21:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5f1822d5eb Merge main (embedded expert profile) into single-copy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 22:17:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 48a3811c89 Merge claude/unattended into single-copy (O_DIRECT bulk reads for the sealed copy, extents sealed through the same reader)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:53:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 eddb78e6e0 deploy: embed the upstream expert profile in leleka; first start installs it offline
The owner asked to ship the 196,632-byte table instead of depending on a download.

* crates/deploy/data/expert-profile.bin: Strata data/expert-profile.bin unchanged (MIT, sha256 8f59b4aa...388975baf), the one
  *.bin exception in .gitignore (every other *.bin stays ignored); .gitattributes pins it `-text binary` so no platform can
  alter the bytes. crates/deploy/data/expert-profile.NOTICE carries the Strata MIT notice and provenance.
* expert_profile.rs: `include_bytes!` of the table; provisioning order is --expert-profile-file, the embedded bytes, then the
  https download as fallback. The embedded bytes are digest-checked before the atomic install like any other source, and only
  offered to a profile that pins the same digest. The plan shows "install the ... table embedded in this binary (no network
  needed)" even with --no-fetch and without curl/wget.
* digest verification, status/verify/summary ON/OFF reporting and --no-expert-tier are unchanged.
* attribution: docs/release licence audit (Strata row), docs/deploy.md, docs/windows.md, docs/upstream.md, and the 5090
  packager ships the NOTICE as licenses/strata-expert-profile-NOTICE.txt.
* tests: embedded == pinned file, offline install before any download, explicit file wins, a corrupted embedded copy falls
  back to the download, plan states, e2e first start with no network tool.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:52:58 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 97ceb120a9 Merge claude/kar-file-source into single-copy (conflicts resolved: sparse + file source coexist)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:50:41 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e059a1cf08 Merge claude/sparse-memfd (experimental sparse memfd, prefix cap) into single-copy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:49:38 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 957196fddb deploy: provision the ranked expert profile on first start (leleka up), report the expert tier ON/OFF
data/expert-profile.bin (upstream Strata routing table, sha256 8f59b4aa...388975baf, 196,632 B) is not in Git, so a new
user silently lost the VRAM expert tier. It is a routing statistic of the model, not derivable from the weights, and a
locally generated table changes expert placement (docs/original-serve.md control: 0/6 identical outputs, 43 flips in 1,660
rows), so the product pins the upstream bytes.

* new step `expert-profile` in `leleka up`, planned before the large downloads: https download (curl/wget, https only,
  1 MiB cap) from the Strata commit 41cf05a0 (raw.githubusercontent.com, then jsDelivr, then the old pin d9ab8435), sha256
  checked, installed by rename; any other digest fails closed with both ways out. A wrong file in the way is moved aside
  (.rejected-<unix>), never deleted.
* `--expert-profile-file PATH` (offline install, same digest required, forwarded through the WSL bridge) and
  `--no-expert-tier` (explicit opt-out, persisted as `expert_tier: false` in leleka.json only when set).
* the configuration names the table whenever the tier is intended; the supervisor re-checks the digest at every engine
  start, logs ON/OFF and drops the switches when the file is gone or changed.
* `leleka status` (also through the WSL bridge), `verify` (fails when the configured table is missing or wrong), the ready
  summary, preflight and `doctor` report `expert tier ON (path sha256 ...)` or `WARNING expert tier OFF: reason`.
* tests: provisioning (download, fallback source, mismatch, offline file, moved aside, no source), plan states, gather env,
  cli flags, preflight, report/start environment, e2e flow with a fixture-digest profile; ignored live tests against the
  pinned sources. Flow tests that are not about the tier now run with the tier off on purpose.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:48:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6d091caffa docs/unattended.md section 9: what was verified without the GPU, what is queued and where its results will be
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:28:18 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c9c28120ef docs/unattended.md: NVMe risk and the LELEKA_LOAD_THREADS lever
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:27:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 2ca7e86d72 Owner install artifacts and docs/unattended.md: systemd install script, lab mode, exact owner steps
scripts/ops/install-leleka-service.sh (owner runs it with sudo; nothing here was run by an agent):
  --install [--no-start] [--force]   copies scripts/ops/leleka.service to /etc/systemd/system, daemon-reload, enable, start; refuses when the
                                     state is not prepared, a binary is missing, the user para does not exist, or the lab KAR holder runs
  --remove                           stop, disable, remove the unit (state, logs, models untouched)
  --status                           unprivileged: systemd state, lab mode, the supervisor's status.json (phase, uptime, restarts and reason, health), log tail
  --lab on|off                       STATE/lab-mode: the unit (ConditionPathExists=!) stays down while the GPU belongs to the lab queue

docs/unattended.md: what runs, the exact owner steps (prepare with `leleka up --mode none`, install, use, look, update), lab mode, the fast cold
load (problem, change, measurements), the supervision table (what happens for every failure), logs and disk, security defaults, the soak test
(harness, criteria, the multi-day command), open items. docs/deploy.md section 6 follows the new restart, log and status behaviour.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 21:13:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8725373329 release 5090: record the phase A rehearsal (stage, WSL build, package, verify)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 20:39:27 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e52c70ae41 release 5090: rehearsal mode, staged-tree flow, ps1 wrapper, checklist updates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 20:30:53 +01:00