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:
@@ -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
|
||||
|
||||
@@ -190,9 +190,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**.
|
||||
@@ -200,6 +205,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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user