You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 91aaad0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(runtime): a scoped-URL REST or MCP request's api forward is placed in the environment it ran in
On a multi-kernel host the placement step records the environment the
host's kernel-resolver placed each request in (never the control plane,
nothing without a resolver), and the api arm writes it onto the forward
as X-Environment-Id, replacing the caller's spelling. One writer for all
three doors: the host door's own header write is folded into it.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cykhsWAtSL6Sr4VWFG
fix(runtime): on a multi-kernel host, a same-origin `type: 'api'` action run by a REST or MCP request placed only by its scoped URL forwards into the environment the request ran in
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
- **The forward is placed where the request ran, at every door.** A same-origin `type: 'api'` action forwards into the host's raw app, which places the forwarded request as it places any request. A request placed by its bound hostname or by its `X-Environment-Id` carries that signal into its forward. A request placed only by its scoped URL (`POST /environments/:env/actions/:object/:action`, or `run_action` on `/environments/:env/mcp`) did not, because the forward targets the action's own path: on a shared origin with no hostname binding the forward landed in no environment, and its target answered a member who may run the action `401`. On a host with a `kernel-resolver`, the forward from the REST, MCP and `dispatchAction` doors now carries the environment the resolver placed the request in as `X-Environment-Id`, replacing any `X-Environment-Id` the caller sent. A request placed in no environment, or in `platform` (the control plane), and every request on a host with no `kernel-resolver`, forwards exactly as before.
0 commit comments