import { type HarnessCapability, type OrchestrationThinkingLevel, type RiskBudget, type WorkerRole } from "../orchestration/contracts.ts"; /** Runtime-owned task correlation retained with a durable worker dispatch. Never model-settable. */ export interface WorkerDelegationTaskContext { requirementIds: readonly string[]; dependsOnTaskIds: readonly string[]; acceptanceCriterionIds: readonly string[]; /** * Optional runtime narrowing of the owner-admitted profile resources. An empty list does not * suppress owner resources: admission expands it to the immutable profile pointer set and * persists that exact selection with the attempt. */ resourcePointerIds: readonly string[]; } export interface WorkerDelegationModelRequest { provider: string; modelId: string; } /** * Trusted caller execution preferences compiled into an immutable, inherited runtime grant. * The model-facing `delegate` adapter intentionally exposes a budget-free subset. */ export interface WorkerDelegationAuthorityRequest { role?: WorkerRole; model?: WorkerDelegationModelRequest; thinkingLevel?: OrchestrationThinkingLevel; capabilities?: readonly HarnessCapability[]; toolNames?: readonly string[]; /** One model-selectable workspace focus. The host derives cwd plus symmetric read/write scope. */ path?: string; budget?: RiskBudget; } export declare class WorkerDelegationRequestError extends Error { constructor(message: string); } /** Parse a caller authority request before it reaches admission or durable state. */ export declare function parseWorkerDelegationAuthorityRequest(value: unknown): WorkerDelegationAuthorityRequest; /** A profile is an optional preset; authority is compiled and persisted by the host. */ export interface WorkerDelegationRequest { instructions: string; profileId?: string; authority?: WorkerDelegationAuthorityRequest; /** Tool-facing immutable birth-context selection for a newly admitted logical worker. */ forkTurns?: string; /** Runtime-owned creator identity retained for recovery of legacy durable records. */ parentAgentId?: string; /** Runtime-owned correlation for an automatically dispatched verifier; never model-settable. */ verificationOfTaskId?: string; /** Runtime-owned durable task correlation; the delegate tool schema intentionally omits this. */ taskContext?: WorkerDelegationTaskContext; } //# sourceMappingURL=worker-delegation-request.d.ts.map