import type { WorkerClaim } from "../autonomy/contracts.ts"; import type { LaneRecord } from "../autonomy/lane-tracker.ts"; import type { WorkerResultContract } from "../orchestration/contracts.ts"; import type { OrchestrationPanelModel } from "./orchestration-panel.ts"; export declare const WORKER_QUEUED_CAVEMAN_GUIDANCE = "CAVEMAN MODE - MANDATORY: queued is admitted durable nonterminal state, not stall or harness failure. Host starts it event-driven when dependencies, capacity, or explicit workspace reservations clear. Never poll, interrupt, or cancel a healthy running worker to force the queue. Independent machine-scope workers may run in parallel; an explicit path preserves collision fencing. If you start a fresh narrower replacement, cancel this queued agent after the replacement starts; otherwise both tasks will run."; export declare const DELEGATE_STATUS_ACTIONS: readonly ["status", "review"]; export type DelegateStatusAction = (typeof DELEGATE_STATUS_ACTIONS)[number]; export interface DelegateStatusInput { laneId?: string; } export interface DelegateStatusLaneView { laneId: string; label?: string; profileId?: string; modelRef?: string; thinkingLevel?: NonNullable; type: LaneRecord["type"]; status: LaneRecord["status"]; reasonCode?: string; unreviewed: boolean; } export interface DelegateStatusToolDetails { started: boolean; action: DelegateStatusAction; kind: "overview" | "lane" | "review" | "error"; count?: number; queued?: number; running?: number; terminal?: number; unreviewedCount?: number; unreviewedLaneIds?: readonly string[]; lanes?: readonly DelegateStatusLaneView[]; laneId?: string; status?: LaneRecord["status"]; unreviewed?: boolean; reviewed?: boolean; reviewedAt?: string; reason?: string; claimSummary?: string; outputArtifactUri?: string; outputArtifactSizeBytes?: number; changedFiles?: readonly string[]; blockers?: readonly string[]; } export type AcknowledgeWorkerReviewResult = { ok: true; requestId: string; reviewedAt: string; } | { ok: false; reason: "unknown_worker_claim" | "not_flagged" | "already_reviewed"; }; export interface DelegateStatusDependencies { getLaneRecords(): LaneRecord[]; getWorkerClaimSnapshots(): WorkerClaim[]; getWorkerResult?(laneId: string): Pick | undefined; acknowledgeWorkerReview?(requestId: string): AcknowledgeWorkerReviewResult; /** Mark only terminal records that made it into this bounded status response as exposed. */ observeExposedTerminalRecords?(records: readonly LaneRecord[]): void; } export declare function delegateStatusPanelModel(details: DelegateStatusToolDetails): OrchestrationPanelModel; export declare function executeDelegateStatusAction(action: DelegateStatusAction, input: DelegateStatusInput, deps: DelegateStatusDependencies): { content: Array<{ type: "text"; text: string; }>; details: DelegateStatusToolDetails; }; //# sourceMappingURL=delegate-status.d.ts.map