Skip to content

Rewrite package instructions and registry tag prose in plain prose - #2926

Merged
max-sixty merged 2 commits into
mainfrom
prose-readability-survey
Oct 15, 2026
Merged

max-sixty merged 2 commits into
mainfrom
prose-readability-survey

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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

max-sixty and others added 2 commits October 14, 2026 19:02
The last of the prose rewrite #2897, #2905 and #2915 started: every bundled
package's `instructions/*.md`, and the `description` and `x-instructions` of
the registry tags #2905 left alone, rewritten in short plain prose that names
the real case first. Guidance an author can't act on is cut. Section headings
are unchanged, so "Decision fidelity", which `/developing-leaf` cites, still
resolves.

| File | Words |
| --- | --- |
| `playground/instructions/author.md` | 2,162 -> 1,810 |
| `playwright/instructions/author.md` | 430 -> 329 |
| `monitoring/instructions/author.md` | 228 -> 220 |
| `monitoring/instructions/coordinator.md` | 137 -> 125 |
| `file-editor/instructions/author.md` | 218 -> 181 |
| `code-review/instructions/author.md` | 200 -> 184 |
| `visual-review/instructions/author.md` | 188 -> 159 |
| Rewritten registry tag prose (43 strings) | 2,761 -> 2,533 |

The playground file keeps every rule an eval case grades, so most of its
paragraphs keep their claims and lose only mechanism.

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 (`page-authoring.md`'s status
  tiles), and `lf-options` for the "decision widget".
- `table` said a bare `<th>` is "set in small caps"; `shadow.css` draws it as a
  small, muted, bold label with no capitals.
- `lf-text-document` said both readings "share a scrollable viewport"; each
  tab has its own 28rem box, and only when `preview` is set. It said
  `language` "overrides the source syntax"; it defaults to the preview's
  language, and without either the source is uncolored.
- `.facts` said it always docks right inside an option card; it floats right
  only as a direct child of a card-form `lf-option` wide enough for it.
- `aside.sidebar` said its content is commentable "unless the occupant
  declares itself apparatus"; no registry key declares that. Dropped.
- `lf-chart` said "Supply ariaLabel"; the widget refuses to draw without one,
  which the instruction now says.

Cuts, by file:
- playground `author.md`: the regions paragraph (the `2fr 1fr` tracks and the
  43.5rem stacking width); the reason "so the user never has to match a
  setting to its item"; "in markup and CSS you arrange"; the stage growing to
  the window's height on a workspace; the duplicate shared-input-model
  sentence in the intro (kept under "Stateful previews"); the duplicate
  live-sample sentence in the intro (merged into the live-sample paragraph);
  "Controls expose parameters the user can vary independently"; "since the
  user judges it by the preview"; what `window` adds to a sample and that the
  outer root and stylesheet belong to the review page; "Default settings may
  be omitted"; the repeated object/destination/evidence list in the provider
  paragraph; "the complete typed value map is still present" from the handoff
  check; the "Real-artifact A/B comparison" recipe's token/viewport sentence
  and its copy-to-other keys sentence (its DOM-capture rule moves into
  "Decision fidelity"); the data explorer's repeated notifier and
  Reset/restore/copy/submit checks; the concept map's "the page owns which
  node types, relation grammar and edits make sense"; the decision sweep's
  survival check; what an exported playground keeps.
- playwright `author.md`: where the viewer opens; the timeline's checkpoints,
  filmstrip, browser operations, page filter and stream clocks; Recorded and
  Review pace; the Recording chooser and manual seeking (in `lf-trace-compare`);
  the inspector's checkpoint label and the preview label on a first image.
- monitoring `author.md`: "silently" from the feed-update reason.
- monitoring `coordinator.md`: "it has not happened yet".
- file-editor `author.md`: following clean external updates; opening both
  versions for comparison; Markdown highlighting; what CodeMirror supplies.
- code-review `author.md`: "Standard code, table, and disclosure elements can
  carry a focused invariant, test result, or remaining uncertainty."
- visual-review `author.md`: how Fit sizes a pair and when the pane scrolls;
  "Keep capture conditions and comparison controls available without delaying
  that first reading"; that archive-only runs retain their revisions.
- `button.button`, `select.field`: the list of styles the class supplies.
- `section.panel`: "in the Layout's tracks".
- `aside.sidebar`: the banner and column-shift mechanics; `x-resident: map`.
- `aside.sidenote`: "a figure the sentence had no room for"; the comparison
  with `.callout` and `<details>`; the column moving left and the note beside a
  sidebar; that the user can select, quote and Alt-click it.
- `svg.drawing`: "alternatives compared in one frame"; text styling condensed.
- `table`: the "limits per plan" example; "to a word per line"; the render
  check's 360px-to-desktop range.
- `pre > code`: "any other stays uncolored"; "nothing is guessed from the text".
- `lf-ask`: that a nested ask keeps its source identity.
- `lf-text-document`: the HTML provider's typography list; "Compose ordinary
  lf-tabs for other kinds of preview".
- `lf-chart`: why CSS variables can't drive a continuous scale; "so the reader
  sees the evidence without opening a table".
- `lf-shot`: "component-owned comparison, overlay, scaling and focus-crop
  presentation"; "current and proposed"; the pointer to the capture-axes table.
