Repository navigation
Complete the notification authoring workflow - #481
Merged
Merged
Conversation
leaf-agent
reviewed
Sep 9, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
One check in the new integration test can't fail. not_to_contain_text("Deployment complete") names a string that appears nowhere in the example, and the card's title is ::before content generated from --playground-title, so no text assertion on #notification-card can read a title at all — its textContent is the static body copy and the eyebrow. So neither assertion in that pair observes the preset press or the typed title; the first one that does is action["detail"]["values"] after the send. The export case further down this diff already reads the title the working way.
leaf-agent
approved these changes
Sep 9, 2026
max-sixty
pushed a commit
that referenced
this pull request
Sep 9, 2026
…tly tests to the shipped behavior (#509) The daily complete-suite run on `main` went red with eleven failures ([run 34342437953](https://github.com/max-sixty/leaf/actions/runs/34342437953)). None of them is a flake: every one reproduces locally at `26754cc4`, and each traces to a change that landed since the previous nightly and could not be gated by it. The two scheduled runs are ~70 commits apart — the one before this ran at `7e403108`, so this was the first complete suite over that whole span, and eleven failures is what a span that wide accumulated. Ten of the eleven are the nightly-only tests still describing a behavior a shipped change has replaced, or an arrangement a shipped change has moved. One is a real defect on <https://leaf.page/>. ## The site defect `docs/sitenote.js` looked for `main > :only-child > header` and, finding none, dropped the site's context label beside the workspace under `main`. That second element under `main` is exactly what `syncRootWorkspace` reads to decide a workspace is *not* the page's root, so the note cost the example the bounded allocation it is published to demonstrate: `notification-playground` arrived on the site in ordinary document flow with no bounded regions at all. It became reachable when #481 compacted the example and removed the `<header>` the note had been landing in — the site's placement rule had been resting on markup the example was free to drop. The note now gives a headerless framed task a header of its own rather than standing beside it. The generated header is marked `lf-ui`, like the note it carries, so the example's anchorable reading is unchanged. The framed root is still read as `main`'s only element child: narrowing that to the `lf-workspace` tag would have moved the same defect onto `live-progress`, whose root is `lf-monitor`. `test_published_workspaces_keep_their_allocation_under_site_context` is what let the original defect through — it named two examples, so neither `live-progress` nor `current-proposed-comparison` was gated. It now derives its parametrization from the corpus, covering every example whose whole `main` is one framed task, and reads the root by the `lf-workspace-arranged` class the runtime marks any arranged workspace with rather than by tag. Under the tag-name selector that gate fails on `live-progress` and passes on the other three. ## The stale readings | Failure | What moved under it | | --- | --- | | `test_a_key_on_screen_is_a_key_that_works`, `test_no_two_hints_on_the_key_line_say_the_same_word` | #494 renamed `version.previous`/`version.next` to `version.later`/`version.earlier`, added `1`–`9` numbered travel to the menu's `aria-keyshortcuts`, and set `promoteEscape: false` on both of the menu's doors out, so the compact line now prints the walk beside numbered travel rather than the Escape return. The assertions name the new commands, keys, and words. | | `test_the_layer_traps_no_margin_in_the_panel_it_draws` | The test picked its page as the first corpus source shipping *any* `.jsonl`. #505 added `current-proposed-comparison.jsonl`, which sorts first and holds one widget action and no conversation, so the panel opened on nothing and the test's own positive control — a rule planted to trap a margin against a thread's quoted address — found nothing to plant against. The selection now asks for a log holding an anchored comment. | | `test_page_round_trip`, `test_browser_and_file_captures_stop_at_the_same_widget_fences[1,2]` | #471 keeps an open thread card standing in a stable page margin. Both tests send a comment and then reach for something underneath the card it leaves open: the board column the drag is aimed at (the board is a wide widget, so its columns run out into that same band) and the composer field for the next passage. Both now dismiss the card first, which is what a reader does. | | `test_an_exported_page_fixture_stands_on_its_own[notification-playground, corpus]` | The copy's `unshown` reading reported `section#notification-artifact` — the slot `notification-playground` authors `hidden` so that `notification-artifact` is bound before the agent captures it. `lf-source` renders a `no data` caption into it, and the reading counted those words as content a copy had lost. A slot the markup hides is hidden on the live page too, so the copy withholds nothing; `[hidden]` joins the reading's exemptions. Across the whole corpus this exempts that slot and nothing else — every other fixture's reading is already empty. | | `test_the_feature_gallery_keeps_its_real_actions_reachable[390]` | The gallery is ~20,000px tall at 390px, and its arrival cascade after the test's bare `page.reload` intermittently raises `ResizeObserver loop completed with undelivered notifications` — the platform reporting a deferred delivery. The repo already adjudicates that notice over two attempts on the same document, in `render_harness.navigate` and again in the render gate's own arrival readings; this reload was the one that bypassed it. It goes through `navigate` now. | ## Verification `uv run pytest tests --run-nightly` on this branch: **2327 passed, 6 skipped, 10 failed** in 45:23. All eleven of the run's failures pass. Every one of the ten remaining failures is this sandbox's, not the branch's — none appeared in the CI run, and all ten reproduce identically with `tests/` and `docs/` checked out at the merge base. They are three capabilities the container withholds: no IPv6 for the two stated-host wildcard binds `tests/CLAUDE.md` already names, no `AF_UNIX` socket for the two app-server tests, and a denied `process_singleton` socket for the six that launch the installed Chrome from a subprocess (`Check failed: socket() failed: Operation not permitted`) rather than through the pinned headless shell the fixtures use. `uv run pre-commit run --files` over every changed file: passed. <details><summary>How the two non-obvious causes were established</summary> `test_page_round_trip` fails deterministically at `26754cc4` and passes with `skills/` and `examples/` checked out at `7e403108`; swapping either alone still fails, because `examples/layer.json` at head names a package the older `skills/` has not got. Swapping the pair commit by commit lands on #471, and a probe of `document.elementFromPoint` at the drop coordinate returns `div.lf-margin-thread-body` — the card the comment opened, over the column. The gallery's notice was traced by wrapping `ResizeObserver` on the page and recording each callback's construction site per frame. With the reload followed by a settle, no notice arrives at all and no gesture in the test produces one; the frames that raise it are the post-reload arrival cascade, in which body height climbs from ~18,000 to ~20,500px across a dozen frames while three observers deliver on each. </details> --------- 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.
The notification playground previously spent most of a short first viewport on repeated framing, and its configuration stopped at an instruction rather than proving the promised agent workflow. This change compacts the example around one question, gives the attention preset honest content, and makes the selected configuration describe a concrete local artifact and where its revision will appear.
The integration test drives the existing request lifecycle end to end: a reader sends a configuration, the host picks it up, the agent writes and captures
deployment-notification.html, the page exposes that source beneath the original configuration, and an anchored reader comment produces a second artifact revision with a receipt. The test also covers the replaceable configuration seat, source visibility, preserved anchoring, and the updated file contents.The catalog preview is refreshed at
max-sixty/leaf-assets@357127280030c3a81425483f1c44fc152d29c7c6, and the completed #2, #4, #6, #8, #9, and #17 backlog entries are removed while preserving the deferred evaluation work.Verification:
uv run pytest tests(944 passed),uv run pre-commit run --all-files, rendered light/dark and short-window checks, standalone export, and two context-blind Sol usability passes.