You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(spec,metadata-protocol,runtime): stop advertising routes for the kernel-internal cache/queue/job slots (#4318) (#4448)
`SERVICE_CONFIG` declared `/api/v1/cache`, `/api/v1/queue` and `/api/v1/jobs` —
three paths that existed nowhere else in the repository: no dispatcher domain, no
adapter mount, no plugin registration. Nor was one pending: the slots' shipped
providers (`service-cache` / `-queue` / `-job`) are in-process contracts that
mount no HTTP surface. The kernel pre-injects self-describing in-memory fallbacks
into all three on every default boot, so every default deployment emitted a
`ServiceInfo` whose `route` said "call me here" next to its own
`handlerReady: false` saying "there is no handler".
The route is removed at the root rather than suppressed per-occupant: these slots
are route-less now, structurally, the way `realtime` already was. What differs
from `realtime` is the unmarked case, so each route-less entry states it —
`realtime`'s advertised capability IS the missing HTTP/WS surface, so an
in-process bus there is `degraded`; a cache/queue/job slot's contract is
in-process to begin with, so a real (unmarked) implementation stays `available`.
The dispatcher builder had the same defect one field over: `svcAvailable` gave an
unmarked occupant `handlerReady: true`, a handler that does not exist. Those
slots report through `svcInProcess` now, with `handlerReady` pinned `false`. The
explanatory message is written once, as `inProcessServiceMessage()` in
`@objectstack/spec/system`, so the two builders cannot drift.
Tests pin both builders and, for cache/queue/job, pin them against each other
across both occupant shapes. The two service READMEs advertised REST endpoint
tables for surfaces that were never mounted; replaced with what is true.
Closes#4318.
0 commit comments