Skip to content

Read the board probe through the import map, and prove rooted layer imports below the page root - #1312

Merged
max-sixty merged 1 commit into
mainfrom
agent-a0e5f2dd84d672fff
Sep 27, 2026
Merged

max-sixty merged 1 commit into
mainfrom
agent-a0e5f2dd84d672fff

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

test_a_detached_board_releases_and_restores_its_lifecycle has failed on main's nightly since #1280 (runs 36305818409 and 36312044583). It found the layer's address by reading data-lf-probe off the first script[data-lf-runtime] in the document. Since #1280 that element is the import map, which carries no data-lf-probe. The probe came back undefined, so new URL('vendor/sortable.esm.js', …) resolved beside /versions/v1.html and 404'd.

The page itself was not affected. No runtime module or host reads the first runtime script; each selects the element that declares what it needs ([data-lf-probe], [data-lf-server], currentScript). The layer at /versions/ addresses is already exercised by the everyday test_render_mcp and test_live_shell_artifact.

  • The test now imports /vendor/sortable.esm.js, the board's own specifier. The document's import map sends it to the revision, so the test holds the instance the board constructs from.
  • test_a_browser_executes_the_published_capture_with_live_api_routes, which the everyday gate runs, now asserts that a rooted layer import from a document one directory below the page root (/versions/v1.html) is the revision's runtime/widget-api.js instance, bundled and unbundled. With the import map removed from page_delivery, both cases fail.

Of the nightly run's other failures, only this one comes from #1280. test_a_shipped_log_replays_its_example_state still fails on the same .lf-margin-spill click timeout it failed on before #1280.

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

🤖 Generated with Claude Code

…mports below the page root

`test_a_detached_board_releases_and_restores_its_lifecycle` has failed on main's nightly since #1280 (runs 36305818409 and 36312044583). It found the layer's address by reading `data-lf-probe` off the first `script[data-lf-runtime]` in the document. Since #1280 that element is the import map, which carries no `data-lf-probe`. The probe came back undefined, so `new URL('vendor/sortable.esm.js', …)` resolved beside `/versions/v1.html` and 404'd.

The page itself was not affected. No runtime module or host reads the first runtime script; each selects the element that declares what it needs (`[data-lf-probe]`, `[data-lf-server]`, `currentScript`). The layer at `/versions/` addresses is already exercised by the everyday `test_render_mcp` and `test_live_shell_artifact`.

- The test now imports `/vendor/sortable.esm.js`, the board's own specifier. The document's import map sends it to the revision, so the test holds the instance the board constructs from.
- `test_a_browser_executes_the_published_capture_with_live_api_routes`, which the everyday gate runs, now asserts that a rooted layer import from a document one directory below the page root (`/versions/v1.html`) is the revision's `runtime/widget-api.js` instance, bundled and unbundled. With the import map removed from `page_delivery`, both cases fail.

Of the nightly run's other failures, only this one comes from #1280. `test_a_shipped_log_replays_its_example_state` still fails on the same `.lf-margin-spill` click timeout it failed on before #1280.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit dbbe607 into main Sep 27, 2026
5 checks passed
@max-sixty
max-sixty deleted the agent-a0e5f2dd84d672fff branch September 27, 2026 13:05
max-sixty pushed a commit that referenced this pull request Sep 27, 2026
The [main nightly
run](https://github.com/max-sixty/leaf/actions/runs/36317643392) failed
the thread-panel gallery case after pressing Reset: the replacement
child still reported “Loading specimen…” when the test's five-second
panel check expired. The test now waits for Reset to become enabled, the
specimen's own completion signal, before checking that the panel and its
three threads returned.

The original case reproduced locally. With this change it and two
neighboring specimen cases pass. This addresses the gallery reset
failure; the remaining nightly failures are tracked in #1283, with the
published-site failures already covered by #1307 and the board import
failure fixed by #1312.

Refs #1283.

Co-authored-by: leaf-agent <[email protected]>
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