import type { AgentEvidence } from "../schema/workspec.js"; import type { AgentJudgmentProof, CriterionAttempt, TreeIdentity, VerificationFailure } from "./results.js"; declare const MAX_INPUT_BYTES: number; export interface AgentInput { authoredPath: string; canonicalPath: string; bytes: Uint8Array; digest: string; } export interface AgentJudgeRequest { agent: string; rubric: string; inputs: readonly AgentInput[]; tree: TreeIdentity; signal?: AbortSignal | undefined; } export type AgentVerdict = { verdict: "approve"; dispatchReceipt: string; inputDigests: readonly string[]; } | { verdict: "reject"; dispatchReceipt?: string; reason: string; } | { verdict: "unavailable"; reason: string; } | { verdict: "infrastructure-failure"; reason: string; }; export type AgentJudge = (request: AgentJudgeRequest) => Promise; export interface AgentRunnerOptions { judge?: AgentJudge | undefined; maxInputBytes?: number | undefined; } export type AgentRunOutcome = { outcome: "passed"; proof: AgentJudgmentProof; } | { outcome: "failed"; attempt: CriterionAttempt; failures: VerificationFailure[]; }; /** Read and hash all named artifacts before the future pi-delegate judgment adapter. */ export declare function runAgent(input: { evidence: AgentEvidence; tree: TreeIdentity; signal?: AbortSignal | undefined; }, options?: AgentRunnerOptions): Promise; export { MAX_INPUT_BYTES };