Bound checked candidate metadata and restricted invocation resources
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
type PublicQueryContract,
|
||||
} from "./client-contracts.js";
|
||||
import { resultInterfaces } from "./projections.js";
|
||||
import type { CandidateMetadataScope } from "./metadata.js";
|
||||
|
||||
/** Activation is assigned by graph authority, never by a package artifact. */
|
||||
export interface ActiveExecutionIdentity {
|
||||
@@ -159,8 +160,9 @@ export async function loadExecutionInstallation(
|
||||
plan: ExecutionPlan,
|
||||
roots: Readonly<Record<string, string>>,
|
||||
selections: Readonly<Record<string, PackageInstallationSelection>> = {},
|
||||
metadata?: CandidateMetadataScope,
|
||||
): Promise<ExecutionInstallation> {
|
||||
return assembleExecutionInstallation(plan, roots, await loadArtifactWorld(plan, roots), selections);
|
||||
return assembleExecutionInstallation(plan, roots, await loadArtifactWorld(plan, roots, metadata), selections);
|
||||
}
|
||||
function assembleExecutionInstallation(
|
||||
plan: ExecutionPlan,
|
||||
|
||||
Reference in New Issue
Block a user