import type { ToolDefinition } from '@deepseek-ai/dsh-tools'; import type { PartnerConcern } from './concern-domain.js'; import type { SourceReadReceipt } from './concern-knowledge-source.js'; export interface ObservationWorkflowStep { id: string; phase: 'check' | 'execute'; instruction: string; source: string; method: string; criterion: string; status: 'pending' | 'completed' | 'blocked'; evidence: string; } export interface ObservationWorkflow { version: 1; sources: Array<{ key: string; revision: string; }>; steps: ObservationWorkflowStep[]; } export declare const WORKFLOW_TOOL = "heartbeat_check_workflow"; /** Plan state belongs to a check, not the task board. Re-read sources on every run. */ export declare class ObservationWorkflowTracker { private readonly concerns; private readonly pages; private readonly plans; constructor(concerns: PartnerConcern[]); readonly read: SourceReadReceipt; private recordPage; private sources; get(id: string): ObservationWorkflow | undefined; /** Validate the whole batch before changing state. Final replies use the same * evidence contract as the tool, without spending another model round. */ updateChecks(id: string, updates: unknown): void; incomplete(id: string): string | undefined; tool(): ToolDefinition; } export declare const observationWorkflowInstruction: string; //# sourceMappingURL=observation-workflow.d.ts.map