Skip to content

fix(agents): bound provider retry floors by run deadline - #145348

Closed
nmotyl wants to merge 6 commits into
openclaw:mainfrom
nmotyl:repair/fw32920-upstream-main-successor
Closed

nmotyl wants to merge 6 commits into
openclaw:mainfrom
nmotyl:repair/fw32920-upstream-main-successor

Conversation

@nmotyl

@nmotyl nmotyl commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Provider Retry-After floors could outlive an agent run's remaining deadline, keeping a controller asleep after the run was already supposed to end. The retry path now caps provider-requested delay by the active run deadline while preserving typed retry failures and controller isolation.

Summary

  • bound provider Retry-After floors by the active run deadline
  • preserve typed retry failure propagation and per-controller isolation
  • cover cancellation, observer recheck, and real-timer lifecycle behavior

Evidence

  • owning suites: 73 passed
  • sibling lifecycle/fallback suites: 233 passed
  • independent exact-SHA review: PASS
  • Mable QA gate: PASS (FW-329-20)

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. agents Agent runtime and tooling size: S labels Sep 11, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the contribution. This PR still needs the requested real-behavior proof, and the branch has been idle since that ask.

Close as stalled and unproven: the external contributor received a dated proof request over three weeks ago, the head has had no commit or check activity since September 12, and no maintainer engagement or protected exemption is present.

So I’m closing this for now to keep the review queue honest. Please reopen or open a fresh PR with real-behavior proof (a live run, logs, or a reproducible validation transcript) and it will be reviewed again.

Review details

Best possible solution:

A renewed deadline repair should consume execution-owned timing, preserve the original accounting target, and coexist with the merged operator delay cap.

Do we have a high-confidence way to reproduce the issue?

Yes, source establishes the long-floor retry path and the branch's timing and accounting counterexamples; no runtime reproduction was executed during this read-only review.

Is this the best way to solve the issue?

No, the deadline criterion is useful, but deriving a competing wall-clock budget and replacing the original accounting snapshot violates the existing owners' contracts.

Security review:

Security review cleared: No concrete security or supply-chain regression was found; existing writer checks reject mismatched accounting targets.

AGENTS.md: found and applied where relevant.

What I checked:

  • Pinned introduction: Reviewed the merge-base-to-head delta, which introduces the deadline calculation and settlement snapshot change. Raw head records confirm the two supplied parents; no pinned test merge is available, so no claim is made that the branch removes current-main changes. (a84d41d03190)
  • Expired proof window: The supplied timeline records status: 📣 needs proof on September 11 at 22:29:52 UTC. The retained completed review explicitly requested production-runner transport evidence. The current captured body lists test totals and review/QA PASS claims without an observed after-fix transport result; the live REST body matches that snapshot. (a84d41d03190)
  • Verified head inactivity: The head commit is dated September 12 at 13:33:54 UTC. All 211 check runs were read across three REST pages; their latest activity is September 12 at 13:54:50 UTC. The combined-status endpoint contains no statuses. This exceeds the required 14-day inactivity window. (a84d41d03190)
  • Cleanup eligibility: Live REST reads confirm CONTRIBUTOR association, no assignees or requested reviewers, no submitted reviews, and only ClawSweeper bot comments. The PR is non-draft and has no protected, human-review, autofix, automerge, proof-sufficient, or proof-override label.
  • Available proof is mocked: The added runner scenario replaces the production attempt and failure classifiers; the cancellation scenario replaces sleep with an abort-only promise. Controller tests mock sleep or use fake timers. These protect useful contracts but do not exercise a real transport client through the production runner. (src/agents/embedded-agent-runner/run.retry-lifecycle.test-support.ts:104, a84d41d03190)
  • Prior timing concern remains: The introduced calculation subtracts all wall-clock time since admission. The execution timeout owner explicitly preserves unused budget during approval waits and grants compaction grace. Consequently, a short retry after a long approval pause can be refused despite remaining execution time. The prior timing finding remains unresolved. (src/agents/embedded-agent-runner/run/failover-retry-controller.ts:266, a84d41d03190)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • azuretek: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Codex review notes: model internal, reasoning medium; reviewed against a436d044e01f.

@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 11, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. label Sep 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper recorded closeout evidence for this proposed close.

  • Action: close remains subject to final live verification.
  • Close reason: stalled PR without requested real-behavior proof.
    Review evidence: durable ClawSweeper review.

@clawsweeper clawsweeper Bot closed this Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant