Repository navigation
Seed the specimen conversations a page's log holds, and serve released assets in the site fixture - #931
Merged
Conversation
…d assets in the site fixture The complete suite on ff34b91 reported two failures #924 put on main. A specimen refused to allocate on any page whose log did not already hold every root its template declares, and the published gallery's specimen frames could not reach their runtime because the fixture serving them stands up the container adapter without the edge's release-asset half. `data-specimen-threads` selects from the parent's standing log, so a root the log does not hold now reads as absent and the child opens without that conversation. `scripts/corpus.py` keeps the strict reading, where a declaration naming nothing is a typo in the source it is generating from, and `validation/source.py` drops the narrowing it was repeating. `tests/test_site.py` gives both site fixtures the release namespace the Worker answers from, with `releaseAssetRoute`'s rewrite.
max-sixty
pushed a commit
that referenced
this pull request
Sep 23, 2026
…osure and message workflow line (#951) `ci` on `main` is red. The complete suite on [fd25b4a](https://github.com/max-sixty/leaf/actions/runs/35758716384) reported twenty-one failures and two errors; nineteen of those node ids are already repaired on `main` by #930, #917 and #931. This updates the readings behind the rest, behind two cases those runs never reached, behind two more that #925 reddened after that run — one of which #917 had just repaired — and behind the receipt element #933 removed while this branch was open. No runtime code changes. `main` moved while this branch was open, so it carries a merge of `f4107f63` and every claim below is against that merge base rather than the branch's original `26aa5e20`. ## What moved, and what each case reads now **#936 gave go-to-threads one destination.** `g T` now selects the whole panel whichever thread the reader stood on to ask for it. `test_a_diff_surface_keeps_the_complete_thread_lifecycle_inline` pressed it from an inline page thread, expected the matching panel card selected, and walked back out in two Escapes; it now reads `.lf-threads` and leaves in one. #936 updated the two navigation cases it could see — this is the third, in a nightly file its gate does not reach. **#933 replaced the message receipt with one workflow line.** Nothing under `skills/leaf/assets/runtime/` writes `.lf-receipt` or `data-receipt-id` any more: a message's status is the `.lf-msg-sending` span in its head, labelled by `conversation/workflow.js`'s `workflowLabel` with the claim detail on `title`. The same `test_a_diff_surface_keeps_the_complete_thread_lifecycle_inline` read the old element for the root thread on both surfaces and for two later messages, so after #933 it died there — above the go-to-threads reading this PR repairs. Each reading now takes the workflow line under the same head; the identity probes still hold, because the span is retained across the pickup update on both the inline and panel views. **#945 made the thread filters toggles rather than one radio group.** Two cases read the standing status filter with `to_be_checked()`, which a toggle does not answer, and `test_inner_state_is_left_before_the_surface_around_it` read the `w` line as "all threads" where #945 renamed it "clear waiting filter" while the narrowing stands. Each now reads `aria-pressed` and the current wording. **#925 made narrowing retain a card's disclosure.** Its commit message states it — "Native thread disclosure survives filtering, so an answer returns where the reader left it unless they selected another conversation" — and the same commit rewrote `thread-list-view.js`'s module header to match: "Narrowing retains that disclosure; opening another named card closes it natively." Two nightly cases press a card's summary a second time to reopen what the narrowing used to close, so that press now *closes* an open card: - `test_an_ok_on_the_agents_latest_reply_takes_the_thread_out_of_waiting` presses it after restoring the waiting narrowing, and the reaction chip under the agent's message is never visible — `Locator.click: Timeout 30000ms exceeded` on `.lf-react[data-token="keep"]`, "element is not visible". Reading the card's `open` either side of the press: `True` before, `False` after. - `test_every_control_the_layer_offers_is_a_box_the_reader_can_hit` presses it after narrowing to Resolved, so `.lf-reopen` — the one control that arrangement exists to stand up — reads hidden and the aim sweep never reaches its own assertion. Each now asserts the retained disclosure where it used to press for it, so the contract is stated rather than depended on. A third case in the same family took the other half of its repair through #955, now on `main` — see below. **#932 reset the thread card's inherited top margin and dropped its chevron column.** `test_covering_threads_keeps_the_reader_and_their_work_inside` holds the thread list's raw `scrollTop` equal across the placement crossing, which reads as the reader's place only while the list can hold that offset at both placements — a covering sheet's list has a shorter scrollport than the strip beside the document, so the two have different scroll limits. With twelve comments the shorter cards left a list whose whole scrollable range was 63px covering and 17px beside, so the place the case established sat on the covering limit and the crossing clamped it to 85 where 131 was recorded. That is Chromium enforcing the lower limit, not the panel losing the reader's place. The repair states that premise instead of widening the reading. The fixture goes from twelve comments to twenty-four, which is what gives the place headroom at both placements — at twelve the guard fires immediately, `{'at': 36, 'limit': 36}`. `reading_place()` then takes the offset together with the list's own limit and fails at the arrangement unless the offset stands strictly inside it, and each crossing reads it on the placement it leaves *and* on the one it arrives at, because the arrival's limit is the one that can clamp. This replaces the `min(list_at, max_scroll)` clamp #945 put on the same assertion: the clamp settles the symptom, but it accepts whatever the limit imposes, so the crossing assertion can no longer fail and the case stops saying what its docstring says. Bug-backed by forcing a 600px offset before the second crossing — clear of the covering limit at 617, past the beside limit at 571 — which now fails at the arrangement (`the list holds no reading place clear of its limit: {'at': 571, 'limit': 571}`) rather than as `assert 571 == approx(600)`. ## What this leaves on `main` - **The quoted passage's shortcut line is the third retained-disclosure case, and #955 supplied its other half.** `test_a_comments_quoted_passage_is_in_the_keyboard_journey` pressed the card's summary after narrowing to Resolved on a 390px sheet, so — exactly as in the reactions and aim cases above — the press shut a card the narrowing kept open, the quote lost its box, and its command scope left the shortcut bar with it. This branch carries that case's `aria-pressed` hunk; #955 (`fc9d316e`) states the disclosure thirty lines away in the same function. Neither takes it green alone, and with both in it passes. - **#948's strip regression is fixed on `main` by #954** (`13e84e14`). `test_taking_the_panels_strip_leaves_the_reader_on_the_same_words` — the reader landing three paragraphs back when the strip arrives — passes there. Nothing here touches it. #952 tracks both cases with the per-commit evidence; its remaining half closes when this branch lands. - **#933's other stale receipt readings are unswept.** `tests/test_render_startup.py` alone names `.lf-receipt` on twenty-four lines, mostly as positive readings rather than count-zero guards, and `test_render_options.py`, `test_render_margin.py`, `test_render_conversations.py` and `test_render_export.py` carry more. `test_a_thread_says_what_the_agent_is_doing_about_it` and `test_a_work_line_says_when_its_claim_has_gone_quiet` both fail on this branch for the same missing element, and `test_the_thread_follows_the_decision_that_still_stands` reads the status filter as `Resolved` where #945 gave it the `Resolved (0)` count this branch already reads in `test_render_controls.py`. They are the same class of stale reading as the six here, but a separate sweep in files this branch does not touch: `main`'s own complete suite on `f4107f63` is the run that enumerates them, and it was still queued when this was written. ## Verification The four touched files run entire on the branch under `--run-nightly`, on the Linux CI runner, against the branch's own merge base `f4107f63`: `tests/test_render_anchors.py` at 93 passed, and `test_render_controls.py`, `test_render_navigation.py` and `test_render_reactions.py` together at 322 passed with two failures — `test_taking_the_panels_strip_leaves_the_reader_on_the_same_words` at `assert 'p8' == 'p11'` and `test_a_comments_quoted_passage_is_in_the_keyboard_journey` missing `return to the passage`. `main` has since moved to `13e84e14`, which settles both: this head merged with it takes those two cases green, along with `test_covering_threads_keeps_the_reader_and_their_work_inside`, whose placement crossings #954's transition reordering could have reached. The merge is clean. Every case this branch repairs on its own is green, and nothing else in those four files is stale. `pre-commit` passes on the changed files. A pull request runs the everyday gate, which reaches none of these files, so `ci` here says nothing about them. `main`'s own complete suite on the merge is the first automatic run that reads them. --------- 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 complete suite on ff34b919 — this branch's merge base — reported twenty-one failures and two errors over twenty-two distinct node ids. Nineteen were already red on its parent 4ffc2bd (its own run) and belong to #930 and #917, which are open against them. Three are first red on ff34b91 and so are #924's: the two this fixes, and
tests/test_render_margin.py::test_g_hints_reach_a_late_visible_action_only_location, which #930 already rewrites. No test here overlaps either of those branches.A specimen refused to open on a page whose log had not been written into
test_an_anchor_written_from_the_mapped_revision_lands_on_the_page[feature-gallery]failed in teardown on four browser problems, the first of which isPOST /api/specimensanswering400 unknown specimen conversations: 2be2443f0bb6cc49fc86b52f340e6073. That sweep serves the gallery withseed_log=False— the page as its markup and its data make it, which is the ordinary shape of one created from its source — and the gallery's four templates each declare that root. Allocation required every declared root to be in the log, so on such a page no specimen opened at all and the runtime's rejection reached the console as an unhandled error.The declaration is a selection over the parent's standing log, and the log is not something the document owns:
specimen_eventsnow copies the conversations the log holds and lets a root it does not hold read as absent, so a first version, or a page re-created from its source, opens its specimens the same as any other. Nothing above the door was stating that rule either way —version checkdeliberately permits the forward reference and allocation refused it, so the same declaration decided two different things at two boundaries.What the strictness was protecting is still held, in two places that can tell a typo from a page nobody has written into yet:
scripts/corpus.pyselects against the example's own shipped log, where every declared root exists by construction, and exits naming the source and the ids.test_specimens_seed_only_the_declared_conversations_and_reset_by_recreationnow covers both halves: a template whose markup does not depend on the conversation opens with an empty log, while the one carrying<lf-suggestion resolves="aabb0011">is refused in that element's own words.validation/source.pyalso drops theselected & availableit was narrowing with before calling in — the same rule stated a second time at a caller — so static validation and allocation build the same child from one reading.The site fixture served a document only the edge could complete
test_every_published_page_stands_as_a_live_page@sitetimed out waiting for the gallery's fouriframe[data-interaction-ready], with 404s on/_leaf-release/<release>/examples--feature-gallery/revisions/r3-…/leaf.jsbehind it. Production is not affected: one public origin is two servers there, andworker/src/index.tsanswers/_leaf-release/<release>/<key>/…from the build's sibling asset tree — the treepublish_live_shellswrites — before handing every other route toworker/server.pyinside the reader's container.WebsitePageEndpoint._specimen_asset_rootcaptures that release namespace for a published revision, which is what lets a child share the shell's release-captured graph. #924 thereby made a specimen the first container-served document to depend on bytes only the edge holds, andserved_exampleandhostedstand the adapter up with nothing in front of it. Both fixtures now answer the release namespace from the build's asset tree, usingreleaseAssetRoute's own rewrite: the key after the release names the page, and what follows it is that page's published path under the tree.hostedgets it too, so the next test to reach a specimen through it does not find the same hole.Verification
Both cases fail at ff34b91 and pass here, checked on this CI host. Around them:
tests/test_site.pywhole (51 cases,--run-nightly -n0),tests/test_render_pages.pywhole (53,--run-nightly),tests/test_interact_server.pyandtests/test_interact_document.py(276),tests/test_interact_contract.py,tests/test_website_server.py,tests/test_render_startup.pyandtests/test_interact_mcp.py.scripts/corpus.pyregenerates the corpus byte-identically.pre-commitpasses on the changed files.The everyday suite leaves six failures this sandbox owns rather than the branch —
AF_UNIXis unavailable here, and the published-capture case needs the browser-build dependencies — and the same six fail identically with these changes stashed. CI's owntestjob was green on ff34b91.A pull request runs the everyday gate, which reaches neither
test_site.pynortest_render_pages.py, socihere says nothing about either case; main's complete suite on the merge is the first run that reads them.