Commit Graph
2 Commits
Author SHA1 Message Date
Hasan Basbunar f40892d4bf no-download updates: a Load of an update that waits runs the switch's steps after the fetch
The Load's prepare fetched the new revision with `switch-model.sh <target> --fetch`, which
stops right after the download, so on the serving lane's short path (prepare, apply_pending,
restart, no switch) the new checkpoint's config.json was never YaRN-patched for a 1M unit (which
does not load on an unpatched config), never restored for a native one, Arete's fp8 KV cache was
never declared, and the chat template was never regenerated from the new revision (sixth review
of v1.52.0, 2026-11-19, GLM 5.3, defect 1, verified in the code and on the box: the 27B serves the
1M window). The switch's steps 2, 2a and 2b are now one function, lanes.sh's
`patch_served_checkpoint`, which the switch calls with the unit in place and prepare-lane.sh,
when an update waits for this Load and this Load loads its target, with the unit that waits and
the cache it mounts: the 27B and the flash serve their new revision with those steps done, on the
short path as on the other. The patches are idempotent, so a journey that runs both changes
nothing twice. tests/test_prepare_load_wait.py runs the prepare on a fabricated cache and fails
on the code before (config unpatched, no template); test_switch_native_restore and
test_arete_target read the function where it now lives.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 12:44:17 +01:00
Hasan BasbunarandClaude Opus 5.5 3de366076a switch, image lane and uninstall: correct on boxes that are not the reference one
- 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>
2026-09-24 17:32:16 +02:00