Repository navigation
Say where work stands in one vocabulary, on every record and surface - #6710
Conversation
The served state named where work stands in a vocabulary per kind of thing: a delivery's stage, a failure's condition and its operation, a to-do's state, a plan step's state and owner, an obligation's status, a thread's attention and the page's activity kind. `waiting` meant the user's turn on the page and the agent's in a thread. Every obligation record, every to-do, every update's delivery, every plan step, each thread and the page now say it in the same fields (`standing.py`): `next_actor`, `state` (`waiting`, `running`, `blocked`, `done`), the `reason` a state leaves out, and how a done one ended (`outcome`). `activity.py` is the one producer of `running` and `blocked`, and the page reads the agent's side of all of it beside `presence`. A thread's `attention` is the id of the record or to-do that speaks for it. A row of an On list names its record, which says whether the agent has it in hand and how a done one ended, so a row carries no `live`, `state`, `ended` or `detail` of its own. The agent's to-dos keep their own served list here (`todos`), each in the same fields, with the start in force on it as `line` and how it ended as `end`. The follow-up makes a to-do an obligation record, so the lists, a thread's attention and a plan step read one inventory. A request the user resolved its thread over stays owed, and the agent's answer to it goes into the thread and leaves it closed (`events._answers_closed`). Max chose that on 21 November over an answer that reopened the thread. A logged user `resolve` now means something a Leaf at 53 reads differently, so the page protocol is 54, and the row record, whose activity fields change, takes `since=54`. Behavior the tests changed: the panel and a thread no longer say different things of the same work; an update the agent started whose turn ended with nothing watching asks for a nudge; a dialog open in the agent's own window reads Waiting in the terminal on the thread; a to-do whose start stopped or went quiet keeps the line it last said, under Stopped or Gone quiet; a request answered with a promise is no longer listed as answered in Done while its to-do is open; and the receipt word Up next is gone. `tests/work_scenarios.py` builds the scenarios these come from as real logs, and `test_work_scenarios.py` holds each reading to the schema.
…ery a resolve really leaves The Claude Code journey's `withdrawn` step posted a comment, resolved its thread and waited for a hook to hand the resolve over. On this branch the user's resolve leaves the comment owed and changes nothing the agent owes, so it has no attention and reaches no hook: the step failed with "no hook handed it over within 90 s". The update that owes nothing is now the user taking the comment back. With that the journey passes every step on the branch (setup through quit, 21 November). The eval case `resolved-request-stays-owed` had the same wrong picture: its envelope carried the resolve with its handling clause. It now carries what a session receives, the comment alone in a thread its context shows as resolved by the user. Scored with Claude Code, five samples a cell: the request is answered at its reference in 5 of 5 with the threads reference's paragraph on it and 5 of 5 without, and a bare thanks is ended without work in 5 of 5 both ways.
… it without asking A review of the closed-thread rule found that it kept a thread closed for the answer and reopened it for the result. A request answered with a promise gets its result in a reply that names no input (`--done` at the same reference, or a reply after `leaf task end`), and the rule was keyed on `responds`. The same key left the thread closed for an answer to a pick made after the resolve, and reopened it for the only command a refusal names after a failure receipt. The rule is now about the thread: one the user's own resolve holds closed reopens when they reopen it or when the agent asks them something there, in words or with a widget. `thread.post_reply` decides it, since only the writer knows whether a message's markup asks, and records it on the reply as `unannounced`, which `events._resumes` reads beside `ephemeral` and `failure`. The command tells the agent its message went in with nothing to announce it (`reply-kept-closed`). Max picked that the answer leaves the thread closed; that every other message which asks nothing does too is this change's call, put to him on the page. `unannounced` is a new field on a logged `reply`, covered by this branch's move of the page protocol to 54. Also from the review: - `provenance.saved_after` cut a message's wait wherever its thread stood closed, so a version saved for a request the user had resolved named nothing. A thread's `closures` now record when a closing answered for it (`_ClosureHistory.answering`), which the user's own resolve never does. - The refusal of a reply after the agent's resolve named the user's resolve where the user closed the thread afterwards; it reads `answered_by`. - Prose that said any message reopens a resolved thread (`docs/using.html`, `harness-codex.md`, `threads.md`, a comment in `thread/model.js`). Behavior changed in tests: a plain agent message in a thread the user resolved leaves it resolved and prints `reply-kept-closed`, one with `--obligation` reopens it, a promise and its result both stay in the closed thread, and `saved_after` names a message across the user's resolve and not across the agent's.
…on top of it A second review of the closed-thread rule found that the writer read only the latest closing. Where the agent's own resolve, or the user's pick on a widget that resolves the thread, stood on top of the user's resolve, the agent's next message reopened the thread and put back the request the agent's resolve had answered for. A thread now says whether the user's own resolve is among the closings in force since it last stood open (`closed_by_user`), which `_ClosureHistory.since_open` reads with `answering`. The `reply-kept-closed` advice is gone. It printed on every message in a thread the user resolved and told the agent to repeat the message in the chat, with no score for what agents then do, and the sentence saying the same in the threads reference goes with it. The browser's `reply` may not carry `unannounced`, as it may not carry `ephemeral`. Behavior changed in tests: after the user's resolve and then the agent's, a plain agent message still goes in `unannounced`.
`test_the_undo_rows_age_follows_the_clock_while_the_page_stays_open` moves only the browser's clock five minutes on and expects Undo's row to read "5m ago" from the one tick that jump fires, with no new reading. Its gesture is the user's resolve of a thread the agent had not answered. Now that the request stays owed through that resolve, the page's activity carries a next transition, so the tick asks the server for a reading instead of repainting ages, and the paused clock fires no second tick. The full product suite's manual dispatch found it (run 44976806053, Linux and macOS). The behavior the test protects is unchanged: a page left open keeps the age true from its own clock. The fixture now has the agent answer the thread first, so the resolve leaves nothing owed.
# Conflicts: # skills/leaf/references/module-annotations.md
… the old words A comment in `test_agent_replies.py` still said a thread's `attention` reads `needs_user`, and `framework-application.test.mjs` made its newer activity differ by setting `kind`, a field the served activity no longer has.
…esolved
A reply in a thread the user resolved went in unannounced unless it asked them
something, so `thread.post_reply` chose for the agent: news that asks nothing,
such as a request it could not carry out, reached the user only when dressed as
a question. `leaf thread reply --reopen` is now the agent's choice that a reply
brings the thread back. Without it the reply still goes in unannounced, and a
question still reopens the thread by itself. `threads.md` and the resolve's
handling clause give the goal: the user closed the thread, so it returns only
for what they would want to stop and read.
Max asked for this on 23 November ("presumably the agent should decide when to
bring it back, based on our principles of rely on agent judgement?"), in place
of the two code rules put to him: every message quiet, or every message beyond
the request reopening.
The eval `resolved-request-stays-owed` gains the `no-badge` variant, a request
that can't be carried out as asked, and holds the expected answer to going in
without `--reopen`.
leaf-agent
left a comment
There was a problem hiding this comment.
An unannounced reply still reaches the page's status line as news. unreadContent in semantic-news.js collects every unread agent message without asking whether its thread stands resolved, and read_state marks the reply unread. When the agent answers a request in a thread the user resolved, without --reopen, newsMoment reads "reply" and the status line shows the message's words. That contradicts isNews in thread/model.js, which says a resolved thread's unread words aren't news, and _goes_in_unannounced, which says what goes into such a thread brings nothing back. Before this PR the two readings couldn't disagree, because every spoken agent reply reopened its thread. Filtering unreadContent through isNews would give one owner for what counts as news.
module-annotations.md still tells package authors that presentContributionReceipts takes {id, subject, stage, detail}. progressFace now reads state and seen, so a package that passes stage: "working" gets no face. The feature gallery in this PR was updated to the new shape; the reference wasn't.
…ayed closed Which of its messages bring back a thread the user resolved is the agent's call. It made that call with `--reopen` on the reply, so it had to choose before it knew the thread was closed: the user's resolve reaches the agent only where it retires a question the agent asked, and the user usually resolves a few seconds after sending. An agent that could not do what was asked left that news in the closed thread unless `threads.md` was fresh in its context and the delivery happened to show the thread already resolved. A provider's final message could not carry the flag at all, and after a quiet answer the only way back was a second message. `leaf thread reopen <page> <message>` now writes the agent's `unresolve`, the event the user's Reopen writes, before or after the message. A reply by command that goes into a thread the user resolved says so beside its record (`stays-closed`) and names that command, so the agent decides with the fact in front of it. The `--reopen` flag on `leaf thread reply` is gone. A question still reopens the thread by itself, and the default is unchanged: the reply stays in the closed thread. A Codex turn's final message is the reply and prints its agent nothing, so Leaf says nothing beside it, and the turn's handling has the agent post news the user would want to stop for by command, whose record does say. `harness-codex.md` says the same. The `unresolve` record gains the `agent` and `session` an agent's event carries, within the protocol number this branch already moved to; the protocol baseline is rebuilt from `main`'s. An independent review of 700a802 found the gap: its probes showed the resolve admitted without attention in three orderings and the reply printing only `"unannounced": true`. Its review of this change found the Codex final, which printed the note to the provider's stderr. It also found that the agent's reopen puts back a turn of the user's that a closing had ended unanswered, such as a thanks the agent's own resolve ended. Any reopening does that on `main` (`events.owed_turns`), an agent's ordinary message into a thread it resolved included, and it costs the agent a one-line answer, so this change leaves the rule and says so in `cmd_reopen`. The eval `resolved-request-stays-owed` gains two variants in which the resolve lands after the delivery and the session first hears of it from its reply's record, and two for a Codex turn. Claude Code, five samples a variant: a request it could not carry out comes back 5 of 5 where the delivery shows the thread resolved and 5 of 5 where only the reply's record does; an answer that delivers what was asked stays closed 5 of 5 in each; a bare thanks ends without work 5 of 5. The first run failed the delivered answer 2 of 5 for naming the command for a case that had not happened, so its rubric now passes that, and five fresh samples passed. Codex, five samples a variant: with the rule only in `harness-codex.md`, 0 of 5 turns posted the request they could not carry out by command; with it in the turn's handling 5 of 5 did, each reading the record before reopening, 5 of 5 turns that did what was asked left the answer to the final message, and `app-server-edit-before-final` kept both its metrics 5 of 5.
A review of 789085c found nothing broken and five places where the text lagged the rule that a turn posts news the user would want to stop for by command: - `threads.md` listed when a turn's answer goes by `leaf thread reply` without that case, though the turn's handling and `harness-codex.md` both name it. - `harness-codex.md` said "You see no record of a final message", which reads as no trace that it posted. It now says the final message prints nothing back. - The `_goes_in_unannounced` docstring credited `harness-codex.md` for the rule. The eval showed that file alone moves no Codex turn (0 of 5), so the docstring names the handling clause that does. - "their lists" became "their list" in the three places the earlier pass missed. The review also noted that the `turn-news-goes-by-command` rubric passes a reopen made without reading the reply's record. No sample did that, and its cost on an open thread is a history row, so the rubric stays.
`tests/process/website_server` snapshots the handling a hosted agent is handed with a turn's answer. 789085c added the closed-thread clause to that handling and reset the two model-tier snapshots, but not this one, which only the pull request's `test` job runs.
…ts what only they reached `tests/work_scenarios.py` built the research note's fifteen scenarios and a liveness case as real logs, 62 checkpoints, to compare the words every surface says on `main` and on this branch. In the tree its one test asserted that each checkpoint's served state holds the schema: 743 lines with the builders. `tests/AGENTS.md` says an investigation's sampling grid is not a regression requirement, so this measures what the grid alone protected and keeps that. - Coverage: the rest of `tests/model` runs every line of `src/leaf` the scenarios run (6,278) but two, both in `activity.py`: the pass that leaves an input waiting while a start stands on another input of the same record, and the dialog in the agent's own window blocking the work its turn started. No test asserted either result. - Schema: it was the only model test that held a served reading to the schema in `blocked` with the reason `quiet`, `stopped`, `terminal` or `undelivered`. `test_activity.py` now asserts both results, and each assertion fails with its branch disabled. Every activity reading there is taken beside the whole served state at that moment, held to its schema (`_served_at`), which covers those four standings and every other one those tests reach. The builders and their test are gone. Their last version is in this commit's parent, for whoever wants the comparison again.
… the status line Three findings from the review of #6710. The page's activity counted an update no turn had taken in twice: among the answers waiting or blocked, and again as `unseen`. The All pages row said both, so one undelivered update read "1 response owed on updates awaiting delivery" beside "1 response owed", or past the pickup grace "owed on updates that stopped", which an undelivered update hasn't done. `canonical_activity` now counts each owed answer once: as `unseen` where no turn has taken its update in and nothing is at work on it, else by where its update stands. The counts `main` serves are disjoint too. The status line announced the agent's words in a thread the user had resolved, which the reply's own record and `isNews` both say go unannounced: `unreadContent` read every unread version, whatever its thread. `announces` in thread/model.js now owns that only an open thread announces its words, and `isNews` and the status line's news both read it. A version waiting unread in a resolved thread is no longer recorded as seen, so it is news when the agent's `leaf thread reopen` brings the thread back. This also holds for a thread the agent resolved over its own unread words: the status line stays quiet about them, as the panel's dot already did. `module-annotations.md` still gave a receipt's shape as `{id, subject, stage, detail}`. `progressFace` reads `state` and `seen`, so a package following the reference drew no progress face.
`test_stop_guard.py` and `test_todos.py` held an update no turn had taken in as `waiting: 1` beside `unseen: 1`, the overlap the last commit removed. Each now holds it counted once, as `unseen`.
… the status line Three findings from the review of #6710. The page's activity counted an update no turn had taken in twice: among the answers waiting or blocked, and again as `unseen`. The All pages row said both, so one undelivered update read "1 response owed on updates awaiting delivery" beside "1 response owed", or past the pickup grace "owed on updates that stopped", which an undelivered update hasn't done. `canonical_activity` now counts each owed answer once: as `unseen` where no turn has taken its update in and nothing is at work on it, else by where its update stands. The counts `main` serves are disjoint too. The status line announced the agent's words in a thread the user had resolved, which the reply's own record and `isNews` both say go unannounced: `unreadContent` read every unread version, whatever its thread. `announces` in thread/model.js now owns that only an open thread announces its words, and `isNews` and the status line's news both read it. A version waiting unread in a resolved thread is no longer recorded as seen, so it is news when the agent's `leaf thread reopen` brings the thread back. This also holds for a thread the agent resolved over its own unread words: the status line stays quiet about them, as the panel's dot already did. `module-annotations.md` still gave a receipt's shape as `{id, subject, stage, detail}`. `progressFace` reads `state` and `seen`, so a package following the reference drew no progress face.
…ad's card `test_an_exact_workflow_reports_stale_work_beside_a_live_page_claim` ends by pressing the comment's margin marker and reading the card that opens beside the passage. Since #6796, `open_panel_thread` chooses the panel for threads about a passage, so the press opened the thread in the panel and the card never came: the test fails every time on main too, where #6796's own checks never ran it. It now chooses cards again after closing the panel, as #6796 did in `test_widget_actions.py`. No behavior changes.
A pointer the user moves onto a target reads it after a 200 ms dwell. A `pointerover` the browser sends while the pointer rests cancelled that dwell whatever stood under the pointer afterwards, and nothing armed it again. So where only the node under the pointer changed, inside the target the pointer had just come to, the preview never showed until the pointer left and came back. The dwell now ends only when another target arrives under the resting pointer, or the pointer carries a press. What arrives under a pointer the user hasn't moved still shows nothing. A margin entry meets this in CI. On Linux an entry's centre lies on the edge of its icon's stroke, and the innermost node there flips between the icon's `svg` and its `path` whenever the entry repaints. `test_the_feature_gallery_exercises _its_core_journeys` hovers the Inspect projection entry and failed there in 5 of 13 Linux runs of this branch on 23 November, and in none of 15 runs of main and of #6762. A traced copy of the step in CI's test job showed why: in both failing copies the pointer's arrival on the `svg` armed the dwell and a resting `pointerover` on the `path`, 6 and 9 ms later, cleared it. Where the first node was the `path`, the same flips came after the preview showed. The trace did not show why the `svg` is the first node more often on this branch than on main: the DOM under the entry is the same in both and does not change. `test_a_target_redrawn_under_the_pointer_that_came_to_it_still_previews` holds the behaviour in Chromium and Firefox, and fails in both without the change.
leaf-agent
left a comment
There was a problem hiding this comment.
The hover over a page in All pages now says "owed on updates that stopped" for every blocked answer. In canonical_activity the blocked count also takes terminal and quiet updates. Suppose a turn starts an update and then waits on an approval dialog. The row reads "Approval needed in the terminal" and the hover adds "1 response owed on updates that stopped". An update whose start went quiet gets the same hover, while its thread says Gone quiet. Before this PR a terminal-held update counted as being worked on. Either split the blocked count by reason or give COUNT_PHRASES.blocked a phrase that is true of all three reasons.
…ocked answers truly Two findings from the review of the merge with main on 23 November. A line fork's progress line could hide a stopped update. One reply answers every input a record holds, so a start standing on one of them covers the rest (`_stand_workflows`). The set of covered records took every `running` item, including one that reads `running` only because a progress message came after it (`on_it`). So where a turn took in a message and ended without answering, and a line then stood after a newer message of that thread, the older message read `waiting` again and its thread stopped saying Stopped. Only an item a start holds covers its record now, as the docstring says and as `forks.py` promises of the line. The hover over a page in All pages said "owed on updates that stopped" for every `blocked` answer. `blocked` also holds an update gone quiet and one whose turn waits on a dialog in the agent's window (`terminal`). The second counted as being worked on before this branch, and here the hover contradicted "Approval needed in the terminal" beside it. The phrase is now "held up", which is true of each reason; the row and the thread still say which.
|
On the hover's phrase for
|
…end check to the Claude Code contract, and name when to read the user's window (#6906) Five rules that `conversation-loop.md` or `threads.md` repeated from another reference now point at the rule's home, the paragraph on Claude Code's turn-end check moves out of "The On lists", which every harness reads, into `harness-claude-code.md`, and `SKILL.md` names when to open `conversation-loop.md` for the window the user reads the page in. A Codex or Pi session reads 241 fewer words; a Claude Code session reads 6 more. What the diff doesn't show: - **Two of the copies were wrong.** `conversation-loop.md` sent every harness to "your harness's Replies" for the `writer: "turn"` route, a section only `harness-codex.md` has. Its list of when `leaf page close` refuses left out an unread worker's report and a page error, which `page-checkpoints.md` and the command's help both name. - **One home gains a condition.** "The On lists" now says to resolve a question's thread if nothing else in it waits on the user. Only the copy in `threads.md` said so. - **The `SKILL.md` line repairs a failure that main has.** Asked what width the user reads at, an agent opened `page-checkpoints.md`, found the render check's desktop size, and said Leaf records no window. `user-view-context` passed 3 of 8 on main and 3 of 8 on this branch before the line, and in both arms the three passes were the three runs that opened `conversation-loop.md`. With the line, 8 of 8 opened it and passed. - **The moves score level with main**, Claude Code, 3 runs a case: 13 other cases covering the edited passages pass 34 of 39 on main and 33 of 39 here. The one-run difference is in `thread-choice-takes-a-press`, on a rubric about prose that repeats the options, which fails most runs in both arms and which no run opened an edited file for. Only four of the cases had runs that opened an edited reference, and all of those runs passed in both arms, so the scores rule out a large regression and not a small one. - **Three copies the survey called movable stay as they are**, since each tells its reader something at the point of use: `threads.md`'s "A promise declared `--done` reads as finished work", beside the three flags a replier picks among; `event-batches.md`'s `leaf page open` line, which is the step itself after every batch; and the paragraph of "The On lists" on a reply that leaves a question standing, which holds the `settled` field and an example its home lacks and already ends in a pointer. - **It merges cleanly with #6710 and #5979**, the two open drafts that edit the same files (`git merge-tree` against each head as of 23 November). max-sixty chose these moves from the session's Leaf page, which carries this account; the `SKILL.md` line is this session's addition. An independent reader checked every pointer against its home and found no fact lost. Tests: `tests/model/test_interact_layer.py` and `tests/model/test_clerk.py`, the tests that read the skill's files. > _This was written by Claude Code on behalf of max-sixty_
|
Confirmed. "held up" is accurate for every reason |
A to-do becomes an obligation record whose source is the agent's own promise (`source.kind` `todo`), so the On lists, a thread's attention and a plan step read one inventory, and the served `todos` list goes. This is the second of two pull requests, split at Max's request: #6710, which landed first, put every record, to-do and surface in one vocabulary for where work stands, and this one removes the last separate list. No word on any surface changes: scenarios S1–S15, built as real logs, read the same at all 62 checkpoints before and after this change. Their builders have left the tree since and are at d986f9c. The page protocol stays at 54, since no logged event or stored record changes. What does change: - `leaf page state` has no `todos` key; a to-do is in `obligations`, its title as `prompt.text` and the start in force on it as `line`. `conversation-loop.md`, "The On lists", teaches that reading. The eval suite scored this wording: `on-lists-read-todo-records`, which reads the lists from that output, passes 3 of 3, within 55 of 66 across the 22 cases around the changed passages against 54 of 66 on `main`'s instructions. - The public package API's `readObligations().all` includes the agent's to-dos. - `src/leaf/served_state/state.schema.json` loses `Todo`, `TodoRow` and `DoneRow`, and the browser's publisher (`framework/application.js`) joins every list row to an obligation record, a to-do's included. 51 files, +436 −620; outside tests and evals +347 −499 in 37 files. Max asked for this as one of the long-stuck design questions. No person has read it. `tests/model`, `dev/tests/model`, `tests/smoke`, the runtime's Node tests and `pnpm run check` pass here, and ten later-tier tests that exercise to-dos in the browser passed by name on #6710's tree. > _This was written by Claude Code on behalf of max-sixty_
Main's work-state vocabulary (#6710) and to-dos as obligation records (#5979) meet this branch's plan. A heading now reads the standing of the records its steps name as any place holding several does (standing.leading), and once none is open, done or failed; a to-do step's detail is its record's end. Main took the protocol to 54, so this branch's change to the plan event takes 55.
The served state named where work stands in thirteen enumerations: a delivery stage, a failure condition and its operation, a to-do's state, a plan step's, an obligation's status, a thread's attention, the page's activity kind and seven counts.
waitingmeant the user's turn on the page and the agent's in a thread. Every obligation record, every update's delivery, every to-do, every plan step, each thread and the page now say it in the same fields:next_actor,state(waiting,running,blocked,done), thereasona state leaves out, and how a done one ended (outcome). This answers the entry "Make tasks and work in progress clear" innotes/TODO.md.This is the first of two pull requests, split at Max's request. Here a to-do keeps its own served list and takes the new fields; #5979, on top of this one, makes a to-do an obligation record and deletes that list.
Where to look
src/leaf/standing.pyis the contract: the vocabulary, which record speaks for a place, and what a job that outlives a turn is (whatever holds an item's start other than the turn that wrote it).src/leaf/activity.pyis the one producer ofrunningandblocked, for each delivery, each update's record, each to-do and the page. The page reads the agent's side of all of it besidepresence(here, away, gone, closed).src/leaf/served_state/state.schema.jsonlosesStage,Attention, a workflow'sconditionandat_work,Obligation.status,Activity.kindand a plan step'sowner, and gainsWorkState,WorkReasonandOutcome.thread/workflow.jswords every standing andactivity-words.jsthe page's.A thread the user resolves
Two rules, both from a week of Max's own use: on the 13 pages he used that week, 63 threads were resolved over a message the agent had not answered, 50 of them within four seconds of sending. By my reading 39 ask for work or an answer and 24 close the exchange.
events.owed_turns). The user's resolve takes a thread off their list and settles nothing the agent owes in it: the message keeps its record and its place on the agent's list and holds the Stop hook. The agent's own resolve still answers for a thread. This stands beside End a question the user answered elsewhere by resolving its thread, and drop the agent's question end #6106, under which either side's resolve ends the questions the agent asked there.thread.post_reply, a reply'sunannounced). What the agent says in a thread the user resolved goes into it without reopening it, the status line announces none of it (announcesinthread/model.js, whichisNewsreads too), and the reply's record says so (stays-closed), since the user's resolve reaches the agent only where it retires a question the agent asked.leaf thread reopenis the agent's choice to bring the thread back, with theunresolveevent the user's Reopen writes.threads.mdgives the goal and no rule: the user closed the thread, so it returns only for news they would want to stop and read, such as that the agent could not do what they asked. A question to the user there reopens it by itself. A Codex turn's final message prints its agent nothing, so the turn's handling has it post such news by command. Max picked both halves: the answer leaves the thread closed, and bringing it back is the agent's call (rootAGENTS.md, "Leaf's role").What follows: when this lands, each session still holding a page is asked to answer the old messages its user resolved this way, among them
/gpkand/dispatchcommands. A logged userresolvetakes a new meaning, areplygains a field and anunresolvemay be the agent's, so the page protocol moves from 53 to 54; the plan-outline work in #6707 also takes 54, so whichever lands second moves to 55.What users see differently
The research note's scenarios S1–S15, built as real logs with 62 checkpoints, ran on
mainand here; their builders have left the tree since and are at d986f9c. The words on every surface are identical at 40. At 11 the live words change: the 5 where the panel and the thread contradict each other about the same work, an update the agent started whose turn then ended with nothing watching (the panel now asks for a nudge), a dialog open in the agent's own window (the thread says Waiting in the terminal), and the 4 where the user resolved a thread before the agent answered. At 11 only the Done list changes: at 10 a request answered with a promise no longer reads Answered while its to-do is open, and at 1 the request the user resolved is listed as Answered once the agent answers it in the closed thread. A to-do whose start stopped or went quiet keeps the line it last said under Stopped or Gone quiet, and the receipt word Up next is gone.A preview fix that rides along
A pointer moved onto a control whose face redraws within the preview's 200 ms dwell got no preview until it left and came back: the
pointeroverthe browser sends for the new node under the resting pointer cancelled the dwell, whatever had arrived (preview.js). The dwell now ends only when another target arrives under the pointer, or the pointer carries a press. This pull request'stestjob met it in the feature gallery's journey, which the change edits. On Linux a margin entry's centre lies on the edge of its icon's stroke, and the innermost node there flips between the icon'ssvgand itspathas the entry repaints. The journey failed in 5 of 13 Linux runs of this branch and in none of 15 ofmainand #6762. Six traced copies of the step in the Linux job, on this branch and onmain, showed the dwell armed on thesvgand cleared 6 and 9 ms later in the two that failed; they did not show why thesvgcomes first more often on this branch. With the fix all six show the preview, four of them through a redraw that cancelled it before.test_a_target_redrawn_under_the_pointer_that_came_to_it_still_previewsholds the fix in Chromium and Firefox and fails in both without it.What it costs
state,reason,outcomeandansweredin place ofstatus, and a thread'sattentionis a record or a to-do.lf-deck,lf-tabsand the feature gallery are updated.leaf page statesays where it stands in the new fields, andconversation-loop.mdteaches that reading.activity.pyandactivity-words.js, which decide and word the liveness cases above.canonical_activitygoes from 278 lines and 61 decision points to 298 and 82. Tests are +2,189 −1,212, and the new eval case is 709 lines. What shrinks is the contract: across the stack the schema's enumerations for where work stands go from 12, with 43 values, to 6 with 22.Checks
main's instructions, three samples a case on the 22 cases whose tags cover the changed passages: 55 of 66 pass on the stack's text and 54 of 66 onmain's, and no case differs by more than one sample.resolved-request-stays-owed, new here, passes 10 of 10. After Max's call that the agent decides when a resolved thread comes back, that case ran again, five samples a variant: given a request it cannot carry out, 5 of 5 agents reopen the thread, both where the delivery shows it resolved and where only the reply's record does, against 0 of 5 under the rule before, where only a question reopened it; an answer that delivers what was asked leaves it closed 5 of 5 in each. On Codex, 5 of 5 turns post such a request by command, against 0 of 5 with the rule only inharness-codex.md, and 5 of 5 leave an ordinary answer to the final message. The suite read the stack's final wording; the wording of the to-do reading that only this pull request carries has no score of its own.hooks/claude-code.tscalls for, passes every step. Itswithdrawnstep changed: a resolve that changes nothing the agent owes reaches no hook here, so the step takes the comment back.tests/model,dev/tests/model,tests/smoke, the runtime's Node tests andpnpm run checkpass here. A manual dispatch of every product test, on Linux and macOS, ran on the unsplit branch as it stood before the closed-thread rule was widened. 25 tests failed, 2 because of this change, and both are fixed: one passes under the rule as it now stands, and the other, the Undo row's age, assumed the user's resolve leaves nothing owed, so its fixture now has the agent answer first. The other 23 fail without this change: inmain's nightly run or another branch's full run on 21 November (9), onmainuntil Keep a seated card's reply box at the margin card's width, and test the seated card #6682 drew #6713 and test: expect no press at a touchscreen's panel field end, as #6687 chose #6717 (5), onmaintoday, run there by name (7), or on macOS only (2). A second dispatch, of this branch besidemain's own, failed no test on Linux thatmain's run passed. On macOS it failed six thatmain's run passed, and none of the six fails in six runs by name on this tree on a Mac;main's macOS job failed four that this branch's passed.test_an_exact_workflow_reports_stale_work_beside_a_live_page_claim, a journey test this change edits, has failed onmainsince Let the user choose whether threads open beside their passages or in the panel #6796, whose checks never ran it: its helper now opens threads in the panel, and the test goes on to read a card. Here it chooses cards again first.Max asked for this as one of the long-stuck design questions. No person has read it. Codex reviewed the model and the first resolve rule, the review bot the unsplit pull request and this one, and fresh agents the 21 November merge with
main, the closed-thread rule and the agent's reopen; their findings are fixed.