Repository navigation
Conversation
…unter beside the site workerd serve refuses a Durable Object binding with script_name (cloudflare/workerd#9023), so /coffee/slots.html and /coffee/pick were gaps the arm only proved fail. A capnp config can bind a class across Workers in one process (serviceName), so the arm now boots one: the site bundle with its vars, KV and Cache API wired as serve wires them, plus aadhar-counter bundled from counter/wrangler.jsonc, and reruns the gap rows there with VERIFY_ONLY. Each must pass, so a gap can no longer hide a real failure. Both pass on 0d22871; the new control drops the binding and the arm fails both rows.
Wire-size diff vs merge base
Brotli q11, the quality the edge serves. Every number here is deterministic: Client assetsNo change. 42 files, 203.00 KiB Brotli total. PagesNo change. 74 files, 902.00 KiB Brotli total. Worker bundleNo change. 318.71 KiB gzip. Dictionary transportFamily dictionary acquisition: no change, 16.24 KiB q11.
Head tags vs merge baseNo change. 74 documents, every title, description, canonical, robots, |
First paint, layout shift and first byte vs merge baseNo page serves a different document, so no changed page was read. Pages that serve the same document3 sampled page(s) with identical bytes on both sides read flat, alone and pooled.
How a change is called moved, and the controls (241 s)Each change is the median of HEAD minus base over the 9 pairs. It is moved when a sign test puts the split under p 0.05 and the median is at least 16 ms of FCP, 0.005 of CLS or 5 ms of TTFB (tools/lib/paint-diff.ts). TTFB is how long the Worker takes to send a document's headers, timed from Node before each load, since Chrome's emulated latency hides anything under it. Advisory: nothing here fails the PR. The same-document pages are a slice of the unchanged ones, turned by the HEAD commit so each push reads different ones. Identical bytes make them a placebo: a move there is the runner or the serving path, never the document. Controls on
|
#2059 moved every inline control into tools/lib/controls/<id>.ts, so this branch's workerd-serve-cross-script-unbound control becomes its own file. Both workerd-serve controls are caught after the merge.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
aadhar-sh | bc2e848 | Commit Preview URL Branch Preview URL |
Dec 04 2026, 10:12 PM |
routes:check:workerdhad to declare/coffee/slots.htmland/coffee/pickas gaps, becauseworkerd serverefusesCOUNTER, a Durable Object binding withscript_name(cloudflare/workerd#9023). The arm only proved those 2 rows fail, so a real break in them would have read as the known gap.A capnp config can bind a class in another Worker in the same process (
durableObjectNamespacewithserviceName), which is how production bindsCOUNTER. The arm now boots a second workerd from one: the site bundle with its vars, KV and Cache API wired the way serve's own projection wires them, plus aadhar-counter bundled fromcounter/wrangler.jsonc. It reruns only the gap rows there (VERIFY_ONLY, new inverify-routes.ts), and each must pass. The serve run and its STALE tripwire are unchanged, so when serve acceptsscript_namethe gaps still come out.I passed on writing the whole site config as capnp. That would mean re-creating serve's wiring for KV, R2, D1, Workflows, rate limits, cron and assets by hand, for 2 rows. The capnp boot carries only what those rows read. Its KV and cache wiring copies
wrangler.rsat v1.20261202.1 and runs on the pinned 1.20261129.1; a workerd bump that changes/workerd/kv.jswould fail this boot, loudly.On 0d22871: 419 of 421 rows pass under serve, and both gaps pass on the cross-Worker boot. A new control drops the
COUNTERbinding from the capnp and the arm fails both rows. Only ran on macOS arm64.Measurements
routes:check:workerd: 421 rows, 2 known gaps, 2 of 2 pass with aadhar-counter beside the site
bun run controls workerd-serve: 2/2 caught
check:fast: lint, format, typecheck clean; 2,054 tests pass
The 2 new contract tests fail when the binding loses its
serviceNameand pass with it.