Repository navigation
Keep a copy's generated label with the control it names, and realign two nightly readings - #583
Merged
Merged
Conversation
An exported copy dropped the `<label>` a widget builds with `offer()` when the label points at its control rather than wrapping it, leaving the native control it named with no accessible name at all. That is a critical finding in the copy's own accessibility reading, and it reddened the corpus and notification-playground export fixtures as soon as page-authored modules (#580) gave a page a reason to write one. The bake now keeps a generated label whose control survives it, which is what its own comment already claimed. Two nightly readings are realigned to contracts recent changes replaced. #576 made a handoff colour the target's surviving semantic control instead of standing up a second margin status row, so the export test reads the pencil's phase and asks the copy to drop that seat as well as the status one. #576 and #579 also gave the Page Map row, the thread card, and the inline composer seat a document-level face in the authored theme, so the two class ledgers in `test_a_coined_class_cannot_reach_the_chromes_rules` name them.
This was referenced Sep 11, 2026
This was referenced Sep 12, 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.
The scheduled complete suite came back 36 failed, 2406 passed, 6 skipped on run 34591215585, the first nightly to read
mainat19f3ba5f. Thirty of those are already owned — eight by #582 and twenty-two by #547 — and six are new since run 34562158190, which is to say they arrived with #576, #579 or #580. This repairs four of the six. The other two are below, with what each needs from you.A copy dropped the label off a control it kept
test_an_exported_page_fixture_stands_on_its_own[corpus]and[notification-playground]fail on a critical axe finding:#notification-simulator-pressure, a range input the copy keeps, has no accessible name. The page builds a label for it, and the live page is fine; the bake removes the label.offer()writes a generated label the empty offer marker, and an explicit label —fornaming the control rather than wrapping it — is an element with only words inside it. That is the shape the removal pass reads as "leaf chrome with no element inside it: a mutable status word", so the label goes while the input it names stays. The pass's own comment says the opposite — "a checkbox, a label and a § link stay" — which held for as long as every generated label in the tree wrapped its control, and:has(*)kept those. #580's page-authored module is the first to writefor, and it found the hole.So this is a product fix rather than a fixture one: the bake now keeps a generated label whose control survives the same pass. Asked of the control, so a label whose control does leave still leaves with it and no word is orphaned. Both export fixtures are the regression reading, and the run that takes it is the nightly one:
test_render_export.pyis nightly-marked, a pull request'suv run pytest testsdeselects it, and #433 removed the touched-module selector #340 had added. Socion this pull request does not exercise the fix — the review's own selection and the next nightly are what do.A handoff colours the control, not a second margin row
test_a_copy_keeps_applied_widget_state_and_drops_live_handoff_statuswaits on[data-lf-margin-for='d-open'] [data-lf-behavior='status']and finds nothing. #576 is why: canonical pickup and work receipts now colour the target's surviving semantic control, and only a target with no carrier gets a separate activity reading. The draft has a pencil, so the pickup rides on it asdata-lf-agent-phase="picked_up"and no status row is built.The subject of the test is unchanged — a file carries the edited draft and no record that an agent picked it up — so it now reads the pencil's phase on the live page, and asks the copy for both seats a handoff can speak from. The copy already drops the pencil with the rest of the presses, so this is a fixture realignment and not a hole: verified against the exported file, where every remaining
data-lf-agent-phaseis a selector in the inlined stylesheets.Two class ledgers name what #576 and #579 dressed
test_a_coined_class_cannot_reach_the_chromes_rulesholds two lists of names the chrome scopes privately and something at document level also dresses, each widened on purpose. Eleven names arrived in the authored-theme list and one in the runtime sheet's shared vocabulary, all from deliberate rules:[data-lf-presentation="inline"]— the bar, the composer, the field's control, the target press and the response options behind it..lf-threadand.lf-conversation-thread, and writes the same paint over.lf-margin-entryand.lf-page-map-actiontogether. The margin entry stands in the page, so the rule is at document level and the Page Map row is named there rather than in a second scoped copy the two could drift through.Each entry carries the reason, the way #398 added the living margin's rail.
The two this leaves
Neither is a repair that follows from the failure.
test_render_controls.py::test_each_control_archetype_holds_its_neighbours_still[diff-review]fails on its premise: "diff-review has no neighbouring control to hold". Compose comments inline in diff threads #579 moved the review press out of.lf-diff-fileinto a new.lf-diff-file-actionswrapper, which theme.css draws back onto the summary line. The press still shares that line, and the contract the archetype exists for — pressing Review must not reflow the summary beside it — is still worth proving; the sweep reads a row as the target's parent's children, and the summary is now a level further out. Widening that reading to the file is the obvious move and it is the wrong one: I triedel.closest('.lf-margin-cluster, .lf-diff-file')and it puts every file's summary and every file-level+intotest_the_composed_corpus_declares_every_control_row_archetype's undeclared list, turning five entries into dozens. The alternatives are a row scope declared per archetype — which would leave the two sweeps disagreeing about what a row is — or a corpus diff bound to data, so the+stands beside Review as it does in the PR example. Both are your call about what the row is.test_render_startup.py::test_the_thread_follows_the_decision_that_still_standsfails on the withdrawn reject: the widget goes back toacceptas the test expects and the thread stays open for the whole five-second wait. It does not reproduce here — the completetest_render_startup.pypasses 93/93 under the default parallelism and the case passes alone under-n0— so it is either a state race that needs the whole suite's load or a first-and-only sighting. Worth re-reading if the next nightly repeats it.Verification
tests/test_render_export.pycomplete: 51 passed, 2 failed. Both failures are this container's, not the branch's:test_the_example_preview_command_exports_a_file_that_opens_on_its_ownandtest_exporting_an_example_leaves_the_live_preview_untoucheddrive the installed launcher, and no browser on this host launches through it. Neither is in the run's failure list.tests/test_render_startup.pycomplete: 93 passed.tests/test_render_controls.py::test_each_control_archetype_holds_its_neighbours_stillcomplete: 11 passed — the reverted experiment above left nothing behind.tests/CLAUDE.mdnames and one that writes to a read-only/tmp.pre-commit run --filesover the three changed files: passed.