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
Add provider-aware partial retry with preserved lineage #368
Provider failures have different operational meanings. HTTP 429 concurrency/quota responses, HTTP 529 overload, authentication/configuration failures, and network failures should not share one blind retry policy. Manual provider switches also lose the lineage needed to determine whether the same inputs were reviewed.
Across 145 retained OCR attempts, 19 partial runs carried HTTP 429 markers and six carried HTTP 529 markers. PR 306 added resumable sessions and failed-file checkpoints, but provider transitions, changed-input identity, and typed retry policy are not yet complete.
Desired behavior
Add provider-aware retry of only failed work while preserving immutable input identity and explicit retry lineage.
Acceptance criteria
Classify 429, 529, authentication/configuration, timeout, and network failures separately.
Support a provider-specific concurrency budget.
Apply bounded exponential backoff with jitter and honor server retry headers where present.
Retry only failed files/subtasks under the same immutable run manifest.
Cross-provider fallback is explicit configuration, never implicit.
Lineage records parent run/session, source and target provider/model, attempt number, changed configuration/inputs, reused files, completed files, and remaining failures.
A retry cannot create a storm of parallel duplicate requests.
Terminal completeness remains partial until all selected files complete or are explicitly waived.
Hi @hanhaiqingchuan , I noticed this issue is assigned to you. I have a possible fix for this. Are you still working on it? If not, I'd like to submit a PR.
Hi @hanhaiqingchuan , I noticed this issue is assigned to you. I have a possible fix for this. Are you still working on it? If not, I'd like to submit a PR.
Hi, thanks for checking. I’m working on this issue in coordination with @hanhaiqingchuan , and the implementation is already underway. I’m planning to submit a PR soon. Thanks for understanding!
Hi @hanhaiqingchuan , I noticed this issue is assigned to you. I have a possible fix for this. Are you still working on it? If not, I'd like to submit a PR.
Hi, thanks for checking. I’m working on this issue in coordination with @hanhaiqingchuan , and the implementation is already underway. I’m planning to submit a PR soon. Thanks for understanding!
#785 and #786 deliver the request observability and the trusted partial resume / transition lineage described in #368. #787 was closed after verifying that the official SDKs already satisfy its retry-policy criteria, and that a fixed shared admission limit adds no constraint on the main review path, which the file-level semaphore already bounds.
The one piece of #368 not covered above is adaptive admission — tightening concurrency for a cooling-off window after observing 429s. That needs real rate-limit data to set a policy, so I have not filed it speculatively. Happy to open a focused issue if you see aggregate retry pressure worth acting on.
The immutable run-manifest and terminal coverage foundation remains #367.
Adding a caller's perspective with two asks that would complete this for us:
Retry backoff vs --timeout: the help text says the task budget includes "LLM requests and retries" and scales with effort rounds. When 429/529 backoff absorbs part of that budget, a surviving run can still be cut short even though nothing else failed. Would you consider capping or accounting retry waits explicitly (e.g. a documented separate retry budget), so a burst fails fast instead of eating the review budget?
Budget receipt: a small JSON block in the result — task timeout, actual retry wait, per-group completed request counts, truncated groups/files — would let callers show authors why a run was cut, instead of reverse-engineering session journals.
Context from our side (aggregated private-repo numbers, no code): we run OCR behind a caller-side bounded 120s retry window around a provider that sometimes reports transient overload as HTTP 200 with a non-zero {code} body. Deterministic failures (auth 401/403, model-not-configured 112) must stay non-retryable; unknown codes have to be treated as transient and can burn the window on unrecoverable errors. The error-code classification in this issue is exactly what we need; the two asks above are about making the budget math observable so the classification pays off.
Activity
hanhaiqingchuan commentedon Jul 15, 2026
I'd like to work on this. Could you please assign it to me?
Anon2Tokyo commentedon Aug 7, 2026
Hi @hanhaiqingchuan , I noticed this issue is assigned to you. I have a possible fix for this. Are you still working on it? If not, I'd like to submit a PR.
Gongyl01 commentedon Aug 7, 2026
Hi, thanks for checking. I’m working on this issue in coordination with @hanhaiqingchuan , and the implementation is already underway. I’m planning to submit a PR soon. Thanks for understanding!
Anon2Tokyo commentedon Aug 7, 2026
ok
Gongyl01 commentedon Aug 8, 2026
Sub-issue status
#785 and #786 deliver the request observability and the trusted partial resume / transition lineage described in #368. #787 was closed after verifying that the official SDKs already satisfy its retry-policy criteria, and that a fixed shared admission limit adds no constraint on the main review path, which the file-level semaphore already bounds.
The one piece of #368 not covered above is adaptive admission — tightening concurrency for a cooling-off window after observing 429s. That needs real rate-limit data to set a policy, so I have not filed it speculatively. Happy to open a focused issue if you see aggregate retry pressure worth acting on.
The immutable run-manifest and terminal coverage foundation remains #367.
test(cmd): consolidate retry report tests by responsibility
Feat/llm retry report:SDK retry-attempt observability for review (#785)…
Feat/llm retry report:SDK retry-attempt observability for review (ali…
feat(llm): add opt-in provider-wide in-flight limit for review runs
feat(llm): add opt-in provider-wide in-flight limit for review runs
feat(llm): add opt-in provider-wide in-flight limit for review runs
feat(llm): add opt-in provider-wide in-flight limit for review runs
cc7gs commentedon Nov 27, 2026
Adding a caller's perspective with two asks that would complete this for us:
Retry backoff vs
--timeout: the help text says the task budget includes "LLM requests and retries" and scales with effort rounds. When 429/529 backoff absorbs part of that budget, a surviving run can still be cut short even though nothing else failed. Would you consider capping or accounting retry waits explicitly (e.g. a documented separate retry budget), so a burst fails fast instead of eating the review budget?Budget receipt: a small JSON block in the result — task timeout, actual retry wait, per-group completed request counts, truncated groups/files — would let callers show authors why a run was cut, instead of reverse-engineering session journals.
Context from our side (aggregated private-repo numbers, no code): we run OCR behind a caller-side bounded 120s retry window around a provider that sometimes reports transient overload as HTTP 200 with a non-zero
{code}body. Deterministic failures (auth 401/403, model-not-configured 112) must stay non-retryable; unknown codes have to be treated as transient and can burn the window on unrecoverable errors. The error-code classification in this issue is exactly what we need; the two asks above are about making the budget math observable so the classification pays off.