import { type NativeBuilderAcceptanceReview } from './native-builder-acceptance-review.js'; import { type NativeCheckPlan } from './native-check-executor.js'; import { type NativeSupervisorMaterial } from './native-supervisor-evidence.js'; import { type NativeVerifierResponse } from './native-verifier-protocol.js'; import { type NativeSupervisorState, type NativeSupervisorVerificationEvidence } from './native-supervisor.js'; import type { NativePortableCheckSummary, NativePortableState } from './native-portable-types.js'; import type { NativeProjectPaths } from './native-types.js'; interface RunnerBuilderInput { kind: 'builder-handoff'; summary: string; addressed_acceptance_ids: string[]; acceptance_review?: NativeBuilderAcceptanceReview[]; checks: Array<{ name: string; result: 'passed' | 'failed' | 'not-run'; note: string | null; }>; verification_checks?: NativeCheckPlan[]; known_limits: string[]; review: { status: 'passed'; summary: string; reviewer_execution_ref: string; } | null; } interface RunnerDispatchInput { kind: 'dispatch-verifier'; checks: NativeCheckPlan[]; } interface RunnerRetryChecksInput { kind: 'retry-checks'; check_ids: string[]; } interface RunnerVerifierInput { kind: 'verifier-response'; candidateId: string; verifierExecutionRef: string; response: NativeVerifierResponse; } interface RunnerVerifierStartedInput { kind: 'verifier-started'; candidateId: string; verifierExecutionRef: string; } interface RunnerExecutionErrorInput { kind: 'verifier-execution-error'; summary: string; stateVersion: number; iteration: number; attempt: number; verifierExecutionRef: string; } interface RunnerVerifierUnavailableInput { kind: 'verifier-unavailable'; summary: string; stateVersion: number; iteration: number; attempt: number; verifierExecutionRef: string; } interface RunnerSupervisorBuilderInput { kind: 'supervisor-builder-result'; child: string; runId: string; candidateCommit: string; } interface RunnerSupervisorBuilderFailureInput { kind: 'supervisor-builder-failure'; child: string; runId: string; reason: string; } interface RunnerSupervisorBuilderRetryInput { kind: 'supervisor-retry-builder'; child: string; stateVersion: number; } interface RunnerSupervisorReconnectInput { kind: 'supervisor-reconnect'; child: string; runId: string; } interface RunnerSupervisorCancelInput { kind: 'supervisor-cancel'; child: string; runId: string; reason: string; } interface RunnerSupervisorVerifierInput { kind: 'supervisor-verifier-result'; child: string; runId: string; verdict: 'pass' | 'fail' | 'blocked'; evidence: NativeSupervisorVerificationEvidence; } interface RunnerSupervisorChecksInput { kind: 'supervisor-checks'; child: string; runId: string; checks: NativeCheckPlan[]; materials: NativeSupervisorMaterial[]; retry_check_ids?: string[]; } interface RunnerSupervisorIntegrateInput { kind: 'supervisor-integrate'; child: string; checks: NativeCheckPlan[]; retry_check_ids?: string[]; } export type NativeRunnerInput = RunnerBuilderInput | RunnerDispatchInput | RunnerRetryChecksInput | RunnerVerifierInput | RunnerVerifierStartedInput | RunnerExecutionErrorInput | RunnerVerifierUnavailableInput | RunnerSupervisorBuilderInput | RunnerSupervisorBuilderFailureInput | RunnerSupervisorBuilderRetryInput | RunnerSupervisorReconnectInput | RunnerSupervisorCancelInput | RunnerSupervisorVerifierInput | RunnerSupervisorChecksInput | RunnerSupervisorIntegrateInput; export declare function parseNativeRunnerInput(value: unknown): NativeRunnerInput; export declare function readNativeRunnerInput(file: string, projectRoot: string): Promise; /** Classify transport bytes independently of whether their requested action is accepted. */ export declare function registerNativeRunnerInputFile(options: { paths: NativeProjectPaths; file: string; input: NativeRunnerInput; }): Promise; /** * Validate a parsed Runner input against the current persisted boundary * without recovering, reserving, writing, or starting a process. */ export declare function validateNativeRunnerInputBoundary(options: { paths: NativeProjectPaths; name: string; state: NativePortableState; input: NativeRunnerInput; projectRoot: string; }): Promise; export declare function applyNativeRunnerInput(options: { paths: NativeProjectPaths; name: string; input: NativeRunnerInput; maxVerifyFailures: number; inputFile?: string; }): Promise<{ state: NativePortableState; checks: NativePortableCheckSummary[]; runtimeCheckExecution: { disposition: "reused" | "executed"; }; requestChecks: null; verifierDispatch: { builderReview: { status: "passed"; summary: import("./native-portable-types.js").NativePortableText; } | null; builderSummary: string; runtimeChecks: { id: string; name: import("./native-portable-types.js").NativePortableText; argv_display: import("./native-portable-types.js").NativePortableText[]; argv_truncated: boolean; cwd_ref: string; status: "passed" | "failed" | "interrupted"; exit_code: number | null; duration_ms: number; }[]; builderReportedChecks: { name: import("./native-portable-types.js").NativePortableText; result: "passed" | "failed" | "not-run"; note: import("./native-portable-types.js").NativePortableText | null; }[]; builderKnownLimits: { text: string; truncated: boolean; }[]; startupInstruction: string; evidenceInstruction: string; responseInstruction: string; recoveryContext?: import("./native-portable-types.js").NativePortableText | undefined; startupInput: { kind: string; candidateId: string; verifierExecutionRef: string; }; detailsPageArgs: string[]; acceptance?: { id: string; source: string; text: string; }[] | undefined; coordination: "skill-coordinated"; change: string; candidateId: string; stateVersion: number; iteration: number; attempt: number; verifierExecutionRef: string; projectRoot: string; verificationRoot: string; changeDir: string; supervisorStateRef: string | null; briefRef: "brief.md"; specRefs: { capability: string; operation: "create" | "remove" | "modify"; ref: string | null; }[]; acceptanceCount: number; scopeCount: number; scopeIds: string[]; }; continuation: import("./native-portable-continuation.js").NativePortableContinuation; } | { state: NativePortableState; supervisorTask: { controlProjectRoot: string; returnAction: { cwd: string; commandArgs: string[]; inputOptions: { name: string; exclusiveGroup: string; template: { candidateCommit: string; child: string; runId: string; kind: string; } | { reason: string; child: string; runId: string; kind: string; } | { retry_check_ids?: string[] | undefined; checks: { id: string; name: string; executable: string; argv: never[]; cwdRef: string; timeoutMs: number; repeatable: boolean; }[]; materials: never[]; child: string; runId: string; kind: string; } | { verdict: string; evidence: { summary: string; checks: never[]; acceptance: { id: string; result: string; reason: string; }[]; receiptRef: string | null; }; child: string; runId: string; kind: string; }; }[]; }; role: "builder" | "verifier"; child: string; projectRoot: string; baseCommit: string; runId: string; acceptance?: Array<{ id: string; source: string; text: string; }>; contractHash?: string; verificationBoundary?: "child-scope-parent-reverifies-all"; checksReason?: "not-run" | "running" | "completed"; checkExecution?: { operationId: string; key: string; status: "running" | "completed" | "interrupted"; ownerPid: number; ownerIdentity?: string; activeProcess?: null | { status: "starting"; checkId: string; } | { status: "running"; checkId: string; pid: number; identity?: string; }; startedAt: string; expiresAt?: string; receiptRef?: string; machineId?: string; inputFingerprint?: string; checkStates?: import("./native-supervisor-model.js").NativeSupervisorCheckExecutionState[]; }; }; checks: never[]; requestChecks: null; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; } | { state: NativePortableState; supervisorState: NativeSupervisorState; supervisorTask: null; checks: never[]; requestChecks: null; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; } | { state: NativePortableState; supervisorState: NativeSupervisorState | null; supervisorTask: { controlProjectRoot: string; returnAction: { cwd: string; commandArgs: string[]; inputOptions: { name: string; exclusiveGroup: string; template: { candidateCommit: string; child: string; runId: string; kind: string; } | { reason: string; child: string; runId: string; kind: string; } | { retry_check_ids?: string[] | undefined; checks: { id: string; name: string; executable: string; argv: never[]; cwdRef: string; timeoutMs: number; repeatable: boolean; }[]; materials: never[]; child: string; runId: string; kind: string; } | { verdict: string; evidence: { summary: string; checks: never[]; acceptance: { id: string; result: string; reason: string; }[]; receiptRef: string | null; }; child: string; runId: string; kind: string; }; }[]; }; role: "builder" | "verifier"; child: string; projectRoot: string; baseCommit: string; runId: string; acceptance?: Array<{ id: string; source: string; text: string; }>; contractHash?: string; verificationBoundary?: "child-scope-parent-reverifies-all"; checksReason?: "not-run" | "running" | "completed"; checkExecution?: { operationId: string; key: string; status: "running" | "completed" | "interrupted"; ownerPid: number; ownerIdentity?: string; activeProcess?: null | { status: "starting"; checkId: string; } | { status: "running"; checkId: string; pid: number; identity?: string; }; startedAt: string; expiresAt?: string; receiptRef?: string; machineId?: string; inputFingerprint?: string; checkStates?: import("./native-supervisor-model.js").NativeSupervisorCheckExecutionState[]; }; } | null; checks: never[]; checkExecution: { status: "running" | "completed" | "interrupted"; operationId: string; receiptRef?: string; }; requestChecks: null; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; parentAdvance?: undefined; runtimeCheckExecution?: undefined; continuationRetryCheckIds?: undefined; } | { state: NativePortableState; supervisorState: NativeSupervisorState; supervisorTask: null; checks: NativeCheckPlan[]; requestChecks: null; verifierDispatch: null; parentAdvance: import("./native-portable-coordination.js").NativeSupervisorParentAdvance; continuation: import("./native-portable-continuation.js").NativePortableContinuation; checkExecution?: undefined; runtimeCheckExecution?: undefined; continuationRetryCheckIds?: undefined; } | { state: NativePortableState; checks: NativePortableCheckSummary[]; runtimeCheckExecution: { disposition: "reused" | "executed"; }; requestChecks: null; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; supervisorState?: undefined; supervisorTask?: undefined; checkExecution?: undefined; parentAdvance?: undefined; continuationRetryCheckIds?: undefined; } | { requestChecks: null; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; continuationRetryCheckIds?: string[] | undefined; state: NativePortableState; checks: NativePortableCheckSummary[]; runtimeCheckExecution: { disposition: "reused" | "executed"; }; continuationCheckPlans: NativeCheckPlan[]; supervisorState?: undefined; supervisorTask?: undefined; checkExecution?: undefined; parentAdvance?: undefined; } | { requestChecks: null; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; continuationRetryCheckIds?: string[] | undefined; state: NativePortableState; checks: NativePortableCheckSummary[]; supervisorState?: undefined; supervisorTask?: undefined; checkExecution?: undefined; parentAdvance?: undefined; runtimeCheckExecution?: undefined; } | { state: NativePortableState; checks: NativePortableCheckSummary[]; runtimeCheckExecution: { disposition: "reused" | "executed"; }; continuationRetryCheckIds: string[]; requestChecks: null; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; supervisorState?: undefined; supervisorTask?: undefined; checkExecution?: undefined; parentAdvance?: undefined; } | { supervisorState: NativeSupervisorState; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; state: NativePortableState; response: NativeVerifierResponse; checks: NativePortableCheckSummary[]; requestChecks: import("./native-portable-checks.js").NativePortableRequestChecksOutcome | null; supervisorTask?: undefined; checkExecution?: undefined; parentAdvance?: undefined; runtimeCheckExecution?: undefined; continuationRetryCheckIds?: undefined; } | { verifierDispatch: { builderReview: { status: "passed"; summary: import("./native-portable-types.js").NativePortableText; } | null; builderSummary: string; runtimeChecks: { id: string; name: import("./native-portable-types.js").NativePortableText; argv_display: import("./native-portable-types.js").NativePortableText[]; argv_truncated: boolean; cwd_ref: string; status: "passed" | "failed" | "interrupted"; exit_code: number | null; duration_ms: number; }[]; builderReportedChecks: { name: import("./native-portable-types.js").NativePortableText; result: "passed" | "failed" | "not-run"; note: import("./native-portable-types.js").NativePortableText | null; }[]; builderKnownLimits: { text: string; truncated: boolean; }[]; startupInstruction: string; evidenceInstruction: string; responseInstruction: string; recoveryContext?: import("./native-portable-types.js").NativePortableText | undefined; startupInput: { kind: string; candidateId: string; verifierExecutionRef: string; }; detailsPageArgs: string[]; acceptance?: { id: string; source: string; text: string; }[] | undefined; coordination: "skill-coordinated"; change: string; candidateId: string; stateVersion: number; iteration: number; attempt: number; verifierExecutionRef: string; projectRoot: string; verificationRoot: string; changeDir: string; supervisorStateRef: string | null; briefRef: "brief.md"; specRefs: { capability: string; operation: "create" | "remove" | "modify"; ref: string | null; }[]; acceptanceCount: number; scopeCount: number; scopeIds: string[]; } | null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; state: NativePortableState; response: NativeVerifierResponse; checks: NativePortableCheckSummary[]; requestChecks: import("./native-portable-checks.js").NativePortableRequestChecksOutcome | null; supervisorState?: undefined; supervisorTask?: undefined; checkExecution?: undefined; parentAdvance?: undefined; runtimeCheckExecution?: undefined; continuationRetryCheckIds?: undefined; }>; export {}; //# sourceMappingURL=native-runner-input.d.ts.map