Skip to content

Commit 29b105b

Browse files
authored
docs(gateway): record why Control UI admission exemptions exist (#125108)
* docs(gateway): record why Control UI admission exemptions exist * docs(gateway): state the configured-root exemption reason precisely
1 parent 1d65e7b commit 29b105b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎src/gateway/server/ws-connection/control-ui-build-admission.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ type ControlUiBuildMismatch = {
99
/**
1010
* The Gateway owns bundled same-origin UI admission. Browser code still owns
1111
* reload, but an older document must never become an RPC-capable session.
12+
*
13+
* The exemptions are deliberate, not gaps (ui/AGENTS.md "Gateway Coupling"):
14+
* configured roots serve an independently built artifact the Gateway owns no
15+
* matching build identity for, "dev" is the ui:dev sentinel, and cross-origin
16+
* stays exempt because build ids embed the build timestamp — version-identical
17+
* source-built installs carry different ids, so equality would reject matched
18+
* pairings, and "reload" cannot remediate a client the Gateway did not serve.
19+
* Exempted skew fails visibly at the first missing method instead.
1220
*/
1321
export function resolveControlUiBuildMismatch(params: {
1422
clientId: string;

0 commit comments

Comments
 (0)