- `lf-board`: "the board is not the primary interaction surface"; the repeated
  restated sentence.
- `lf-tabs`: "the On panel"; "it remains framed and its list does not stick".
- `lf-diagram`: the full list of diagram kinds (two examples remain); chart
  marks; why edges can't be targets.
- `lf-file-editor`: "CodeMirror owns editing and inline conflict comparison";
  "Ordinary typing is visually quiet".
- `lf-trace-bookmark`: "The widget derives elapsed time from the capture."
- `lf-trace-compare`: what the Recording chooser keeps.

Skipped as already plain or rewritten by #2905: `lf-options`, `lf-option`,
`lf-tab`, `lf-draft`, `lf-trace`, `lf-gloss`, `lf-code`, `lf-note`,
`lf-column`, `lf-card`, `lf-sample`, `lf-pane`, `lf-activity`, the small
playground members, `.callout`, `.eyebrow`, `.lede`, `.tag`, `ol.steps`,
`details`, and the `$data` contracts' instructions.

No derived file changes: the kernel carries no tag prose, and
`pnpm run build:browser` leaves the tree unchanged.

Evals, Claude Code, merge base 0c62be8 against this tree, 2 runs per arm
(5 for the two cases where the arms first differed):
- `playground-*` (9 cases), `playwright-trace-review`,
  `playwright-recording-shows-its-trace`, `diagram-parts-complete`,
  `queue-is-a-side-list`, `numeric-grid-shows-shape`: base 23/28, candidate
  24/28 on the first pass.
- `playground-takes-the-room`: 4/5 on both arms. A candidate run that wrote
  `lf-options` instead of a playground followed the one-selection-surface
  rule, which main states in the same words; one base run gave the room to
  the wrong element.
- `playground-choice-has-one-surface`: base 1/5, candidate 3/5
  (`usable-comparison`).
- `playground-candidates-line-up` fails `cards-keep-their-height` on every
  run of both arms (0/2 each).
- `playwright-trace-review`: base 1/2, candidate 2/2.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
An independent review of the previous commit found wrong claims, rules the
rewrite had lost, and sentences that still read hard. Each finding was
checked against the code before applying.

The previous commit said every heading was unchanged. It removed
`### Real-artifact A/B comparison` from the playground instructions, folding
its DOM-capture rule into "Decision fidelity"; nothing cites that heading.

Wrong claims corrected:
- file-editor `author.md` said a binding belongs to "the page server that made
  it". `leaf file bind` records it in the page directory's `files.json`
  (`file_bindings.py`), and only the local Leaf server serving that page can
  use it. The sentence now says so and drops "copied", since a copied page
  directory carries the record.
- `lf-text-document`'s description promised syntax coloring for every file;
  the source is colored only when it has a language.
- `lf-suggestion` said removing only the wrappers would accept a withdrawn
  suggestion; that would also keep `lf-old`'s words. It now says to replace
  the whole element with `lf-old`'s contents, and that keeping `lf-new`'s
  instead would accept it.
- `lf-playground-preview`'s description said it holds "the candidates", but a
  preview can hold any live artifact.

Rules restored:
- playground: adding, removing and reordering filter rows through native
  controls and buttons (graded by `playground-query-is-the-task`); applying
  each drag, scroll or edit once to shared state; checking that a decision
  survives filter, reorder, restore and reset; building and serving each
  candidate's source revision.
- `lf-shot`: laying out captures that vary along more than one axis in a
  table (graded by `capture-set-labels-each-axis`).
- The exact `detail.values` schema in `page/registry.json` is an order again,
  in both `author.md` and `lf-playground`, wherever a page module adds
  contributor state.

Rewordings: the playground's control placement, page-module and package
split (now citing "Package reach"), the in-preview control sentence and the
side-by-side alignment paragraph; the Playwright opening and its
image-and-tree sentence; code-review's opening; `aside.sidenote`'s length
advice; `.facts`, `table`, `td.num`, `button.button`, `aside.sidebar`,
`lf-tabs`, `lf-text-document` and `lf-file-editor`; the coordinator file
rewrapped at 88 columns.

| File | Words |
| --- | --- |
| `playground/instructions/author.md` | 2,162 -> 1,866 |
| `playwright/instructions/author.md` | 430 -> 329 |
| `file-editor/instructions/author.md` | 218 -> 185 |
| `code-review/instructions/author.md` | 200 -> 187 |
| Rewritten registry tag prose (43 strings) | 2,761 -> 2,576 |

Evals, Claude Code, base 0c62be8 against this tree, 3 runs per arm:
- `playground-query-is-the-task`: 3/3 on both arms.
- `capture-set-labels-each-axis`: 3/3 on both arms.
- `playground-candidates-line-up`: base 1/3, candidate 0/3. Every run on both
  arms passes `candidates-line-up` with a subgrid; the failures are all
  `cards-keep-their-height`, where the card stretches to the shared row
  track because nothing sets `align-self: start`. The reworded alignment
  paragraph doesn't change that.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit eb1eb1f into main Oct 15, 2026
3 checks passed
@max-sixty
max-sixty deleted the prose-readability-survey branch October 15, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants