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:
@@ -428,3 +428,31 @@ blocked-class cause distribution and the transience of transport errors are
|
||||
hypotheses, not measurements. Raw captures are under
|
||||
`/Users/alan/.local/share/pipelines/data/artifacts/222/2/` and
|
||||
`/Users/alan/.local/share/pipelines/data/artifacts/222/4/` (outside the repo).
|
||||
|
||||
## 7. Transport and repair recovery (source-level, 2026-10-17)
|
||||
|
||||
Read-only pass over the §1 diagnostics after the harness-transport and
|
||||
format-repair change. No run was started, retried or cancelled; no server, ntfy,
|
||||
lane or device was restarted or redeployed; no provider inference was performed.
|
||||
Each shape is mapped to the code path that produces it. The per-run
|
||||
pre-admission vs post-admission and read-only vs mutating split was **not**
|
||||
re-inspected with `pipelines inspect`, so every per-run row is labelled *not
|
||||
verified* and the counts are not summed into a "recovered" total.
|
||||
|
||||
| failure shape (§1 class, quoted diagnostic) | run ids | code path | can recover | remains unrecoverable |
|
||||
|---|---|---|---|---|
|
||||
| execution error at readback (`OpenCode agent reported an execution error`) | 73,74,75,77,80,149,150,152,195,202 | post-admission `completedAgentResult` / `opencode.ExecutionError` | a stage that is explicit read-only may retry within `retries`(*not verified per run*) | a mutating/legacy stage never replays admitted work; a non-transient provider error stays terminal |
|
||||
| `context deadline exceeded` | 33,36,38,59,101,138 | attempt-boundary deadline, or a transport call that expired | a deadline during an in-flight request now keeps the transport cause and, when pre-admission, retries for any stage; a read-only stage retries a post-admission one | a genuine stage overrun on a mutating/legacy stage stays terminal; whether each run was a hung call or a real overrun is *not verified* |
|
||||
| readback failure (`final assistant readback had no completed result`) | 161 | post-admission `completedAgentResult` | explicit read-only stage may retry | mutating/legacy stage never replays |
|
||||
| native V1 `/wait` command failed (`CLI exit code 1`) | 4 | post-admission `openCodeError` on `/wait` | explicit read-only stage may retry | mutating/legacy stage never replays |
|
||||
| repair timeout (`isolated format repair failed … context deadline exceeded`) | 55,81,174,179,183,221 | `repairDeadline` (payload bytes + stage timeout, floored, capped, clamped to remaining − margin) | a slow-but-repairable payload now gets a longer bounded budget | run 55's payload is the ambiguous unescaped-quote/colon class (byte offset 7837) → unrecoverable; any payload past the 32 KiB bound stays unrecoverable |
|
||||
|
||||
Mapping notes: the execution-error and readback shapes are read back *after* the
|
||||
prompt was admitted, so they are post-admission transport failures and the
|
||||
no-tool-replay rule keeps them terminal on a mutating stage. The
|
||||
`session_transport_command_failed` shape (run 4) is the native V1 `/wait` call
|
||||
issued after the prompt, not a session-create reach failure. The repair-timeout
|
||||
shapes are `FINAL RESULT VALIDATION` (repair-stage), not transport. The new code
|
||||
also reports an unknown provider execution-error name as a bounded sanitized
|
||||
identifier plus any HTTP status, so future occurrences of runs 73–202 are more
|
||||
precisely diagnostic even when they are not retried.
|
||||
|
||||
Reference in New Issue
Block a user