Skip fallback needs complete, empty evidence; capture lists over-budget changes

The server skip fallback for stages with a skipped edge now applies only
when every earlier visit recorded a complete file-change capture with no
changed files and no image artifact. Any change (no repo-specific UI path
or extension list), any partial/unavailable/missing capture, a human
decision or a checkpoint-retry prefix runs the model. auto_skip=false opts
a stage out. The fallback verdict names the server fallback.

Capture compares over-budget text by hash and, in Git, lists paths it
could not compare when their git status changes, marked no_patch, so a
large workspace no longer records files: [] for a real edit. Run detail
gains a warnings list for partial/unavailable captures, also printed by
inspect on stderr.
This commit is contained in:
2026-11-04 12:56:40 +00:00
parent fa6c0864db
commit f16d61cdfa
14 changed files with 660 additions and 188 deletions
+7
View File
@@ -1001,6 +1001,13 @@ func (a App) Run(ctx context.Context, args []string) error {
if err != nil {
return err
}
if command == "inspect" && r.RunDetail != nil {
// Warnings are also in the JSON; stderr keeps them visible to a reader
// of the human stream without corrupting machine-readable stdout.
for _, warning := range r.RunDetail.Warnings {
a.notice("warning: " + warning)
}
}
return a.output(r.RunDetail)
case "decide":
if len(pos) < 1 || len(pos) > 2 {