Skip to content

Keep shared transient retries active during structured-response formatting #995

Closed

Description

@yashrajp22

The shared structured-response path can make one lossless formatting request after an otherwise complete assessment has punctuation damage. _invoke_batch_with_retries and its async counterpart return the formatting call from inside an exception handler, so transient API/connection/rate/service errors raised by that operation bypass the outer retry handlers.

Expected behavior:

  • Retry only the same formatting operation for existing allowlisted transient failures, within the shared provider/global attempt and deadline budgets.
  • Preserve the one semantic-preserving formatting transition and original assessment content.
  • Stop immediately on malformed, refused, truncated, invalid-schema or content-changing formatting responses.
  • Preserve retry-after, cancellation, no-retry overrides, native adapter retry ownership, findings and terminal error classification.
  • Cover sync and async callers with deterministic SDK transport failures, and verify real-skill/provider behavior separately.

Main inspected: e14c450. This is a source-proven orchestration gap; it does not claim a particular historical model error was caused by a provider outage.

Activity

  1. added a commit that references this issue on Nov 4, 2026
    a1f05f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions