@startuml lagrange-boot !include _lagrange.iuml ' Hammerspoon start to first panel paint: what loads when, and what happens if a module is broken. autonumber participant "Hammerspoon" as HS participant "init.lua" as INIT participant "boot.lua" as BOOT participant "panel.lua" as PANEL participant "palette.lua" as PAL HS -> INIT : launch / hs.reload loop for each of ~15 modules INIT -> BOOT : boot.load(mod) BOOT -> BOOT : xpcall(require, mod) alt module loads BOOT --> INIT : real module table else module errors BOOT -> BOOT : M.stub(name, err) -- no-op fields BOOT -> HS : batched notify (1s later) BOOT --> INIT : stub table, rest keeps loading end end INIT -> PANEL : require("panel") PANEL -> PANEL : boot.load(timemachine, projects,\nassistant) -- optional cards PANEL -> PANEL : M.update(); M.render(true) PANEL -> PANEL : boot.try("fullPage") ->\nhtml() or fallback on error PANEL -> PANEL : doAfter(1.5): applyLayout(), prefetch() INIT -> PAL : boot.load("palette") PAL -> PAL : doAfter(4): prewarm hidden webview @enduml