+- **Kernel scope.** `dispatchAction(kernel, { environmentId, … })` now runs the dispatcher's own placement step (the `kernel-resolver` call and scope touch `resolveRequestScope` runs), asked what the scoped request `POST /environments/:environmentId/actions/...` asks: `environmentId` reaches the resolver as the scoped-URL hint, and the resolver, not the host door, writes the environment, as at the REST door. On a multi-kernel host the call therefore runs on the environment's own kernel, exactly as the REST request does. A resolver that throws now refuses the call with the status it carries, instead of the call running on the host kernel. A resolver that reads only a pre-written `environmentId` no longer places host-door calls, as it never placed REST ones. A call the resolver places in no environment runs in the kernel's default environment, as the REST door's does. The route path the host door builds cannot be steered by an object, namespace or action name: no environment hint is derived from it, and each segment is encoded. Pass the kernel your HTTP door is served from (on a multi-kernel host, the one that registers `kernel-resolver`). The host door still runs neither the ADR-0069 authentication-policy gate nor the environment-membership gate, and uses `executionContext` as given: those stay the host's. A host with no `kernel-resolver` answers exactly as before: the call runs on that kernel in the environment `environmentId` names (the scope of its service lookups), or in the default environment when none is named.
0 commit comments