Skip to content

fix(platform): retry transient broker GETs within task starts - #4523

Merged
yannickmonney merged 1 commit into
mainfrom
fix/task-broker-transport-recovery
Oct 8, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/task-broker-transport-recovery

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Summary

A transient subscription-broker failure could stop a task before launch and consume another hourly start through an immediate task retry. Fresh, initially unconfined task starts now retry recoverable broker GET failures within the same admitted run: at most three requests, 5s/10s minimum backoff, and one 60-second transport/result budget. Each request and returned credential rechecks the selected credential and current run authority.

The hourly circuit and task retry accounting are unchanged. POST brokers, member-confined starts, steer and other credential consumers retain their existing behavior. The job signal aborts owned HTTP/backoff work; database/DNS reads and connection cleanup can delay completion, but late credentials are refused. Retry-After is honored within this resolution; carrying that floor into a later task run remains a separate existing gap.

Checklist

  • bun run check --concurrency=1 — 49/49 tasks passed (29 cached, 20 executed) on head fff0d53c, based on 58cf1464.
  • bun run lint:sast and bun run knip:check passed on the same head.
  • Translation catalogs: N/A; no new UI key. Explanatory docs updated in EN/DE/FR.
  • Docs updated and visually checked at desktop and narrow widths in all three locales.
  • Root READMEs: N/A; no installation, configuration, command or public API change.

Test plan

  • Regression-first 521→200 recovery through the actual task host/resolver: one run/exec, one pool selection, one session ensure and one launch. Refusal controls cover cancellation, exec rotation, credential revocation, confinement and expired deadlines.
  • Transport tests cover request/backoff limits, strict Retry-After dates, too-long floors, permanent/TLS/POST failures and the final credential/native-read races. A controlled actual SafeFetch DNS lookup verifies late completion cannot dial or publish credentials.
  • Existing task retry/hourly-circuit tests and actual job-signal forwarding remain covered. Integrated server/PII: 83,020 pass, 16 existing skips; platform UI: 6,252 pass; docs: 685 pass; CLI: 2,553 pass, 29 existing skips.
  • Independent source review and a separate rebase/composition review passed. The original integrated concurrency-2 run hit an unchanged daemon fixture's 5s timeout; the exact six-case diagnostic passed, followed by the full daemon suite (452 pass, 20 existing platform skips) in the serial run. No timeout or source change was made for that rerun.
  • Main advanced to 7d212da3 after the local run. There is no broker source/test/doc overlap; the shared manual register merges cleanly. Hosted PR checks provide separate current-base integration evidence.
  • Six rendered EN/DE/FR desktop/mobile captures had no page errors or horizontal overflow. No live outage-recovery claim.

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