Since v1.18.7 a run that does not set LEAN_DEFAULT keeps the default the
installed template has, so that a box installed with LEAN_DEFAULT=0
stays on xhigh. It read that choice from default('xhigh') alone. A
template written before v1.13 has no lean level and defaults to xhigh,
the one default there was: it chose nothing, and a box updated from
there to v1.18.7 or later stayed on xhigh without anyone asking for it.
A user's box did (2026-10-05), and every bench.sh probe measured other
text than the reference box's, 10 to 16% slower on code and reasoning.
Only a template that offers the lean level and still defaults to xhigh
is a kept choice now; one without the level gets the current default,
and the run says so. Reproduced with the patch-template.py of v1.12.1 on
the reference box's checkpoint (edp1096 abliterated NVFP4 @21565d38):
its template, then the script of v1.22.6, gave xhigh (md5 f6c09ac8);
with this one, lean (md5 30454bff, the reference box's own), then
unchanged on the next run. A template written with LEAN_DEFAULT=0 still
keeps xhigh, and the reference box's lean template is left as it is.
On a box that had such a template, the update rewrites it, so the
engine that reads it restarts once to serve lean. Three tests in
test_patch_template_default_kept.py, and five mutants of the new lines
are each caught. LEAN.md says what is kept, and what is not a choice.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- L3: a native switch restores a target's config that still carries YaRN
(served while the box was 1m); the restore refuses before the unit when the
backup is gone
- L8: a switch checks for room before it downloads and names a full disk; the
cockpit's switch job gets 2 h (a flash download alone nearly took the 30 min)
- L9: patch-template.py keeps the installed template's default when
LEAN_DEFAULT is unset, and its refusal names the real default
- L10: run.sh's restore hint is a command install.sh accepts
- L6/L7/L12: install-image.sh reads its cache from the unit (then the text
lane's mount), measures room where the checkpoint and the runtime land and
counts the cache by bytes, and --uninstall of the boot lane re-enables the
text lane it replaced
- L11/N2: uninstall.sh inventories every cache and PLE folder the lanes use;
it asks sudo only for root's files, and when refused leaves the running
services whole (a no-sudo box died at its first sudo call, found in a
sandbox run); it no longer exits 1 after a clean run on a box without a
PLE folder
- tests follow the renamed lines (image lane room check, inventory paths,
lane removal and image reclaim extractions)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>