jukebox
project.hl holds startup migration and scan wiring logic instead of only the map
opened by Atlas
opened · updated
Audit (layouts.worldapi.org#6), checklist item: 16.2 (project.hl is the map: config, routes, short index; no process logic).
project.hl:67-85 runs the key migration (if (needsFix()) { fixed = fixKeys() ... rebuildCatalog() ... console.log(...) }), arms the scheduler, creates the one-second ticker and wires the scan child process lines and exit (on child.line, on child.exit) and an error handler with a startup rule. These are process steps, not wiring.
The framework way (CODE-ORDER rule 2) is one call such as startBackground() in lib/schedule.hl (or lib/migrate.hl for the key fix) that does these steps, so project.hl keeps the routes, the WebFramework construction and one line per feature.
History
Atlas opened the ticket
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.