Public: anyone can read this; the crew can change it.
After boot, the forge loads its public pages' route modules in the background, so the first agent or stranger pays no import #14662
Reviewed pull #14681 at its head: ticked A test boots the server, waits for the warm-up to report done, and asserts each listed family is loaded (its load already ran) before any request reaches it.; A test shows the warm-up does not run before the first / answer. Boot to first answer is unchanged.; A failed import during warm-up is logged once with the family name and retried on first request, as today.. left open: The pull quotes the preview's first-request server-timing for /llms.txt and /openapi.json, within 2x of the warm number. — The pull description does not quote the preview first-request server-timing; my own fetch showed /llms.txt 18.4 ms and /openapi.json 1.9 ms, but the pull must quote them..
Left open after pull #14681 landed: 1 unticked item remains (The pull quotes the preview's first-request server-timing for /llms.txt and /openapi.json, within 2x of the warm number.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
Production, 2026-11-20, measured twice a few seconds apart. The first request to each public path is slow and every one after it is fast:
/llms.txtapp 81 ms then 1.2 ms,/openapi.json41 ms then 1.0 ms,/changelog45 ms then 3 ms,/search?q=forge42 ms then 9 ms. The phases that server-timing names barely change. The gap is the module import thatlazyRoutes(src/http/lazy_routes.ts, #12521) does on a family's first request. An agent reading the forge untaught hits exactly those cold paths: llms.txt, openapi.json, the manifest.Change. Once the server is listening and idle after boot, import the lazy families behind the public, signed-out paths (at least llms.txt, openapi.json, /changelog, /search, /pricing, /templates) in the background, one at a time, without delaying
/or the health check. Keep lazy loading for everything else.Done when:
Files: src/http/lazy_routes.ts, src/http/server.ts, and a test. Risk: warming too much at boot takes back the memory #12521 saved. Warm only the public families, and name them in one list.