Skip to content

fix(cron): stop retrying permanent command failures as provider overloads - #126763

Merged
steipete merged 2 commits into
mainfrom
codex/autoqa-cron-529-retry-20260820
Aug 20, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/autoqa-cron-529-retry-20260820

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where scheduled command jobs were retried as temporary provider failures when their permanent errors happened to contain numbers or retry-related words, while genuine provider overloads still need their existing bounded retries.

Why This Change Was Made

Cron command execution now records the existing authoritative permanent-or-timeout classification at its producer, and the detached execution owner preserves that fact through its normal result projection. Unclassified overload text is recognized only when 529 is actually an HTTP/provider status or documented overload response, matching the existing rate-limit and server-error classifiers without changing shared provider classification.

The incidental overload match dates to ebfb834dcdad5f09675d76af05fb80d3ecfd9fde (#85344). Avoiding retries solely by adding another scheduler guard would retain the producer ownership gap and still misclassify sibling execution paths; carrying the existing closed classification through the canonical outcome is the root-cause repair.

User Impact

One-shot automations with permanent command failures stop immediately instead of running again. Recurring automations return to their normal schedule instead of entering unnecessary overload backoff. Real command timeouts and genuine HTTP/provider overload failures continue to retry as before, including existing provider-specific classifications.

Evidence

  • Before repair, eleven independent owner/scheduler regressions fail: incidental 529 prose and paths incorrectly retry, command exits and missing executables have no producer-owned permanent classification, and detached command results discard existing classification.
  • Exact-head producer, scheduler projection, one-shot/recurring, and adjacent pacing regression suites: 71/71 tests passed.
  • Complete provider classification golden corpus: 605/605 passed.
  • Assertion-safety ratchet and max-lines ratchet both pass; six changed files pass oxfmt --check.
  • Fresh authenticated full-branch Codex review: clean, with no accepted or actionable findings.
  • Independent complete-branch architectural review: clean; existing public configuration, provider classification contracts, persistence schema, security boundaries, and failure notification shapes remain unchanged.
  • Production change: +14/-2, net +12 lines, justified by recording authoritative command failure disposition at its execution owner and preserving it across the existing detached execution boundary; tests +176/-2, net +174 lines.
  • Exact tested head: 0a5785bdd27e8a9fb1d0478ee77ac18c481d2a28.

@clawsweeper

clawsweeper Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 20, 2026
@steipete
steipete marked this pull request as ready for review August 20, 2026 17:41
@steipete
steipete merged commit 4963599 into main Aug 20, 2026
290 checks passed
@steipete
steipete deleted the codex/autoqa-cron-529-retry-20260820 branch August 20, 2026 17:53
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 21, 2026
…oads (openclaw#126763)

* fix(cron): avoid retrying incidental overload status codes

* fix(cron): preserve authoritative command failure classification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant