Function: verifyOwnershipRouting()
Generated from SDK v1 (protocol 1) at source revision
451951f. Never edit by hand; runnpm run generate:reference.
Function: verifyOwnershipRouting()
Section titled “Function: verifyOwnershipRouting()”verifyOwnershipRouting(
fixture,env):Promise<Readonly<{apphostLocal: readonlystring[];external: readonlyReadonly<{capability:"work.read"|"work.write"|"events.subscribe"|"artifacts.read"|"network.slack"|"network.github"|"network.http"|"secrets.use";commandType:string;compensateWith?:string;idempotencyKey:string; }>[];kernelResources: readonlystring[]; }>>
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.
Parameters
Section titled “Parameters”fixture
Section titled “fixture”propose
Section titled “propose”(command) => Promise<CommandOutcome>
transport
Section titled “transport”{ invoke: (operation) => unknown; }
transport.invoke
Section titled “transport.invoke”(operation) => unknown
Returns
Section titled “Returns”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[]; }>>