Skip to content

Commit a697366

Browse files
committed
ci(route-envelope): declare mount-storage-routes.ts (#15169)
`mount-storage-routes.ts` matches the `*-routes.ts` discovery convention, so `check:route-envelope` found it and refused it as NOT DECLARED — undeclared is an error, never a default. It writes no response body of its own: it binds the three package-internal seams and hands the surface to `registerStorageRoutes`, so every `/api/v1/storage/*` body is still written by `storage-routes.ts` through the shared sendOk/sendError pair. Declared `{ responses: 0, ok: 0, err: 0 }` with a note in the neighbours' shape. No ratchet, no vendorWire, no other entry touched. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TezFG8ZMrNH6n5VTNpPpdH
1 parent 210d2b9 commit a697366

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

scripts/check-route-envelope.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,18 @@ const MODULES = {
254254
// (`runtime/src/domains/share-links.ts`) had always returned.
255255
'packages/plugins/plugin-sharing/src/share-link-routes.ts': { responses: 0, ok: 0, err: 0 },
256256

257+
// [#15169] The host door. `mountStorageRoutes` composes `/api/v1/storage/*`
258+
// onto an HTTP surface the HOST owns, for a hosted kernel that registers no
259+
// `http-server` service. It matches the `*-routes.ts` convention and so is
260+
// discovered, but it answers nothing itself: it binds the three package-internal
261+
// seams and hands the surface to `registerStorageRoutes`, so every body on that
262+
// prefix is still written by `storage-routes.ts` above, through the shared pair.
263+
// Zero is therefore structural rather than measured-and-hoped: a write site
264+
// appearing here would mean the door started building bodies of its own, which is
265+
// exactly the review this number exists to force. Declared in the same PR that
266+
// created the module so the gap never exists.
267+
'packages/services/service-storage/src/mount-storage-routes.ts': { responses: 0, ok: 0, err: 0 },
268+
257269
// ── Exempt ──────────────────────────────────────────────────────────────
258270

259271
// A dev-only SSE endpoint (`GET|POST /api/v1/dev/metadata-events`) that closes

0 commit comments

Comments
 (0)