Repository navigation
Run the developer-tool tests in the daily CI run, and repair the three tools and ten tests they caught - #6412
Merged
Merged
Conversation
…ey read Nothing runs `dev/tests` in CI, so five main commits changed behavior these tests read without anyone seeing them fail. Each test protected behavior that still holds; its fixture or expectation was stale, so the tests change and the tools don't. - #5964 moved a `leaf` command's refusal into the JSON it prints on stdout. The three desktop Codex `server start` cases and the four unavailable-delivery `start`/`run` handoffs still read stderr, which is now empty. They read the refusal from stdout, and the handoff program forwards `server run`'s refusal line rather than parsing it for a URL. - #4198 made the preview follow `dev/leaf_dev`, `browser/registry.json` and `dev/pyproject.toml` in its checkout. The assets-pin test's fake checkout lacked them, so the preview followed them from the checkout root and subscribed it recursively. The fixture now creates every file `worker_inputs` names, so a new input of that kind keeps it valid. - #6237 indented `docs/index.html`'s example images two spaces deeper, and the composed-image case matched on the old indentation. It now matches the `alt` attribute alone. - #5228 replaced the journey's `locator("main").inner_text()` read with an `evaluate` over the body's children, which the fake deployed page answered with `[]`. The fake answers that read with its recorded text, and its unused `locator` and `_Text` are gone. - #6090 shortened the release marker to git's seven characters; the same test expected eight. Tests: dev/tests/model/test_interact_preview.py, test_product_page.py and dev/tests/process/test_website_server.py, 91 passed on macOS. > _This was written by Claude Code on behalf of max-sixty_
…runner has what they need
leaf-agent
reviewed
Nov 18, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The developer-tool step also runs on pull_request, which contradicts its own comment ("Only the daily run…"), the new dev/AGENTS.md text and the PR description. If you added it to try the step on this draft, drop it before marking the PR ready. If you keep it, each pull request runs the 235 tests for several minutes after the product suite, and the prose needs updating to match.
…f the tree on an in-process restart Review of the branch found the preview's copy of the runtime identity had also lost the bundled packages, so a package edit never restarted a preview's server, and that running_leaf() kept About this page's commit and dirty lines from the first server. The preview now reads read_runtime().identity, and runtime_selection.forget_tree drops the served runtime, the composed layers and running_leaf in one call. The plain-preview test now edits a bundled package and checks each failed tab's layer; the daily step also runs the Node dev tests and writes a junit report. The temporary pull_request trigger for the step is reverted.
max-sixty
marked this pull request as ready for review
November 18, 2026 21:11
leaf-agent
approved these changes
Nov 18, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The red test check doesn't come from this PR. pnpm run check stops on browser/runtime/anchor-placement.js (savedAt calls placement() and reads(placement), and neither is defined there). That code is on main as of #6417, this PR doesn't touch it, and other open PRs fail the same way.
max-sixty
added a commit
that referenced
this pull request
Nov 18, 2026
…ry (#6432) Continues #6411, which moved the server's per-page stores into page memory. A layer whose selection includes a copy the page holds of a package it selects by path is now that page's reading: its vocabulary and composition live in the page's memory beside the copy's stamp (`layer._held`). A `page init` that replaces the copy replaces the layer, which goes when the page's memory does. A selection of shared package roots alone stays held for the process. Before, `_vocabularies` and `_compositions` were module dicts keyed by the inputs and the copies' stamps, and nothing dropped an entry. Each copy-changing `page init`, and each live sample of a page with copies, kept another composed layer (about 2.9 MB served) for the process's life: five inits held five, now one. `layer._Layers` holds a selection's vocabulary and composition together, for the process and per page memory. `once` still composes a layer once for requests arriving together. `forget_layers` (#6412) replaces the shared store, and a page's layer, kept beside it, is composed again. The new test fails against the old store, a process-wide store, one ignoring the copy's stamp, and one ignoring `forget_layers`. > _This was written by Claude Code on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Nov 18, 2026
Nine tests in `dev/tests` protect what `leaf server start`/`run`, page claims and Codex delivery do rather than what a developer tool does, so they move to the product suite, beside the tests of the same subject, where someone changing that code will find them. Each moves unchanged apart from its new module's import aliases. In `dev/tests`, only the nightly run would have caught a break in them; in `tests/`, a pull request that edits them runs them, and the nightly runs them on both Ubuntu and macOS. - `model/test_claims.py`: a Codex desktop `server start` with no validated native chat refuses and publishes no claim. - `journeys/test_claims.py`: a takeover that fails at delivery, preparation, private startup or service publication keeps the previous owner's claim, service and listener. - `journeys/test_codex_adapter.py`: serving connects Codex feedback before handing over the URL, keeps a direct `leaf wait`, and shares one adapter across pages. - `journeys/test_server_lifetime.py`: an abandoned `server _serve` handshake leaves the reused server running. To weigh: the tier is set by `BUDGETS` (3 s per test on CI's runner for `model/` and `process/`). On the runner the desktop refusal took about 2.1 s per case, so its three cases add about 6 s to each pull request. The others took 3.3 to 10 s, so they run nightly. The failed-delivery test drops its `preview` case: `PreviewService.starting` is a direct call to `claim_and_start(page)`, the same call its `start` case makes. The feedback test keeps its `preview` case, and the takeover tests still use a user preview as the page's existing owner, which `tests/AGENTS.md` allows for a fixture. Asked for by max-sixty, as a follow-up to #6412. Tests: the 28 moved cases, the remaining preview modules, and `tests/model/test_suite_source.py` pass locally, and CI's `test` job ran the moved journeys. > _This was written by Claude Code on behalf of max-sixty_
This was referenced Nov 19, 2026
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.
Nothing in CI ran
dev/tests, so main commits broke those tests without anyone seeing (#6374 fixed ten of them). This adds every developer-tool test, the Python and the Node ones, to the daily scheduled run, after the product suite, where a failure reaches Tend like any other failure on main. Pull requests, pushes to main and landing gates still don't run them. On the Ubuntu runner they took 8 minutes 43 seconds (235 passed, and the one macOS-only test skipped).Three of the 13 other failures were tools that had stopped working:
leaf-dev previewkept serving the runtime and layer its process first read, so an edit tobrowser/leaf.js,browser/base.cssor a bundled package reached neither an open tab nor a fresh one. It also decided when to restart from its own copy of the runtime's identity, which had lost the kernel's stylesheets and the bundled packages, so editing those never restarted even a--userpreview's server. The preview now reads the runtime's own identity, and replacing its in-process server first drops what the process holds of the tree (runtime_selection.forget_tree, which is new).leaf-dev site demostopped getting a title for its thread after Ask a Claude Code session's own model through Leaf's module, notclaude -p#5835, because its own session has no hooks module to answer the request. It now answers with a staged title through the suite's stand-in for that module, which moves toleaf_dev.claude_code_module.leaf-dev trace-servercalled a Playwright export that 1.65 removed.The other ten had stale expectations: #5964's stdout refusals, #4325's recovery words, #6154's recovery reload, the layer record's dropped
fingerprint, and a preview identity that moved to About this page. Two more tests started a second Playwright driver on a worker thread that already held one.To weigh: the demo's thread title is now the same every run, rather than worded fresh by a model each time.
Asked for by max-sixty, as a follow-up to #6374. Tests: all of
dev/testslocally and, through a commit since reverted, on this PR's runner; the product modules the stand-in move and the layer change touch (225 passed).