Skip to content

fix(fleet-stubs): a placeholder it cannot create is not the fleet's failure - #119

Merged
ruehowl merged 1 commit into
mainfrom
claude/tender-bell-gunxyb
Oct 25, 2026
Merged

ruehowl merged 1 commit into
mainfrom
claude/tender-bell-gunxyb

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Main went red on the merge of #118. This fixes the regression that caused it, and makes two failure modes legible.

What broke

policy-worker's pre-deploy exited 1 on:

fleet-stubs: creating lumen-billing-worker-stage: HTTP 403
  code 10037, "You have exceeded the limit of 500 Workers on your account."

Every binding holder waits on policy-worker with mode: enforced, so ten lanes went red on a step belonging to a component that was itself fine — and most of them never needed that placeholder.

The fix

A create that fails is now reported and skipped, not fatal. Each real deploy then speaks for itself:

  • a target genuinely still missing fails its own lane with Cloudflare 10143, naming the worker that needs it;
  • an account with no room fails the deploy that needs the room, with 10037.

Both land on the component an operator must act on, which is never policy-worker.

The existence check stays fatal when it answers neither 200 nor 404. That one is a safety property, not a convenience: a placeholder must never overwrite a real Worker the check failed to see.

This does not make the convergence green

The account is at its 500-Worker limit, so the deploys that need a new script cannot succeed either. That needs Workers deleted on the account — no change in this repo can work around an account limit. What this fixes is one unmakeable placeholder taking the whole fleet down with it, and the error landing on the wrong component.

(cirrus hit this same limit on this account before and cleared it by deleting 344 Workers.)

Two failure modes made legible

A green convergence with a failing URL probe. 05-edge and 06-console said "the failing step says why" when the failing step was the probe and the deploy had worked. A deploy lane smokes the URL wrangler actually returned, so a wrong subdomain passes every lane and first surfaces in a phase's verify, ~35 minutes in. Both lines now distinguish the two cases and name the usual cause. Seen on a build carrying test-lum, which is not a claimed workers.dev subdomain — multi-tenant-saas-api-edge-stage.test-lum.workers.dev is NXDOMAIN, while a host under the account's real subdomain resolves.

BOOTSTRAP.md gains a troubleshooting row for each, with the one-line curl that tells a wrong subdomain from a failed deploy.

Verification

testing/fleet-stubs.test.sh drives the new path against a fake API that answers every create as an account at its limit: the step exits 0, names each placeholder it could not create, says a still-missing target will fail its own deploy by error code, recognises the limit answer, and records nothing as created. The old code exited 1, so this case is a real guard.

Full suite green, 11/11, plus orun new --status under v2.88.0.

Still open, not fixed here

Validating subdomain against the Cloudflare connection before anything deploys. No bootstrap hook has CLOUDFLARE_* credentials (only component deploy steps do), and <subdomain>.workers.dev does not resolve at the apex even for a valid subdomain — so neither a DNS check nor a direct API call is available where the gate belongs. Doing it properly needs either the account subdomain surfaced through the orun CLI/platform, or the input validated at the door that fills it from connection.cloudflare.workersSubdomain.


Generated by Claude Code

…ailure

Main went red on the merge of #118. policy-worker's pre-deploy exited 1 on

    fleet-stubs: creating lumen-billing-worker-stage: HTTP 403
      code 10037, "You have exceeded the limit of 500 Workers on your account."

and because every binding holder waits on policy-worker with `mode: enforced`,
ten lanes went red on a step belonging to a component that was itself fine.
The placeholder was never needed by most of them.

A create that fails is now reported and skipped, not fatal. Each real deploy
then speaks for itself: a target genuinely still missing fails ITS OWN lane
with Cloudflare 10143, naming the worker that needs it, and an account with no
room fails the deploy that needs the room, with 10037. Both land on the
component an operator must act on, which is never policy-worker. The
existence check stays fatal when it answers neither 200 nor 404 — that one is
a safety property: a placeholder must never overwrite a real Worker the check
failed to see.

This does not make the convergence green. The account is at its 500-Worker
limit, so the deploys that need a new script cannot succeed either; that needs
Workers deleted on the account, which no change here can do. What it fixes is
one unmakeable placeholder taking the whole fleet down with it, and the error
landing on the wrong component.

Also, two failure modes made legible:
- 05-edge and 06-console said "the failing step says why" when the failing
  step was the URL probe and the convergence was green. They now distinguish
  the two, and name the usual cause: a `subdomain` that is not the Cloudflare
  account's workers.dev subdomain. A deploy lane smokes the URL wrangler
  actually returned, so a wrong `subdomain` passes every lane and first
  surfaces in a phase's verify, ~35 minutes in. Seen on a build carrying
  `test-lum`, which is not a claimed subdomain.
- BOOTSTRAP.md gains a troubleshooting row for each.

testing/fleet-stubs.test.sh drives the new path against a fake API that
answers every create as an account at its limit: the step exits 0, names each
placeholder it could not create, says a still-missing target will fail its own
deploy by error code, and records nothing as created.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BfmHkwWeA1oPJGBNF3QSQH
@ruehowl
ruehowl marked this pull request as ready for review October 25, 2026 14:48
@ruehowl
ruehowl merged commit f5bf493 into main Oct 25, 2026
7 checks passed
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.

2 participants