Merge main (findings ledger, loop continuation) into usage-limit branch

Keeps the findings ledger, extra visits and on_exhausted=decide alongside the
run budget, failure classes, quota parking and error-loop backoff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 14:35:54 +00:00
66 changed files with 3565 additions and 148 deletions
+5
View File
@@ -546,6 +546,11 @@ type RunDetail struct {
// run's stages, stage services and checks ran with: files and variable
// names only, never values. Absent for runs that predate it.
Environment *RunEnvironment `json:"environment,omitempty"`
// Findings is the run's runner-owned findings ledger, in ID order.
Findings []Finding `json:"findings,omitempty"`
// VisitGrants are extra visits per stage granted by a retry with
// --extra-visits or a "continue" exhaustion decision.
VisitGrants map[string]int `json:"visit_grants,omitempty"`
}
// RunEnvironment is the directory environment a run resolved for its