stage: retry pre-admission harness reach failures and widen repair deadline
Treat a failure to reach the harness before any prompt or tool call is admitted (connecting or creating the session) as a distinct retryable reach failure, so a transport blip at the first stage no longer ends a mutating run; keep post-admission readback/poll/agent failures retried only on an explicit read-only stage and never replay admitted tool work. Preserve the true cause when the context is already done (join ctx.Err with the typed transport error) and report a sanitized unknown provider error name/status instead of a blanket summary. Make the isolated format-repair deadline proportional to the stage timeout (floored, capped and clamped to remaining minus a margin) so a slow-but-repairable result is recovered without ever extending the stage deadline; the bounded ladder, value guard, deny-all formatter session, cumulative usage accounting and no-tool-replay rule are unchanged. Update docs/model-results.md, docs/pipeline-performance-review.md and the packaged skill references; add stage, opencode and server fixtures.
This commit is contained in:
@@ -350,7 +350,11 @@ admitted tool-using stage: completed edits and tool side effects are retained an
|
||||
not undone, so a full retry repeats work. An explicit read-only stage is the one
|
||||
exception: a malformed result there mutates nothing, so it may be re-emitted up
|
||||
to `retries` with its `format_repairs` evidence retained, and a post-admission
|
||||
deadline or transport failure may be retried. A stage whose tools include
|
||||
deadline or transport failure may be retried. A failure to reach the harness
|
||||
before any prompt or tool call is admitted (connecting, or creating the session)
|
||||
replays nothing, so it is retried within `retries` for any stage, mutating or not.
|
||||
A stage whose tools include
|
||||
`edit`/`shell`, or that has no tools block (the legacy read/glob/grep/edit/shell
|
||||
bundle), is never replayed. Neither category exposes provider/model bodies or
|
||||
credentials.
|
||||
credentials. The isolated formatter's deadline is proportional to the stage
|
||||
timeout and clamped so it never extends the stage's own deadline.
|
||||
|
||||
Reference in New Issue
Block a user