import type { Incident, ResolutionResult } from '../../resolver/types.js'; import type { CorrelatedIncident, TriagedComplaint } from '../types.js'; import { DomainProfile } from '../domain.js'; /** What the pipeline needs from a bug-fix loop. BugResolver satisfies it. */ export interface CodeFixer { resolve(incident: Incident): Promise; } /** One systemic incident handed to the bug-fix loop. */ export interface CodeFixHandoff { /** The correlated incident this fix is for. */ incidentId: string; /** What the bug-fix loop was given. */ incident: Incident; status: 'running' | ResolutionResult['status']; startedAt: Date; finishedAt?: Date; result?: ResolutionResult; } /** * An incident points at a code bug when its category is marked as a software defect and the operational * signal does not explain it: a confirmed bottleneck means the cause is operational, not code. */ export declare function isSoftwareDefect(incident: CorrelatedIncident, profile: DomainProfile): boolean; /** * Describes a systemic incident as a bug report. Complaints that failed the guardrails are left out, * and the rest are quoted as untrusted evidence: they reach a model that proposes code changes. */ export declare function toBugIncident(incident: CorrelatedIncident, complaints: TriagedComplaint[], profile: DomainProfile): Incident; //# sourceMappingURL=index.d.ts.map