Files
leleka/crates/deploy
Pavlo RatushnyiandClaude Sonnet 5.5 12d1d71d8d One-command start: status and verify report health, preflight names the lab holder, seal-probe
`leleka up` already prepares, installs, starts the supervisor (which seals the archive, starts the gateway and the engine, loads the model and
starts the API in that order) and waits for /ready; nothing in it touches gpu.lock or the job queue (those are lab shell scripts). What was
missing for a host nobody watches:

* `leleka status`: uptime of the supervisor, engine restarts in total and in a row, the last restart with its reason and age, the hang
  detector's judgement, the log volume, and a WARNING when the status file is minutes old while its phase says the service runs (a supervisor
  that crashed or was killed). `--json` carries the same members. Exit 0 only when ready (container health check, unchanged).
* `leleka verify --quick`: the health of the installation without reading a byte of the model: each shard and the archive as stamped
  (verified in its present state: not hashed again at a start), missing or wrong-size files, the service answering /ready, its age and
  restarts, the log volume. Exit 0 only when no problem. (`leleka verify` without the flag is the full parallel hash, as before.)
* preflight: when the GPU is taken and the lab KAR holder (kar_holder*.py) is running, the fix text says so and points at lab mode instead
  of the generic "stop the other GPU users" (Facts.lab_holder, /proc scan).
* `leleka seal-probe FILE` (hidden): the archive copy of `leleka run` on any file, then SHA-256 of the memfd against SHA-256 of the file.
  Measurement/identity tool for the cold-load work.

Tests: render_supervisor (age, restarts, dead supervisor), `verify --quick` before and while the service runs, the lab-holder hint, cli
parsing. The e2e suite has the same six environment failures as the base commit f9003b7ce on this laptop (profiles_and_usage_commands expects
the 3080 profile at context 8192 but the profile file says 262144; the others read the real GPU of this machine) and one flaky lifecycle test
that also flaked on the base; both checked by running the base commit's suite.

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