Merge: no UI-review auto-skip without complete change capture; capture lists over-budget changes

# Conflicts:
#	internal/protocol/runs.go
This commit is contained in:
2026-11-04 12:58:45 +00:00
14 changed files with 660 additions and 188 deletions
@@ -82,6 +82,14 @@ and accepts integers 0–100; explicit 0 disables execution retries. Optional
`timeout` defaults to `1h` per attempt and accepts positive durations such as
`30m` or `90s`.
A stage that declares a `skipped` edge (for example a UI reviewer) is eligible
for the server skip fallback: when every earlier visit's file-change capture was
complete and recorded no changed files or screenshots, the server completes the
stage as `skipped` without a model call (`reason_source: fallback`). Any recorded
change or incomplete capture runs the model. Optional `auto_skip=false` (values
`true`/`false`, default `true`) always runs the model. Read
`references/operations.md` ("Server skip fallback") for the exact rule.
Optional `reasoning_effort=high` selects a model's reasoning/thinking level for
this stage. Values are `default`, `none` (alias `off`), `minimal`, `low`, `medium`,
`high`, `xhigh`, or `max`. Omission or `default` preserves the harness/model
+21 -3
View File
@@ -191,9 +191,14 @@ The stage's File changes section highlights added/removed lines and hunk headers
node_modules and common environment/key/credential/database paths are excluded.
This is path-based protection, **not secret-content scanning**. Patches may still
contain sensitive text; never publish them without approval.
- Limits: 10,000 entries, 1 MiB/file, 32 MiB/snapshot, five-second snapshot context,
5,000 combined text lines, 64 KiB/patch, 128 KiB serialized file evidence/visit.
Missing/skipped/truncated captures must be described as partial/unavailable.
- Limits: 10,000 entries, 1 MiB/file and 32 MiB/snapshot of retained text,
256 MiB/hashed file, five-second snapshot context, 5,000 combined text lines,
64 KiB/patch, 128 KiB serialized file evidence/visit. Text over the 1 MiB or
32 MiB budget is still compared by hash, and in Git a path the snapshot could
not compare is listed when its `git status` entry changes; such entries carry
`no_patch: true` (and `truncated`) with no patch, and the visit is `partial`.
Missing/skipped/truncated captures must be described as partial/unavailable;
`inspect` adds a run-level `warnings` entry naming every partial/unavailable visit.
- Failed/canceled stages retain changes when execution returns; unconfirmed agent
cleanup is partial. Crashes may have no after-capture. Historical visits say
not recorded—**never infer no edits from absent evidence**.
@@ -201,6 +206,19 @@ The stage's File changes section highlights added/removed lines and hunk headers
changes outside scope, ignored new files and changes reverted before capture can
be absent or mixed in. Capture failure does not change the declared run verdict.
### Server skip fallback (`skipped` edge)
A non-human stage that declares a `skipped` edge is completed by the server, with
no model call, and routed along `skipped` only when **every** earlier visit of the
run recorded `file_changes` with status `complete`, none recorded any changed file,
and none captured an image artifact. The step's verdict reason starts
"Server fallback skip (no model run):" with `reason_source: fallback`. Any changed
file (no path or extension is treated as "not UI"), any partial/unavailable or
missing capture (crash, historical row, human decision, checkpoint-retry prefix)
runs the model, which may still answer `skipped` itself. `auto_skip=false` in the
stage's `configs` disables the fallback for that stage. Never describe a fallback
skip as a model judgement, and never treat it as evidence that nothing changed.
Do not add model output fields, new stages or extra model calls merely to obtain
file diffs: current capture is server-owned. Do not promise full files/rollback.