Skip to content

Function: verifyOwnershipRouting()

Generated from SDK v1 (protocol 1) at source revision 451951f. Never edit by hand; run npm run generate:reference.

@muoto/application


verifyOwnershipRouting(fixture, env): Promise<Readonly<{ apphostLocal: readonly string[]; external: readonly Readonly<{ capability: "work.read" | "work.write" | "events.subscribe" | "artifacts.read" | "network.slack" | "network.github" | "network.http" | "secrets.use"; commandType: string; compensateWith?: string; idempotencyKey: string; }>[]; kernelResources: readonly string[]; }>>

Defined in: sdk/ownership.ts:123

Proves correct routing for all three side-effect classes: apphost-local effects are owned by the scope and disposed with it; kernel resources go through the kernel RPC transport only; externally visible operations are proposed as idempotent, capability-declared commands. Also proves the scope itself grants no kernel-resource or external authority.

OwnershipFixture

(command) => Promise<CommandOutcome>

LifecycleScope

{ invoke: (operation) => unknown; }

(operation) => unknown

Promise<Readonly<{ apphostLocal: readonly string[]; external: readonly Readonly<{ capability: "work.read" | "work.write" | "events.subscribe" | "artifacts.read" | "network.slack" | "network.github" | "network.http" | "secrets.use"; commandType: string; compensateWith?: string; idempotencyKey: string; }>[]; kernelResources: readonly string[]; }>>