Repository navigation
Hold the settling poll off the sender this test says cannot settle - #20
Merged
Merged
Conversation
The first tab's send path was closed by hanging its POST response, but the poll path was left open, and settleAcceptedDrafts settles a draft from either. Within a poll of the server taking the answer, that tab read its own attempt back out of the log and tombstoned the shared generation, so the replacement tab had nothing left to send and the run failed with sends=0. Both tabs now open through held_stale, which refuses every poll after the one open_page's stamp rides on and is registered before the page navigates rather than on a live page. The replacement's own refusal moves there with it.
max-sixty
pushed a commit
that referenced
this pull request
Sep 18, 2026
`notes/workspace-followups.md` has been presenting finished work as the plan since 9 September. It opens with "Start #2, #3 and #4 as one coordinated contract batch; run the review-queue simplification #8 alongside it" — all four of those shipped that week — and carries thirteen briefs, each with a live "Next task" and "Done when", for work `TODO.md` dropped as complete. This removes them and leaves the six `TODO.md` still links: #11, #14, #19, #20, #22 and #23. The trim follows the convention #666 set and the reason `CLAUDE.md` gives for it: a note is never a second specification for shipped behavior. #666 removed #6, #7, #16 and #17 the same way, rewriting the two `Owner / dependencies` lines in surviving briefs that named them; it simply did not reach the rest. Each removal is evidenced by the commit that took the item out of `TODO.md`, not by a reading of the current code: | Brief | Removed from `TODO.md` by | | --- | --- | | #1, #3, #5 | [`0f7f06a6`](0f7f06a) — "Completed workspace items #1, #3, and #5 are removed from `TODO.md`" | | #2, #4, #8, #9 | [`28b5da99`](28b5da9) — "the completed #2, #4, #6, #8, #9, and #17 backlog entries are removed while preserving the deferred evaluation work" | | #13, #15 | [`6df40353`](6df4035) — "closes three bounded workspace follow-ups" | | #10, #12 | [`c9eaa2c6`](c9eaa2c) — the continuation cue and the adaptive Threads placement | | #18, #21 | [`e46c8b93`](e46c8b9) — the monitoring workspace and its package-owned root | Alongside the briefs, three group headings are now empty and go; the `Suggested work packages` table loses the rows whose whole scope landed; and four cross-references that named a removed ID are rewritten — #14's dependency on the Threads-placement experiment, #20's ordering behind #8, and the two sentences in `Reproduction record` and `Browser evidence` that pointed at briefs no longer here. #14 needed more than a rewritten pointer. The experiment it waited on was settled in two steps, and only the first removed an ID: [PR #520](#520) kept the adaptive placement and deferred the modal-focus work to #24, which landed in [PR #536](#536) as inertness, dialog semantics and focus containment for a covering workspace. That is the surface #14 exists to verify, so its `Done when` — "Avoid imposing a modal focus trap on a nonmodal panel" — described the containment #536 shipped as the defect to avoid. It now states the containment the shipped modality requires, and the dependency line names both settlements. The dated evidence sections themselves stay. They are the record of what was read in a browser on 8 September, not a plan, and the note's own header scopes them to that date. No test covers `notes/`, and this changes no behavior, so there is nothing to regress. `pre-commit` passes on the file; the `TODO.md` → note anchors all still resolve, and no surviving text references a removed ID. --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Sep 22, 2026
A review page could show current and proposed flows without making their difference easy to inspect. Trial an optional `code-review` package with brief authoring suggestions drawn from the PR walkthrough: review findings, focused evidence, and behavior comparisons. The package supplies guidance only and composes with the existing evidence widgets. Authors can select their own review guidance instead. The skill routes code-review authors to it before widget selection, and the package catalog links directly to its guidance. Package checks allow optional themes and catalog entries that expose source rather than a visual demo. The catalog uses normal block flow inside each card so Leaf's generated external-link indicator sits beside “Read guidance” rather than becoming an extra grid row. Todo #20 retains the cold-author discovery experiment. Validated package checking, guidance output alone and with diagram/diff/pr-review, and an unselected control with identical widget vocabulary. Six focused package/guidance tests, the catalog and built-site theme checks, and changed-file pre-commit checks pass; corpus regeneration produces no changes. The catalog was inspected in Chrome against the previous version and passes light/dark desktop/narrow render validation. Independent prose and composition review found no issues. Agent behavior improvement remains unmeasured. > _This was written by Codex on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Sep 27, 2026
…elided threads, packages and shared sources (#1332) Adds the five cases the agent-usability baseline left uncovered and records what they found. Three are live: the child serves the page from its own session, and the harness plays the user by posting moves through the served page between turns. `handoff` covers the first handoff's status and the delivery-receipt loop across two rounds. `mixed` sends a comment, an Ask's pick, a reaction, a card move and its undo, and a page error in one delivery. `elided` asks a question whose premise is in the middle of a closed 24-message thread, the part the delivery leaves out. Two are headless: `package` asks for a widget that only the page's own package supplies, and `shared-source` covers two `lf-worktree` widgets on one source that also holds a look-alike record. Results, three scored runs per case at 64186bc ($5.71 scored, $8.76 with pilots): no run gave a wrong answer, wrote to the wrong place or lost user state. Three process checks failed. One mixed-batch run claimed its work page-wide instead of on the comment's thread. On `shared-source`, reading agents opened the renderer to confirm the id join. On `package`, agents read the widget source to describe what it draws. A paired A/B ($7.11) tried a `conversation-loop.md` clause and a sharper `lf-worktree` description. Neither changed the result, so both were reverted and no shipped guidance or interface changes. `notes/agent-usability-evals.md`, "Second slice", has the detail. The elided condition never bound: every agent picking the page up read the thread first. The `TODO.md` bullet now leaves the plain-HTML comparison and #20. Owner: the eval tooling's live-session mechanism now lives in one place. Before, `eval_claude_delivery.py` held the only copy of the page client, the stream readers and the held-open `claude -p` lifecycle, and the new cases needed all three. `scripts/eval_harness.py` now owns them as `LiveChild` (child, deadline, stdin close, cleanup), `PageClient.post(event)`, `waits_started` (now also matches a launcher held in a variable), `hook_delivered`, `tool_calls` and `commands`. `eval_claude_delivery.py` is cut over, and its copies of the page client, URL pattern, stream readers and Popen/deadline/kill code are deleted. The two drivers keep their own read loops, because they schedule posts differently (mid-turn with sampling, against once per ended turn). In the usability harness, `admit` and `acknowledge` share one `arm_python` runner, and fixture builders dispatch through one table. Checks: ruff over the changed scripts; `eval_claude_delivery.py` imports cleanly after the cut-over, but its paid run was not repeated. A smoke run of `handoff` exercised `LiveChild` after the refactor. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
max-sixty
added a commit
that referenced
this pull request
Oct 3, 2026
Leaf's eval dependency tree installed a vulnerable FTP directory-listing parser through Promptfoo → proxy-agent → get-uri. Scope an npm override to get-uri's basic-ftp dependency and select 6.2.1, which fixes [CVE-2026-102990](GHSA-c475-qrg2-pj4r). The latest get-uri still requests basic-ftp 5.x; [upstream #502](TooTallNate/proxy-agents#502) tracks that constraint. Regenerating the lock also removes 14 unused entries already marked extraneous, including the unused braces dependency reported in [alert #20](https://github.com/max-sixty/leaf/security/dependabot/20). Basic-ftp is the only retained package whose version changes. Two MongoDB optional-peer entries previously marked extraneous are retained with npm 10's required optional/peer metadata so CI can install the lockfile. Existing platform-specific libc selectors are preserved. Node-forge remains installed and [alert #19](https://github.com/max-sixty/leaf/security/dependabot/19) remains unresolved. These findings came from [October's review tracker](#1501). Validation: clean npm 10.9.9 installs with full scripts and with `--ignore-scripts --omit=optional`; all six eval assertion tests; 81 focused Python eval-runner tests; one real Promptfoo echo evaluation through Leaf's runner; pre-commit and diff checks. Actual local FTP sessions through installed get-uri retrieve identical bytes with both MDTM and MLSD fallback. A crafted 128 KiB Unix LIST entry blocks past a 10-second subprocess deadline on basic-ftp 5.3.1; the patched dependency returns the expected missing-timestamp error in 0.13 seconds. This exercises the parser through get-uri's real fallback rather than replacing its calls. Basic-ftp 6 rejects separate transfer hosts by default, providing its FTP bounce-attack protection. Ordinary local passive transfers pass the compatibility check. > _This was written by Codex on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Oct 12, 2026
… a reply to a withdrawn message (#2507) Python code that restated a rule a stronger mechanism already enforces, explained malformed agent input the agent would fix from a plain refusal, or recovered from states no Leaf writer produces. It goes; what stops bad input passing silently into admitted events, stored decisions or anchors stays. One confirmed bug is fixed on the way. Part of the complication-weight sweep (#19–#24 and #30 there). **Bug: a reply to a withdrawn message opened a phantom thread.** Admission checked a reply's `parent` against every message in the log, withdrawn ones included, while the thread fold drops withdrawn ones; so a reply to a reaction the user took back was admitted and landed in a second thread named after the withdrawn reaction. `_parent_error` now refuses a withdrawn parent, and `UndoReading` counts any child, a reaction included, as standing on a reaction, so every standing message's parent stands. The fold reached the phantom through recovery written for a torn opening line, which the writer cannot produce (it fsyncs before returning an id and repairs a torn tail before the next append); that recovery goes from `build_threads`, `seat_root`, `thread_context` and `logged_id`, with its two tests. **Restated rules (#19):** the start line's one-line rule now lives once in the kernel registry, including a progress reply's `start`; `record_pickup`'s phase, `cmd_wait`'s argument pair, `deferred_value`'s re-checks, the `Unresolvable` catch, the JSX refusal (the browser check reports it), the `check_app_server_endpoint` alias, the entries-are-dicts check and the `user_views` JSON round trip (now `deepcopy`) go. **#20:** the `fcntl` ImportError fallback goes; Leaf runs only on POSIX and a plain import fails as early. **#21:** `capture_anchor` refuses a missing quote with one message instead of diagnosing fences, removed words and data bodies (the retired- and gone-section refusals stay); `leaf data set` no longer explains empty stdin; `task open` no longer explains a thread subject the schema refuses. **#22, #24:** `activity._moment` stops tolerating timestamps no Leaf writer produces; the interaction log stops re-validating on read what it validated on write: it skips a torn line, and marks a split record whose parts don't join into the entry they name as `interaction_unreadable` (ingress checks each part, not the whole). **Rules moved to their owners (#30):** the layer's `$` fact shapes are one `LAYER_FACTS_SCHEMA`, leaving only cross-references and what a schema can't say in code; `delivery.pending_batches` is gone for `hook_transport.read_plans`; `codex run --handshake` is required; the `RANK` pattern and identity fields' non-emptiness are in `detail_schema`. Patterns that replaced a `fullmatch` end with `(?![\s\S])`, because Python's `re` lets `$` match before a final newline. `lf-suggestion`'s rules stay in Python: no existing declaration can say how many slots it holds or that it can't nest. **Behavior changes:** a reply or reaction to a withdrawn message is refused; a reaction to a reaction blocks undoing the parent reaction; refusals read as the schema's or parser's message; a log that already holds an orphaned message (possible only from the bug above) now fails to read instead of showing a phantom thread. The browser runtime's half of #23 is in the runtime cuts PR, which follows this one. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Oct 12, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 13, 2026
Records the follow-ups the playground-placement work in #2711 left open, so they outlast the session that found them: a recommendation's reason in prose beside the options, the playground rail staying in view beside a tall preview, multi-block sidebars, the narrow-table and clipped-control checks across widths, a quoted playground's empty item boxes, the tally's small gaps, and answering a comment that arrived before a page changed hands. #20 no longer lists per-item configuration controls, which landed in #2711. > _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 21, 2026
…the undo pick (#3493) Applies the answers given so far on the TODO and notes decisions page. Prose only: no code, tests or instructions change. - **Five finished TODO items go**: tabbed sections (`lf-tabs` placement covers them), #27 runtime fold tests (`tests/AGENTS.md` states the practice), the favicon count, `leaf-dev` charts (`journey-chart --replies` adopted it), and #26 Codex supervision. - **MCP Apps folds into TODO**: `notes/mcp-apps/PROJECT.md` goes; its TODO item keeps the design, acceptance criteria and the probe's commit `a8ed55e68`. - **#23 workspace persistence is dropped** with `notes/workspace-followups.md`; #20's brief moves into its TODO item. - **Undo reach is decided**: keep `z`'s reach unlimited, name the gesture and its age, and spend the first press revealing a target that is out of view or already picked up. `notes/undo-reach/README.md` now briefs that build; its playground goes (kept in history at `29966712b`). - **The agent-driven UI-quality note goes** with its TODO item; `leaf-dev eval-ui-review` and `/ui-sweep` cover what it proposed. > _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 25, 2026
The backlog is now GitHub issues labelled `backlog`. Every item under Now, Next and Etc in `TODO.md` became one issue, so a pull request that says `Closes #N` links itself to its item, and a session finds untaken work with a query instead of reading a file that has no claim signal. #4000 landed first, so none of the new issues started a triage run (all 82 `tend-triage` runs were skipped). **Query.** ```bash gh issue list --search "label:backlog label:now -label:waits-on-user -linked:pr" ``` then `label:next` and `label:etc`. `-linked:pr` leaves out issues a pull request already links with a closing keyword. **What moved where.** - 82 issues from #4007 to #4089 (#4067 is another session's), one per bullet. Each is labelled `backlog` and its priority: 13 `now`, 29 `next`, 40 `etc`. Now and Next items also carry a theme mapped from their `###` heading: `ux` (User experience; User continuity and mobile access), `agent-experience` (Agent and author experience; The agent's text interface), `layout` (Layout; Layout stability; Queues), `review-tools` (Before/after comparison; Recorded interaction review) and `dev-velocity`. Etc's two headings, Product and harness ideas and Implementation candidates, sort kinds rather than subjects, so those items carry no theme. - 14 items also carry `waits-on-user`, the "Waits on the user" marking from #3891 (`todo-review`), and their bodies take that branch's wording, including its rewrite of the held-news item as "Keep a held-news count whole as it grows" (#3459 landed the "+N" route). `TODO.md` says what the label means, and the query above leaves those items out. - After the migration, #3891's author asked for three more edits from the grind PRs that touch these items: #4039 is retitled "Decide whether Pixels should soften redrawn-shadow fringes" (#3838), #4039 and #4048 (#3840) also carry `waits-on-user`, and #4098, "Keep a window preference from cramping a dashboard into a workspace", is the item #3913 puts in place of #4033. - Each title is the bullet's bold outcome. For the bullets whose bold text is a label ("Multiplayer:", "MCP Apps:"), the title adds the bullet's first clause. - Each body is the bullet's text with its hard wraps joined (GitHub renders a single newline as a line break), relative links made absolute, and `notes/` paths linked. A footer gives the bullet's `TODO.md` permalink, its heading, its position within its priority, the old `TODO #N` id for the six that had one, and the theme section's introduction where there was one. #4014's mention of the reply-widgets item now links #4089. - `TODO.md` keeps "Biggest current challenges" unchanged. Its priority explanation now says the items live in issues, what the labels mean, and how to query them. - `/developing-leaf` gains "Take a backlog item": pick an unclaimed issue that isn't waiting on the user, and open the PR early with `Closes #N`. It points at `TODO.md` for the query, so the rule and the query each have one home. - Every reference to a current `TODO.md` item now names its issue: `AGENTS.md`'s repository map, `/developing-leaf`, the thread snapshot skips, `journey.py`, `thread_snapshots.py`, `llm.py`, `test_tabs.py`, the Worker, two eval comments and five notes. - #3891's two note edits come along (`notes/browser-support.md`'s recheck rule, `notes/user-feedback-responsiveness.md`'s retired tone lever), since #3891 will drop its `TODO.md` changes. **Order.** Each issue's footer records its old position ("item 6 of 13 in Now"). I didn't keep an ordered index in `TODO.md`: it would be a second list of the backlog that every new issue has to be added to by hand, and it would drift from the labels. The priority label is the ordering that stays current. **Duplicates.** None of the 15 open issues duplicated an item, so every item is a new issue. **Mapping.** The old-item-to-issue table, with open PRs whose titles match an item, is below; the same table is at `~/.tmp/leaf.agent-afd0a8c0d63089ed9/backlog-mapping.md`. <details><summary>82 items</summary> | Issue | Priority | Old position | Old id | Title | Possible PRs | |---|---|---|---|---|---| | [#4007](#4007) | now › User experience | 1 (TODO.md line 43) | | Make complete reading journeys feel coherent | #3860, #3865 | | [#4008](#4008) | now › User experience | 2 (TODO.md line 47) | | Keep the Thread hierarchy clear | | | [#4009](#4009) | now › User experience | 3 (TODO.md line 49) | | Keep a long Thread's current status visible | | | [#4010](#4010) | now › User experience | 4 (TODO.md line 53) | | Test annotation placement in context (waits-on-user) | | | [#4011](#4011) | now › User experience | 5 (TODO.md line 57) | | Make the next move and its result apparent | #3879 | | [#4012](#4012) | now › User experience | 6 (TODO.md line 62) | TODO #28 | Finish the floating panel (waits-on-user) | | | [#4013](#4013) | now › User experience | 7 (TODO.md line 69) | | Keep a held-news count whole as it grows (waits-on-user) | | | [#4014](#4014) | now › User experience | 8 (TODO.md line 80) | | Stop moving live content between parents | | | [#4015](#4015) | now › Agent and author experience | 9 (TODO.md line 94) | | Wake idle Codex desktop chats without user messages | | | [#4016](#4016) | now › Agent and author experience | 10 (TODO.md line 99) | | Consider a reminder when revising decided content (waits-on-user) | | | [#4017](#4017) | now › Agent and author experience | 11 (TODO.md line 104) | TODO #20 | Act on the plain HTML comparison | | | [#4018](#4018) | now › Agent and author experience | 12 (TODO.md line 118) | | Keep delegated work in the panel's status on Codex and Pi | #3854 | | [#4019](#4019) | now › Agent and author experience | 13 (TODO.md line 123) | TODO #24 | Measure time to an initial reviewable page and the value of review | | | [#4020](#4020) | next | 1 (TODO.md line 149) | | Add a host-owned widget LLM allowance (waits-on-user) | | | [#4021](#4021) | next › User continuity and mobile access | 2 (TODO.md line 159) | | Bring back a rewrite Escape discarded | #3862 | | [#4022](#4022) | next › User continuity and mobile access | 3 (TODO.md line 163) | | Decide when a page merits a separate phone composition (waits-on-user) | | | [#4023](#4023) | next › User continuity and mobile access | 4 (TODO.md line 169) | | Improve maintained examples through a phone-quality queue | #3869, #3899, #3902 | | [#4024](#4024) | next › User continuity and mobile access | 5 (TODO.md line 175) | | Decide whether Back may restore a leaf.page page whole (waits-on-user) | | | [#4025](#4025) | next › User continuity and mobile access | 6 (TODO.md line 182) | | Consider automatic Leaf recovery on resume | | | [#4026](#4026) | next › User continuity and mobile access | 7 (TODO.md line 185) | | Verify the native phone reading journey | | | [#4027](#4027) | next › User continuity and mobile access | 8 (TODO.md line 189) | | Finish what a phone user still cannot reach | #3856, #3868, #3874, #3875 | | [#4028](#4028) | next › User continuity and mobile access | 9 (TODO.md line 199) | | Reconsider thread navigation (waits-on-user) | | | [#4029](#4029) | next › Layout | 10 (TODO.md line 224) | | Show returning threads without moving the current reading | #3883 | | [#4030](#4030) | next › Layout | 11 (TODO.md line 229) | | Let a page restyle Leaf's chrome on purpose (waits-on-user) | | | [#4031](#4031) | next › Layout | 12 (TODO.md line 235) | | Let a block be a workspace | | | [#4032](#4032) | next › Layout | 13 (TODO.md line 245) | | Show each floating surface across the content it can hold | | | [#4033](#4033) | next › Layout | 14 (TODO.md line 275) | | Test the Layouts on agents | #3913 | | [#4098](#4098) | next › Layout | 14, added by #3913 in #4033's place | | Keep a window preference from cramping a dashboard into a workspace | | | [#4034](#4034) | next › Layout | 15 (TODO.md line 285) | | Layout values that wait for a task: list-detail on a phone, canvas regions, slides | | | [#4035](#4035) | next › Layout | 16 (TODO.md line 288) | | Decide whether a too-narrow table fails a page at the fixed widths (waits-on-user) | | | [#4036](#4036) | next › Layout stability | 17 (TODO.md line 298) | | Keep what a live revision adds above the reader from moving it | | | [#4037](#4037) | next › Layout stability | 18 (TODO.md line 304) | | Keep the merge film's controls still as it steps | | | [#4038](#4038) | next › Queues | 19 (TODO.md line 314) | | Keep the open item's group named on a phone | #3853 | | [#4039](#4039) | next › Before/after comparison | 20 (TODO.md line 323) | TODO #29 | Decide whether Pixels should soften redrawn-shadow fringes (waits-on-user; was "Explain the faint amber halo in Pixels") | #3838 | | [#4040](#4040) | next › Recorded interaction review | 21 (TODO.md line 333) | | Explore DOM selection in the imported timeline | | | [#4041](#4041) | next › The agent's text interface | 22 (TODO.md line 343) | | Decide the Leaf-owned defects the bad-pages eval left open (waits-on-user) | | | [#4042](#4042) | next › The agent's text interface | 23 (TODO.md line 350) | | Read the full render gate after handover | #3888 | | [#4043](#4043) | next › The agent's text interface | 24 (TODO.md line 366) | | Consider loading a page once per render check (waits-on-user) | | | [#4044](#4044) | next › The agent's text interface | 25 (TODO.md line 372) | | Derive the waiting status from the page's open obligation | | | [#4045](#4045) | next › Development velocity | 26 (TODO.md line 380) | | Require `test` on `main` again (waits-on-user) | | | [#4046](#4046) | next › Development velocity | 27 (TODO.md line 386) | | Resume the thread appearance gate (waits-on-user) | | | [#4047](#4047) | next › Development velocity | 28 (TODO.md line 394) | | Guard thread appearance on CI again | #3896 | | [#4048](#4048) | next › Development velocity | 29 (TODO.md line 404) | | Keep the agent journey's samples (waits-on-user) | #3840 | | [#4049](#4049) | etc › Product and harness ideas | 1 (TODO.md line 420) | | Consider Redo and a Changes panel | | | [#4050](#4050) | etc › Product and harness ideas | 2 (TODO.md line 433) | | Link filenames to their repository context | | | [#4051](#4051) | etc › Product and harness ideas | 3 (TODO.md line 438) | | Revisit the Claude desktop app opening a page's file over the live page | | | [#4052](#4052) | etc › Product and harness ideas | 4 (TODO.md line 448) | | Decide the site's structure before release | | | [#4053](#4053) | etc › Product and harness ideas | 5 (TODO.md line 451) | | Assess whether automatic measurement freshness is useful | | | [#4054](#4054) | etc › Product and harness ideas | 6 (TODO.md line 457) | | Revisit where an abandoned comment's words come back | | | [#4055](#4055) | etc › Product and harness ideas | 7 (TODO.md line 462) | | Revisit a pin's icons if they read unclearly | | | [#4056](#4056) | etc › Product and harness ideas | 8 (TODO.md line 466) | | Revisit the reaction tokens' meanings or glyphs if they confuse | | | [#4057](#4057) | etc › Product and harness ideas | 9 (TODO.md line 471) | TODO #30 | Try a feed of ready-to-approve actions | | | [#4058](#4058) | etc › Product and harness ideas | 10 (TODO.md line 477) | | Explore independent jobs | | | [#4059](#4059) | etc › Product and harness ideas | 11 (TODO.md line 480) | | Tell the agent when to ask before ending its own to-do | | | [#4060](#4060) | etc › Product and harness ideas | 12 (TODO.md line 485) | | Let the user edit items in the On view | | | [#4061](#4061) | etc › Product and harness ideas | 13 (TODO.md line 489) | | Multiplayer: let several users share a page, each recorded as themselves | | | [#4062](#4062) | etc › Product and harness ideas | 14 (TODO.md line 495) | | Show which pane has focus, and move between panes by key | | | [#4063](#4063) | etc › Product and harness ideas | 15 (TODO.md line 508) | | Expand everything waiting with a keypress | | | [#4064](#4064) | etc › Product and harness ideas | 16 (TODO.md line 514) | | Let a user add, remove and edit table rows | | | [#4065](#4065) | etc › Product and harness ideas | 17 (TODO.md line 519) | TODO #16 | Named widget interfaces: let a typed reference name the interface its target implements | | | [#4066](#4066) | etc › Product and harness ideas | 18 (TODO.md line 523) | | Visual review beside Leaf: coordinate a real browser target through the harness | | | [#4068](#4068) | etc › Product and harness ideas | 19 (TODO.md line 526) | | Other harnesses: add a blocking `leaf wait` route when another harness needs it | | | [#4069](#4069) | etc › Product and harness ideas | 20 (TODO.md line 528) | | Consider Leaf running the agent session | | | [#4070](#4070) | etc › Product and harness ideas | 21 (TODO.md line 533) | | Decide whether an exported page carries its threads | | | [#4071](#4071) | etc › Product and harness ideas | 22 (TODO.md line 540) | | Character bindings: let users disable them | | | [#4072](#4072) | etc › Product and harness ideas | 23 (TODO.md line 541) | | Replacement diffs and visual masks for repeated reviews | | | [#4073](#4073) | etc › Product and harness ideas | 24 (TODO.md line 543) | | Motion evidence: define video, caption and transcript handling | | | [#4074](#4074) | etc › Product and harness ideas | 25 (TODO.md line 545) | | Revisit long-thread folding after using summaries | | | [#4075](#4075) | etc › Implementation candidates | 26 (TODO.md line 551) | | Remove the early-key hold once startup is fast on slower machines too | | | [#4076](#4076) | etc › Implementation candidates | 27 (TODO.md line 578) | | Draw the margin's annotations once per thread pass | #3864 | | [#4077](#4077) | etc › Implementation candidates | 28 (TODO.md line 587) | | Read moves exactly where the before/after pair is a browser's capture | | | [#4078](#4078) | etc › Implementation candidates | 29 (TODO.md line 597) | | Reduce plugin-update downloads by cleaning Git history | | | [#4079](#4079) | etc › Implementation candidates | 30 (TODO.md line 605) | | Set interaction-trace privacy before sharing pages | | | [#4080](#4080) | etc › Implementation candidates | 31 (TODO.md line 610) | | Make a leaf.page dispatch survive its container | | | [#4081](#4081) | etc › Implementation candidates | 32 (TODO.md line 616) | | Start each release's containers on its own image | | | [#4082](#4082) | etc › Implementation candidates | 33 (TODO.md line 629) | | Push page updates instead of polling | | | [#4083](#4083) | etc › Implementation candidates | 34 (TODO.md line 670) | | Claude Code tool observation: a cheap hook for sessions holding pages | | | [#4084](#4084) | etc › Implementation candidates | 35 (TODO.md line 672) | | Measure Leaf's hook cost for sessions holding pages | #3876 | | [#4085](#4085) | etc › Implementation candidates | 36 (TODO.md line 677) | | Invoker commands: test `command` and `commandfor` once Leaf's Chromium floor allows | | | [#4086](#4086) | etc › Implementation candidates | 37 (TODO.md line 681) | | MCP Apps: rebuild inline hosting as a direct resource | | | [#4087](#4087) | etc › Implementation candidates | 38 (TODO.md line 692) | | Release labels: prefer an exact tag when Leaf adopts named releases | | | [#4088](#4088) | etc › Implementation candidates | 39 (TODO.md line 693) | | Diff controls: author-configurable wrapping and per-file review tracking | | | [#4089](#4089) | etc › Implementation candidates | 40 (TODO.md line 695) | | Show a reply's widgets in every view of it | | </details> **Not migrated cleanly.** - Each section introduction (Layout, Layout stability, Queues, Recorded interaction review) is copied into every issue of its section, since a label can't carry it. - Eval fixtures that quote a past session mentioning `TODO.md` (`assessment-surfaces-pending-decisions`, `record-asks-hold-their-premise`, `options-*`) are recorded inputs and stay as they were. Two eval provenance comments and one line of `notes/agent-usability-evals.md` name items that left `TODO.md` before this change, so they have no issue to point at. - The fold-button entry #3891 corrected is in neither `TODO.md`, and #3928 fixed it, so it has no issue. > _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
Nov 6, 2026
…is HTML's phrasing less what draws its own box; shipped chips gain their spaces Where words are read (#21). The runtime found the element a run of words is read in after the walk, by climbing each text node's parents past inline tags, so a staged widget's top-level `<span>` climbed to its shadow root and stopped there: two widgets side by side under a `<div>`, each holding a `<span>`, read "alpha beta" before they staged and "alphabeta" after, where the file's reading kept "alpha beta". The reading walk now carries that element in its context (`enter`, `words`), as passages.py carries each element's block, across shadow roots as across the light tree, and a slot's words are read among the words where the slot draws them. Each segment carries it; a space stands between two runs read in different elements or across a line break (`spacedFrom`), in the raw reading as in `quoteFrom`. `segmentTextBlock` and its climb go. Which elements join words (#20). `$passages.inline` listed 28 tags and missed `<output>`, so `alpha<output>beta</output>gamma`, drawn and found by both browsers as one word, read "alpha beta gamma". It goes. `$passages.phrasing` comes in as on link-previews (4b056fc), JSON and `why-` text alike, so that merge is trivial, with `$passages.apart`: the phrasing elements drawn as boxes of their own, each with its reason, from the review's table of what each engine draws and finds (controls: button, select, datalist, textarea, meter, progress; embedded content: audio, video, canvas, iframe, object, picture, svg). Every other phrasing element, and a widget declared `x-inline`, runs into the words beside it: output, label, slot and a ruby's base among them. Both readings derive the set from the two facts (`JOINS_WORDS`, `JOINS_WORDS_TAGS`). An element outside the set, a text block or a widget among them, reads its words apart, inside a text block too: `alpha<button>beta</button>gamma` in a `<p>` now reads "alpha beta gamma" in both. The file's reading no longer reads text blocks at all, so `why-blocks` stops claiming they decide spacing. link-previews' `why-phrasing` says only the browser reads the list; that sentence changes at the merge, since the file's reading now reads it too. Said values. An `x-says` value is drawn as its element's caption (lf-sample), label (lf-column) or popover (lf-gloss), never among the element's words. The file's reading read one apart only outside a text block and the browser's never did, so a label beside its element's own words read "Headbody" in the browser and "Head body" in the file, and a gloss's tip in a paragraph "glossTip" in both. Both now read every said value apart (`enter`'s `SAID`, `_said`). Shipped chips (#19). The option chips in examples/heat-loss.html, adjacent `<small>` elements with nothing between them, draw as separate boxes but read "£180one afternoon", so search for "£180 one afternoon" found them on main and not here. They now have whitespace between them, as do the same chips in three of packages/default/registry.json's `x-example`s, the site nav's example in docs/package/registry.json, and four figure captions in docs/ui.html whose label is a block by CSS alone. No other adjacent chips stand in examples/, docs/, packages/ or skills/. tests/quote_cases.json gains an output, a ruby's base, a widget's slot drawing two spans, a button's label in a text block, two staged widgets side by side, as one word and as two, and a said label and a said tip; its browser side renders said values. Both runtimes answer all 27. A runtime test holds that a slot's words run into the shadow tree's words around it. Tests, each failing on c8bddac in Chromium and Firefox: - test_page_search_finds_words_an_output_runs_into (#20); - test_page_search_reads_two_staged_widgets_side_by_side_apart (#21), with the shared staged cases failing in the browser's runtime test on c8bddac and passing in Python there and here; - test_page_search_reads_a_said_label_apart_from_its_elements_words.
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.
Problem
Run 32411981438 failed on two tests.
test_the_ask_walk_reaches_an_ask_that_draws_no_boxwas the recurring one, and 4bead16 has already fixed it on main — this PR is the other one,test_a_closed_sender_cannot_append_its_accepted_attempt_twice, which failed withsends=0 acked=0 read=0 asked=16 heard=16: the replacement tab never posted at all.The test says its premise in its own first line — "when its first sender cannot settle it" — and only half of that was arranged. The wrapper the test installs closes the send path: the POST lands, the server takes it, and the runtime never hears the answer, so
sendDraftnever reachessettleDraft. ButsettleAcceptedDraftssettles a draft from the poll path too, and that tab was still polling. Within one poll of the server taking the answer, the first tab read its own attempt back out of the log, wrote the tombstone to sharedlocalStorage, the replacement tab's box emptied, and the send this test is about had nothing left to send. Which assertion carried the failure depended on where the storage event fell relative to Playwright's click —sendDraftrefusing a settled record (what CI saw), or Playwright refusing a Send the box had already disabled.The window is one poll interval against a Playwright click, so this machine never loses it and a loaded runner does. The failing run took 624s against 478s for the run three minutes later.
Solution
Both tabs open through
held_stale, the helper #6 added for exactly this: every poll refused after the oneopen_page'slf-appliedstamp rides on, registered throughprimedbefore the page navigates. On the sender that closes the second settling path and completes the premise the docstring already claimed. On the replacement it replaces a livesecond.route(...), which states the same fact but reaches no poll already in the wire.No assertion changed —
_until(second, t.acked == 1), the one-comment check and the attempt check all still have to pass on their own terms.Testing
uv run pytest tests/test_render.py --run-nightly— 421 passed.pre-commit run --files tests/test_render.pyclean.Reproduction and bug-back
The race is one poll interval wide, so it reproduces by spending one. With a
first.wait_for_timeout(2500)inserted between the accept and the replacement's click, on main:That is the later of the two shapes — the storage event had already emptied the box and set
aria-disabledbefore the click. CI caught the earlier one, where the click lands andsendDraftfinds a settled record.With this change, the same test survives
first.wait_for_timeout(6000)— three poll intervals — and passes in 14.84s. Removed before commit.Automated fix for failed run