Repository navigation
Rewrite Leaf's references, maintainer guidance, headers and registry prose in plain prose - #2905
Merged
Merged
Conversation
A survey of hard-to-read prose restated passages plainly and checked each restatement against the code. Three were wrong: - `event-batches.md` said a user-added option's words travel in the event's `detail` instead of `says`. `GestureWords.says` gives them, from the action that created the element. - `/developing-leaf`, "Be a helpful linter", said root `AGENTS.md`'s "Stage" has readers tolerate records an older Leaf left in the state home. Stage calls them disposable; the sentence now says to delete code that recovers from them. - `thread-list-view.js`'s header still said focus, selection and the open card never part. Since #1967 only a `move` or `step` onto a title (or a press's click) chooses its card, and a `holdFocus` restore chooses nothing, so a restore after the choice moved leaves focus on a closed title, as `keyboard/AGENTS.md` already says. No behavior changes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…gent-adb5fc8cd25801df3
…gent-a81994599c0ed818e
"Where instructions live" asked prose to describe a set by what its members share. Its purpose, from #2318, was to stop prose copying lists the code keeps (they drifted). The general instruction to describe things by shared properties pushed writers toward rules about kinds of things with no real case named, the style a prose survey found hardest to read. The rule now says only: don't copy the code's list, point to it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ferences in plain prose Rewrites the hard-to-read paragraphs of four shipped references every page-writing agent reads, in the "case, then rule" register: one claim per sentence, the command or field named first, no coined nouns. Plain paragraphs are left as they were, and every heading keeps its text. - conversation-loop.md: "When to write", "Status and handoff", "Long-running work" (both flagged paragraphs: how long a start lasts, and when a reply opens a to-do), "The On lists". "Take in hand" becomes "start", after the command that does it. - event-batches.md: the `says`, `answer` and `handling` bullets, thread context, acknowledgement, and "After the batch". - threads.md: titling, markup, the `ref` and reply options, "Preserve revised anchors", proactive replies, progress messages, edits, summaries. - harness-claude-code.md: the "Wait loop" paragraph on Leaf's Stop hook, and "Subagents". Cuts: - conversation-loop.md: the sentence listing which widgets `leaf task open` accepts (`x-work` or an unsettled action); its refusal names the reason. - conversation-loop.md: the per-list contents of each Done section and what each `m` press lands on and the `1`-`9` actions; UI the agent does not act on. - conversation-loop.md: two restatements of the table (where the Working line shows) and of "a to-do stays open". - event-batches.md: "an event without an `answer` owes none of its own" from the intro (the `answer` bullet says it); "Commands state the next step and any recovery needed". - threads.md: "A delivery carries each thread's current title, null until named" (event-batches.md says it); "repeated words require unique stored context" (said above it); that the reply records the revision and anchor transition atomically, and that the log keeps the opening anchor. - threads.md: the output and refusal format of a reply or `leaf thread` write (one JSON line per record, the stderr object with `error`, `findings`, `code`, `values`); the agent reads it in the output. - harness-claude-code.md: "The banner reports overall page activity separately." Corrections: - threads.md: the paragraph on removing a declared visual part said a part is held while a live thread anchors on it and that `page check` names the moves that release it. That check (`continuity_errors`, `anchored_parts`) was removed in #2020; a revision may drop any part, and activation relocates or detaches threads (`validation/source_history.py`). The paragraph now says only to move or detach such a thread rather than resolve it, since a resolved thread keeps its old anchor and reopens pointing at a part the page no longer draws. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ish the "start" rename
A second pass over conversation-loop.md, event-batches.md, threads.md and
harness-claude-code.md: each section rewritten from the action its reader
takes, case first, about 30% shorter than main. Headings keep their text.
"Take in hand" becomes "start" where agents read it: the reply-answering
handling clause in `assets/registry.json` ("it starts the update"), the
`progress-parent` and `todo-execution` findings, and
harness-codex-app-server.md. The two regtest snapshots that quote the clause
are regenerated; only that wording changed in them.
Cuts, beyond those in the previous commit:
- conversation-loop.md: that Leaf marks Sent/Queued/Picked up even for an
update that owes nothing; that the banner can only say "working on your
updates" before a start; each Done section's contents; "information the user
may comment on but need not decide creates no item"; "each product choice you
surface" (folded into "every option you present"); that a paused project
kept paused stays settled; the widget-specific state command; that answered
and withdrawn asks stay in `asks`; where the Working line shows (the table
says it).
- event-batches.md: the `says` bullet's detail (markup source, user-added
options, enclosing elements, undo); "your harness contract says which you
get"; `leaf page transcript` and the `reactions` field; that `summary_hint`
owes nothing; the Working sentence (conversation-loop.md owns it); the
restated "start each update" in "After the batch".
- threads.md: the flag inventory of `leaf response reply`; `--attempt`; the
transcript's "passage not identified" label; the `detached_from` aside in the
repeated-words paragraph; that a broken `/media/…` link is refused; what a
capture's anchor names; that the runtime marks an unfollowable fragment link;
"keep the discussion active while the outcome is not on the page"; that
the reply command refuses a replaced log or another session's claim; that
reactions, progress and failure receipts do not reopen a thread; the
`elided.messages` and `summaries` notes; "a replacement quote can also move a
thread whose old element the edit removed", whose meaning was unclear.
- harness-claude-code.md: the opening "input reaches you only between
operations" (conversation-loop.md owns it); that a background session shows
as Working while a task runs; that the watch restarts after a messaging
wake; the subagent's shared process.
Corrections:
- conversation-loop.md said an ask "contains its prompt, typed answer and
lifecycle; widget state owns its answer". An ask record holds `prompt`,
`answer` once given, and `status` (`asks.py`); a widget ask's answer comes
from the widget's state.
- threads.md: `leaf page check` lists each open thread whose anchor no longer
resolves and where activation will move it (`relocated-anchor`), not each
quote.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Rewrote module-authoring, module-reading, module-scroll-and-motion, module-annotations, module-input, module-state, package-data and package-themes section by section from what a widget or package author has to do: each paragraph opens on the case or the action, Leaf-internal nouns (publication, fold, seat, door, stands, settle) are replaced by what the author sees, and passages that restated a runtime module's header (whileConnected, readingPaint, HeldReading, watchProjection, registerReadingRegion, --lf-block-frame) now give the author's steps and leave the mechanism to that header. Headings are unchanged, since other files cite them. Words, against main: 22,139 before, 14,565 after (-34%). Corrections: - module-authoring.md: restore the "Retained nodes" heading that #2869 dropped; module-state.md, module-input.md and assets/AGENTS.md cite it. - module-authoring.md: drop `UPGRADE` from the startup events; widget-api.js does not export it, so a module cannot import it. - module-reading.md: navigateToDatum and indicate take the referring widget (`this`) first, not the target. - module-state.md: say what an id or declaration change does (read() reports every action unavailable, dispatch() returns null) instead of "fails closed". - tests/browser/test_render_outbox.py: its docstring quoted a sentence as a section name; it now cites module-authoring.md, "Startup and presentation". Cuts (mechanism the author cannot act on, restatements, exhaustive detail): - module-authoring: offline discarding of held keys; the shortcut-bar note; where a throwing `start`'s error goes; the moveBefore fallback detail beyond iframes reloading; "leave native state on retained nodes"; the toggleAttribute note; until-found printing; `LAYOUT`'s bubbling/composed flags; searchField's placeholder default. - module-reading: the numeric-readout sentence (a copy of data-lf-room); askActions.next's entry rules from outside a region; queue filter advice; readWork's worker `on` and stopped-goal contents; copyBlock's visibility rules; image mask scaling; per-version ask scoping and pending-reply next_actor; indicate's revision behaviour. - module-scroll-and-motion: what Leaf does with content under --lf-top; slot containment of shadow-reader parts; the phase list of watchReadingRegionTransitions (now points to reading-regions.js); lf-reveal on history traversal; popover re-seating; page check refusing data-lf-. - module-annotations: the registration's method list, entry defaults beyond a pointer to CONTRIBUTION_ENTRY_SCHEMA, mountThreadViews' second-registration throw, threadOutlets' signal/collection semantics, held-arrival rules for page outlets, controlKey/controlRecord detail, the bare-reaction note. - module-input: the command-row table (each field now introduced where it is used); fieldset and disclosure-key detail; data-lf-carry's tag matching and authored-input focus; native-layer sample detail and the lint note; onUserInput's event list; LeafEditorView's navigation extension. - module-state: the lifetimes list in subscribe; watchData's origin explanation and check reporting; bound-file error and newline detail; projectData's default provenance and formatted-datum origin. - package-data: the contract-replacement / data clear / archived-documents paragraph; "copying a page keeps identities"; the stale-revision refusal for deferred rows; creates' page-check and duplicate-id rules; the record-kind table (now a list). - package-themes: the full list of delivered data-lf-* attributes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- conversation-loop.md: read a thread or a widget with `leaf page state <page> <id>` (the command takes a message id or a widget id); restore "information they may comment on but need not decide is not an item"; "When input arrives:" with step 3 applying only when the input interrupted other work; each `m` press lands where the item is answered, and a widget ask's `1`-`9` actions answer it there; progress messages don't repeat the page URL. - threads.md: rerunning an answer with the same `ref` adds nothing, while each `--ephemeral` progress line posts; markup ids must be used in no version of the page and no earlier message; progress never counts as unread, and asks, to-dos, markup, anchor moves and failure receipts each need a reply of their own. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…gent-a4a779f1b2a5de962
…gent-ade52ef8da5991794
…gent-a75fd5a9a4534a6a0
…gent-ab7fbe3c1efa57030
- Document TEXT_FIELD, allButCommandReference and markdownReady as code spans that begin with the name, which tests/runtime/widget-api.test.mjs counts. - holdFocus returns null outside its scope, so call restore?.(). - readAsks: answer is null until answered; prompt.text is null with no heading. - HeldReading: pass a value that is === the last only when nothing changed, such as JSON.stringify of the rows; the earlier "same size" wording was wrong. - A new version may change authored markup; decisions apply over it until a restated event takes one back. - watchProjection paints on the next microtask; the controller goes unavailable when the element's id changes. - package-data: what data clear does, and that a stamped version keeps its contract. - Restore one-clause warnings: a creates id must be new, onUserInput acts only on its surface's events, frameFor doesn't replay a cancelled paint, cancel nextAnimation, register every box a widget may scroll, reactions may be null, what a receipt is, an async threadOutlets checks signal. - Define nouns: partner element, the evidence element, worker values and `on`, owns targets, what --lf-holds-height tells the render check. - Style and line-wrap fixes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…gent-ab7fbe3c1efa57030
Rewrites the remaining shipped references an authoring agent reads, section by section, as the case and then the rule in short sentences: page-authoring, page-layout, page-behavior, page-checkpoints, authoring-asks, authoring-revisions, authoring-evidence, serving-pages, live-samples, packages, harness-codex, harness-codex-app-server, harness-pi, codex-setup and codex-watcher. Together they go from 20,059 to about 13,700 words. Coined nouns (seat, stand, epoch, settle, door) are replaced with what the reader sees or the identifier. Headings are unchanged except serving-pages' "Re-vendoring and layer epochs", now "Re-vendoring"; packages.md and layer-registry.md cite the new name. Cuts, by file: - page-layout: sidebar pages capped at the widest page and set the title larger; workspace leaves its title to the theme; "use a Layout where one fits"; how a too-tall aside scrolls and when it scrolls with the page; pane widgets growing to window height and natural height in a short window; the lf-tabs queue mechanics (now a pointer to the lf-tab and lf-tally entries, which own them); `wide` holding at its start in a wider body and the exact table placement about the prose axis; markers as pins on an `available` block and moving below a side note; fitted thumbnails and wheel handlers; hiding annotations and controls covering content; what data-annotations="page" omits and when the change takes effect; a body font stopping at Leaf's controls and unclassed controls keeping the browser's frame; fullscreen and mix-blend-mode inside main; the list of injected chrome and the Quick keyboard shortcuts preference; "a read-once page needs no activity feed". - page-authoring: "a headline measurement is a metric", "grouped cards form a board"; collapsed words staying quotable; asides in sidenotes; page tabs' width and sidebar; the viewport policy detail and that an authored viewport replaces it; implementation contracts living beside modules; separate `$series` lookup (merged into one jq call). - page-behavior: when an in-place revision may arrive during composing, and waits during a pending gesture; the declaration/implementation ownership detail beyond what page/widgets replaces; `$` declarations composing at their grain; choices fixed in the revision manifest; the scripts-run-after reason; the no-browser fallback reporting later. - page-checkpoints: "including when the host gives no browser tool"; the finding's "where it was read" field; comparing equivalent moves across views; "a text reading does not establish layout quality". - authoring-asks: lf-ask not replacing the widget's identity; "discussion alone leaves a widget's answer incomplete"; an informational page omitting sign-off; equal-depth revisions adding detail to each alternative. - authoring-revisions: lf-draft's Edit/Save/Cancel/Close and Enter/Cmd+Enter behavior; the narrowed state reading's frozen thread HTML; the stamp's transaction wording; revisions changing decided wording; the log keeping the original anchor. - authoring-evidence: lf-text-document's shared scroll box, per-reading scroll place and local view state; Markdown dialect; Image preview's footer, Original and other-destination links; offline media needing JavaScript and paste accepting rasters only; lf-shot's view-selector mechanics (arrow keys, divider, hover counts, starting view); the idiom's page-local class note. - serving-pages: export omitting neighbour links; the key's home in the state home; a stop during startup waiting; desktop Codex keeping a session page through unloading; a persistent page restarting regardless of owner; the watcher's single revival; the log transport contract; a live persistent server printing its URL unchanged; the interactions reader's dedup and gap mechanics; the public site's Workers Observability lookup. - live-samples: Escape order, Return to page, focus and scrolling inside a sample; the child loading its own captured assets; ready/lf-sample-ready behavior across reloads and links; showThread's omitted defaults and pending selections; parent threads selected rather than required. - packages: package init's directory list and composition check; package paths as `.` inside a single-package repo; snapshot readers keeping old contents; feature lists in the bundled-package table; the kernel compiling runtime modules; cascade details (scope proximity order, indication contour, unlayered chrome painting, vendor CSS examples); most theme-input specifics (motion durations, thread panel width, derived diff colours); runtime output examples; icon validity; x-instructions placement rules; the boolean attribute's "instructions say when"; the render check's list of module mistakes beyond three examples; inline-widget and hidden-widget detail in keeps-first-box. - harness-codex: the wait lease refusing `leaf codex start`; hooks not interrupting a request; the code-block form of the queued message; queue route without a trusted hook. - harness-codex-app-server: chronological slices across pages; failure receipts refused while the turn owns the answer; a later user reply waiting for the next slice; distinct activity observations; a second `codex start` reporting started: false. - harness-pi: updates reading Picked up; input arriving as a run ends. - codex-watcher: the list of things status and versions don't do. Corrections: - packages, "Seeing it": the text said a widget part that scrolls inside a workspace's height is never seen by `grows-with-content` because worked examples stand outside a workspace. widget_quality.py renders every example page twice, in a column and in a full-height workspace pane (WRAPPERS), so the reason was wrong; the page now says the examples are drawn in both. - packages, "Styles and composition": "Put page vocabulary in the kernel" now reads that page-wide rules belong in a theme package, as package-themes.md says. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Rewrote, case first and in plain sentences naming the real functions and callers: the module headers of detached.py, codex.py, hook_transport.py, workflows.py, revisioning.py, delivery.py, todos.py, reconnect.py, work_reading.py and refusals.py; the runtime headers and comments of projection/presentation.js, semantic-state.js (`applicationPresenter`), pending/state.js, margin-model.js and anchor-travel.js; the help of `task end`, `task open`, `page report`, `page claim`, `response reply`, `page instructions` and `page stamp` (incl. `--if-source`); and the findings `retired-slot`, `held-anchor`, `progress-parent`, `hidden-widget`, `apparatus-among-authored`, `settlement-mark`, `over-margin`, `unoverruled` and `unrestated`. No code changes. Words on changed lines: 7203 -> 6491; codex.py's header 1240 -> 664. detached.py, reconnect.py, revisioning.py and work_reading.py grew because each now names its real callers in place of child/producer/caller/owner, door and publication. Cuts: - codex.py: the paragraph on how the website's host starts and follows its own turns (leaf_website's header owns it); the reply-reservation paragraph (delivery.py's header owns it); "a frozen record keeps only the event identities its page receipts need"; "reinitializing a page path cannot revive a completed receipt"; how a client that did not start a turn recovers its binding from the transcript (codex_adapter's header covers recovery). - todos.py: the examples of work that gets a to-do and the housekeeping rule, now a pointer to references/conversation-loop.md, which owns them. - hook_transport.py: when Pi's extension calls each hook (hooks/pi.ts owns it). - delivery.py: "thread membership is context, not a partition key"; "reply and markup answers mean the same on every transport". - anchor-travel.js: the note that inner scrollports reveal before the outer one aligns. - detached.py: the example of what a child announces. - `page claim` help: "for a harness whose own hook watches between turns". - projection/presentation.js header: "update narration" and "pending release" (neither is in this module). Corrections: - `task end` help and todos.py: "still stands among the open work" now says what `work.open_ids` checks: the element shows on the newest revision where a reader meets it without opening anything (not in a closed details, a later tab or [hidden]). - reconnect.py: the resume SessionStart hook also publishes notices, not only prompt hooks. - todos.py: adds that a to-do on the user over a widget is refused when that widget already has an open ask (`duplicate-ask`), which the header left out. - `progress-parent` now names the parent message it refers to. Left alone: revisioning.py's "An explicit replacement reply takes precedence" (no code path found that lets a reply override a reanchor). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Rewrites skills/leaf/assets/AGENTS.md, runtime/keyboard/AGENTS.md, tests/AGENTS.md, scripts/AGENTS.md, packages/AGENTS.md, build/AGENTS.md, dev/AGENTS.md, examples/AGENTS.md, and developing-leaf's SKILL.md and glossary.md from what each reader has to do: the case first, then the rule, one claim per sentence, with Leaf-specific nouns (seat, door, fold, publication, epoch, proof, stand, settle, hold) replaced by what the reader sees or by the identifier. Headings are unchanged. Words: 27,490 -> 20,649 (-25%); the owner tables and module inventories account for most of what remains. Moved to the owning module's header: - the 11-step boot order, `presentPage`'s PRESENTATION signal and `renderingState`'s readiness stages: assets/AGENTS.md -> leaf.js. Cut, with where the content now lives if anywhere: - assets: startup key holding, async work off the presentation path and `growthIsSeen` (module-authoring.md "Startup and presentation" already says this); the token meanings for --lf-full-height etc. (layouts.css, theme.css); the data-rail values (page-layout.md); scroller room allocation and two-dimensional evidence on narrow screens; the append region's details (stationary floating card, nested regions across shadow roots); the `standFab` withheld-box exception (surface.js); dimming an action awaiting confirmation; workflow-state colour and pickup pulse; the sheen's three sites; the data-annotations paragraph (now a row note; overlay index.js header owns it); stylesheet layer and adoption order (stylesheets.js header); `.lf-ui-face` defaults; type-check detail and the Lit framework build (build/AGENTS.md); `restated` persisting through version notes; asks producing queue rows; the "caller keeps its own test says why" clause. - keyboard: versions-menu bullet (replaced by the general banner-control rule banner-toolbar.js states); Page Map's fallback to reading position; margin-card thread bullet; Follow still naming a native press; context-key precedence detail and "Decision is not an allocator"; the per-command list of finger alternatives (n, the aim, c/e, ask digits, command reference); More's checkpoint retirement. - tests: thread-snapshot storage details; font install details; the history of the tier decision (kept: the decision and its date); package-per- directory and fixture-shadowing reasons; the plain UV_OFFLINE command; the CI-cancellation rationale; route teardown race; stale-state double proof; "run the gesture both ways"; the summary `toggle` and widget-preparation provenance details (input_work_watch.js header owns them); grace-period absence paragraph; "instrumentation keeps input ownership" sentence. - scripts: lock list on `reconnect`; "expected to change a lot" on `todos`. - build: distribution payload sharing; overlay diagnostics entries; the two floating-ui patch descriptions (vendor.mjs header); the lit#5218 backport and dom-move routing (build.mjs `litModule`). - dev: probe's startup-evidence recorder details; stills' run directory naming; bench-check output detail; site build serialization and ports; verify-site's private ports and contexts. - examples: the gallery's browser test for injected chrome state. - SKILL.md: Impeccable workflow list; recording loop-boundary, trace-viewer and --checkpoint-images details; reviewer "are the views enough" step; Codex detach mechanics; journey HTTP/Chrome detail; merged the precision and recall paragraphs. - glossary: Core/package/page ownership list; Leaf panel's row notice and views; banner's control list; On me / On agent Done-fold detail; Sent's margin-row note; pin seat sequence (margin-placement.js); sidebar page details; working-message appearance. Factual corrections: - assets/AGENTS.md named `comment-placement.js` and `composing/floating-response.js` as "in the default package"; both are in runtime/annotation-overlay/. - assets/AGENTS.md said the shift watch runs on "unmarked tests and marked ones that opt in"; it runs on every test outside a module marked `shifts_unsurveyed`, which opts in per test with `watch_shifts`. - "which chip the banner holds in" meant the hint chips keyboard/hints.js and command-hints.js re-read on scroll end; now says so. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…readers Rewrites the prose of the kernel registry's `$` declarations and `$keys` members (registry.json), the delivered `handling` and `answering` clauses, the longest core and package tag descriptions and x-instructions, and the site's "Wait for updates or finish" (with "Stop hook checks"), "Harness differences", "Navigation", "Browser runtime" and "Drawing current state" sections (how-it-works.html) and "Widgets in messages" and "How a thread ends" (threads.html). Each states the case, then the rule, in short sentences; coined nouns (seat, fold unit, append door, reading, presentation proof, publisher, coordinator) give way to what the reader sees or the identifier. No schema, code or heading changes. The `$` prose is 26% shorter (9,394 to 6,950 words); the rewritten docs sections 9-10% shorter, where much of what remains is tables and diagram source. Behavior changes: the delivered clauses' wording changes, so five snapshots that quote them are re-recorded (the diff is the wording alone), and test_a_page_pick_holds_the_turn_until_the_markup_records_it now looks for "write the answer in, and stamp a version". Cuts, registry: - $events: pickup `refs` mapping; reaction lifecycle (now in $reactions). - $report.answering: "changing authored content never requires a historical-state permission gate". - x-awaits: the per-ask record's field list; the thread-message next-actor detail (a user turn after the asking message; no next actor once closed). - x-thread-seat: the hold control staying available after other threads; undoing a resolve restoring the hold. - x-state: what else the declaration drives (POST validation, replay, diff); the agent-verb-not-body rule and recorded-verbs-declare-no-detail rule, which the registry lint reports. - $state.record: slot rules (lint `shared-slot`); the nearest recording widget placing a node; `meaning.among`. - $state.creates: the two-field detail and no-record rules (lint). - x-prepaint: write it closed as the parser reads it, and no id, custom element or script (lint `prepaint-shape`, `prepaint-marks`, `prepaint-element`); a reading without the runtime hides it. - x-visual: every provider's own surface for aim and marks; `surface`'s default; SVG geometry versus box outlines; the render check refusing an id its prefixes don't admit. - x-thread-surface: registration lifetime; response modes, settlement and receipts in Leaf's list; placement lasting one pass. - x-initial: the inert-template buffering; "only where not already registered". - x-space, x-height, x-views, x-resident: the `data-lf-*` delivery attribute each writes (x-bound keeps its own); x-height's failure height. - x-retired-when: one decision in force; the render check's undecided mark. - x-work: a page widget's to-do showing at the page edge after a layer drops x-work. - x-history, x-text-format, x-exhibit, x-data, x-content, x-ask-context, x-unique, x-language, x-name: reasons and second examples. - $awaits.value: the positions map; $awaits.answered: the thread-box effect (stated in x-thread-seat) and a cleared value reopening the ask. - $reactions: core never interpreting a token, token independence, the digit-survives-renaming reason, "and only that one", the projection note. - $series, $tones, $languages, $passages: rhetoric and edge detail (U+001C-001F). - handling.edit.0: the retitle's reason; handling.error.0: "It is a diagnostic"; answering.reply.1: "it validates saved edits". - lf-trace: opening order across streams, trees and images; chronology, page filters and clocks; the first-image preview label. - lf-option: "read $restated for when to rewrite instead of correcting beside the ask"; lf-options: "do not create sections solely to hold alternatives"; aside.sidebar: "the idiom reads the declaration". Cuts, docs: - waiting-flow and page-ending: sentences repeating the waiting and background-worker points. - long-work: the claimless-preview definition, off topic there. - turn-end-hook: an update that needs no answer going in with whatever else keeps the turn going. - host-routes: the answer command and pointer steps repeated per row, now said once. - claude-hooks: the definition of a hook; drawing: "presentation proof". - withdrawing: "Withdrawn means undone". Corrections: - how-it-works "Harness differences": the hook confirms by a deadline and hands a delivery over whole only once confirmed (hook_transport), where the page said it confirms only once it has published the delivery. - x-refers and x-prepaint cited a command's "readings seat"; no shipped package has one (only tests/fixtures/packages/work), so the examples go. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- delivery.py: restore why a direct `leaf response reply` commits at once (its refusals reach the agent while it can fix them); rewrap a 92-column line. - `task end` help, todos.py and the `finished-in-view` finding: say what `work.open_ids` checks, an element showing unfolded on the newest revision (not inside a closed details, a later tab or [hidden]), in place of "stands among the open work". Re-recorded the finding's snapshot. - workflows.py: a page action's receipt lasts until the markup records it or a later version's note takes it in. - detached.py: name its callers as examples, not the complete set. - `progress-parent`: say the progress line starts an update owed no reply to its parent, which may already be answered (checked against event_contracts.py). `hidden-widget`: say to open the to-do on another element or on `page`. - hook_transport.py, revisioning.py, todos.py, anchor-travel.js: plainer wording; revisioning.py now says which replies take precedence over a `reanchor` (one that moves the thread itself with --quote, --section, --part or --detach). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ences Restores rules the previous rewrite cut that eval rubrics test directly, and fixes accuracy and readability findings from its review. Restored: - page-layout: lf-ask, callouts and text keep the reading measure, and a table, chart or playground inside one needs its own data-width, which is the only way it breaks out (sidebar-page-ask-grants-its-evidence-room); the matching rule in authoring-asks names tables and charts too. - page-layout: don't pad a heading for its marker; the reader hides markers with `o` or More → Annotations → Hide annotations (pin-takes-no-page-room). The menu path is the one floating-panel.js draws, with the Annotations group. - page-layout: a long read is a sidebar page when the reader keeps a panel of its own in view, which is the aside; page-authoring: detailed evidence and history go in the body or a disclosure (long-read-beside-a-panel-is-a-document). - page-layout: use a Layout where one fits rather than rebuilding it (page-arrangement-uses-layouts), and stack each track's regions inside it. - authoring-asks: an alternative's costs and open questions belong in its case; how to build it waits for the pick, the recommended one included; today's version is a neutral baseline (approach-page-leaves-the-choice-open). - authoring-evidence: choose the comparison that covers the work discussed (source-code-readable), and the figcaption rule. - live-samples: write content in the template rather than copying rendered controls. - packages: no override may shrink a control below its touch target or focus clearance. Corrections: - harness-codex-app-server: the reply is the opening and the final message joined, and a turn with no final message posts none (codex.py, final_text). - serving-pages: only `leaf page interactions` sorts, deduplicates and reassembles records; the raw interactions.jsonl is in arrival order with retries and split records. `page init` refuses a change, not the page, while another session holds it, and its restart triggers are the layer, server code, dependencies, package selection and installed files. Starting a persistent page prepares no agent delivery. - codex-watcher: status, replies and versions don't take the page back from the watcher; the page task's own `server start` or `page claim` does. - page-authoring: an element entry in page/registry.json replaces the layer's entry, as page-behavior says. Readability: authoring-asks' option rule, packages' cascade order (ranking first, layer names second) and import rule, serving-pages' two refusal cases, and authoring-revisions' `settled` rule are reworded. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # build/AGENTS.md # dev/AGENTS.md # skills/leaf/assets/AGENTS.md # tests/AGENTS.md
# Conflicts: # skills/leaf/references/harness-claude-code.md
Applies the independent review of bcbf306. Restored: - developing-leaf, "When to pass guidance back": keep editorial choices with the author and preserve the user's state; say what was checked and what was not; add no message that only repeats known information or asks for an unneeded change. "Leave taste": the rates inform the call rather than gate it. - developing-leaf, proof: a live preview may accompany the stills pairs but doesn't replace them; the user's review preview and a borrowed browser keep their own lifetimes. - tests: `data-lf-applied` counts only actions, reports and undos, so a comment, reply or reaction is observed by its paint; an inherited failure calls for no rerun; the broad-selection line points at root AGENTS.md, "Working on the repository"; main stays red until `tend-ci-fix` repairs it. - assets: the thread-list.js and `keeping` owners in the News rule; only a field in flow scrolls to keep its controls in view; persistent status text is for a state the user must return to; geometry decides where a typed box sits, never whether it exists. - keyboard: page-side selections, targets, clusters and the page composer coexist beside an auxiliary surface and focus decides which answers first (restored to the Escape list, its original home); context keys forward on an ask's margin or thread representative too. Accuracy: prepaint removes `data-lf-interactive` when something the page needs doesn't arrive or the page declares a failure; a box may grow or shrink into free room; a reveal never changes the size or position of its ancestors or siblings; success needs no notice beyond the announcement for a listener; page sheets reach chrome when they name a widget or the layer's vocabulary; three watches report problems and `input_work_watch.js` tells them which input caused a change; `test_widget_quality.py` also covers the base layer. Corrections to bcbf306's message: widget-preparation input provenance lives in shift_watch.js, not input_work_watch.js's header; and the shift-watch scope item was a rewording, not a factual correction. Rebuilt `skills/leaf/kernel/` with `pnpm run build:browser`, which the leaf.js header change requires (build/AGENTS.md); the rebuild also brings in runtime changes main's committed kernel had not yet caught up with. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…el untouched Moving it into leaf.js's header forced a kernel rebuild, which pulled unrelated source changes into a prose-only change. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/assets/registry.json # skills/leaf/references/harness-claude-code.md
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # .claude/skills/developing-leaf/SKILL.md # skills/leaf/references/conversation-loop.md
# Conflicts: # skills/leaf/references/conversation-loop.md # skills/leaf/references/harness-claude-code.md # skills/leaf/scripts/leaf/findings.py
# Conflicts: # skills/leaf/references/conversation-loop.md # skills/leaf/references/harness-claude-code.md # skills/leaf/references/harness-codex-app-server.md # skills/leaf/references/packages.md
Takes main's event-batches.md. Carries main's new facts into the rewritten module-authoring.md, module-state.md and package-data.md: printing drops every offer, so a box holding what the widget shows is an `el` (#2899); only authored widgets have a controller, created members are drawn and presented by their parent, and read() carries `memberships` (#2900); a recordless verb's unit names its subject by element id or data key, one widget records each attribute, a created id must be new across page and Thread markup, and a creates child may not declare its own state, asks, work, history, data, visual parts or thread seat (#2900). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The answering reply clause conflicted with #2897's "starts the update", which this branch's rewording already carries; the branch's text stands. The five snapshots that quote the delivered clauses are re-recorded from main's copies, and each differs from main only by this branch's wording. Rewrites `$awaits.when` and `$restated.when` in plain prose. `$awaits.when` names `lf-options`' own condition as its example; `$restated.when` says the same three rules in shorter sentences. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 14, 2026
# Conflicts: # skills/leaf/kernel/kernel.json
max-sixty
dismissed
leaf-agent’s stale review
October 14, 2026 22:14
The merge-base changed after approval.
leaf-agent
previously approved these changes
Oct 14, 2026
# Conflicts: # skills/leaf/kernel/kernel.json # skills/leaf/references/module-annotations.md
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 14, 2026
# Conflicts: # .claude/skills/developing-leaf/SKILL.md # build/AGENTS.md # dev/AGENTS.md # tests/AGENTS.md
leaf-agent
approved these changes
Oct 14, 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]>
max-sixty
added a commit
that referenced
this pull request
Oct 17, 2026
… glossary (#3107) In #2809 the user decided that the interface names what waits on them by its list, as **Next on me** does. The plain-prose rewrite in #2905 kept only "an ask, never a question", which reads as licence to call a set of waiting items "asks", and a maintainer session then labelled a layout-sketch toggle "Mark views holding open asks". The rule now lives in the glossary's **On me** entry. Following the review thread, the **Ask** entry goes: the direction is that an ask is a widget that registers an On me item, not a vocabulary term of its own. The code still has an ask record (`asks.py`, `x-awaits`, prose `--ask` replies, approval asks); reshaping it so On me items are the shared record is a separate change. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> 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 rest of the prose rewrite that #2897 started: Leaf's references, maintainer guidance, module headers, CLI and finding text, registry prose and the site's how-it-works and threads pages, rewritten in short plain prose that names the real case before stating the rule, with guidance that didn't help cut. Root
AGENTS.mdandskills/leaf/SKILL.mdare held back for the maintainer's own review.Each area was rewritten by one agent and reviewed by a second for accuracy, lost rules and readability; every review's findings are applied. Commit messages list every cut.
module-*.md,package-data.md,package-themes.md)page-*.md,authoring-*.md,serving-pages.md,live-samples.md,packages.md, the Codex and Pi harnesses)AGENTS.mdfiles,/developing-leafand its glossarycodex.py,todos.py,hook_transport.py,workflows.py,delivery.py,detached.py, runtimesemantic-state.js,projection/presentation.jsand others) and CLI help and finding text$declarations and deliveredhandling/answeringclausesdocs/how-it-works.html,docs/threads.htmlEvals. The six cases whose rules the authoring-reference cuts touched (
sidebar-page-ask-grants-its-evidence-room,pin-takes-no-page-room,long-read-beside-a-panel-is-a-document,page-arrangement-uses-layouts,approach-page-leaves-the-choice-open,source-code-readable) score the same on base and candidate on Claude Code (7/8 each; the same case fails on both). The two cases that paste the delivered clauses (user-rewrite-answered,user-rewrite-retitles-its-thread) are re-pasted with the new wording and pass 16/16 cold and mid-session on Claude Code and Codex.Corrections to claims that were wrong on main:
handling.report.0anddocs/event-log.htmlsaidpage checkrefuses markup that contradicts a report without answering it; Clarify navigation and keep decided pages editable #2020 removed that gate.packages.mdsaidgrows-with-contentnever sees a part scroll inside a workspace;widget_quality.pydraws each example in a workspace pane too.module-authoring.mdlistedUPGRADEamong importable startup events;widget-api.jsdoesn't export it. It also lost### Retained nodesin Add LeafElement, a Lit widget base class, on five widgets; hold only the dragged widget during a drag #2869, which three files cite; restored.navigateToDatum/indicatetake the referring widget first; a changed widgetid(not declaration) makes the controller report every action unavailable;x-exhibitis declared only onlf-sample.assets/AGENTS.mdplacedcomment-placement.jsandfloating-response.jsin the default package; they are inruntime/annotation-overlay/.task end's note and thefinished-in-viewfinding now say whatwork.open_idschecks (the element shows unfolded on the newest revision).reconnect.py: the resumeSessionStarthook publishes reconnect notices too.Other changes: the "Re-vendoring and layer epochs" heading is now "Re-vendoring", with its citations updated. The kernel is rebuilt for the reworded runtime comments and registry prose. One contract test now matches the reworded
unoverruledfinding, five regtest snapshots and the CLI help snapshot are re-recorded (wording only), andtest_stop_guard.pymatches the reworded report clause.No code behavior changes.