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:
@@ -3,6 +3,7 @@ package cli
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"sort"
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
|
||||
@@ -54,6 +55,19 @@ func inspectSummary(d *protocol.RunDetail) string {
|
||||
if next := waitingHint(d); next != "" {
|
||||
b.WriteString("\n" + next + "\n")
|
||||
}
|
||||
b.WriteString(inspectFindings(d))
|
||||
if len(d.VisitGrants) > 0 {
|
||||
keys := make([]string, 0, len(d.VisitGrants))
|
||||
for key := range d.VisitGrants {
|
||||
keys = append(keys, key)
|
||||
}
|
||||
sort.Strings(keys)
|
||||
parts := make([]string, 0, len(keys))
|
||||
for _, key := range keys {
|
||||
parts = append(parts, fmt.Sprintf("%s +%d", key, d.VisitGrants[key]))
|
||||
}
|
||||
b.WriteString("\nextra visits: " + strings.Join(parts, ", ") + "\n")
|
||||
}
|
||||
if next := quotaWaitLine(d); next != "" {
|
||||
b.WriteString("\n" + next + "\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user