fix: make h2 patch repair failures diagnosable

This commit is contained in:
thanhnv
2026-07-18 12:04:32 +07:00
parent 61a8253679
commit 659ed09839
7 changed files with 120 additions and 9 deletions
@@ -59,6 +59,7 @@ export interface GoalJob {
context_manifest?: { files: number; characters: number; truncated: boolean; path?: string };
approval?: { id: string; status: string; action: string };
reviewer_attempts?: GoalReviewerAttempt[];
patch_repair_attempts?: GoalPatchRepairAttempt[];
patch_artifact?: { path: string; sha256: string; files: string[]; bytes: number; status: string; preview?: string; approval_id?: string; applied_at?: string; applied_by?: string };
verification?: Array<{ command: string; exit_code: number; output: string }>;
}
@@ -75,6 +76,14 @@ export interface GoalReviewerAttempt {
latency_ms: number;
}
export interface GoalPatchRepairAttempt {
attempt: number;
provider: string;
model: string;
status: 'pass' | 'failed';
reason: string;
}
interface ModelConnection {
id: string;
kind: 'local' | 'cloud' | 'gateway';