@@ -295,3 +295,27 @@ timeouts; bounded record attempts prevent a malformed or stalled record from
295295starving later cleanup. Failed attempts are revisited on the next scan.
296296Discovery consumers must not treat these
297297records as application health or external ingress readiness.
298+
299+ ## Workspace service discovery
300+
301+ ` GetServiceRouteSnapshot ` and ` WatchServiceRoutes ` expose accepted installations
302+ for one explicit active workspace. They require ` sandbox:read ` and workspace
303+ user access; omitted/all-workspaces selectors and sandbox principals are rejected.
304+ Dedicated discovery machine grants are separate work.
305+
306+ Each successful response replaces the complete view. Consumers preserve the
307+ returned hostname as TLS SNI and HTTP authority when dialing the supervisor
308+ endpoint, remove absent routes, and expire cached entries at ` expires_at ` even
309+ when discovery is unavailable. An error is not an empty replacement. The opaque
310+ snapshot revision includes lease renewals; ` installation_version ` remains stable
311+ across those renewals and changes when installation identity changes. These
312+ records establish neither application health nor ingress readiness.
313+
314+ Collection checks installation resource versions across two scans, retrying once
315+ if changed. This is a verified view, not a transaction across configuration and
316+ owner resources. Reads are bounded to 1,000 installation records, 4,096 routes,
317+ 4 MiB, and ten seconds. Overflow, corruption, or storage failure returns an error.
318+ Watches refresh and reauthorize each second, use a one-message buffer, and end
319+ after one minute or a five-second blocked send. Each gateway process accepts at
320+ most 32 watches. Reconnect and relist on stream termination; revisions are opaque
321+ equality tokens, not resumable cursors or an ordering across gateway replicas.
0 commit comments