From 7c56675c2d493e30cd8ee1183fdfe599efcde72e Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 16 Sep 2026 14:31:30 +0000 Subject: [PATCH 1/2] docs(rest): the platform virtual-id docblock names the live /environments URL family MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `resolveProtocol`'s `environmentId === 'platform'` docblock described the reserved virtual id as being addressed "through the regular project URL shape (`/projects/platform/...`)" — the spelling ADR-0006 v4's second addendum (D2, executed 2026-08-28) retired with no alias and no grace period. The behaviour the paragraph describes is live on both sides of the seam, so this corrects the prefix rather than retiring the paragraph: the host enables environment scoping precisely so `/api/v1/environments/platform/...` resolves to the control-plane protocol, and this file's own `resolveProtocol` still short-circuits `environmentId === 'platform'` to `this.protocol`. Comment-only, line-count neutral (13,877 lines before and after). The sibling site that calls `/projects/:environmentId` "the retired spelling" is correct and deliberately untouched. Claude-Session: https://claude.ai/code/session_01DvvamiacK328idtBYJBxV3 Co-authored-by: Claude --- packages/rest/src/rest-server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/rest/src/rest-server.ts b/packages/rest/src/rest-server.ts index a43dfeb1fa8..6e3739057cb 100644 --- a/packages/rest/src/rest-server.ts +++ b/packages/rest/src/rest-server.ts @@ -1837,8 +1837,8 @@ export class RestServer { * 4. Control-plane protocol captured at boot. * * Special case: `environmentId === 'platform'` is a reserved virtual id used - * by Studio to address the control plane through the regular project - * URL shape (`/projects/platform/...`). It is NOT a row in the projects + * by Studio to address the control plane through the regular environment + * URL shape (`/environments/platform/...`). It is NOT a row in the projects * table, so we must never call `KernelManager.getOrCreate('platform')`. * Instead, return the control-plane protocol directly. This lets Studio * (and any other client) speak a single, uniform URL family without From 3091b1615e49f6811ed97fcc8c737f4afa4289bf Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 16 Sep 2026 14:54:37 +0000 Subject: [PATCH 2/2] chore(changeset): patch @objectstack/rest for the platform virtual-id docblock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The corrected docblock ships inside the published artifact — it is present in `dist/index.d.ts`, `dist/index.d.cts` and both bundles — so `skip-changeset` does not hold: measured against `files[]` (`dist`, `README.md`, `CHANGELOG.md`), `projects/platform` now returns zero hits across everything this package publishes, where it returned four before. Claude-Session: https://claude.ai/code/session_01DvvamiacK328idtBYJBxV3 Co-authored-by: Claude --- .../15858-rest-server-platform-url-spelling.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .changeset/15858-rest-server-platform-url-spelling.md diff --git a/.changeset/15858-rest-server-platform-url-spelling.md b/.changeset/15858-rest-server-platform-url-spelling.md new file mode 100644 index 00000000000..7a47f2063a5 --- /dev/null +++ b/.changeset/15858-rest-server-platform-url-spelling.md @@ -0,0 +1,16 @@ +--- +'@objectstack/rest': patch +--- + +docs(rest): the `'platform'` virtual-id docblock names the live `/environments/` URL family (#15858) + +`RestServer`'s `environmentId === 'platform'` docblock described the reserved virtual id as being addressed *"through the regular project URL shape (`/projects/platform/...`)"* — the spelling ADR-0006 v4's second addendum (D2, executed 2026-08-28) retired with **no alias and no grace period**. It now reads *"through the regular environment URL shape (`/environments/platform/...`)"*. + +**The prefix is corrected rather than the paragraph retired, because the shape is live.** The fork this card opened — *"if the shape is live the sentence needs its prefix corrected, and if it is not, the paragraph may want retiring"* — was decided by a cross-repo reading: the host enables environment scoping precisely so `/api/v1/environments/platform/...` resolves to the control-plane protocol, its kernel resolver returns no per-environment kernel for that id, and a live test drives `routePath: '/environments/platform/meta'`. Framework-side, `resolveProtocol` still short-circuits `environmentId === 'platform'` to the control-plane protocol. Every behavioural claim in the paragraph is true today; only the URL spelling and the phrase "the regular project URL shape" were not. + +What reaches a consumer of this package: the docblock ships inside `dist/index.d.ts` and `dist/index.d.cts` (and the bundles), so `projects/platform` no longer appears anywhere in the published artifact. **No behaviour moves** — comment-only, and the file is line-count neutral at 13,877 lines before and after. + +⚠️ Two things deliberately left alone, both measured rather than overlooked: + +- The sibling site that calls `/projects/:environmentId` **"the retired spelling"** is *correct* — it documents the repair that landed under #16538. Harmonising the two would make the right one wrong. +- The same paragraph's *"It is NOT a row in the projects **table**"* is about a table, not a URL. That is a different question — it turns on what the control-plane row is called today — and it is not guessed into this edit.