Skip to content

Commit 389a485

Browse files
committed
docs(changeset): name the bare os serve boot as a second affected audience
`os serve` sets no OS_ENVIRONMENT_ID for its own boot — it only reads one to name the runtime state file — so a bare `os serve` reaches the changed default too, not only a direct `createStandaloneStack` embedder. Measured at `serve.ts:524` (read-only) against `dev.ts:380` / `start.ts:409` (which export). Part of #13366 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N
1 parent ea5256d commit 389a485

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.changeset/standalone-stack-stamps-env-local.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,20 @@ validation envelope for a bare definition.
1919

2020
TO: both stamp `env_local`.
2121

22-
WHO SEES IT. Only a host that calls `createStandaloneStack` (or
23-
`createDefaultHostConfig`) **directly** and lets the id default. A boot started
24-
by `os dev` / `os start` never reached the changed line: those commands export
25-
`OS_ENVIRONMENT_ID=env_local` into the child process, which the fallback yields
26-
to. Where the id is observable — row scoping in `ObjectQLPlugin`, the
22+
WHO SEES IT. Two audiences, both on the DEFAULT path — no `environmentId` in
23+
the config and no `OS_ENVIRONMENT_ID` in the environment:
24+
25+
1. a host that calls `createStandaloneStack` / `createDefaultHostConfig`
26+
**directly**;
27+
2. a **bare `os serve`** — one not spawned by `os dev` / `os start`. Those two
28+
commands export `OS_ENVIRONMENT_ID=env_local` into the child process, which
29+
the fallback yields to, so a boot they start never reached the changed line.
30+
`os serve` sets no such variable for its own boot: it only READS one to name
31+
the runtime state file. So a bare `os serve` used to run a kernel stamped
32+
`proj_local` while publishing `runtime.env_local.json` beside it; the two now
33+
agree.
34+
35+
Where the id is observable — row scoping in `ObjectQLPlugin`, the
2736
`X-Environment-Id` header, `sys_metadata.environment_id` — such an embedder now
2837
sees `env_local` where it saw `proj_local`, so an install with rows already
2938
written under the old id should set `environmentId: 'proj_local'` (or

0 commit comments

Comments
 (0)