@@ -97,3 +97,27 @@ change durable sandbox protobufs. Reads revalidate owner, configuration,
9797generation, and expiry. Cleanup scans bounded pages and uses conditional deletes
9898so concurrent renewals are preserved. Discovery consumers must not treat these
9999records as application health or external ingress readiness.
100+
101+ ## Workspace service discovery
102+
103+ ` GetServiceRouteSnapshot ` and ` WatchServiceRoutes ` expose accepted installations
104+ for one explicit active workspace. They require ` sandbox:read ` and workspace
105+ user access; omitted/all-workspaces selectors and sandbox principals are rejected.
106+ Dedicated discovery machine grants are separate work.
107+
108+ Each successful response replaces the complete view. Consumers preserve the
109+ returned hostname as TLS SNI and HTTP authority when dialing the supervisor
110+ endpoint, remove absent routes, and expire cached entries at ` expires_at ` even
111+ when discovery is unavailable. An error is not an empty replacement. The opaque
112+ snapshot revision includes lease renewals; ` installation_version ` remains stable
113+ across those renewals and changes when installation identity changes. These
114+ records establish neither application health nor ingress readiness.
115+
116+ Collection checks installation resource versions across two scans, retrying once
117+ if changed. This is a verified view, not a transaction across configuration and
118+ owner resources. Reads are bounded to 1,000 installation records, 4,096 routes,
119+ 4 MiB, and ten seconds. Overflow, corruption, or storage failure returns an error.
120+ Watches refresh and reauthorize each second, use a one-message buffer, and end
121+ after one minute or a five-second blocked send. Each gateway process accepts at
122+ most 32 watches. Reconnect and relist on stream termination; revisions are opaque
123+ equality tokens, not resumable cursors or an ordering across gateway replicas.
0 commit comments