Skip to content

fix(platform): keep capacity refusals out of task circuit - #4985

Merged
yannickmonney merged 1 commit into
mainfrom
fix/fleet-capacity-survival
Oct 14, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/fleet-capacity-survival

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Problem

A provider model_capacity refusal was counted by the per-task automated-start circuit. Three transient capacity refusals could therefore pause the Fleet Manager task and leave the dispatch cycle idle until the hourly window expired.

Change

Treat provider model-capacity refusals as availability signals for the hourly circuit. They remain subject to the normal automatic-retry budget and a shared 60-second provider retry floor:

  • automatic retries queue with the floor;
  • fresh scheduled/delegated starts wait for the same floor;
  • the capacity wait does not write a false task_circuit_breaker refusal;
  • genuine automated starts, broker cooldowns and credential-rotation rules keep their existing limits.

Update the task spec, manual reference and EN/DE/FR troubleshooting guidance.

Validation

  • Focused Vitest: delegated-start.budget.test.ts — 19 passed.
  • bunx oxfmt --check on all changed source/spec/docs.
  • bun run lint:conflicts.
  • Type-aware Oxlint on changed TypeScript files.
  • Hosted merge-group integration reached 2257/2258 lanes; the first run exposed the stale expectation now corrected in the amended integration fixture. A local full typecheck hit the clean-worktree Node heap limit; hosted typecheck is required.

@yannickmonney
yannickmonney added this pull request to the merge queue Oct 14, 2026
@yannickmonney
yannickmonney removed this pull request from the merge queue due to a manual request Oct 14, 2026
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 14, 2026
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 14, 2026
@yannickmonney
yannickmonney force-pushed the fix/fleet-capacity-survival branch from 7ee0331 to b35741a Compare October 14, 2026 13:22
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 14, 2026
@yannickmonney
yannickmonney removed this pull request from the merge queue due to a manual request Oct 14, 2026
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit 874bdc5 Oct 14, 2026
@yannickmonney
yannickmonney deleted the fix/fleet-capacity-survival branch October 14, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant