Repository navigation
Read the board probe through the import map, and prove rooted layer imports below the page root - #1312
Merged
Conversation
…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]>
leaf-agent
approved these changes
Sep 27, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_a_detached_board_releases_and_restores_its_lifecyclehas failed on main's nightly since #1280 (runs 36305818409 and 36312044583). It found the layer's address by readingdata-lf-probeoff the firstscript[data-lf-runtime]in the document. Since #1280 that element is the import map, which carries nodata-lf-probe. The probe came back undefined, sonew URL('vendor/sortable.esm.js', …)resolved beside/versions/v1.htmland 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 everydaytest_render_mcpandtest_live_shell_artifact./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'sruntime/widget-api.jsinstance, bundled and unbundled. With the import map removed frompage_delivery, both cases fail.Of the nightly run's other failures, only this one comes from #1280.
test_a_shipped_log_replays_its_example_statestill fails on the same.lf-margin-spillclick timeout it failed on before #1280.🤖 Generated with Claude Code