/** SDK-owned platform module. This implementation is maintained in goodvibes-sdk. */
/**
 * Structured completion reports — per-archetype output contracts.
 * Agents include these in their final output. The WrfcController extracts them.
 */
/** Base fields shared by all completion reports. */
export interface BaseCompletionReport {
    version: 1;
    archetype: string;
    summary: string;
    wrfcId?: string | undefined;
}
/**
 * A single constraint extracted from the task prompt or inherited from a parent chain.
 */
export interface Constraint {
    id: string;
    text: string;
    source: 'prompt' | 'inherited';
}
/**
 * A reviewer's finding about whether a specific constraint was satisfied.
 */
export interface ConstraintFinding {
    constraintId: string;
    satisfied: boolean;
    evidence: string;
    severity?: 'critical' | 'major' | 'minor';
}
/** Engineer agent completion report. */
export interface EngineerReport extends BaseCompletionReport {
    archetype: 'engineer';
    gatheredContext: string[];
    plannedActions: string[];
    appliedChanges: string[];
    filesCreated: string[];
    filesModified: string[];
    filesDeleted: string[];
    decisions: Array<{
        what: string;
        why: string;
    }>;
    issues: string[];
    uncertainties: string[];
    /** Constraints enumerated from the task prompt (or inherited from parent chain). Defaults to [] when absent. */
    constraints?: Constraint[] | undefined;
}
/** Reviewer agent completion report. */
export interface ReviewerReport extends BaseCompletionReport {
    archetype: 'reviewer';
    score: number;
    passed: boolean;
    dimensions: Array<{
        name: string;
        score: number;
        maxScore: number;
        issues: string[];
    }>;
    issues: Array<{
        severity: 'critical' | 'major' | 'minor' | 'suggestion';
        description: string;
        file?: string | undefined;
        line?: number | undefined;
        pointValue: number;
    }>;
    /** Per-constraint satisfaction findings from the reviewer. Defaults to [] when absent. */
    constraintFindings?: ConstraintFinding[] | undefined;
}
/** Tester agent completion report. */
export interface TesterReport extends BaseCompletionReport {
    archetype: 'tester';
    testsWritten: string[];
    testsPassed: number;
    testsFailed: number;
    coverage?: {
        lines: number;
        branches: number;
        functions: number;
    };
    failures: Array<{
        test: string;
        error: string;
    }>;
}
/** Generic completion report for other archetypes. */
export interface GenericReport extends BaseCompletionReport {
    /** Archetype name. For non-standard archetypes (not engineer/reviewer/tester). */
    archetype: string;
    result: string;
}
export type CompletionReport = EngineerReport | ReviewerReport | TesterReport | GenericReport;
export declare function parseCompletionReport(rawOutput: string): CompletionReport | null;
//# sourceMappingURL=completion-report.d.ts.map