Skip to content

Drop the startup probes' header-less registry fallback - #2428

Merged
max-sixty merged 1 commit into
mainfrom
drop-static-registry-probe
Oct 11, 2026
Merged

max-sixty merged 1 commit into
mainfrom
drop-static-registry-probe

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The runtime's two probes of a page's registry, startup recovery in
bootstrap.js and sourceMovedOn in layer-client.js, read the
delivery's layer from the Leaf-Layer header and, when it was absent,
parsed the registry body for $layer.generation. That fallback came
with #414, when edge-served shells lacked Leaf headers. Every host Leaf
supports now stamps the header on what a probe fetches: the local server
on /registry.json and sample routes (http.py, _delivery_headers),
the Worker on page routes and released assets (stampDelivery), and
leaf page --export never probes (its probe is empty and it boots
through offline-delivery.js).

Behavior change: a host that serves the tree without Leaf-Layer can no
longer supervise startup. Its probe settles nothing, so a failed start
waits rather than reloading onto a replaced layer.

  • Delete the body fallback in both probes.
  • Delete test_a_failed_bootstrap_hears_a_static_registry_generation,
    which held the header-less static host.
  • write_live_shell's docstring now states that its host stamps the
    delivery headers, in place of saying a static host may serve the tree.
  • tests/test_site.py's stand-in for the edge stamps Leaf-Layer and
    Leaf-Release on released assets, as the Worker does.

This was written by Claude Code on behalf of max-sixty

The runtime's two probes of a page's registry, startup recovery in
`bootstrap.js` and `sourceMovedOn` in `layer-client.js`, read the
delivery's layer from the `Leaf-Layer` header and, when it was absent,
parsed the registry body for `$layer.generation`. That fallback came
with #414, when edge-served shells lacked Leaf headers. Every host Leaf
supports now stamps the header on what a probe fetches: the local server
on `/registry.json` and sample routes (`http.py`, `_delivery_headers`),
the Worker on page routes and released assets (`stampDelivery`), and
`leaf page --export` never probes (its probe is empty and it boots
through `offline-delivery.js`).

Behavior change: a host that serves the tree without `Leaf-Layer` can no
longer supervise startup. Its probe settles nothing, so a failed start
waits rather than reloading onto a replaced layer.

- Delete the body fallback in both probes.
- Delete `test_a_failed_bootstrap_hears_a_static_registry_generation`,
  which held the header-less static host.
- `write_live_shell`'s docstring now states that its host stamps the
  delivery headers, in place of saying a static host may serve the tree.
- `tests/test_site.py`'s stand-in for the edge stamps `Leaf-Layer` and
  `Leaf-Release` on released assets, as the Worker does.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit b086a15 into main Oct 11, 2026
6 checks passed
@max-sixty
max-sixty deleted the drop-static-registry-probe branch October 11, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants