Skip to content

Bound the suite so a wedged run fails instead of vanishing - #30

Merged
max-sixty merged 5 commits into
mainfrom
daily/review-runs-32626869496
Aug 24, 2026
Merged

max-sixty merged 5 commits into
mainfrom
daily/review-runs-32626869496

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Aug 23, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The test job wedged mid-suite nine times in five days. GitHub's six-hour job cap reported those runs as cancelled, so tend-ci-fix—which responds to failure—ignored them. Seven affected pushes were on main.

Solution

Set a 45-minute timeout on the test step. GitHub Actions marks a step timeout as failed and propagates that result to the job, giving tend-ci-fix the signal it needs without GNU timeout or manual process-tree handling.

The suite now runs with two workers; two recent complete runs took 13:47 and 16:48. Forty-five minutes leaves about 2.7× headroom over the slower run.

Testing

pre-commit passes on the workflow, including YAML and Actions validation. This PR's ci run exercises the setting on the current workflow.

The test job has stopped mid-suite nine times in five days, holding the runner
for GitHub's 360-minute default. Seven were pushes to main, and a job-cap kill
concludes cancelled rather than failure, so tend-ci-fix skipped every one --
leaving seven commits on main with no verdict and nothing to say so.

timeout on the command rather than timeout-minutes on the job: the job cap
reports the same cancelled and would leave the safety net just as blind, while a
timed-out command exits 124 and reads as an ordinary red suite. 30 minutes is
2.6x the worst of the last 40 healthy runs.
@leaf-agent leaf-agent added the review-runs Opened by the tend-review-runs sweep label Aug 23, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bound itself checks out, and the evidence behind it does: I confirmed the wedge shape independently — every cancelled run of ci.yaml at or past the 360-minute cap, tend-ci-fix.yaml's conclusion == 'failure' gate skipping each one, and the sizing (across the last 60 successful runs the Test suite step peaks at 11.1 min, median 10.4; across the last 30 failing runs, 11.2 min — so 30 minutes is ~2.7× the worst either way). Wrapping the command rather than capping the job is the right call for exactly the reason given.

One correction to the comment, and one gap in what the 124 will hand tend-ci-fix.

--kill-after doesn't reach the workers or the browser. The comment says it's there "because the TERM has to reach eight xdist workers and a headless shell," and the PR body says without it "a child that ignores TERM puts the job back on the 360-minute cap." That holds for uv — the direct child — but not for its descendants, because timeout returns the moment the monitored child is reaped and never gets to the escalation:

Reproduction, coreutils 9.4 (same version as ubuntu-24.04)
== A: direct child ignores TERM ==
$ timeout --kill-after=3s 1s ./child_ignores.sh
exit=137 elapsed=4s          # escalation fired

== B: direct child dies on TERM, grandchild ignores it ==
$ timeout --kill-after=3s 1s ./child_dies.sh
exit=124 elapsed=1s          # returned at the TERM, never waited out kill-after
  grandchild alive 5s after timeout returned

The group send does work — a grandchild that doesn't trap TERM dies with the group. It's the escalation specifically that never happens once uv is gone.

This doesn't weaken the change: 124 fails the step either way, the run concludes failure, and a surviving browser falls to the runner's orphan cleanup — the same Terminate orphan process lines the PR body quotes. --kill-after is still worth keeping for the uv case. Only the stated reason is wrong, and in a comment this load-bearing a later session will read it as a guarantee it isn't. Suggestion inline.

The 124 won't name the wedged test. The PR's payoff is that tend-ci-fix finally gets a run to diagnose, but with -n 8 the log ends at a bare [ 93%] and the timeout adds no test name — so the diagnosing session starts from the same place today's post-mortems do. Worth knowing before the first one fires; a per-test bound would name it, but that's a new dependency and a different PR, so I'd leave this PR as the bound it says it is.

Comment thread .github/workflows/ci.yaml Resolved
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Today's sweep re-measured this and the rate has gone up sharply: seven wedges in the last 24 hours, against the nine in five days the description tabulates. Five were pushes to main, and the other two are the two ci attempts on #33 — which is the part that changes what this PR is for. #33 fixes a red main, its assertion change is measured correct against current main, and its own test check has never reached a terminal state: attempt 1 wedged and was cancelled at 2h55m, attempt 2 has been on the 🧪 Test suite step since 02:50:06Z. So this is no longer only the fix that makes a wedge visible — it is the gate on the fix for a red default branch.

The signature has also tightened, and it is now sharp enough to be worth writing down: all four wedges with retrievable logs stall at exactly [ 96%], 8–10 minutes in, and print nothing for the remaining hours. The prior measurement was 92–93%, so the stall is now consistently inside the last ~40 items of the 1058-item run.

The seven, and where each stopped
run branch / commit last progress line outcome
32672180928 main ee0b04f [ 96%] at 23:08:07Z cancelled at 253 min
32673823845 main 3889756 [ 96%] at 23:39:24Z killed at the 360-min cap
32674220313 main d5fb790 [ 96%] at 23:47:17Z killed at the 360-min cap
32674522503 attempt 1 #33 bb06c43 [ 96%] at 00:05:57Z cancelled at 2h55m
32674522503 attempt 2 #33 bb06c43 log not yet retrievable still running, started 02:50:06Z
32694597954 main 4a0b1ce log not yet retrievable still running, started 05:45:21Z
32696069420 main 2bdb38c log not yet retrievable still running, started 06:08:46Z

A live job's log blob isn't served, so the three in flight are counted by duration alone — each is already past 2h on the 🧪 Test suite step against a 11.6-minute worst healthy run.

The orphan set at kill is uv, pytest and eight xdist workers in all three retrievable main logs, with a live chrome-headless-shell in two of them — so every worker is still resident and at least one is holding a browser, which is the same shape the description records.

Five commits on main carried no CI verdict this window as a result (ee0b04f, 3889756, d5fb790, 4a0b1ce, 2bdb38c), since a job-cap kill concludes cancelled and tend-ci-fix gates on failure. The generic half of that is filed upstream as max-sixty/tend#1035; this PR closes leaf's own exposure without waiting on it.

Not proposing a change to the diff — the bound and its sizing still look right, and 30 minutes is still 2.6× the worst healthy test job. Recording the new number here because it is the evidence that decides whether this waits.

@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Follow-up with something this thread has not had in five days of recording the wedge: what is running at [ 96%].

I ran the full suite on a CI-equivalent box (4 cores, same -n 8 --dist loadgroup) at 2bdb38c under -o faulthandler_timeout=420. It did not wedge — 11m40s, one failure, so this run is a healthy sample and not a reproduction. But it does answer what the plateau is: at [ 96%] exactly one test is still running, and it runs alone for the rest of the job.

tests/test_render.py::test_every_passage_in_a_real_page_can_be_quoted[gallery] started 365 log lines before it finished, outlasting 177 other tests, and tripped the 420-second dump while seven of the eight workers sat idle. Its stack at that moment:

Thread (most recent call first):
  File ".../playwright/sync_api/_context_manager.py", line 56 in greenlet_main
  File "/usr/lib/python3.12/asyncio/base_events.py", line 674 in run_until_complete

— i.e. blocked inside a single page.evaluate, which is what that test is: one in-page loop over every adjacent block pair in the page, on gallery.html, the largest specimen in the corpus.

That makes it the natural suspect rather than a proven cause. It is the only thing running in the window where every wedged log goes silent; it is already a multi-minute single browser round trip, so one lost response inside it produces exactly the observed shape — a job that prints nothing more and dies at the cap with all eight workers and a chrome-headless-shell still resident. Worth pointing a repro at before anything else in the tail.

One sizing note for this PR, not an objection to it: the 30-minute bound was sized against the 11.6-minute worst whole job, and this single test accounts for 7+ minutes of that on a 4-core runner. The headroom is real but thinner than the whole-job number suggests, so if the bound ever starts firing on healthy runs this is the test to look at first.

Also confirmed in the same run: `main` is red at `2bdb38c`

test_a_note_sets_the_page_axis_with_its_whole_strip fails at head with assert 7.5 <= 1, abs((600.5 - ((1600 - 384) / 2))) — the same stable-scroll-gutter delta as #33, in the assertion f3d7df1 added, which #33's diff does not touch. #36 is open for it. Noting it here only because it is the same run's output; that thread owns the fix.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The native step timeout is a better shape than the wrapper it replaces, and it retires the prior thread rather than patching it — no --kill-after semantics to describe, no process-tree reasoning in a comment, and the escalation gap that thread was about stops existing.

I re-checked the one claim the whole change rests on. tend-ci-fix.yaml's gate is github.event.workflow_run.conclusion == 'failure', and this repo's own wedges are the proof that a job-level bound doesn't reach it: the 360-minute cap is the default jobs.<id>.timeout-minutes, and every run it killed concluded cancelled and was skipped. A step timeout fails the step, which fails the job. So the placement on the step rather than the job is what makes this work — one indentation level apart from the bug it fixes, with nothing in CI that would catch the swap.

