Repository navigation
Accept class and style on a widget as on any other element - #3954
Merged
Merged
Conversation
A widget validated every attribute but the page allocations against its
declaration, and no declaration lists `class`, so `class="thresholds"` on an
`lf-playground-control` was refused with "Additional properties are not allowed
('class' was unexpected)". No widget reads an author's class, the runtime adds its
own beside it with `classList`, and an `lf-` class stays refused as a reserved
marker, so the refusal protected nothing and cost the author a styling hook.
On the configuration task's first turn, 2 of 3 Claude Code (Opus 5.5) authors on
main put a class on their playground controls, were refused, and rewrote their CSS
to select by `[name$="-threshold"]` before checking again.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
a5f9a7865 took `class` out of every widget schema; the same refusal fired for
`style` ("Additional properties are not allowed ('style' was unexpected)") on
playground controls in 2 of tonight's samples, one of them on the final arm. Like
`class` it is the page's styling hook: no widget reads it, and the runtime writes
its custom properties beside the author's declarations with `style.setProperty`
and only watches the attribute to measure again. Across every stream tonight the
schema refusals authors hit were playground members' `class` (8 samples), names
with a leading digit (9), `id` (5) and `style` (2); this removes the last.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 25, 2026
# Conflicts: # tests/model/test_interact_product.py
leaf-agent
approved these changes
Oct 25, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
…horing-effort campaign (#3960) The arrangement executor pinned every author's `page check --render` to the fixed 1280×720 window, so authors fought a constraint Leaf doesn't impose in use. This PR stops that, and records the 2026-10-24 authoring-effort campaign in `notes/agent-usability-evals.md`. **Unpinned author render checks.** `arms.environment` pins the render check's window for every child so a judged page's verdict doesn't depend on who last viewed it, and that pin also reached the authors. In the width phase the user states a 1600×1000 window, but the browser user first opens the page in the comment phase, so every render check kept reading 1280×720 ("fixed, pinned by LEAF_RENDER_VIEWPORT"). In 8 of 12 Claude Code Leaf width revisions the author hunted for a way out: it ran `LEAF_RENDER_VIEWPORT=1600x1000 leaf page check` (a ValueError), grepped Leaf's source for the variable, unset it, and took its own screenshots. In use the check reads the window the user's browser last reported, so this cost came from the harness. Leaf authors now run unpinned, and after the first handoff the executor opens the page once at the run's first window, as the user who said "I'll open it" would, until the page records the view. The harness's own checks keep the pin. Configuration workflow, Claude Code (Opus 5.5), 5 samples after the change: render checks after the handoff read 1600×1000, "the user's window"; no call named the variable (0 of 5, against 4 of 6 before); width-phase minutes 2.1, 2.0, 2.2, 2.2, 2.8 against 2.6, 2.8, 1.6, 1.9, 1.9, 4.9; 4 of 4 judged samples passed. One sample's scratch cleanup failed with "Directory not empty" on its state home after the Stop hook was killed (137); the next 3 ran clean. **The notes section** ("Authoring effort, 2026-10-24") records where a Leaf author's first turn spent time an HTML author's didn't, the repair for each sink with its before and after counts (#3952, #3954, #3956, #3959), the full-workflow validation on Claude Code and Codex, the record review's measured cost, and the decision-overclaim observation with the reader split behind #3959's wording change. The per-cycle log and scripts stay in the campaign worktree's `.tmp/overnight/`. Overlap: #3913 also edits `dev/leaf_dev/arrangement_eval.py` (task selection, not the render pin), and #3898, #3901, #3913 and #3923 each add to `notes/agent-usability-evals.md`; whichever lands second takes a textual merge. Checks run: `dev/tests/test_evals.py` and `dev/tests/model/test_eval_discover.py` (3 pass); an import of `leaf_dev.arrangement_eval`; pre-commit over the diff. The executor change itself was exercised by the campaign's 5 post-change workflow samples, not rerun here. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[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.
page checkrefusedclassandstyleon every widget, so authors lost their styling hook on playground controls and rewrote their CSS around the refusal.A widget validated every attribute but the page allocations against its declaration, and no declaration lists
classorstyle, soclass="thresholds"on anlf-playground-controlfailed with "Additional properties are not allowed ('class' was unexpected)". No widget reads either attribute: the runtime adds its own classes withclassListand its custom properties withstyle.setProperty, beside the author's, and Leaf'slf-classes stay refused as markers. The validator now skips both, as it skips the allocations.Measured on the configuration task's first turn: 2 of 3 Claude Code (Opus 5.5) authors on main put a class on their playground controls, were refused, and rewrote their CSS to select by
[name$="-threshold"]before checking again. Across every stream that night the schema refusals authors hit on playground members wereclass(8 samples), a leading-digit name (9),id(5) andstyle(2); #3952 lifts the name andidrefusals, and this lifts the other two.Checks run:
uv run pytest tests/model/test_interact_product.py tests/model/test_interact_document.py tests/model/test_interact_layer.py(447 pass); pre-commit over the diff.