Skip to content

fix(cron): inherit authorized fallback policy for existing jobs - #196775

Closed
fuller-stack-dev wants to merge 14 commits into
mainfrom
openclaw/cron-authorized-fallback
Closed

fuller-stack-dev wants to merge 14 commits into
mainfrom
openclaw/cron-authorized-fallback

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Why

Scheduled jobs should recover from quota errors and outages through their configured fallback chain, without a manual migration or an unintended account or billing change.

What changed

  • Existing and new jobs automatically snapshot eligible, already-authorized model/account/runtime policy at admission. Explicit overrides, including an empty fallback list, stay in force.
  • Preserve recorded account lifetimes and check revocation through execution and settlement. Loss of admitted authority stops the run.
  • Remove the separate CLI, bulk, and editor review controls. Run-local conversion does not rewrite stored job definitions.

Scope

Cron private inference bindings/grants and persistence; isolated and session-target admission; embedded/CLI execution; Doctor diagnostics; Gateway/protocol, CLI/editor, documentation, and focused regressions.

Tradeoffs

Unavailable or ambiguous optional accounts can be skipped without blocking a healthy primary. Recorded authority loss remains terminal: the run cannot escape it by switching providers. This is broader than the provider-scoped reliability repair in #196539, which selects other providers' credentials live and lets their candidates continue after a recorded-provider refusal.

Blast Radius

Existing and new scheduled jobs. Automatic conversion preserves IDs, schedules, enabled state, payloads, and delivery. Tool, session, and sandbox restrictions remain in force. No deployment or live-state migration is included.

Verification

  • Source-bound focused authorization/revocation, placement, CLI/Gateway, Doctor, and editor/browser evidence retained; browser keyboard coverage uses a mocked Gateway.
  • Native core/UI typing and core lint accepted; the final targeted Doctor-test typecheck passed with no diagnostics. Earlier build evidence is historical, not a final-head build rerun.
  • No full-suite, fresh combined-matrix, or CI-green claim. Earlier Doctor timeout and omitted-finding causes remain unresolved. Exact-head hosted review and CI remain landing gates.

@clawsweeper

clawsweeper Bot commented Nov 10, 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 docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes agents Agent runtime and tooling size: XL labels Nov 10, 2026
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 10, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 7468873f085b7b4563fd5e18ed064d47a59f9241, but the PR head is now e7a8a812d172aede5d25df8f88ded8c72177c194. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (2 earlier review cycles)
  • reviewed 2026-11-10T18:01:26.736Z sha 3ae9619 :: needs real behavior proof before merge. :: [P1] Retain aggregate account authority through the final effect | [P2] Consume fallback grants in conversation-targeted scheduled turns | [P2] Capture fallback accounts without applying primary-model restrictions | [P2] Remove the core test’s private Anthropic implementation import | [P2] Update the existing clear-model CLI contract test | [P2] Update keyboard traversal coverage for the new editor toggle
  • reviewed 2026-11-10T19:44:48.953Z sha 7468873 :: needs real behavior proof before merge. :: [P1] Acquire primary authority before filtering incompatible candidates

OpenClaw-Publication: 593e6077-ceca-4874-aa3f-c80438bd0ef0
@blacksmith-sh

This comment has been minimized.

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added the commands Command implementations label Nov 11, 2026
@fuller-stack-dev fuller-stack-dev changed the title feat(cron): authorize ordered account fallbacks for scheduled jobs fix(cron): inherit authorized fallback policy for existing jobs Nov 11, 2026
@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Thanks for writing up the comparison. I'd like to go with #196539 here, for these reasons:

One thing this PR does that #196539 doesn't: fallback providers keep a snapshotted account instead of selecting live, so a fallback can't land on a metered API key just because it's first in auth order. That's a real concern. I'd rather handle it as a focused follow-up on top of the provider-scoped fix, for example by refusing an automatic switch from a subscription credential to an API key on a fallback provider, than by making account loss terminal for the whole run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui cli CLI command changes commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants