Repository navigation
Description
What failed
publish-site on main at 1de8915c — run 34724421108, attempt 1, "Claim delivered feedback before processing (#651)". The deploy-site job failed in Build and push the exact container image, so the deploy and the public verification never ran and leaf.page kept serving the previous release until the rerun. Attempt 2 is green end to end on the identical tree, so main is published and this commit needs nothing further.
The immediate fault
npx wrangler containers push failed at the transport layer, before it exchanged anything with the registry. docker build finished normally and tagged the image at 23:06:54.41; wrangler printed its banner at 23:06:55.17 and gave up 120 ms later:
⛅️ wrangler 4.130.0 (update available 4.131.1)
───────────────────────────────────────────────
✘ [ERROR] fetch failed
There are no layer uploads in between, no authentication output, and no HTTP status — fetch failed is Node's undici error for a request that never received a response at all, raised on wrangler's first call to the Cloudflare API. Nothing in the client had produced repository content yet, and the commit cannot reach this: 1de8915c touches skills/leaf/**, two test modules, worker/README.md and five lines of worker/server.py — no Dockerfile.website, no worker/src/, no wrangler.toml, no workflow.
Why this is filed as durable rather than transient
Taken alone this run is an upstream blip. Taken with the week it is the third time in five days that publish-site's Cloudflare deploy leg has failed on an upstream fault and needed a human to rerun it:
| Day | Run | Step | Fault |
|---|---|---|---|
| 09-08 | 34274247221 (#456) | Build and push the exact container image | registry.cloudflare.com returned 500 on the manifest write, after all eleven layers were accepted |
| 09-11 | 34634144453 (#589) | Deploy public Leaf pages | Workers API answered 100146 — version could not be found for the version wrangler deploy had uploaded three seconds earlier |
| 09-12 | 34724421108 | Build and push the exact container image | fetch failed on wrangler's first API call, before any request completed |
Three different endpoints and three different mechanisms, but one recurring fault: the two steps that talk to Cloudflare's control plane fail intermittently, an unchanged rerun always clears them, and in the interval the published site is a release behind main. The local gate's own recurrence (#475, #503, #540) is a separate leg and its remedy — wrangler 4.130.0, via #530 — has landed; the thirty-nine publish-site runs between #589 and this one all succeeded on their first attempt, so this is intermittency, not a broken deploy path.
Each of those trackers argued its own mitigation down on the grounds that it was a single occurrence, and #456 said explicitly that a recurrence is where a retry becomes worth reconsidering. That is the point this run reaches, which is why this issue stays open rather than being closed as diagnosed.
Why no fix is proposed here
There is no single knob. Wrangler exposes no retry flag or environment setting for either command, and its version is not implicated — a transport-level fetch failed is upstream of anything 4.131.1 changes.
The mitigation that remains is a bounded retry, and it is not safe to add unilaterally in the shape the evidence asks for:
- It would have to wrap both
wrangler containers pushandwrangler deployto cover the observed faults. Two call sites is a retry scheme in the workflow rather than one setting, in front of the last gate standing between a regression and a public deploy. - For the ci-fix: transient failure on 34274247221 #456 shape it may be actively wrong.
LEAF_SITE_RELEASEfolds inGITHUB_RUN_ATTEMPT, so a rerun pushes under a fresh tag and cannot race a half-written manifest — a retry inside the same attempt reuses the tag and races exactly that. Making the retry safe means minting a per-attempt tag too, which is no longer knob-sized. - The retry idiom the workflow already carries is not the same case. The
untilloop on Verify the exact public release in Chrome, and the--retry/--max-timeprobes from Guard public Leaf deployment capacity #386, wait on a rollout that is expected to converge. A push or a deploy that fails at the transport layer has no such expectation, so a retry there suppresses a real Cloudflare outage as readily as a blip.
The decision
Whether to keep the manual rerun as the recovery path — cheap, already effective every time, but it leaves leaf.page stale until someone notices — or to spend a bounded retry with a per-attempt image tag on making the publish self-healing. I can open either the retry PR or a narrower push-only variant on request; recording the pattern seemed the more useful first move, and this issue is the record for the next occurrence to count against.
Activity
leaf-agent commentedon Sep 13, 2026
Run 34274247221
log tail
Run 34634144453
log tail
Run 34724421108
log tail
Retry the deploy gate's agent pass when the edge answers 503 during a…
max-sixty commentedon Sep 18, 2026
are we sure that this is their issue? I am skeptical given the relative quality of our code that cloudflare is failing and we're acting flawlessly
and I would prefer to fix our problems rather than add retries
leaf-agent commentedon Sep 18, 2026
You're right, and the retry is withdrawn. I went back over every
publish-siterun since this issue was filed, and the failures have moved: the deploy leg has not failed once, and our own verification step has failed six times. A retry aroundwranglerwould have fixed none of them.Six failures since this issue, all in our step
Every
publish-sitefailure onmainafter 09-12 failed in Verify the exact public release in Chrome. Nocontainers push, nodeploy, nothing that reaches Cloudflare's control plane./examples/triage-board/api/viewreturned 503/examples/triage-board/api/viewreturned 503/examples/triage-board/api/viewreturned 503One structural cause: the step retries the pass that converges and runs the next one once
The step wraps
verify_site.py --releasein a 900-seconduntilloop, then runs--agent --releaseexactly once. All six failures are in that one-shot pass — none of the six reached the loop's deadline. The three 503 runs are the sharpest case: in 35320758891 the loop itself absorbed six consecutivehttps://leaf.page/api/view … returned 503between 07:46:39 and 07:48:06, went green, and the agent pass then took a seventh 503 on the triage-board page at 07:48:37 and ended the job. The same status is a wait in one line of the workflow and a hard failure in the next.The 503 is not the rollout status we already model
reader_sessionalready treats a rollout 503 as a wait, but only when it carriesRetry-After. These reachcheck(activated.ok, …)instead, so they carry noRetry-After— andRetry-Afteris written in exactly one place in the Worker,rollingOut. So this is a 503 on the container-allocating request from somewhere other than the rollout contractworker/README.mdstates, and I have not identified its source: separating a container-allocation failure from a Worker error path needs the Workers logs, which this account has no Cloudflare credentials for — the same gap #772 ran into.Three of the six are #772's hosted-turn shape. The 503 arm is not tracked anywhere.
On the three runs in this issue
I still think those three were upstream —
fetch failedbefore any response, a registry 500 after every layer was accepted, and a version the API could not find three seconds after uploading it are all past the last line of our code. But that was the wrong thing to be counting. Three faults across three endpoints in five days is a thin pattern, and treating it as one made a rerun-and-move-on nuisance look like the thing worth engineering against, while the failure mode that actually brokepublish-sitefour times in one day was ours and sat in a step this issue never looked at.Recommend closing this: the retry it was accumulating evidence for is not the fix, and the deploy-leg blips are better handled by rerunning when they happen. I can take the 503 arm next if you want it — the first question is whether a reader arriving at a cold page gets that 503 too, which would make it a product defect rather than a gate one.
max-sixty commentedon Sep 19, 2026
Closing. The 503 arm was already fixed when the comment above was written, and its account of the cause is wrong — worth correcting here so the next reader of those six log lines doesn't start where I did.
The three 503 runs predate the fix
rolling_outlanded in 2684c18d (#790) at 09:01 UTC on 09-18. The three runs — 35320758891, 35324499878, 35325145249 — ran at 07:42, 08:27 and 08:35 on shas wherereader_sessionhad no rollout branch at all; at c9a5f20 that line is a barecheck(activated.ok, …). So the reasoning above — that these reachedcheck(activated.ok, …)instead of theRetry-Aftertest, and therefore carried noRetry-After— reads currentmainagainst runs that predate it. Nopublish-siterun has taken a 503 since; its one failure in the day and a half since, on f249da60, is #772's shape.It was the rollout contract, with the header
Workers Observability settles what the header question left open. One request logs twice under a single
traceId: the Durable Object's invocation and the stateless Worker's. For the fatalapi/viewat 07:48:37 in run 35320758891 (traceId c3a65be546478da87775ae3682c42305), the Durable Object answered 200 and the stateless Worker answered 503. The only Worker path that turns a container's answer into a 503 isrollingOut, and it sendsRetry-After: 5. So the container had started on the previous image, the edge unseated the session exactly asworker/README.mddescribes, and every one of the seven 503s that run — the six theuntilloop absorbed and the seventh that ended the job — was that contract rather than anything of Cloudflare's.The other candidate does exist and is worth knowing about:
@cloudflare/containersreturns a bare503with noRetry-AfterfromcontainerFetchwhen no instance can be allocated. That is why matching on the header rather than on the status is the right discriminator, and it is still the boundary — a container's own 503 fails the release on the first read.A reader is not affected
The open question was whether a reader arriving at a cold page gets this too. They do, and their gesture still lands: I replayed
rollingOut's exact answer at/api/eventin a preview, refusing twice, anddelivery.jsretried and landed the comment on the third attempt. The notice it shows meanwhile is wrong — "Couldn't read the answer — retrying your change…", because the 503's body is plain text and the JSON decode is what fails — and that wording is worth fixing, but nothing is lost.The three runs this issue was filed for
Those stand as upstream:
fetch failedbefore any response, a registry 500 after every layer was accepted, and a version the API could not find three seconds after uploading it. Rerunning is the right response to each. There is nothing left here to build.Say what a 503 means, in the deploy gate and in the page's own door (#…