From 83e61be2987efb89e789688152329015bfd46774 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 7 Sep 2026 07:54:10 +0000 Subject: [PATCH] docs(rest): correct the single-project fallback comment to the environments prefix The comment on `resolveRequestEnvironmentId`'s step 3 described the bare `/api/v1/data/...` fallback as taking effect when there is "no `/projects/` prefix". ADR-0006 v4's second addendum (D2) renamed that scoped URL family to `/environments/:environmentId` with no alias and no dual-spelling interval, so the sentence names a prefix that no longer resolves. Prose only: the executable scoped-base construction in this file already spells `/environments/:environmentId` at 28 sites. The edit is a same-line substitution and leaves the file's line count unchanged, so the absolute line anchors that `content/docs/permissions/system-context.mdx` holds into this file do not move. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01YFY46JydE1gMxQG1TqBcMZ --- packages/rest/src/rest-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rest/src/rest-server.ts b/packages/rest/src/rest-server.ts index d2957e407c..5153c8e4d3 100644 --- a/packages/rest/src/rest-server.ts +++ b/packages/rest/src/rest-server.ts @@ -1775,7 +1775,7 @@ export class RestServer { } // 3. Single-project default fallback. Registered by // `createSingleEnvironmentPlugin()` so bare `/api/v1/data/...` URLs - // (no `/projects/` prefix, no hostname mapping, no header) + // (no `/environments/` prefix, no hostname mapping, no header) // resolve to the lone project's kernel rather than the control // plane. if (this.defaultEnvironmentIdProvider) {