/**
 * @module        completion-judge
 * @description   Worker 完成度判定器，根据 git 产物和阶段证据判断任务是否完成
 *
 * @author        eddy
 * @organization  wykj
 * @ownership     wykj/eddy
 *
 * @created       2026-03-25
 * @updated       2026-04-03
 *
 * @role          manager
 * @layer         manager
 * @boundedContext worker-lifecycle
 */
import type { WorkerTaskPhase } from '../core/taskPrompts.js';
export interface JudgeInput {
    worktree: string;
    branch: string;
    baseBranch: string;
    outputFile: string | null;
    exitCode: number;
    logsDir?: string;
    phase: WorkerTaskPhase;
    /** Completion strategy from pipeline stage config. Overrides phase-based defaults. */
    completionStrategy?: string;
}
export interface CompletionResult {
    status: 'completed' | 'failed' | 'incomplete';
    reason: string;
}
export declare class CompletionJudge {
    /**
     * Determine whether the worker completed the task based on artifacts.
     *
     * Priority:
   * development:
   * 1. Branch already merged into target -> completed (exception path)
   * 2. Marker file (task_completed)
   * 3. Branch pushed with commits ahead
   * 4. Local commits ahead on task branch
   * 5. Otherwise incomplete/failed
   *
   * integration:
   * 1. Branch already merged into target -> completed
   * 2. Otherwise incomplete/failed
     */
    judge(input: JudgeInput): CompletionResult;
    private isMergedToBase;
    private log;
}
//# sourceMappingURL=completion-judge.d.ts.map