A local-first multi-agent app development platform, built on PenguinHarness
The runtime's comments say what the runtime does
- Date: 2026-08-23
- Type: process
- Scope:
server - PR: #427
Four passages in the hot-update runtime described something other than the code around them. A reader with no session transcript could not have resolved them, and two of them would have sent that reader the wrong way.
Details
- The HTTP seam's module doc, and
hmr/README.mdwith it, stated that streaming responses stay runtime-side. The platform's own SSE endpoints go through the seam and always have — a handler returns itsResponseas soon as the stream exists and keeps writing to it. What the seam cannot carry is a live socket, there being noResponseto return for one, which is why the terminal WebSocket handshake reaches the App through in-process members. Both passages now say that. app.tsdescribed the hot APIs as authenticating with "a local-agent Bearer token OR admin cookie session", pointing athot/routes.ts— a path that names no file, and a token that had been removed for being a plaintext admin-equivalent secret on disk. The gate is the network check, then the ordinary auth middleware with an admin check on top; the Bearer credential it accepts today is the boot's local API token at<root>/api-token, which reinstated that equivalence deliberately, not the per-boot token the old comment meant.- Three JSDoc blocks documented the declaration below their neighbour rather than their own:
UpgradeAllTarget's sat aboveUpgradeAssets,persistVersion's abovematerializeAssets, andisSafeRelPath's abovesameFileContent— leaving three declarations undocumented and three carrying two blocks each. Each is back on the declaration it describes. - The store's keep rule read "at most
STORE_KEEPversions"; the referenced version is kept on top of the newestSTORE_KEEP, so a store holds three entries whenever the committed version is not among the two most recently written.