That reason lives in the PR body and not in the file. Suggestion inline to move it there.

Sizing looks right: 45 against the 16:48 slower run is ~2.7×, and since the linked figures are whole-run durations while the bound is on the step alone, the real headroom is a little wider than that.

Comment thread .github/workflows/ci.yaml Resolved
@max-sixty
max-sixty merged commit fc43841 into main Aug 24, 2026
7 checks passed
@max-sixty
max-sixty deleted the daily/review-runs-32626869496 branch August 24, 2026 23:34
max-sixty pushed a commit that referenced this pull request Aug 26, 2026
## Problem

[Run
32954830645](https://github.com/max-sixty/leaf/actions/runs/32954830645)
reached 99% of the suite, tripped the 180s faulthandler guard, killed
`gw1`, and then sat silent for twenty-five minutes until the step's
45-minute bound ended the job. The guard bought a stack dump that named
no test, and gave the rest of the budget back.

It cannot name one. Under the sync Playwright API a test blocked on the
browser has its own frames in a suspended greenlet, and faulthandler
dumps OS threads — so the trip printed the page server's thread,
execnet's reader, and Playwright's event loop, and nothing else. Exiting
the worker is then worse than doing nothing: xdist clones a replacement,
and under `--dist loadgroup` the clone never picks the run back up.

What it fired on was probably not a hang. The suite's slowest browser
sweeps run 60–105s on four cores at `-n 2` — the shape of machine CI
runs on, at the same wall time — so a three-minute clock sits 1.7× above
work every run does, and one noisy runner spends that margin.

## Solution

Remove `faulthandler_timeout` and `faulthandler_exit_on_timeout`. Both
things the guard was meant to buy are already held elsewhere, by
machinery that was not added for it:

- **Naming a stalled browser wait.** Playwright's own 30-second timeouts
fail it with the test's nodeid. That is the shape of the three other
recent `ci` failures on main — each one `FAILED
tests/test_render_projection.py::test_a_message_reference_travels_or_says_it_cant
- TimeoutError`, named, at ordinary cost.
- **Making a true wedge visible.** The workflow's 45-minute step bound
from #30 is what turns it into the `failure` `tend-ci-fix` answers, and
that is the fault #30 was actually about.

Net two lines fewer than main, and nothing added.

<details><summary>What the dump actually printed</summary>

```
Timeout (0:03:00)!
Thread 0x00007f9be7fff6c0 (most recent call first):
  File "/usr/lib/python3.12/socketserver.py", line 235 in serve_forever
  ...
Thread 0x00007f9c057ff6c0 (most recent call first):
  File ".../execnet/gateway_base.py", line 1160 in _thread_receiver
  ...
Thread 0x00007f9c0694f080 (most recent call first):
  File ".../playwright/sync_api/_context_manager.py", line 56 in greenlet_main
....[gw1] node down: Not properly terminated
##[error]The action '🧪 Test suite' has timed out after 45 minutes.
```

Three threads, no test frame among them: the page's dev server,
execnet's reader, and the driver greenlet the main thread was sitting
in.

</details>

## What this gives up

One class the guard could have named, had it ever fired there: a wait
with no timeout of its own outside the browser. The cold-cache launcher
runs in
[`test_interact_layer.py`](https://github.com/max-sixty/leaf/blob/333704122e81cadc15d6de357e0df2ac61cc5106/tests/test_interact_layer.py#L389)
shell out to `bin/leaf` and let `uv` resolve through the network with no
`timeout=`. Those have never hung, and the direct fix if they ever do is
a `timeout=` on the call — which names the test and raises in place,
rather than exiting a worker the run cannot continue without. Not doing
that here; no evidence asks for it yet.

The `pytest>=9.1` floor was raised in aef67af solely for
`faulthandler_exit_on_timeout` support. Left alone — `uv.lock` pins 9.x
either way, and lowering it would be a guess at a version the suite has
not been run on.

## Testing

`uv run pytest tests` — `574 passed, 6 skipped in 141.73s`. `pre-commit`
passes on the changed file. This PR's own `ci` run exercises the config
over the full `--run-nightly` suite.

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Sep 23, 2026
A proposal to replace Leaf's document/workspace dichotomy with independent layout axes: posture (flow or bounded), measure (column width), arrangement (sequence, grid, tabs), and height (natural or fill). Includes design using CSS grid sizing instead of JS measurement, pane grammar, and region reading unification. Planned in five slices starting with lf-grid in flow (#29) and CSS fitting for bounded pages (#30).
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]>
max-sixty added a commit that referenced this pull request Oct 20, 2026
Adds `notes/feeds/`, an open design for a feed of actions an agent has
already prepared (a drafted email, an update ready to send), which the
user approves, edits, dismisses or discusses. It follows [Nicolas
Bustamante's post](https://x.com/nicbstme/status/2109505834439033107).

The note maps each verb on a feed card onto an existing item, and names
what Leaf lacks: an agent that runs unprompted, and a list across pages.
It also records what Leaf already has, Claude Code's resume of a retired
background job on a press. `page.html` puts two decisions to the user
and has a live sample of a made-up morning feed. The first decision is
whether to try a "Today" page owned by one background session or On me
across every page; the second is whether agents' offers become items.
TODO #30 points at the note.

> _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
…3451)

On a phone, a tap on a margin entry no longer leaves its label up over
the margin. Press-and-hold (#3341) is the way to read a label there, and
the label goes when the finger lifts. With a mouse, and from the
keyboard on any device, labels show as before.

This is Max's decision #30 on the overnight report (option A, "Show
hover labels only with a real pointer").

A phone browser leaves the entry a finger last pressed both hovered and
focused until the next tap elsewhere. The label reveal answered to both:
`:hover`, and `[data-lf-focus]`, which marks any focus, a tap's
included. Gating only the hover part on `(hover: hover)` still left the
label up after a tap in Chromium under touch, because the tap had also
focused the entry. So on a device without real hover (`(hover: none)`),
focus reveals the label only where the keyboard placed it
(`:focus-visible`). Tab and the Left/Right route between a target's
entries both match it.

- `theme.css`: the hover reveal sits under `@media (hover: hover)`, and
under `(hover: none)` a focus that isn't `:focus-visible` hides the
label unless a press holds it. The held and focused reveals share one
rule.
- `margin-layout.js`: the label's placement reads the same rule, from
`hoveringPointer` in `pointer.js`, so it doesn't place or count a label
the theme hides.
- `test_a_finger_holding_a_margin_entry_reads_its_label_above_it` now
asserts that a tap leaves the label hidden and that the label hides when
the hold ends. Against the base runtime, the tap assertion fails.

Checked with `leaf-dev probe` on a page with a status entry and an
action entry, base against this branch:

| Arm | Base | This branch |
| --- | --- | --- |
| Touch, Chromium and Firefox: tap each entry | label shown | label
hidden |
| Touch, both: Tab, then Left/Right | shown | shown |
| Mouse, Chromium and Firefox: hover, click, pointer leaves, click
elsewhere, Tab | shown, shown, shown, hidden, shown | same |

> _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 20, 2026
… material (#6548)

How it works drew Leaf as one participant in its fork sequences, so the
round trips between Leaf's Python and Leaf's Claude Code hooks module
showed nowhere. This draws them apart:

- **Take sequence** (Forks tab, `#take-sequence`): the page server and
`leaf hook` (Leaf's Python) and the hooks module, line fork, working
fork and main thread (in Claude Code), each arrow labelled with what
crosses. Its caption says which half writes what.
- **Turn-end check** (Workflow tab, `#turn-end-sequence`): a sequence of
its own, drawn the same way.
- **`#forks-carrier`**, after the forks map: the module only carries out
Python's instructions (`carrier.py`), so a change to a fork changes only
the Python. `carrier.py` joins the sources.
- **Anatomy timeline**: the Leaf lane splits into Leaf's Python and the
hooks module, whose lane holds its fork calls and run-end reports at the
times the 19:38 run's Claude Code debug log recorded. The line and
working fork lanes now use the forks' own times from that log rather
than when Python noted them, which had put a run's end after the module
reported it; two prose figures follow (15.6 s, 1.5 s).

The forks map is unchanged.

**To check:** the take sequence is now about 1,020 px tall at the
column's width, against 520 before, and scrolls sideways in its box on a
phone. The module's times, like the timeline's other times since #6489,
come from the run's recording rather than checked-in data.

From open item `#30` on the fork-messages page, where Max picked
building it.

Tests: `tests/model/test_product_page.py`,
`dev/tests/model/test_product_page.py`, the product-preview test in
`dev/tests/model/test_interact_preview.py`; `leaf page check --render`
on the docs preview is clean apart from advice it already gave. Each
diagram was looked at as Firefox draws it, light and dark, at desktop
and phone widths.

> _This was written by Claude Code on behalf of max-sixty_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-runs Opened by the tend-review-runs sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants