Repository navigation
Rewrite root AGENTS.md and the leaf skill's SKILL.md in plain prose - #2915
Merged
Merged
Conversation
The maintainer reviewed and chose to land the rewrite drafted on agent-afc8ee5e93bb3a8cf (513452f40, 13b726db1). 4,142 -> 3,596 words. Every rule above "Repository map" is kept in plainer sentences; headings are unchanged, so the five section citations still resolve. The leaf-assets.json merge-conflict rules move from "The install runs this tree" into the dev/leaf_dev/leaf_assets.py header, which owns the pins. Ported onto the draft from main since it was written: the product principles paragraph (verbatim), the committed kernel and its fallback to source modules, and the kernel's exemption from the no-large-files rule. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Oct 15, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The state and presentation sections lose two maintainer-facing rules that matter when extending the runtime; the inline suggestions restore them.
leaf-agent's review of #2915 found the rewrite dropped two rules: a page widget's state is bounded by the document version while a widget frozen into thread markup uses its thread's window, and a renderer reading input outside the tracked state repaints only when that input's owner calls present() (runtime/semantic-state.js). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 15, 2026
Applies the SKILL.md change of f54336a97 and cf7dfd8c4 onto current main for scoring; main's Extensible principle is kept as written. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 15, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 15, 2026
…2926) The last batch of the prose rewrite that #2897, #2905 and #2915 started: the package instructions (`playground`, `playwright`, `monitoring`, `file-editor`, `code-review`, `visual-review`) and 43 registry tag descriptions and `x-instructions` strings, including `lf-chart`, `lf-tabs`, `lf-diagram`, `table`, `aside.sidenote`, `aside.sidebar` and the `svg.drawing`, `td.num` and `section.panel` classes. Each is rewritten in short plain prose that names the real case, and guidance that didn't help is cut. A second agent reviewed the draft for accuracy, lost rules and readability, and every finding is applied in the second commit. | Area | Words | | --- | --- | | Package instruction files | 3,563 → 3,071 (−14%) | | Rewritten registry strings | 2,761 → 2,576 (−7%) | The cuts are smaller than in earlier batches because nine eval cases grade rules in the playground instructions, so those rules stay. **Corrections to claims that were wrong on main:** - `table` pointed to "a KPI widget" for headline figures; Leaf has none. It now names `dl` cells in a `layout-tiles` block. - `table` said a bare `<th>` is set in small caps; `shadow.css` draws a small, muted, bold label. - `lf-text-document` said both tabs share one scrollable viewport; with `preview`, each tab has its own `--lf-bound` box. - `lf-text-document`'s `language` falls back to the preview's language, and with neither set the source is uncolored. - `.facts` floats right only as a direct child of a `<strong>`-titled `lf-option` that is wide enough. - `aside.sidebar` mentioned occupants that "declare themselves apparatus"; no registry key declares that. - `lf-chart` refuses to draw without an `ariaLabel`; the instruction now says so. **Evals** (Claude Code, base `0c62be82a` against the candidate): - First pass, all nine `playground-*` cases, the two Playwright cases, `diagram-parts-complete`, `queue-is-a-side-list` and `numeric-grid-shows-shape`, 2 runs each: base 23/28, candidate 24/28. - After the review fixes, 3 runs each: `playground-query-is-the-task` 3/3 on both arms; `capture-set-labels-each-axis` 3/3 on both arms. - `playground-candidates-line-up` fails on both arms (base 1/5, candidate 0/5), always on `cards-keep-their-height`: no run sets `align-self: start`, so each card stretches to its row. That needs new guidance with its own A/B, so this PR doesn't change it. The `### Real-artifact A/B comparison` heading in the playground instructions is removed; nothing cites it. No code changes. > _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.
Rewrites root
AGENTS.mdand the shippedskills/leaf/SKILL.mdin short plain prose, as reviewed on the prose-readability survey page. Every rule is kept in plainer sentences, and the headings are unchanged, so every place that cites a section by name still resolves.AGENTS.mdskills/leaf/SKILL.mdAGENTS.md. Theleaf-assets.jsonmerge-conflict rules move out of "The install runs this tree" into thedev/leaf_dev/leaf_assets.pyheader, which owns the pins. The draft predates three changes on main, which are carried into it: the product-principles paragraph (verbatim), the committed kernel with its fallback to source modules, and the kernel's exemption from the no-large-files rule. Two rules the first review found dropped are restored: the window that bounds a widget's state, andpresent()for renderers that read outside the tracked state.SKILL.md. The Concrete principle's wording drives whether an authoring agent draws pictures, so the rewrite was scored against main before landing:findings-page-shows-its-subjectandoptions-stay-words-for-wording, 3 runs per arm on Claude Code: 12/12 on both.No code changes.