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
Failed scheduled automation turn is retried twice (provider-retry resumes the thread and the automation starts a fresh one) #7708
What happens. When a scheduled (recurring) agent automation's first turn fails (in our case a 503 from the provider while the Mac was waking from a lid-closed DarkWake), two retries start at the next opportunity: the provider-retry plugin resumes the same thread with "Please continue." and the automations plugin starts a fresh thread for the same run. Both then run the full prompt. We saw three threads for one 09:00 brief on 2026-11-09 (09:58, 10:02, 10:06), the same for a Monday digest and a weekly run, and three retro threads on 2026-11-06.
What the docs say. The provider-retry SKILL.md states: "Automations declines retries of turns that scheduled runs of recurring automations started, because those run again on their own schedule." bb provider-retry explain <thread> on the failed thread shows "Scheduled for ...: Provider unavailable", so the consent decline is not taking effect for automation-started turns.
Expected. One retry path for a failed scheduled turn, or none plus the automation's own retry.
Workaround we use. A claim file at step 0 of every scheduled prompt (claim.py --run <agent>:<run>) so the duplicate stands down with one line, and a launcher script that starts the run only when the machine is awake and online.
Root cause: Before the spawn response returns, the automation's missing thread association allows provider-retry consent and misses failure settlement. Controlled sweep-service recovery then submits a fresh automation run.
Verification: The regression test fails identically in two clean trusted-main checkouts: one provider-retry submission and two spawn submissions after recovery. All 200 existing relevant tests pass. The real macOS/Claude wake sequence and three completed prompts remain unverified.
No PR: A production-safe startup ownership repair is not established from this partial reproduction.
Activity
bb-slop-cop commentedon Nov 17, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotplugins,automations,provider-retry,partial-repro.Let provider retry own failed automation turns; skip the automation's…
One retry handoff for every plugin that re-runs failed work (#7708)
Let provider retry own failed automation turns; skip the automation's…
One retry handoff for every plugin that re-runs failed work (#7708)
Keep a failing retry-decision read from blocking a scheduled automati…