/** * Health check: Status inference. * * Suggests status updates for agents based on conservative rules. * Inference is suggest-only; never auto-applies. */ import type { ServerConfig } from '../config.js'; import type { AgentFrontmatter } from '../agent-parser.js'; /** * A single status inference suggestion. */ export interface StatusInferenceEntry { /** Task ID (planFolder#agentNumber) */ taskId: string; /** Agent number */ agentNumber: string; /** Agent title */ agentTitle: string; /** Path to agent file */ agentPath: string; /** Current status in frontmatter */ currentStatus: AgentFrontmatter['status']; /** Suggested status */ suggestedStatus: AgentFrontmatter['status']; /** Confidence 0–1 */ confidence: number; /** Human-readable reasons */ reasons: string[]; } /** * Result of an inference run. */ export interface InferStatusResult { suggestions: StatusInferenceEntry[]; agentsChecked: number; error?: string; } /** * Infer status suggestions for a plan's agents using conservative rules. * * Rules (suggest only, never auto-apply): * - Any → BLOCKED: Body contains "blocked" or "waiting" (case-insensitive) * - WIP → PASS: All dependencies are PASS (low confidence, no drift check here) * * @param config - Server configuration * @param planId - Plan number or name * @param options - Optional agent filter and min confidence * @returns Inference result with suggestions */ export declare function inferStatus(config: ServerConfig, planId: string, options?: { agentNumber?: string; minConfidence?: number; }): InferStatusResult; //# sourceMappingURL=health-inference.d.ts.map