You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ca9d90a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(analyst): recover the echo only from transient transport failures; never persist a transient fatal error
- Recovery is structural, not phrase-based: an echo failure is recoverable only
when it is an `APIError` with HTTP 5xx, 429 or 408, or a statusless
network/stream failure (connection reset, socket timeout, idle watchdog, SDK
retryable request failure). Any 4xx, any structured policy, content, safety or
moderation code in the body, `ProviderAuthError`, and local errors raised
before the provider request stay fatal. Error normalisation preserves the
structured code ahead of body truncation and keeps a policy decision with
overflow-looking text fatal.
- A context overflow on the echo step after a completed commit is recoverable
because the committed text already exists: the processor records the cause as
`metadata.answer_commit_echo_error` instead of setting `error` or publishing
`session.error`, and the loop publishes the committed text directly. This fixes
the headless `--max-turns 1` scenario where the overflow was published as a
fatal event before the recovery guard ran and the run exited 1.
- The `--max-turns` exemption is cleared at every distinct persisted real-request
boundary, including a request submitted by another attached client, and the
step-start path never awaits a session fetch.
- `rows.precision` with duplicate column labels is rejected; duplicates without
precision render unchanged.
- Tests: 503 and socket reset recover without fatal events; 400 structured policy
denial and 403 stay fatal; local pre-request failure stays fatal; overflow on
the echo publishes the committed text without fatal events; policy code beyond
the body limit survives normalisation; over-budget step aborts without any
session fetch; new attached-session request clears the exemption;
`--max-turns 1` publishes the committed output after an echo overflow; unique
column labels required for precision.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
0 commit comments