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>
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>
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>
* model-format: VerifiedKarPleArtifact records how the archive was vouched for (full pass / stamp / attested memfd) and what start-up read
(KarStartupRead); an ordinary archive file keeps the device/inode/size/mtime/ctime it was verified in and every row read compares the open file
with it (one fstat, the length check already did it); LELEKA_KAR_IDENTITY_RECHECK=off disables. Sealed memfds are unchanged.
* leleka-runtime: one engine log line per load, leleka-kar-startup source=.. verify=.. total_read_bytes=..
* deploy: built-in experimental profile rtx5090-32g-file (kar_source file, resident bank, explicit 6144 MiB prefix cache, never auto-selected);
the resource planner charges a file archive with a resident bank the engine only.
* scripts: run-e2e.sh accepts E2E_KAR_FILE / E2E_ASSETS; scripts/e2e/decode/kar-file-ab.sh is the paired memfd vs file A/B (not run).
* docs/kar-file-source.md: what the file form reads, guarantees, risks with the measured random-read figures, the A/B command.
Not a performance claim: nothing was run on a GPU.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Rewrite the 5090 server model paths in 30 repo files (scripts, tools, docs) from the old
locations (/home/para/leleka-gates, $HOME/leleka-gates, /data/models) to
/home/para/work/leleka/models/..., add the AGENTS.md workspace rule and the move record
docs/experiments/models-move.md. Not merged: the smoke test is pending.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Needed for the slot gain: the slabs save physical bytes the Context never charged, so the
budget must rise by about that much. Smoke with this budget: ~11,568 slots, lowest free VRAM
1,035 MiB. Also the systemd unit template, the config and reconfigure tests, and the docs.
Preflight now needs 31,299 MiB free at start (was 30,720; idle 5090 reports 32,110).
Revert by restoring 32212254720. Owner confirmation required before merge.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The shipped profile left both at 2048. Paired 256k session on the 5090 (same text, 5 turns): TTFT sum 131 s at 2048, 55-60 s at 8192
(night5 / night6 / rest-full / tune-A), decode unchanged. Tests and docs follow the new default.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
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>