Skip to main content

Module m0044_warden_split

Module m0044_warden_split 

Source
Expand description

Warden was split: the Vault, History and Audit are panes of their own, Host is the Swarm, and Warden keeps only its Jobs section. Moves, once, for this channel:

  • blocks (db_block) saved as view: "warden" to the pane their warden:section lives in now;
  • the same for every block in the client’s session-restore snapshot (session:last_topology);
  • settings.json: warden in widget:pinned is replaced, in place, by vault, history and audit (those already pinned are not repeated).
saved Warden sectionbecomes
vaultvault (vault:section, vault:request kept)
historyhistory
auditaudit
hostswarm
none, or unknownaudit (read-only: a redirect nobody asked for never asks for the Vault key)
kanbankanban
lan, internet, ambientaudit (these sections have no pane)
jobsunchanged

widgets.json needs nothing: an entry that still names a moved section is resolved when the file is loaded (WidgetConfigType::resolve_section). Layout files live outside AgentMux and are translated on import (layout_file.rs).

Idempotent: a second run finds no Warden pane on a moved section. The block and snapshot rewrite fails the migration (retried on the next boot) when the store cannot be read.

Structs§

M0044WardenSplit