Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...
    Documentation
    GitHub

    Trust

    Technical Report: A Versioned Replica in the Browser

    What @drupflare/spool does, what each mechanism costs, and what was measured to find out. Written for maintainers and for a reader deciding whether to trust a spool number. Every figure carries its layer (L0 published, L1 measured here, L2 derived, L3 scenario) and either its method or a pointer to the docs/impact.md section or the measurements/ file that holds it. This report restates no large table from docs/impact.md. Written 2026-11-15 and reframed 2026-11-16 against the 0.4.0 working tree, and extended 2026-11-18 for v1 (package 1.0.0).

    spool removes repeated execution demand from a site's platform. It keeps an authorised, versioned replica of a site's dependencies in the browser and answers eligible page views and read requests locally: no network request, no Worker invocation, no server work. It is an enhancement to drupflare, a way for a request-limited plan to carry more views, and a research system whose figures carry a layer and a method. The server half (src/server, src/protocol, src/stores) names dependencies and versions. The device half (src/sw, src/client) holds them and renders. A proxy mode (src/proxy) fronts an origin that cannot load the library.

    The v1 thesis. One or a few requests make a site navigable and readable offline: the worker script and the site's pack, one request each. After that, a view that starts in the page costs no request, on a page with a swap region (data-spool-swap or <main>). The requests that remain are writes, misses, deltas and the first document after a lease. A held view needs no request, so the views one client makes per request have no finite ceiling (L2, from the request law below). What a site reaches in practice depends on how its views start, and no measurement here supplies that. The parts the library now implements are listed under Architecture. The counts below come from the library's node and browser tests and from a minimal construction on a fixture server, which the tests do not include.

    Headline numbers. The first table is copied from the first table of Economics (library readings of 2026-11-20, Chromium and Firefox, a 1,000-course demo site). The last three rows come from the workload table in the same section (L3 workloads, Chromium and Firefox with a worker, stub on a static tier). A net saving is after bootstrap, stub, contact, the sync and dataset requests, and writes, and a negative one is a loss. How each multiplier moved from v0.4 to the library is under Moving Numbers.

    figure baseline net saving multiplier label provenance
    Origin requests, 121 views, Chromium 121 requests, no spool 95.9% 24.20x L2 library 1.0.0, measured
    Origin requests, 121 views, Firefox 122 requests, no spool 95.1% 20.33x L2 library 1.0.0, measured
    Origin requests, one view a day for 5 days, Chromium 5 requests, no spool 0.0% 1.00x L2 library 1.0.0 page runtime, no worker
    Origin requests, signed-in reader on defaults, Chromium; needs principalDatasets: true, identity, a principal route 7 requests, no spool -185.7% 0.35x L2 library 1.0.0, measured
    Worker-invocation equivalents, 121 views, static tier 121 requests, no spool 97.5% 40.33x L2 library 1.0.0, measured
    Bytes, 121 views, 17,054 B median document 2,063,534 B, no spool 86.7% 7.51x L2 model over library counts (L3)
    Free plan, engaged daily public reader (read views a day) 100,000, no spool 96.0% 25.00x L3 model over library counts (L3)
    Paid plan, same reader, 100 million read views a month $27.00, no spool 100.0% no finite value L3 model over library counts (L3)
    Ungated two-view lifetime, requests 1 request per view -50.0% 0.67x L3 model over library counts (L3)

    Spool gains most where a client holds a copy across many views, and it loses where the bootstrap and the stub cost more than the views they serve: two views, and a signed-in reader whose requests exceed the baseline on every day. WebKit is absent from every library reading. The library's headline covers Chromium and Firefox only. WebKit, which is every browser on iOS, defaults to no worker because of an upstream script check on every navigation; its figures are model rows or single script-check readings, never library readings. "Chromium and Firefox" is well under all of mobile. The library readings hold no own-write scenario. The signed-in and public-edit rows are Chromium only. The signed-in rows are not what a default install produces: they need principalDatasets: true, the identity option and a principal route. The provenance column uses the vocabulary defined in Economics. The Worker-invocation row assumes the stub and boot script are served as static assets, and the origin-request rows put the stub on the Worker. The paid-plan row is 4 million Worker requests against 100 million, inside the 10 million included, so it costs $0.00.

    Verdict. The demand result is a count. With updateViaCache: 'all' and a 24-hour script lifetime, a controlled navigation reached no origin in Chromium and Firefox, and WebKit still re-checks the worker script. spool's own syncs and flushes are netted against that. No deployed site supplies traffic, so the share of a real site's requests this removes is unmeasured. Energy is a second objective an administrator may weigh. On one metered desktop a local view saves 0.80 J of package energy against optimized HTTP caching. The modelled figure for the same view is 12.4 J, and it is an allocation. A cold first view of a recorded public page costs a median 47.5 J of package energy above idle on that desktop (L1 windows, L2 per page). That is the cost of the page without spool. The cost of spool's own install and provisioning on a first visit is unmeasured.

    1. With updateViaCache: 'all' and a 24-hour script lifetime, 0 of 13 controlled navigations reached the origin in Chromium and Firefox (L1). WebKit differs, and the details are under Zero-Network Navigation.
    2. A local view sends the server nothing. A network view costs it 0.61 to 0.98 J of package energy across node, bun, hono and workerd, 6 windows each, and a local view sent nothing in all but one window per runtime (L1; see spool's Own Requests).
    3. A cold visit through spoolProxy made 2 requests from the first controlled visit to the first local view with the first-payload lever off, and 1 with it on (L1, exact counts, a synthetic page; see First Payload).
    4. A dataset update sends 227 to 232 B for one changed row. The v0.3 list refetch sends 2,236 to 191,744 B for 50 to 5,000 rows.
    5. The requests a platform sees per view follow a formula with three inputs, and a device's share of local views is at most one minus one over the views it makes in a freshness window (L3, Request Arithmetic). No multiplier follows from it until a site's traffic supplies the inputs.
    6. A local view saves 0.80 J (L1, RAPL, 8 rounds; retake 0.817 J). In the report's one unit that is 0.223 kWh per million views (L2). The view is a repeat navigation of a mirror of demo.drupflare.com on one desktop. The energy of one deployment is small against an institution's total electricity and against the idle and hosting energy drupflare removes per site, so the weight energy gets is the administrator's choice.
    7. The modelled 12.4 J per view is an allocation. Sustainable Web Design v4 intensities are spread over 17,054 bytes of document, plus one origin request. No meter read it. It sits beside the metered 0.80 J and carries its own label.
    8. trim removed rules from 233 of 303 stylesheets with 0 false removals in 26,571 rule uses on Chromium's own coverage data. That check is this project's own and no outside oracle confirms it.
    9. The first-view corpus recorder had two defects, an identity-coded replay and dropped YouTube embeds. Both are fixed, and the v3 corpus was measured over 2 rounds. See The First-View Class Fit, Measurement Mistakes and Limits.
    10. Most of spool is engineering of known ideas. The registration option is documented on MDN, dictionary transport is RFC 9842, speculation rules, Workbox precaching and Fawkes-style static templating exist, unused-CSS removal is PurgeCSS-style, and partial replication is what sync engines such as Electric do. The distinct contract is narrow: a server-authoritative replica whose freshness policy lets a provisioned view render with no per-view validation request, with shadow mode and a fall back to the server. HTTP caching and earlier replication systems cover parts of it (Prior Art). The other contributions that can be defended are the four-layer labelled measurement method, the checked record of refuted mechanisms and the exact-count contract tests (server hits per local view), behind a frozen wire protocol.
    11. The ledger holds 15 closed mechanisms, each with its measurement and the objective it left open. The ledger is under What Was Tried and Refuted.

    Each figure carries one label, and a derived figure keeps its label wherever it travels.

    label meaning
    L0 published by someone else, source named
    L1 measured here, on the hardware the reading's file names
    L2 derived: arithmetic over L0 and L1 figures
    L3 a scenario: an assumption, or a what-if no reading backs

    A figure that mixes an L2 product with an L3 term is L3 as a whole. Per-view energy is also given in kWh per million views, where 1 J per view is 0.2778 kWh per million views. The unit makes readings comparable, and no figure here is a target.

    1. Meter and allocation sit side by side, labelled. The metered figure is the package energy of one desktop. The attributional figure spreads a published per-byte intensity over measured bytes.
    2. The baseline is optimized HTTP caching. Immutable hashed assets, ETag revalidation and compression are the site's own fix and spool takes no credit for them. Every dataset result carries two controls, v0.3 and native HTTP.
    3. Tests assert exact counts. Server hits per local view, requests per sync, records per patch. No test asserts a timing or an energy threshold. Magnitudes live in readings.
    4. Every reading carries its method and exclusions. The schema (measurements/README.md, File Format) holds rig, date, layer, question, instrument, machine, software, method, exclusions and raw rows. scripts/impact.ts derives per-view figures from rows and stores none. A node test reads every file through src/report/measurement.ts.
    5. Arms rotate and idle is subtracted. In the RAPL rig arm order rotates per round, an idle window opens each round, and joules are reported above the idle draw of the same round. A window is dropped when other containers used more than 100 ms of CPU per second of it. The rule sees containers only. It missed a container that started inside a window until the rig counted one from zero, and it never sees a host process.
    6. A retake sits beside its original. scripts/impact.ts pins every headline RAPL figure to the original date (ORIGINAL_RAPL) and prints the retake in a Second Time Point section. A retake on the same machine gives a second time point and no independent replication.
    7. No feature is turned off to get a clean run. A defect that blocks a measurement is its first result. The rig measures shipped defaults.
    8. A reading is labelled by what was read. Papers are cited as full text or abstract only. A number from a search summary is not written down.
    9. A negative result closes a mechanism and leaves its objective open. Each closure records the measurement and the objective that remains.
    10. Page bytes from a replay are checked for encoding. Added after the first-view corpus defect below.
    item value
    meter host paisley-park, AMD Ryzen 9 9900X, Ubuntu 24.04, governor powersave; the 2026-11-15 retake adds amd-pstate-epp with EPP performance to the machine record
    meter RAPL package-0 and core counters read through sysfs; no DRAM, platform or wall domain exists on the host
    browser in the meter Chromium (new headless) in the Playwright v1.62.1 noble container, --cpus 8 --memory 6g
    origin in the meter a Node static mirror of demo.drupflare.com in the same container, 40 ms emulated round trip, 300 navigations per window, 8 rounds, 30 s idle window
    idle draw 18.77 W median package (docs/impact.md, Desktop and Phone)
    zero-network host MacBook Pro, Apple M2 Pro, macOS 26.5.2, Playwright 1.62.1 bundled Chromium, Firefox and WebKit
    what the meter omits the display, the network interface, the radio, every router and data centre between the two ends, and any DRAM draw

    The demo site runs spool v0.3 features, so it is no baseline without spool. The 0.652 J spool arm in the desktop reading is a spool-served page and sets no ceiling on what a mechanism can save per view.

    bun run impact:check fails when the committed docs/impact.md differs from what measurements/ produces. It runs in CI. Each rig runs from scripts/measure/ with --dry-run first, which prints the resolved plan and touches nothing. The RAPL runs need a Linux host with a readable package counter. They sit outside the hermetic gate, so a clean checkout reproduces the arithmetic and cannot reproduce the joules.

    The library's v1 checks run from these commands. The minimal construction's counts are not in the repository.

    bunx vitest run --project=unit tests/unit/bundle.spec.ts tests/unit/coverage.spec.ts
    bunx vitest run --project=node tests/node/bundle.spec.ts tests/node/pack-store.spec.ts tests/node/middleware.spec.ts tests/node/conformance.spec.ts tests/node/sw-runtime.spec.ts
    bunx playwright test tests/browser/navigate.pw.ts tests/browser/pack-store.pw.ts tests/browser/netreads.pw.ts tests/browser/authenticated.pw.ts
    bun scripts/conformance.ts --url <origin> --dataset <name>

    bun scripts/conformance.ts takes a running server's origin. With no arguments it prints usage and exits 2. bun run conformance runs the same script.

    claim evidence layer status
    A local view saves energy on a desktop 0.80 J, difference of arm medians over 8 rounds; retake 0.817 J L1 one desktop, against optimized HTTP caching
    Attributional saving per local view 12.4 J: SWD v4 over 17,054 B plus a 0.455 J origin request, radio term 0 L2 an allocation of the document request only
    spool's own requests are netted Z_daily nets syncs and flushes; one window in six per runtime shows up to 6 /.spool/* requests L1 and L2 modelled; no deployed trace
    A controlled navigation makes no request 0 of 13 navigations reach the origin in Chromium and Firefox L1 Chromium and Firefox only
    A dataset patch costs fewer bytes than both controls measurements/dataset-baseline/2026-11-15.json L1 synthetic rows, one run each
    Platform requests per view fall with the local share views the limit carries, Request Arithmetic L3 no deployed trace supplies h, r, rho or s
    After bootstrap, an in-page view costs no request 0 requests in Chromium, Firefox and WebKit, on the minimal construction; tests/browser/navigate.pw.ts asserts zero origin requests at 10, 100 and 1,000 views L1 loopback fixture; one site
    A document navigation past the lease fetches the stub once 1 request in Chromium and Firefox, 0 inside the lease, at leases of 2, 6 and 20 s L1 Chromium and Firefox; WebKit on macOS adds its script check
    The packed store reads one block per cold lookup 1 block read per cold lookup, 0 on a cache hit; 0.244 to 0.602 ms per lookup at 10,000 and 100,000 rows L1 one run each, Apple M2 Pro; timings not asserted
    The Express and Hono adapters answer the same counts on each backend 47 of 47 counted checks on each of three backends in three engines, on the minimal fixture application L1 one fixture application

    The saving scales with the size of a site's document. Where the browser's own cache answered the document, a local view has no request to replace and saves nothing. docs/impact.md (Per-Site Figures) lists the 15 sites read so far, from 0 J to 669.4 J per local view on the allocation.

    The server declares routes with a strategy and a freshness contract. A route is assembly (a shell with holes plus data), template, projection (records sent once, the page computes the result) or data. The server sends an envelope that names an artifact's identity, scope, dependencies and a version vector. The worker keeps records and projections once in a lazily loaded graph and syncs only the next page's invalid ids, by cursor or by need.

    The worker renders public routes locally under hard or soft freshness. Shadow mode serves the network answer and compares it with a local render, per route or globally, with a sampled canary. Analytics are queued in the worker and flushed on a network moment that already happens. A provisioning rule sends an artifact only when the value below is positive, where reuse is the chance an artifact serves a later view, futureViews the later views one artifact serves, avoided the cost each such view keeps off the wire, and provision and maintain the costs of fetching the artifact and keeping it current, each weighed in bytes:

    \mathrm{reuse} \times \mathrm{futureViews} \times \mathrm{avoided} - \mathrm{provision} - \mathrm{maintain}
    

    Signed-in data is partitioned per principal. The partition id is an HMAC under a server secret. Stored rows are sealed with AES-GCM under a non-extractable key, so deleting the key makes them unreadable. That is crypto-shredding at rest and gives no defence against script on the origin. Logout wipes before the request leaves. Authorisation stays on the server: the device holds only what the server already sent that principal.

    The wire protocol is frozen at Spool-Protocol: 1. tests/node/protocol-freeze.spec.ts pins the header names, paths, envelope encoding, response key sets, limits and public export names as literal values (docs/protocol.md, Stability). The shared spool IndexedDB database stays at version 2, because v0.2 and v0.3 workers open it at that version and fail with a VersionError on a higher one. New stores live in their own databases. The package version is the worker's runtime version, and a different one empties a worker's replica and asset caches.

    Version 1 adds the parts below. Each names the file that holds it. The wire protocol stays Spool-Protocol: 1: BUNDLE_PREFIX and BUNDLE_DELTA_PREFIX sit beside PATHS, which is unchanged.

    part source what it does
    Page families src/protocol/route.ts, src/sw/family.ts A template, projection or data route with a family binds a URL to one row of a dataset. The worker builds the page from the held row on each view and stores no copy.
    Cross-origin reads src/protocol/route.ts, src/sw/router.ts, src/sw/runtime.ts A data route with an origin answers GETs to an API origin from held rows. A cross-origin miss goes out untouched.
    Site pack src/protocol/bundle.ts, src/server/bundle.ts Framed gzip blocks of 128 sorted rows, an index frame with a SHA-256 per block, and a set digest. The digest sums row hashes modulo 2^256, and each hash covers its table, key and row (src/protocol/query.ts). Path and query index tables sit in the same pack.
    Pack and delta routes src/server/spool.ts, src/server/bundle.ts GET /.spool/bundle/<version> serves a pack as immutable. GET /.spool/bundle/delta/<from>/<to> serves one delta as JSON.
    Device store src/sw/pack/store.ts IndexedDB database spool-bundle with blocks, index, overlay and head. A cold lookup reads one block. An install verifies each block, and a delta is checked against the digest before any write.
    Stub src/server/stub.ts, src/server/spool.ts The worker script names its runtime hash, its pack version and up to four deltas, 16,384 B at most inline. The script's max-age is the lease, set by freshness.maxAge.
    Middleware src/express/index.ts, src/hono/index.ts spoolExpress and spoolHono answer the worker script and /.spool/*, and tag eligible HTML responses.
    Conformance kit scripts/conformance.ts runConformance checks a server's answers against the protocol. The CLI is bun scripts/conformance.ts --url <origin> --dataset <name>.
    Coverage src/sw/coverage.ts coverageReport lists the GET requests that no family answers.
    In-page views src/client/navigate.ts Answers a link to a held route in the page, with no document navigation.
    Bundle limits src/protocol/bundle.ts MAX_BUNDLE_FRAME_BYTES (8 MiB). A reader refuses a frame over the cap before it reads the payload.

    Two further facts govern the design. A URL with a query string is never answered from a path's artifact unless the route declares a query schema, and the proxy and the worker send such a URL to the network. The drupflare adapter is a spoolProxy integration for eligible public traffic: a request with a cookie or an Authorization header bypasses spool.

    The requests a client makes per replica lifetime depend on how each view starts. Split the views into one first view, V_p in-page views, V_w document navigations with the worker running and V_c document navigations with the worker stopped. The requests come to Q, where 1 is the first document, k is what bootstrap adds beyond it, c and d are per-engine constants, S counts freshness contacts that no other request carried, x is requests per contact, and W and F are writes and misses:

    Q = 1 + k + c \times V_c + d \times V_w + 0 \times V_p + x \times S + W + F
    

    The baseline makes the requests below for V views, where r is the requests per view:

    r \times V
    

    The constants below come from the minimal construction (L1 counts, loopback, 1,000 rows). The earlier construction of the same fixture measured k at 3 and x at 2, and the build below cuts both.

    constant worker build no-worker build floor
    k, added by bootstrap 2 1 0
    in-page view 0 0 0
    x, requests per contact 1 1 1
    contact inside the lease 0 no lease 0
    write 1 1 1
    update carried by a write, a miss or a document navigation 0 extra 0 extra 0

    A client that holds no site data needs one request before it can render, so the requests obey the bound below. Nothing else is forced.

    Q \geq 1 + W + F
    

    The multiplier per client, where r is the requests per view and V the views, is (L2):

    \frac{r \times V}{1 + W + F}
    

    It has no finite value for reads. The limit on views is time. A local view takes a median 0.2 ms in Chromium, 1 ms in Firefox and 3 ms in WebKit to read, render and swap (L1, Apple M2 Pro). A 60 Hz display binds first, at 5.18 million views a day (L2).

    With no worker, bootstrap adds one request, so a client does not cost more than the baseline: one view costs 1 against 1, and two views cost 2 against 2. With a worker, a client that makes exactly two views costs 3 against 2 (L1 counts).

    Scenarios (L3 workloads, L1 costs, L2 ratios). Each cell is the multiplier, with the client's requests in brackets. The baseline and the floor are the requests in the first and second expression below, where r, V, W and F are as above:

    r \times V
    
    1 + W + F
    
    scenario baseline floor worker, Chromium worker, Firefox worker, WebKit macOS no worker
    One view 1 1 1x (1) 1x (1) 1x (1) 1x (1)
    Two views, one visit 2 1 0.67x (3) 0.67x (3) 0.67x (3) 1x (2)
    Five views, one visit 5 1 1.67x (3) 1.67x (3) 1.67x (3) 2.5x (2)
    Daily reader: 20 views in 2 visits, 30 days 600 1 8.82x (68) 66.67x (9) 3.82x (157) 6.59x (91)
    Engaged reader: 100 views in 3 visits, 30 days 3,000 1 30.61x (98) 333x (9) 12.15x (247) 19.87x (151)
    Workspace: 100 views, 10% writes, 5% misses, 30 days 3,300 451 6.02x (548) 7.19x (459) 4.73x (697) 5.49x (601)

    The rows that separate the engines are the multi-day ones. Firefox pays for contacts only, while WebKit on macOS pays one script check per document navigation. The workspace row is the ceiling for a site with writes and misses: 7.32x at the floor (L2). Turning these rows into a deployed multiplier needs a site's traffic, which no reading here has.

    A view that starts from a link to a held route, inside the page, makes no request in any engine. The page needs a swap region for this; a page with none navigates by document. On the minimal construction, 100 in-page reads made 0 requests with the worker running, after a restart, offline, and past the lease, in Chromium, Firefox and WebKit (L1 counts). The library's src/client/navigate.ts answers these views. tests/browser/navigate.pw.ts asserts zero origin requests for in-page views of unfetched ids at 10, 100 and 1,000 views. It also covers held family pages that equal the server's HTML, back and forward moves, offline views, and a declared GET form on a held list route. The counts in this subsection come from the minimal construction, not from that test run.

    The library keeps a site's rows as compressed blocks, not as one record per row. A lookup reads the head, the index record, the overlay and one block in one transaction. The browser test tests/browser/pack-store.pw.ts installs a pack, reads it, applies a delta and reads again after a reload, at 10,000 and 100,000 rows. The test asserts the record counts, at most one block read per lookup, one inflate per block read, and the same answers after a reload. The timings below are one run each on Apple M2 Pro (L1, not asserted):

    engine rows install lookup, 1,000 random keys storage usage
    Chromium 10,000 84 ms 0.244 ms per lookup 155,648 B
    Chromium 100,000 920 ms 0.376 ms per lookup 884,736 B
    Firefox 10,000 231 ms 0.387 ms per lookup 914,384 B
    Firefox 100,000 2,339 ms 0.558 ms per lookup 8,816,544 B
    WebKit 10,000 320 ms 0.436 ms per lookup 88,292 B
    WebKit 100,000 3,214 ms 0.602 ms per lookup 879,101 B

    Against the per-row layout of the earlier construction, the same 10,000 rows took a median 61.7 ms per item view in Chromium, against 1.7 ms in the packed layout. The per-row layout stored 794 bytes a row, and the packed layout 121 (L1, fixture, one run each).

    Gzip blocks give random access and small storage, but they cost wire bytes against one solid stream. For the same 10,000 synthetic rows, the packed layout is 1,146,591 B and brotli over the rows is 293,408 B (L1). The library uses 128-row gzip blocks, and no measurement has chosen the block size or codec.

    WebKit checks the worker script after a document navigation. The check arms a one-second timer and ignores navigations while it runs, so a rig must dwell at least 1.5 s between navigations to count them correctly. With that dwell:

    • macOS, persistent profile: one script request per document navigation (6 of 6) and one per new tab (3 of 3).
    • Linux, no disk cache: one per navigation (10 of 10).
    • Safari 26.5.2 on macOS: three navigations and one reload gave four script requests, about one second after each.

    The check is structural on macOS, and site code cannot remove it. WebKit's soft update asks the network disk cache for the script and goes to the network only without an entry. The page's requests use a cache partition that the soft update's request does not carry, and the soft-update loader never stores what it fetches (WebKit source at commit eb96cf5, read on 2026-11-18). So updateViaCache and any max-age have no effect on it. The count is one per navigation at stub lifetimes of 2, 6 and 20 seconds and a day. An explicit registration.update() does hit the cache on macOS. This looks like a WebKit defect. No bug report has been filed.

    Asset refetches are a separate cost, and a fix exists in the minimal construction. When the worker does not answer a subresource, WebKit restarts the load without a cache lookup, so each asset goes back to the network. Answering with fetch(event.request) goes through the worker's loader, which uses the disk cache. A probe decides which answer to give: a fetch with cache: 'only-if-cached' for a known asset, read through its Resource Timing entry. On a macOS persistent profile, the first controlled document made 3 asset requests plus 1 script request without the probe, and 0 plus 1 with it. Three new tabs made 9 plus 3 without it and 0 plus 3 with it (L1). The minimal construction made 0 asset requests across 10 documents and 3 tabs with a persistent profile, in Playwright and in Safari. The library's worker does not carry this probe (see Unmet Items).

    When the worker is not running, Chromium and WebKit send the navigation to the network while the worker starts, then discard that response when the worker answers. Firefox sends none of these. On loopback the leaked request arrived every time: one document after a browser restart in Chromium and WebKit, and one after Chromium's worker was stopped through DevTools. Over real TLS the worker won the race in six of six cold restarts per engine against the deployed Worker, and the cold column was 0 in all three engines (L1). A document navigation after 40 s of idle leaked nothing in any engine. In Safari it leaked nothing after 2 minutes or 27 minutes. The rate on a warm HTTP/2 connection is unmeasured.

    The stub's max-age is a lease. Inside it a contact costs nothing and teaches the client nothing new. Measured on the minimal construction with leases of 2, 6 and 20 s (L1 counts):

    situation Chromium Firefox WebKit macOS
    in-page reads, any age of stub 0 0 0
    document navigation inside the stub's lifetime 0 0 1 (script check)
    first document navigation after the lifetime 1 (the stub) 1 (the stub) 1
    registration.update() inside the lifetime 0 0 0
    registration.update() after the lifetime 1 1 1
    no worker registered nothing forced nothing forced nothing forced

    The wall clock of the browser and the server moved forward under libfaketime on Linux, while the tab stayed open. Date.now() moved by 25 hours in both. At 25 hours, in-page reads with an update waiting made 0 requests in Chromium and WebKit, and a fetch of a cached asset made 0 in both. At 50 hours, a document navigation with two updates waiting made one request (the stub) in both, and that request delivered both updates. Firefox did not start under the preloaded library.

    A tab that reads in-page is never checked by the browser, even across a day. The browser forces a contact only on a document navigation after the lease. The service worker spec caps the lease at 24 hours for document navigations (L0). A site that publishes weekly can state a longer lease, and the client owns any contact it needs in between.

    Three things keep the contacts that remain few. A write, a miss or a document navigation carries the held version and returns the rows that changed, so it needs no separate contact. The lease length is the site's choice. The library's install path adopts an inline delta or fetches one delta, and its node tests cover both: a stub that names the held version installs nothing, an inline delta applies with no request, and a device that is far behind fetches one delta (tests/node/sw-runtime.spec.ts, tests/node/bundle.spec.ts). The lease has no browser test in the tree.

    Link radius does not work as a dial on real documentation graphs. From the entry page of docs.drupflare.com, radius 1 reaches 37 pages (250 KB of text as one stream) and radius 2 reaches all 300. On MDN's Service Worker API pages, radius 1 reaches 148 pages and radius 2 reaches all 300. A median page of docs.drupflare.com reaches 2 pages at radius 1 and 238 at radius 2 (L1 link graphs). Menus link everything, so a ring should be a byte budget filled in link order (L2 from the counts).

    A page record costs 1.1 to 1.8 KB on those documentation corpora, measured as brotli over a whole crawl (L1 per-page figures). The budget sets how many pages one response can carry (L2):

    budget what sets it pages at 1.1 to 1.8 KB
    100 KB a ring inlined in the first document (L3 budget) 55 to 90
    1 MB one second at 10 Mbit/s (L3 scenario) 580 to 950
    4 MB a 4 MB response (L3 budget) 2,300 to 3,800
    25 MiB one Workers static asset file (L0) 14,500 to 23,800
    1 GB Playwright WebKit's reported quota (L1) 580,000 to 950,000
    10 GiB Firefox's best-effort group limit (L0, MDN) 5.9 to 9.7 million

    HTTP sets no size limit on a response. The limits are the serving tier, the device quota and the wait a visitor accepts. In the minimal construction's fixture, a radius-1 ring holds 24 rows, 37 KB raw, and the first document grew by 1,917 B of brotli on a 960 B page (L1).

    One changed row moves every page that renders it, and the delta ships once (L1, 1,000 rows, 1,004 URLs). Query URLs are not in this count.

    change rendered pages that change their HTML the delta, one request
    one article 3 10,954 B 1,838 B (618 B brotli)
    an author row joined into its articles 106 406,677 B 1,788 B (604 B brotli)
    a row in the sidebar of every page 1,004 3,682,551 B 1,806 B (611 B brotli)

    The minimal construction ran against drupflare's own site, first on loopback and then on a deployed Free-plan Worker (L1).

    On loopback, the baseline replay of the retrofit made 4 requests in Chromium and 4 in Firefox, and 23 in WebKit, over 121 views. It made 4, 4 and 6 Worker calls in the same engines, which matches the earlier counts.

    On the Free-plan Worker, the same fixture ran with the worker script, the client, the pack and the stylesheet as static files, and only documents served by the Worker. Each session cost one Worker invocation in each engine. A 108-view session covered the first document, bootstrap, 100 held reads, 5 documents and one restart. A 33-view session added six cold restarts, and each session recorded one invocation. Static asset requests did not count as invocations. One control window matched 200 of 200 Worker-bound requests, and the other matched 52 of 54, where one request returned a non-200 to curl and one is unexplained. The Worker was deleted after the reading.

    Over real HTTPS and HTTP/2, one sample each: the first document with its ring was 3,838 B on the wire (40,916 B raw), the stub 7,642 B (23,019 B raw), the client 9,004 B (27,925 B raw), and the pack 114,505 B.

    Cloudflare's pricing page says cached responses can bill as requests when Workers Caching is enabled, static assets included (L0). This reading counts recorded invocations on a Free account with that feature off. It is not an invoice.

    The server owns the session and sends an explicit projection. Passwords, email addresses and a server-only secret never enter the response or the replica. Each login creates a principal and an epoch. Switching accounts replaces the active partition, and logout clears the shared state and invalidates the server session. The device holds the rows as AES-GCM ciphertext under a non-extractable key, held in IndexedDB.

    On the minimal construction, 54 of 54 checks pass across HTTP and workerd in Chromium, Firefox and WebKit (L1, 9 checks per combination). Each combination performs 100 authenticated reads with zero network requests. A successful PATCH makes exactly one server request, commits the server's trimmed title locally and reads it back with no GET. A write to another principal's row returns 403 and changes no local state.

    The library has the partition code and its checks in tests/node/partitions.spec.ts, and tests/browser/authenticated.pw.ts passes in Chromium (9 checks). The fixture does not prove automatic inference of every application's permissions, instantaneous remote revocation, out-of-order merges across devices, or offline write acceptance. Remote permission changes need a stated lease. The drupflare adapter still bypasses spool for requests that carry a cookie or an Authorization header, so this path does not run in production.

    spoolExpress (src/express/index.ts) and spoolHono (src/hono/index.ts) answer /spool-sw.js and /.spool/* through the Spool object. They tag an eligible HTML reply (GET, status 200, text/html, no content encoding) and pass every other request through. The node tests run six checks on Express, on Hono with @hono/node-server, and on Hono through app.fetch: 18 of 18 pass in tests/node/middleware.spec.ts (L1). Each check compares the body and headers with the same application run without the middleware, so a POST, a HEAD, a JSON reply and a 404 reach the application unchanged.

    In the minimal fixture, one RESTful application runs on Express 5 and on Hono 4 (the reading used Express 5.3.0 and Hono 4.13.19). A 57-line adapter sits over one core and one read module that the application shares between server and browser. The fixture passed 47 of 47 counted checks on each of three backends in three engines (L1):

    check expected result
    12 pass-through requests, with and without the adapter equal 12 of 12 on each backend
    first document, baseline plus the client script 3 3 in each engine
    second view, stub and pack 2 2 in each engine
    100 in-page views of unvisited articles 0 0 in each engine
    100 item reads and 20 list queries 0 0, bytes equal to the server's
    PATCH, then item and list reads 1 1
    five document navigations, 1.5 s dwell 0 in Chromium and Firefox 0, 0 and 6 in WebKit (five script checks and one client-script refetch)

    The application declared its tables, called commit after each write, and wrote its own read module. The adapters are not zero-configuration. The library does not serialise functions for the browser. Templates ship as compiled JSON, and build:sw bundles the worker.

    The question is how many server hits one service-worker navigation makes, by registration setting and engine. The instrument is the origin's request log, because the browser is not trusted to report fromServiceWorker. The method is 13 navigations per engine (clicks, typed navigations, a new tab) over 12 synthetic 30 KB pages on localhost, on the Mac (measurements/zero-network/2026-10-18.json, L1).

    registration engine navigations reached the origin paths that did
    default registration chromium 13 1 /sw.js x 1
    default registration firefox 13 4 /sw.js x 4
    default registration webkit 13 3 /sw.js x 3
    updateViaCache all, script max-age 86400 chromium 13 0 none
    updateViaCache all, script max-age 86400 firefox 13 0 none
    updateViaCache all, script max-age 86400 webkit 13 5 /sw.js x 5

    The registration is in src/client/register.ts, and the worker script is served with max-age=86400. Neither setting changes without re-running tests/browser/zero-network.pw.ts. The option is documented on MDN.

    WebKit makes no page or data requests and still re-checks the worker script. The test asserts an empty hit list only outside WebKit (tests/browser/zero-network.pw.ts, line 70). The claim covers Chromium and Firefox, on a localhost origin and 12 synthetic pages. No reading on a real site over a real network exists. In a probe, a cross-origin @font-face font cost WebKit one request per local view.

    A view that makes any cross-origin request is not zero-network, and the service worker answers same-origin requests only. On the 16 sites of the on-wire reading, 63% of proxy requests on a cold home page and on a warm internal page, and 73% on a repeated home page, went to other hosts (docs/impact.md, Third-Party Requests).

    One request breaks the saving. In round 0 of the network arm of measurements/rapl/2026-10-19-views.json, 599 of 899 origin hits were /cdn-cgi/rum, Cloudflare's analytics beacon. A local view that lets such a post through is a network view again, with its bytes and its origin work. Thiagarajan et al. (WWW 2012, full text, a 3G phone) found that on 10 of 25 sites a page rendered from cache used 6.8% to 40.5% of the networked load's energy. On the other 15, dynamic script and style requests could not be cached, and the paper names Google Analytics as one cause on static pages. spool queues analytics in the worker for this reason. Firefox does not route fetch with keepalive through a service worker, so those posts bypass the queue.

    The reading is measurements/rapl/2026-10-19-views.json, and its retake is 2026-11-15-views.json (L1, method in the Environment table). Medians per navigation above idle, with the range over 8 rounds:

    arm J per navigation origin requests per navigation
    Optimized HTTP caching 1.45 (1.36 to 1.51) 3.00
    Spool local view 0.652 (0.593 to 0.693) 0.00
    Demo shipping headers 5.02 (4.86 to 5.09) 30.75

    The saving against optimized caching is 0.80 J, the difference of the arm medians. The retake reads 0.817 J (+1.9%), a spool view at 0.678 J (+4.0%), and idle at 18.4 W against 18.8 W. Against the shipping headers the saving is 4.37 J, which belongs to the baseline fix. drupflare has since shipped that fix and measured 1.31 J for a repeat navigation of a deployed free-plan site over a real network. A matched spool arm on a deployed site waits for the drupflare adapter.

    The retakes of the other desktop experiments moved between -5.5% and +20.1% on single figures (docs/impact.md, Second Time Point). The largest, +20.1% on a CMS recompute at 15 mJ per request, shows what a single time point is worth on small quantities.

    Energy is a research figure under v1. The v1 counts in this report are exact and carry no energy, so none of them changes the joules here.

    The meter reads the browser, the co-located origin over loopback and the service worker. The round trip is emulated. A sparse real load also pays wake costs this loop never sees.

    The headline applies SWD v4's network (0.059), data centre (0.055) and device (0.080) kWh per GB, 0.194 together (L0, read from the method's web page), to 17,054 bytes of document, and adds the origin request.

    term joules layer
    Network 3.6 L2
    Data centre 3.4 L2
    Device 4.9 L2
    Origin request 0.455 L1
    Radio wake 0.00 L1
    Total 12.4 L2

    The 17,054 B is the median repeat-view document over 59 views from 4 measurements/repeat-nav readings, and scripts/impact.ts refuses to run if DOCUMENT_BYTES drifts from it. Only the document counts, because an optimized HTTP cache already keeps static files. The page's API calls and every third-party request still leave the browser during a local view. The radio-wake term is 0 until a phone reading attributes a wake. As a unit, 12.4 J is 3.43 kWh per million views. It is an allocation. No meter read it, and the metered 0.80 J is the figure to compare against optimized caching. Energy stays a research figure under v1, and the v1 request counts do not change this allocation.

    SWD's network term applies a per-byte intensity to measured bytes. Network energy is not proportional to data volume (Mytton, Lunden and Malmodin 2024, abstract only), and one institution's traffic cannot be tied to an operator's power state. The model likely overestimates actual emissions, by its own account.

    Z_daily is the strict zero-network views of a day net of the sync and flush requests spool itself sends. In the server-runtime reading, one window of six per runtime made up to 6 /.spool/* requests about 15 minutes after the worker was primed, which matches the default soft bound of public routes expiring. The rig counted /.spool/* requests without recording their paths, so the cause is read from timing. The medians leave that window out, and docs/impact.md (Server Runtimes) says so.

    A network view costs the server 0.61 to 0.98 J across node, bun, hono and workerd, 6 windows each (L1). A local view sent nothing in all but one window per runtime, and its measured energy (0.32 J at most, as a median) sits inside the idle drift.

    A worker costs energy too. In the worker request reading (8 rounds, 60,000 fetch calls of a 4,096 B asset per window), the browser cache cost 14.0 mJ per request, a worker answering from CacheStorage 18.9 mJ and a conditional 304 19.3 mJ. A worker answer saves energy only for URLs the browser would revalidate on more than 93% of views. The ranges of the worker and the 304 overlap.

    A server cache already removes recompute, so spool's increment against one is the transaction. Measured on paisley-park (L1, 8 rounds unless noted):

    workload origin energy per request
    cache hit 0.717 mJ
    CMS render 15.1 mJ
    analytics page 10.9 J
    local 8B model, CPU+GPU 286 J

    Against an optimized server cache a local view saves 0.82 J on the CMS page and 0.98 J on the analytics page per navigation, whatever the page costs to compute. Against recompute on every request the saving grows with the computation: 0.89 J and 12.4 J. The 8B model figure includes a sampled GPU board with a stated accuracy of +-5 W and no energy counter, so it is labelled L1-sampled. It counts only for model-derived results that repeat for identical authorised inputs.

    The projection strategy relocates work. On the desktop a local projection costs 0.19 J more than a static local view when records come from CacheStorage. It removes 3.57 J of server work per view above a server cache, and its 1.73 MB of records repay after about 340 views against the attributional byte term (L2).

    A cold visit through spoolProxy used to fetch the page twice. The proxy now names a SHA-256 of the page in Spool-Artifact, and the worker keeps the page it already received when its own hash matches. The reading (measurements/first-payload/2026-10-26.json, Chromium, loopback, synthetic page, 5 rounds per arm that came out identical) records origin requests from the first controlled visit to the first strict local view.

    arm requests, cold to local /.spool/artifact requests origin work
    assembly, off 2 1 2 origin page fetches
    assembly, lever 1 1 0 1 origin page fetch
    template, off 2 1 1 load
    template, lever 2 1 0 1 load

    The counts are exact. The byte columns are uncompressed counts of a synthetic page, so they show the shape of the saving and give no size for a real page. No reading says how many visits are cold. inlineMaxBytes saves the artifact request and nothing else, and is off by default.

    A dataset keeps rows on the device, and an update sends the rows that changed. The reading is measurements/dataset-baseline/2026-11-15.json (L1, synthetic rows, one machine, one run each, in-process createSpool and node:zlib). Bytes after one changed row:

    rows v0.3 list refetch v0.4 patch native 200
    50 2,236 227 2,379
    500 19,981 228 20,239
    5,000 191,744 232 193,240

    A 304 under native HTTP is 220 B at every size. The v0.4 seed costs more than the v0.3 seed by 89 B at 50 rows, 867 B at 500 and 13,881 B at 5,000, so a seed is repaid after 0.044 to 0.072 updates per device. A device that never returns pays for the seed and gets no update, and the admission rule datasetBenefit and the provisioning rule limit how often that happens. The per-site table in docs/impact.md (What a Site Pays) uses a 7-day hold and a return survival of 0.50, both L3 and unmeasured. Safari deletes script-writable storage after 7 days without interaction (WebKit blog, full text), and Chromium and Firefox show no time-based deletion. No source gives a single-site return interval or a survival rate.

    datasetBenefit (src/protocol/provision.ts) counts views from a prior, and the site table counts views from traffic. The two agree on arithmetic, and this report makes no claim that they reach the same decision at any site. The server measures gzip for its seed size and the reading uses brotli, so the decision inputs differ from the reading's bytes.

    The v0.3 baseline work found two defects in v0.3 itself: a query route over record references passed the server proof and failed the client's, and default priors declined every data route. Both shaped the dataset design.

    The catalogue ships the data of pages a visitor may open next when the expected share repays the entry. The replay uses MSNBC (UCI dataset 133, CC BY 4.0): 989,818 visitors over one day in 1999, a median of 2 pages each, 354,425 scored first views (measurements/nav-replay/2026-10-26.json, L1 counts, L2 joules). A population first-order model earns 3.62 J per provisioned KB at a 473 B entry where the all-views share earns 2.81 and popularity 1.50. Nothing pays at a whole document, and population-first provisions nothing at 2,048 B.

    The first run credited repeat visits and was wrong. The calibration table found the all-views share over-confident exactly where decisions are made: 0.259 given and 0.039 observed in the 0.20 to 0.40 bin. Models with each visitor's own history match the population model exactly, because a visitor here opens two pages. The data cannot show whether multi-day history helps.

    trim serves a site's stylesheets with rules that no page or script of the site can match removed. The proxy does this because a service worker cannot save bytes on a file it already fetched. It applies to a network view of an unseen page and saves nothing on a local or repeat view.

    The reading (measurements/trim/2026-10-19.json, with a second date in 2026-11-15.json; Chromium coverage and DevTools, zstd; 85 pages on 10 Drupal sites) fetched 303 stylesheets and removed rules from 233. The checks:

    check result
    Oracle A, false removals 0 of 26,571 rule uses
    Oracle B, render pixel-identical on 62 pages; the untrimmed control matched on 65
    leave-one-out, guard fired on 33 of 75 internal pages
    leave-one-out, Oracle A 0 of 3,643 rules lost, on the 13 pages the guard let through

    Oracle A reads Chromium rule usage on the original CSS and is this project's own check, so no external oracle confirms it. Oracle B differed on 4 pages where the control did not, and one screenshot per arm is a small sample.

    The typical first view of an internal page saves 3.2 KB (2.21 J, L2), and the mean is 15.2 KB (10.6 J). A few pages with large unused files carry the mean. JavaScript is left alone: used same-origin JavaScript rose from 36% at load to 40% after one scroll, and CSS stayed at 9%, so no load-time measure says which of the rest a visitor will run.

    trim does not guard a same-origin stylesheet that carries integrity, and the browser rejects the rewritten file. The 52-page first-view corpus has 4 pages with a stylesheet integrity attribute, all cross-origin (pro.fontawesome.com), which trim never rewrites (sameOriginKey, src/trim/manifest.ts). It is listed in docs/security.md (Open Limitations) and not fixed in this release.

    Aggregate names churn. Over 27 days between the two trim readings, 2 of 10 sites kept the same set of aggregate names (L1). The changed names carry a median of 59.5% of a site's aggregate transfer bytes (L2). Across the 4 sites where an earlier file still answered, the zstd dictionary size over the standalone size has a median of 0.06. Two readings show churn between two deployments and give no rate.

    dictionary serves public CSS and JS as dcz or dcb against an earlier file of the same directory (RFC 9842). The dictionary-size reading (measurements/dictionary-size/2026-10-22.json, 356 new files of 10 Drupal sites, bytes only, L1) compares four ways of choosing the base, each against brotli 11 alone.

    • A browser that picks the latest earlier file of the same directory saves 2.0% with dcz and 3.3% with dcb at the median site.
    • A server base used once the visit has fetched it saves 3.9% with dcz, because the base must be fetched before it can serve.
    • A server base held from an earlier visit saves 29.9% (chosen with the page measured) and 32.6% (without).
    • The oracle, the best earlier file of the same kind, saves 41.4%, and no browser reaches it.

    How many visitors hold a base is an L3 scenario that no reading measures. docs/impact.md brackets the median-site saving at 6.5% when 10% of visitors hold it and 22.1% when 70% do. chooseBases has two scoring policies, held and first-visit, and neither is a proven minimum of total transfer.

    One pair in one browser: Chromium 151.0.7922.34 negotiated the transport, and one page load fetching a 1,719,688 B target cost 769.4 mJ above idle as brotli (432,066 B on the wire) and 686.1 mJ as dcz (105,331 B), 11% lower over 6 rounds of 60 loads (measurements/rapl/2026-10-22-dictionary-load.json). The retake reads 766 and 720 mJ. In this pair dcz decode costs no more than brotli decode. The pair says nothing about how many visitors hold a dictionary.

    The image-crawl reading (measurements/image-crawl/2026-10-22.json, 70 desktop pages on 16 public sites, empty cache, L1 bytes, L2 joules) gives WebP at native size a saving on 59% of pages, with a median page of 65.5 KB (45.7 J) and a mean of 1,211.8 KB (846 J). Resizing to the rendered width reaches 43% of pages. Autoplay video deferral reaches 10%, and a YouTube or Vimeo facade 9%. A few image-heavy or embed-heavy pages carry the mean, so the share of pages with any saving and the median site describe the typical case.

    Format-only WebP does not lower decode energy (measurements/rapl/2026-10-22-image-decode.json, 40 images, 6 rounds, one Chromium). Through createImageBitmap, a native-size WebP cost 1.39 times the original's energy and a WebP resized to the rendered width 0.79 times. Through an <img> at its CSS width the native WebP was 0.95 times the original, with an overlapping range. A conversion costs 0.57 J with the module loaded. The decode saving of an <img> repays that after 8 views at the rendered width and 25 at native size. One kilobyte moved is 0.70 J at the SWD rate (L2), which exceeds the decode saving of a view, so the proxy converts every image it can. That arithmetic leaves the network, which has no metered figure, out of the metered column.

    Lazy loading changes when an image loads, so its saving exists only for a visit that does not scroll. The rewrite put loading="lazy" on the largest contentful element on 1 of 23 desktop pages at skip 4 and on 2 of 23 at skip 2, and no tested value reached zero on both profiles. lazy stays off by default.

    The activity hook is cooperative: window.spool.activity.register hands spool a pause and resume for a page's own loop. The reading (measurements/rapl/2026-10-26-idle-activity.json, 8 rounds, nothing dropped, one desktop) shows a requestAnimationFrame loop with its box off screen drawing 2.71 W above idle and 0.16 W with the hook, so the hook removed 2.55 W. The same page hidden with a once-a-second poll shows a hook saving of 0.28 W with a range of -0.07 to 0.46 W, so no hidden-page saving is claimed.

    The crawl (measurements/avoidable-loops/2026-11-15.json) loaded 60 public sites and counted 108 pages. A frame loop of 20 or more callbacks a second ran in the visible window on 17 of 108 pages (15.7%, Wilson interval 10.1% to 23.8%). A video played with no input on 24 (22.2%). At least one of six classes appeared on 56 (51.9%). The shares count pages loaded fresh, with no traffic weighting. The operator used the machine during the first half of the crawl, and the reading records no per-window time that could locate a disturbance. No page reached the hidden frame-loop threshold.

    The repeat-view requestList of 15 sites (measurements/repeat-nav/2026-10-19-requests.json) puts each third-party request in a class by its cache headers. The median site's third-party bytes are 92.2% uncacheable and 0.0% immutable. Answerable bytes, meaning immutable or long responses from hosts the origin table treats as cache-remedy, have a median of 0 B (L2, a ceiling that forecasts nothing). 99.5% of third-party bytes come from hosts src/report/thirdparty.ts does not know. The worker-side third-party cache exists and has nothing to answer on this sample.

    A public template, projection or data route with a query schema holds a whole collection and a proof of it. The worker answers a query locally only when every parameter is in the schema and the proof verifies. The proof shows integrity against a declared collection. Completeness comes from the route's declaration that list holds the whole collection.

    SQLite serves as an independent oracle for correctness: 400 seeded random queries in tests/node/query.spec.ts and 300 random plans for the plan engine. Strings compare by UTF-16 code unit here and by bytes in SQLite, so a character above U+FFFF orders differently. A test pins that difference. A principal route cannot declare query.

    The capacity channel is a ceiling that counts only when equipment is removed. A retired server-year is 3.80 MWh (282 W at a PUE of 1.54, L2). The sensitivity table in docs/impact.md (Capacity) is a model with an L3 read share, and a real report replaces it with peak traces. No retirement is demonstrated, and "no physical capacity saving demonstrated" is a valid report beside a large drop in requests. A retained node can save more than a request's own work: one sparse isolated request brackets at 29 to 56 mJ against 15.1 mJ of work, bounded at 0.046 kWh per million views (L2 over an L3 request count).

    The institution report leads with money, storage and trust. Its hosting counterfactual is a peak-sized deployment at 390 kWh a site (L2), with a production deployment at 224.2 and a single small VPS at 9.3 beside it. None is measured against a real Acquia or Pantheon site. The list-price egress and request saving of a million local views runs from $0.30 to $2.45 across four hosts (L0 prices, L2). The storage block prints no figure because the worker does not report held bytes, and the trust block prints none because no live site exists.

    A closure records the mechanism, the measurement that closed it and the objective that stays open. No closure here closed an objective.

    mechanism measurement that closed it objective that stays open
    Facades for providers beyond YouTube and Vimeo measurements/embed-markup/2026-10-26.json: 249 pages of 52 sites, server-rendered markup. One Kaltura iframe, and it is a hero loop. The largest third-party bytes in the repeat reading are an autoplaying <video> embedded third-party media bytes; Save-Data poster replacement of ambient loops
    Automatic HTML decomposition measurements/payload/2026-10-19.json: 172 internal pages of 10 Drupal sites, median unique part 7,603 B (brotli 5), 2.9% of pages at or under 2 KB unique-part entries for opaque pages; site-supplied fields, a Drupal module
    Device-local navigation learner measurements/nav-replay/2026-10-26.json: per-visitor blends equal the population model, a device-only model provisions nothing at a 2-page session next-page accuracy at equal bytes; real multi-day traces or a design partner
    Energy-weighted image variant policy measurements/rapl/2026-10-22-image-decode.json and -image-encode.json: the transfer term at the SWD rate outweighs the decode difference, so the weighted rule always picks the smallest file image bytes and joules where images are; a per-image choice from content class
    Persistent shell not started. It depended on automatic HTML decomposition, and its saving rested on a guessed 0.2 J per local view that no reading backs browser CPU and joules per navigation; content-visibility, bfcache eligibility
    Power-state elasticity as an MWh channel docs/impact.md (Retained Nodes): about twice the work per sparse request, linear when batched, below the work cost above about 500 requests a second a fleet power-policy measurement on a server with visible states
    Network-gear power states no causal tie can be shown from one institution's traffic (Counting Rules, 5) none attributable
    Compute elimination as an unconditional channel docs/impact.md (Against a Server Cache): 0.82 J against a server cache for a CMS page the per-workload compute ledger
    Icon and meta-link interception measurements/link-assets/2026-10-20.json and measurements/rapl/2026-10-20-sw-request.json: worker answer 18.9 mJ against 14.0 mJ for the browser cache; optimized headers give 0 requests in all three engines WebKit media refetch on every play
    Proxy-side JavaScript removal Chromium coverage: 36% used at load, 40% after one scroll, so a set removed for one visitor is wrong for another script cost; see the script survey below
    Browser-chosen dictionaries measurements/dictionary-size/2026-10-22.json: 2.0% and 3.3% at the median site a server that nominates the dictionary, built as chooseBases
    Hidden-page pause measurements/rapl/2026-10-26-idle-activity-hidden.json: the saving range runs through zero hidden-tab work; Chrome's intensive throttling caps what a pause can save
    Third-party answers from the worker's store docs/impact.md (Third-Party Cacheability): answerable bytes 0 B at the median over 15 sites, one date third-party repeat bytes on a wider sample
    Stable chunks and stable aggregates docs/impact.md (Churn Between Two Readings): the built dictionary path covers churned aggregates at serve time. Stable chunks need build control outside spool bytes of churned aggregates
    End-to-end metered session across versions closed as not metered: document views are zero-network in v0.2 to v0.4 by the same path, dataset paths differ in bytes the dataset arms give exactly, and loopback cannot meter network energy an end-to-end session arm on a second machine
    WebKit's per-navigation script check, removed from site code on macOS tests/browser counts and the WebKit source read on 2026-11-18: one script request per document navigation at a 1.5 s dwell (6 of 6 on macOS, 10 of 10 on Linux); the soft-update request carries no cache partition and is never stored the check is a WebKit behaviour; a bug report and a change in WebKit, not in site code
    A tab that reads in-page is checked by max-age alone 0 requests in Chromium, Firefox and WebKit for in-page reads at any stub age, and 0 for 20 in-page reads 25 hours later with an update waiting (Linux, faked clock) a staleness bound for a tab that never navigates, which the client must enforce with its own contact
    One record per row, with a full read on every view 62 to 112 ms a view at 10,000 rows and 675 ms at 100,000 rows, in the earlier construction (L1, one run) a per-view cost that stays flat with site size; the packed store reads one block, 0.244 to 0.602 ms a lookup (L1)
    A contact inside the lease, or a refetch of the stub before it expires 0 requests inside the lease; one request on the first document navigation after it, in Chromium and Firefox, at leases of 2, 6 and 20 s (L1) a bound for a tab that never navigates, which the client owns

    Three more closed on reasoning with no committed reading: AVIF (worse than WebP in tinyimg's encoder), font subsetting (no tool, no figure) and one site-wide CSS bundle (it would change cascade order).

    The survey read prior art for cutting script cost at a proxy without breaking JavaScript. Every tool that rewrites whole sites documents its own breakage classes: document.write, code that must run before DOMContentLoaded, order-dependent scripts and a content security policy. Muzeel and Lacuna report savings in their abstracts, with no breakage count and no full text read. The ranking:

    • Build first: a dry-run verification harness that loads each page twice in a real browser, original and rewritten, and diffs the serialised DOM, the console and the request list. Build an advisory coverage report beside it.
    • Hold: a serving rewriter. Lossless minification is the first candidate behind the harness. A trial with the Bun bundler's minify arms dropped or renamed top-level bindings of classic scripts on some bodies, even in the whitespace-only arm. A classic script's top-level names are globals, so a printer that keeps them is a precondition. The trial ran on the identity-coded corpus, and the mechanism does not depend on the encoding.
    • Refuse: live dead-code removal, whole-site loader rewriting, property mangling and function-level stubs on the live path. A synchronous result cannot be fetched on the main thread.

    The objective of cutting script cost stays open through the harness, facades for allowlisted widgets and file-level splits behind a dynamic import.

    The survey asked whether many small requests cost more than their bytes. No source supplies a per-request joule figure for DNS, handshake, headers, CDN or radio. The SWD v4 model has no request term. The one bundle-versus-split measurement read is a 2015 single-site test in which compressed JavaScript grew 2.5% when 28 packaged files became 296. It speaks to compression and says nothing about energy. Hashed file names are an unreliable split signal. Only a build manifest or preload tags are signals a proxy can trust.

    The chunk-split rig is built (scripts/measure/rapl-chunk.ts) and will not run in this release. It serves the same synthetic JavaScript as 1, 5, 25 and 50 scripts, each brotli-compressed on its own, at 0 and 40 ms emulated delay. Its offline smoke counted exactly one request more than the page needs in every arm, and the extra request is unidentified. A negative result would close de-chunking and keep the objective of fewer bytes and joules per view.

    The cold first-view rig replays 52 recorded pages from 26 sites over local HTTPS, 5 cold navigations per window and 2 rounds (measurements/rapl/2026-11-16-first-view.json, L1 windows, L2 per page). The median page costs 47.5 J above idle and the mean 54.0 J. For the same pages the attributional figure is a median 2,845 J, and the metered figure is 1.97% of it at the median of the page ratios (L2). The two quantities use different boundaries, so the ratio describes these pages and corrects nothing.

    A regression of each page's metered joules on its image, script and other bytes has a residual standard error of 27.4 J and an R squared of 0.30 (L2). The coefficients, with 95% bootstrap intervals over pages (2,000 resamples, fixed seed):

    term value share of metered joules
    intercept, J per page 24.10 [15.63, 32.55] 44.6%
    script bytes, J per MB 10.43 [6.39, 15.67] 34.9%
    image bytes, J per MB 1.56 [-0.98, 4.47] 4.7%
    other bytes, J per MB 6.97 [1.24, 20.37] 15.8%

    The script and image intervals do not overlap, so script bytes cost more per byte than image bytes at this resolution. That is one bootstrap on 52 pages and no formal test, and the ratio of the two point estimates has no interval. Bytes alone explain 0.23 of the variance, and a fixed per-page term accounts for 44.6% of the joules. The cost of a page is therefore not proportional to its bytes. More rounds would not narrow the intervals much, because they measure the spread between pages.

    The facade arm replaces each YouTube or Vimeo iframe with a link, on the 8 pages where that changes the page. It saved 15.8 J per page on average and 12.2 J at the median, with 1,111 KB fewer body bytes on average. Eight pages are too few to rate a facade on a page with an embed, and one of them (rice.edu-2) has no embed recorded and shows no change.

    Each paragraph says what happened, what it cost and what now prevents it.

    The first-view corpus was identity-coded. The recorder forwarded Playwright's route.request().headers(), which has no Accept-Encoding, so origins answered uncompressed. The corpus held about 150 MB of identity-coded text and only 19 of about 2,800 responses were encoded. Every first-view byte count, the attributional joules and the class fit were inflated, and the metered joules were taken against replays with more loopback bytes. The 2026-11-15 first-view reading was invalid and is replaced by the 2026-11-16 reading on the v3 corpus. The fix is ACCEPT_ENCODING and forwardHeaders in scripts/measure/first-view.ts, with a unit test in tests/node/measure.spec.ts. The corpus was re-recorded (52 pages, 26 sites). The cost was a day of rig time on paisley-park and a measurement that cannot be used. The check now is to read the encoded share of a corpus before running a meter on it.

    The recorder dropped every YouTube embed. The second recorder defect hid behind the first. rawFetch in scripts/measure/first-view.ts used Node's default 16 KiB response-header limit, and www.youtube.com embed responses exceed it, so each request failed with Parse Error: Header overflow and was aborted unrecorded. None of the 26 YouTube iframes in the 52-page corpus has a recorded embed document or player payload, and Vimeo has 3 recorded for 2 iframes. In the replay the original arm requests the embed and gets an unrecorded 12-byte miss, so it never pays for the player, while the facade arm adds the recorded thumbnail of 7 to 62 KB. The arm could show only the thumbnail's cost. Where the embed was recorded (Vimeo on utah.edu-3) the facade arm served 55,230 B less, as it should. The fix is MAX_RESPONSE_HEADER_BYTES (256 KiB) passed as maxHeaderSize, with the regression test 'records a response whose header block passes the 16 KiB default' reproducing the exact error on a 40 KB header. The v3 corpus holds 35 YouTube embed responses. rice.edu-2 and swarthmore.edu-3 are YouTube pages with no embed recorded.

    Tracker-heavy pages differ run to run. A single-navigation smoke seemed to show a facade effect on a tracker-heavy page. It was loader timing. In one arm on one corpus, wsu.edu-3 facade runs served 5,968,957 and 6,380,396 B, 411,439 B apart, and one run lacked five connect.facebook.net scripts and a 148,693 B googletagmanager script. rice.edu-1 original runs served 2,326,689 and 2,231,233 B. miracosta.edu-3 original runs served 3,400,929 and 3,269,698 B and its facade runs 3,322,654 and 3,152,811 B. Single-navigation bytes on such pages carry roughly 95 to 411 KB of noise, larger than a facade effect of tens of KB. utah.edu-3 replays byte-identical. Only multi-round, many-page statistics can resolve a facade effect, and this report quotes no per-page smoke figure.

    A blanket certificate flag stopped Chromium's HTTP cache. The warm arm of the first-view rig launched Chromium with --ignore-certificate-errors against a self-signed replay certificate. On yale.edu-1 a second load in a new tab got 3 of 46 long-lived resources from cache. Pinning the certificate's public key with --ignore-certificate-errors-spki-list restored 46 of 46. A same-tab reload with the blanket flag reused 45 of 46, so the exact Chromium rule is unknown, and the fix rests on the measured effect. The cold and warm arms now differ in TLS handling, and whether that changes a cold view's cost is unmeasured. A unit test pins both flag lists.

    A retake broke the reading folder. scripts/impact.ts picks the newest reading per rig and experiment, so a retake landing beside its original would have silently replaced the headline, and two impact tests that read the real folder failed. The fix pins every headline figure to ORIGINAL_RAPL, adds retakeOf and prints the retake in its own section. The impact tests use a withoutFirstViews helper so they do not depend on whether a first-view reading exists.

    An allocation was read as a meter. The 12.4 J figure is SWD v4 spread over bytes, and early notes treated it as a reading. docs/impact.md now prints the metered figure beside it and the label on every row.

    The demo was treated as a baseline without spool. The demo is built from drupflare's latest tree, which already runs spool v0.3 features. Its 0.65 J local view was used as a ceiling for what a mechanism could save per view. A spool-served page sets no such ceiling.

    A closure was written without reading its interval. A point estimate for script bytes looked higher in joules per byte than image bytes. The bootstrap intervals overlap, so the ordering is unestablished. A persistent-shell bound had the same fault: it used a guessed 0.2 J per local view that no reading backs. A closure now cites the interval beside the claim.

    The first navigation replay credited repeat visits. The device-local learner's first run counted pages a visitor had already opened as predictions. A rig needs a baseline that already holds what the product already holds. Opened pages are now held without a prediction.

    A per-fetch estimate was a navigation delta divided by requests. The early 0.1 to 0.3 J per request figure overstated a fetch by 5 to 15 times. The worker request rig measures the fetch directly.

    The first idle-activity run was polluted. Only 2 of 4 rounds were kept, with idle windows from 18.4 W to 67.6 W. The 2026-10-26 rerun kept 8 of 8. One plain-arm window read 28.8 W in round 1 while the other 7 read about 20.7 to 21.0 W. The cause is unknown, and the median does not depend on it.

    bun's npm shim first on PATH broke the pack test. ~/.bun/bin/npm shadowed nvm's npm and printed no usable npm pack --json, so the packed-package spec in exports.spec.ts failed with bun first and passed 30 of 30 with nvm's npm first. It looked like a repo defect. PATH now puts bun's bin last.

    Package self-imports passed locally through dist and failed in CI. The gate runs with dist moved aside before it is called green.

    An IndexedDB version bump broke old workers. Raising the shared spool database to a higher version made v0.2 and v0.3 workers fail with VersionError, and the upgrade test's "still serving" cases failed 6 of 6. New stores go in their own databases, and tests/browser/upgrade.pw.ts runs both directions in three engines. A first local run of that test also skipped its 3 Chromium cases because beforeAll swallowed an import error. CI throws instead of skipping.

    SECURITY.md listed 0.1.x as supported at 0.4.0. It now lists 0.4.x only.

    The first WebKit rig counted one script check per phase. Its 20 document navigations ran in 320 ms, and WebKit's one-second timer ignores a navigation that arrives while it runs. The rig therefore saw one check where there were many. At a 1.5 s dwell the count is one per navigation. The repository's browser test rules require a 1.5 s wait between document navigations for this reason.

    The cold-worker leak was recorded as an entry cost. An earlier rig counted the extra document after a browser restart as a cost of entry and did not tie it to the worker's state. The leak comes from the navigation going to the network while the worker starts. It appears after a restart or a forced stop, and not after idle time.

    The baseline replay logged exit codes wrongly. A $(date) substitution reset $?, so the PASS and FAIL lines are the record and the logged exit codes are not.

    keep_names broke functions shipped with toString(). Wrangler's bundler injected a __name helper that the page did not have. The first workerd run of the Express and Hono fixture failed every browser phase until keep_names was off. The library does not serialise functions for the browser. build:sw bundles the worker.

    A corrupt-delta check compared against the wrong state. On the first Linux WebKit run, the check compared the rejected install with the server's latest title, which that engine had not received. The check now compares with what the device held before the install, and the rerun passed.

    An early theory counted document navigations as free. A document navigation can cost a request even with the worker running (WebKit's script check), and a cold worker adds the document in Chromium and WebKit. Counting document navigations as free undercounted both.

    A digest covered rows and not the path index. In the minimal construction, the first digest left the path index out, so a corrupted index entry was accepted. The library's digest covers every table, and each row hash includes its table and key (src/protocol/query.ts, src/protocol/bundle.ts).

    The comparison is with three sibling reports: bytebox, the drupflare worker's Zend park, and tinyimg.

    row spool against the siblings
    Claims backed by a measurement with method equal. Every reading carries method and exclusions
    Refuted approaches logged with their measurement equal to the park and tinyimg, stronger than bytebox. One closure (the persistent shell) rests on a guessed 0.2 J
    Instrument mistakes recorded equal in kind to tinyimg and the park, and recent: the rig's own checks found the corpus defects above
    Reproduction from a clean checkout weaker than bytebox and tinyimg. The joule readings need a Linux host with a readable counter, and the 2026-11-15 readings are tracked in measurements/
    External validation weaker than all three. One desktop, loopback replay, synthetic pages in places, no traffic-weighted mix, no deployed site, no replication by anyone else
    Size of the evidence base moderate. 16 sites for repeat navigation, 10 Drupal sites for trim, a public dataset for navigation, one desktop and one phone
    What the report says it cannot show strong. docs/impact.md (What This Does Not Claim) and docs/security.md (Open Limitations)

    The v1 request counts were repeated on Linux (the Playwright 1.64.1 noble image on a Ryzen 9 9900X, Chromium 156.0.8078.80) and over real HTTPS against a deployed Free-plan Worker. The Linux counts match the Mac counts except for one unexplained case: after a restart with no worker, Linux Firefox refetched one immutable client script with the document, twice in two runs, and macOS Firefox did not. The cause is unknown. The cold-worker race was measured on loopback and on one real network. The Safari figures come from one Mac, driven through WebDriver.

    Three contributions have the best case for being research-grade. Each has one measurement that would strengthen it.

    1. The gap between an attributional per-view model and a metered desktop reading. The method is written, the labels are kept and the two quantities have a stated relation. The measurement: the end-to-end session arms (origin, optimized HTTP caching, each spool version, one mechanism off at a time) on a second machine, with the first-view figure now re-recorded on the v3 corpus.
    2. Proxy-side CSS trimming with a per-page guard. The guard is checkable and has a measured fire rate (33 of 75). The measurement: a blind test on sites not used to build the manifest, with a real browser DOM diff over clicks and scroll, reporting the guard's miss rate with an interval. That also tests the blind spots the security document names.
    3. Zero-network navigation under the chosen registration. It holds for Chromium and Firefox. The measurement: the registration in WebKit over 50 or more real navigations on a real site over a real network, with the zero-hit assertion on for WebKit or a documented exception.
    • The first-view reading covers a page without spool. The cost of spool's own worker install and provisioning on a first visit has no reading, so the net of a first visit is unmeasured.
    • The cold first-view run was configured for 3 rounds and stopped after 2 once the direction was clear. The published reading has exactly 2.
    • The warm-arm rig (first-view-warm) and the chunk-split rig are built and will not run in this release.
    • The retake queue after the cold first-view run (projection, dictionary-load, image-decode, Drupal render) was cut, so the existing readings for those stand. The drupal-render rig has a smoke run only, so no figure compares an uncached Drupal render with a cached one.
    • Principal datasets and declared writes ship behind flags that are off. Both are unreviewed, and a flag change needs a redeploy because no runtime kill switch exists. Turning a flag off leaves queued writes and held rows on the device until a logout, a Spool-Clear or a partition change.
    • The six pass conditions for the drupflare adapter are not re-verified. They need the deployed worker, Cloudflare observability and a Drupal save path, which is production-touching.
    • Design-partner items: an institution pilot with real query and traffic data, multi-day device traces, a retirement ledger from a real estate, independent correctness and electricity evidence, and an external security review.
    • Ambient media has no metered reading of the joules an autoplaying video or looping embed costs. Bytes (measurements/image-crawl/) and prevalence (measurements/avoidable-loops/) are measured.
    • The subresource modes passthrough and static-routing have no reading. The README says neither is measured to save energy.
    • Two protocol facts are untested: an old worker against /.spool/dataset and /.spool/write, and a multi-instance site where a retry lands on another instance.
    • A public data route without a family answers a request that carries Authorization from the public store, which the protocol says it must not do. Changing it changes every data route that receives a bearer header, so it needs a ruling first.
    • A Bearer read of a family needs its dataset declared as a principal dataset, so each signed-in user holds a sealed copy of it. Whether a per-user copy of a public API dataset is acceptable is an open design question.
    • A collection answer matches only an API whose collection JSON equals the output of shapeRows. No declared mapping exists for other shapes.
    • Shadow mode for cross-origin families is untested.
    • A multi-version install (two or more missed versions in one install) has no node test.
    • The lease has node tests for its install paths and no browser test.
    • The install does not check the version, so a pack older than the head installs.
    • The quota check runs only when installPack receives the pack's size.
    • Plan routes have no query index, so a plan-backed list reads every block. Path and query index tables cover public routes only.
    • Block size and codec are not chosen by measurement. The earlier construction measured one solid brotli stream as smaller on the wire than gzip blocks (see Packed Store).
    • Compaction rewrites every block, and applyDelta reads each changed key in its own transaction.
    • The WebKit asset probe (a fetch with cache: 'only-if-cached') is measured in the minimal construction. The library's worker does not carry it.
    • Express's res.writeHead and res.flushHeaders are not intercepted. A reply whose Content-Type is set only through writeHead passes through untagged, with no envelope and no client tag. The reply stays valid, and the gap is silent.
    • The Hono adapter clears c.res before it sets the decorated response, which relies on the setter in the installed Hono. A test catches a regression on the current version.
    • The conformance kit skips its error-500 check. A request cannot provoke a 500 without knowing a route that throws, and a conformant server may answer 400 to malformed input.
    • The conformance kit finds routes through /spool-sw.js. A server that does not serve the worker script gets the artifact, beacon-want and principal checks skipped.
    • Safari on iOS, Safari private windows and the 7-day storage cap are unmeasured.

    The first-view reading replays recorded responses over loopback with a self-signed certificate, in a fresh Chromium context per navigation with no service worker and no HTTP cache. 49 of the 52 pages made requests the replay could not answer, and the reading keeps and lists them. The replay server runs on the metered host, so its CPU sits inside the package counter and is not subtracted. Each page's figure is the mean of two windows, and the spread between pages, which the coefficient intervals measure, is larger than the spread between rounds.

    One desktop carries every metered figure. The package domain excludes the display, the network interface, the radio, intermediate equipment and DRAM. The loopback origin has an emulated round trip and no real network. Several corpora are synthetic: 12 pages for zero-network, a single page for first payload, synthetic rows for datasets, and a synthetic CMS and enrollment database for the origin-workload readings.

    The 0.80 J saving is against optimized HTTP caching on a mirror of the demo. The traffic mix, the return rate and the device population of a real site are L3 inputs, and no deployed trace exists. A device that never returns pays for what it provisioned, and a dataset with fewer than 0.044 to 0.072 updates per device does not repay its seed.

    No phone reading is used. The device term is desktop only, and no claim covers a phone, a paced phone view or cellular use. The radio-wake term is 0 until a reading attributes a wake.

    Zero-network holds in Chromium and Firefox and does not hold in WebKit (see Zero-Network Navigation). A view with any third-party request is not zero-network.

    Query answers are integrity-checked against a declared collection. Completeness is the route's declaration.

    Sealed storage gives no protection against script on the origin. Tag names and the write rate are readable through /.spool/sync, and a sealed row can be rolled back. Revocation shows for up to maxStale.

    trim risks correctness and exposes nothing confidential. Its guard cannot see a class a foreign script adds after load, markup injected from an endpoint the crawl did not request, a runtime-built class name, a non-UTF-8 charset or a stylesheet reached through @import. A same-origin stylesheet with integrity fails under trim.

    In shadow mode a non-200 network answer is neither read nor cancelled, so its copy buffers the body until the copy is collected. ga4Sink with debug: true records nothing.

    The attributional figures use SWD v4 intensities read from the method's web page, and no primary paper backs them. The Fawkes figures in docs/impact.md (92% of HTML tags identical across loads 12 hours apart, 75% across a week) were read in full text and are the authors' measurements. spool did not measure them.

    The v1 counts come from a fixture of 1,000 rows, except the packed store's 10,000 and 100,000 rows and the 1,004-URL fan-out. They run on loopback with an emulated origin, or over one real HTTPS link to a deployed Worker. A real site's document sizes, traffic and return rate are L3 inputs, and no reading has them.

    The digest is the sum of SHA-256 row hashes modulo 2^256 (src/protocol/query.ts). It detects corruption under a trusted origin. It is not an authenticator, because whoever can write a pack can write a matching digest.

    The reader caps a frame's compressed size (MAX_BUNDLE_FRAME_BYTES), but it does not cap a block's decompressed size. A hostile pack can therefore use more memory than its frame suggests.

    A static stub cannot carry a new version until the host publishes a new file. On such a host a publication is a deploy. A Worker that serves its own stub costs one invocation per contact instead.

    Playwright's trace recorder raised ENOENT at Firefox context close in one combined multi-engine run. The assertions passed in that run, and the Firefox project passed when run alone. The cause is unknown.