Skip to content

Replace the Asks drawer with an experimental Queue panel - #1789

Merged
max-sixty merged 53 commits into
mainfrom
queue-panel
Oct 5, 2026
Merged

max-sixty merged 53 commits into
mainfrom
queue-panel

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

The Asks drawer is gone, and a Queue panel takes its place. It lists everything waiting on either side: what's on you, what's on the agent, and what's done. The panel is experimental and expected to change a lot. Its code headers, skills/leaf/assets/AGENTS.md, packages.md and the glossary say so.

The panel

  • On you · N: open Asks, threads with a question for you, and sends to retry.
  • On · N: owed replies, claimed work (shown as "Working") and open tasks.
  • Done · N: folded at the foot. Answered Asks ("Answered · § section") and ended tasks ("Done 5h · § section").

Each row shows the item's kind and its title or opening words. Ask rows use the widget's own word, such as "Deletion" or "Rewrite", falling back to "Ask". Each row also says where the item is: its section, plus age, stage or outcome. Enter or a click on a row arrives exactly as a does, through queue-walk.js's arriveAtItem, which also reaches answered Asks.

One reading

  • The two queues come from the same queues selection the a walk and the banner counts read (runtime/queues.js). There is no third rule.
  • Done comes from selectDone, beside them. It reads the existing Ask reading and a new served ended_tasks, which the server selects from canonical_tasks. Agent-facing page state is unchanged.
  • queue-list.js owns its rows and exports the lookups other code needs: rowAt, standsAt, walkStops and shownItems. The Ask view mirrors its ring onto a row through rowAt, and the review-route check asks the standing side (sideOf) rather than a class name.
    • One consequence is wider: chrome whose declared side is exactly an answered Ask now counts as standing on it, not only a Queue row. Focus on a Threads card for a thread anchored on that Ask now shows the Ask's ring and its revise shortcuts.

Routes

  • Keyboard:
    • g then Shift+Q toggles the panel and lands on the first row.
    • ↑/↓/Home/End walk the rows, and the Done fold's heading is a stop. The "Item n of m" position counts only items.
    • Enter arrives at the item, and Esc closes the panel.
  • Banner: the "N on you · M on " counts are a button that toggles the panel. They keep main's arrangement and reserved box. On two rows, counts the banner doesn't draw are inert, so they aren't a hidden Tab stop.
  • Touch: a Queue entry in the banner's More menu.

Removed

  • The Asks drawer and asks/drawer-list.js.
  • The "Asks n/m" banner control.
  • g Shift+A and the asks surface key, now queue.

The "Accept all (N)" buttons stay in the Ask view. docs/how-it-works.html, docs/registry.html, module-authoring.md, page-authoring.md, the feature gallery and the corpus now name the Queue.

Tests

  • New: test_the_queue_panel_lists_both_queues_and_what_is_done, and a selectDone runtime test on a served "done" reading.
  • expect_asks_answered now waits for the page's first state. It had been passing on the "0/0" an empty reading gives. Three tests that only passed through that race now expect main's interim "decided" count from Show each queue row's answer once its Asks are answered #1729:
    • test_review_queue_decisions_replay_and_reach_the_next_revision_from_the_keyboard: 2/2.
    • test_comparison_choice_replays_and_is_applied_by_the_next_revision: 1/1.
    • test_command_hub_an_absorbed_input_stays_fulfilled: 1/5.
  • test_the_poll_leaves_the_banner_where_it_was: its displaced helper now accepts a box growing into free room on either side, provided one edge holds. The counts grow leftward when a count reaches 10. Every other control must still stay put.

Local: npm run test:runtime (211), npm run test:browser (76), npm run check:browser, the panel, queue, banner and status tests plus the shift watch (390), and uv run pytest tests --nightly-changed-since main. Three failures there aren't this branch's:

  • test_local_worker_wrapper_announces_independent_bound_ports needs worker/ npm packages installed.
  • test_the_ring_holds_on_a_seat_the_agent_has_still_to_answer and test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus also fail on main.

Also

  • test_the_ring_holds_on_a_seat_the_agent_has_still_to_answer failed on main since Preserve reply editing and attach comment surfaces through scrolling #1705, which made c continue an existing thread anchored inside the held Ask. That is the behaviour the test was originally written for, so the test now expects "comment on the thread" and presses c to check it lands in the user's own thread.

🤖 Generated with Claude Code

max-sixty and others added 30 commits September 29, 2026 13:38
Adds notes/what-needs-you: a Leaf page proposing six directions for
tracking what the user owes the agent and what the agent owes the user
(total turn, one queue, loops, a ledger in the page, page rounds, and
review passes), with a recommendation for loops, and research.md holding
the evidence behind it: prior art across review tools, agent harnesses
and the theory of commitments, a hand classification of 169 real Leaf
threads, and each mechanism's falsifier measured on the logs.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…and what loops keep

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Each flow (a background subagent, a dispatch to another session, a mixed
message resolved at once) lists its events and a sequence diagram, then a
tab per model showing what each step leaves on the user's list and the
agent's. Tracing the dispatch showed C's hand-off closed the request and
unblocked its Ask before the result existed, so handing now moves the
request to the receiving session.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The per-model tabs hid the comparison: each flow is now one table at the
available width, a row per event and a column per model, with cells that
lose work or depend on the agent tinted. Below 900px the rows stack, each
cell labelled with its model.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
C's cells said "answer: pulse", after its drawer heading, which read as
something other than the pulse Ask the other columns list.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A wide table names each model's record, where it lives, what counts as on
the user and on the agent, and the verbs each item offers; four JSON tiles
show the query's answer at flow 2, step 6. Today's answer spans asks,
workflows and the browser-only thread attention.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Directions, Flows, What changes and Evidence, with each flow's sequence
diagram folded above its table.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…uestion

Adds a Plan tab proposing Pi Durable's task as the one record behind both
queues (yours and the agent's), shipped in four steps, and rebuilds the
Compare tab around timelines answering: is running work on the agent, what
one item spans across a back-and-forth, and how many items one message makes.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Adds `leaf task open PAGE THREAD TITLE` and `leaf task end PAGE TASK
done|failed|dropped [DETAIL]`, written as new `task` and `task_end` log
kinds (tasks.py owns the fold, the door's gate and the writers). A task
stands on an open thread until its outcome is written: a reply, a
resolution, a version or the end of the session leave it open, which is
what holds work that outlasts the turn that took it on.

Behavior that moved:
- A thread an open task holds reads `waiting` with reason `task` when no
  workflow holds it; its card reads "Task open", and the margin and Page
  Map carry that label.
- The banner's explanation names every open task, so one on a thread the
  user resolved stays visible.
- `leaf page state` carries each thread's `attention`, the open `tasks`
  (also per thread in `page state PAGE THREAD`), and `queues`:
  `on_you` (open Asks, prose questions, failed responses) and `on_agent`
  (owed answers, claimed work, open tasks), selected from readings the
  served state already makes.
- A waiting card whose attention names no workflow no longer folds its
  status (thread-card.js matched undefined ids).
- conversation-loop.md tells the agent to open a task for work that
  outlasts the turn and end it when the result lands; the new eval case
  task-outlasts-the-turn scored base 0/2, change 2/2 on Claude Code.

Tests that asserted the exact `page state` thread shape now include
`attention`.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The page now covers only the task model: what is built, the task record
and its states, the two queues, the cases a task keeps, the evidence
behind it, and an Ask for the next step. The six directions, the B/C/D
comparisons and the prior-art survey are gone from the page;
research.md keeps the research.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The user wants "item" left arbitrary for now, so the page no longer
lists the kinds as a fixed table; it names today's sources and says the
set isn't a contract.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Answers the user's page comments: a table of the five records that hold
someone to something (Ask, prose question, owed reply, claim, task), how
each is registered and what it looks like, how they meet today, and how
Pi Durable separates message delivery from work.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The user set the model in a page thread: an Ask parallel to a task, a
queue each, either side adding to the other's, and a paging through the
user's queue. The plan now runs from that, and the superseded step Ask
is kept settled under finished work.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The banner's explanation switched to a bare count once a third task
opened, so a task on a thread the user had resolved lost the one place
that named it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	notes/what-needs-you/page.html
`a` and Shift+a now page through everything on the user, in page order:
each open Ask, each other thread whose attention is the user's (a question
left in prose, a failed reply to send again), and each page move handed
back to them. A thread holding an open Ask is reached once, as that Ask.
`t` still walks every open thread. The banner's status sentence ends with
"N on you · M on <agent>", and its disclosure names the kinds.

What is on the user has one rule, now stated on both sides of the wire:
`agent_state.queues` selects it from the served Asks, thread attention,
workflows and tasks, and `runtime/queues.js` selects the same items from the
publisher's reading of those four, which already folds this tab's sends into
attention. The publisher carries the result as `effective.queues`.
`served_records.py` folds a reading both selections must agree on, and a
runtime test holds them to it. The Python rule changed to list a thread once:
a thread with a failed reply is one `recovery` item named by the thread, and
a page widget's failed move stays a `recovery` item of its own.

Arrival stays with each item's owner. `queue-walk.js` replaces the Ask walk
(`ask.walk` becomes `queue.walk`): an Ask arrives through the Ask view's
`arriveAtAsk`, the drawer's arrival, and a thread through the arrival the t
walk makes (`navigation.js`, `arriveAtThread`), so a change to where a walked
thread lands applies to both walks. The walk announces "Ask 2 of 3 waiting
on you" or "Thread 1 of 3 waiting on you".

The render gate's Ask screens walk past the threads `a` now stops at.

Behaviour the tests moved:
- The Ask walk's position reads "waiting on you" where it read "open", and
  the command reference names the walk "Ask or thread waiting on you".
- Two narrowing tests press Shift+a: the thread the list shows waits on the
  user too, so the hidden Ask now stands before the user's place.
- Status sentence and disclosure assertions include the queue counts.
- The status-press test grows its sentence to "running tests", since the
  counts now share the row at 390px.
- Two widget tests wait for the arrival's glide before reading where it
  started; they read the scroll mid-glide and failed on main too.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…n it is sent

Follows the review of the queue walk.

The banner's row gives the agent's side only as the queue count. The
delivery counts ("1 waiting", "1 queued") and "N saved" leave the row; the
disclosure keeps them, and names each open task's title inside the "Waiting on
<agent>" sentence instead of an "Open tasks" one. The counts stand in their own
span after the sentence, inside the same press, at their own width, so a long
sentence truncates before them. The status box declares itself a text reflow
region: the sentence and the counts repack inside it as news rewrites either.
The shift watch let a text region's controls neither grow nor shrink; it now
holds them to what it holds every box to, staying put without being carried,
so a press growing at its trailing edge is allowed and a carried one is not.

A thread message this tab is still sending is an `answer` on the agent's queue,
with no answer named and the stage `sending`, so a reply leaves the user's
count and joins the agent's in the same turn. A widget move still sending
owes nothing yet, and the Ask it answers stays open until the server says so.

The walk's position names its whole list and then the kind it stands on:
"3 of 4 waiting on you · Thread". The command descriptions, the shipped
references and the gallery name the third kind of item, a move to send
again.

`served_records.py` now folds claimed work and a page move whose pickup failed
into the reading both queue selections must agree on; `model_folds.reading`
takes the status store's work claims to do it. The stage check for work under
way has one home, `thread/workflow.js` `atWork`, which the queues, the live
workflow check and the margin's receipt face read. Comments that still named
the Ask walk name the queue walk.

Behaviour the tests moved:
- Status row assertions drop "· N waiting" and "· N saved" and read the counts
  from `.lf-status-queues`; disclosure assertions include the queue sentence.
- The status-press test checks the counts stay whole when the sentence
  truncates at 390px.
- The queue walk test holds the reply's POST and sees both counts move
  before it answers.
- Walk positions read "N of M waiting on you · Ask".

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…n the test

The queue counts leave the status press and stand at the trailing edge of the
status room, beside the banner's controls, at their own width. That edge never
moves, so a changing agent sentence cannot carry the counts and a changing
count grows them leftward only, which the stability contract already allows;
the sentence still gives up its room to the ellipsis first. The previous
commit's text reflow region on the status, and the shift watch change it
needed, are gone: the shift watch is as it was on main. Inside the banner's
control row the counts would not fit beside Approval, which leaves about 84px
at 1280px.

test_a_thread_says_what_the_agent_is_doing_about_it has failed since #1694,
which holds news that would move an open short panel thread behind the card's
news notice. The test appended the user's follow-up and the agent's answer
straight to the log, so both waited behind that notice and never drew. The
follow-up is now sent from the card, as the user's own words show at once, and
the test opens the notice for the agent's answer before reading it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	skills/leaf/assets/runtime/navigation.js
#	skills/leaf/assets/runtime/reading-place.js
#	tests/test_render_startup.py
The queue counts at the status row's trailing edge grew leftward when a
count changed, so their words moved. Chrome reported that as a layout shift,
and the shift watch then audited the whole frame and caught a panel motion it
misses on main: a reaction arriving from another tab grows an open short card
in the Threads panel by 28px (its reaction strip is not held behind the news
notice), and the filter labels widen by 2px. That defect is main's and is left
as it is.

The counts now take the idiom every generated control with changing words
takes (`reserve`, as Threads does for "Threads: 999"): their box keeps the
width of the counts they usually reach, under ten a side, and their words
start at its fixed leading edge. A count changing moves none of them, and a
sentence changing reaches them only as the press's ellipsis.

The status-press test grows its sentence to "testing", which fits beside the
reserved box at 390px.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…pdates to their input

Two narrowing tests failed under the typed-words check from #1707, on main as
well as here: walking to an Ask whose thread a Threads search hides clears the
search, and the check said the words left with no key. Both sides of that were
wrong, and each fix alone leaves the tests red.

The runtime reached the Ask after `await materializeAsk(...)` even when the
Ask's nodes already stood, so the reveal that widens the narrowing, and clears
the search the user typed, ran after a native await, outside the key's turn.
`materializeAsk` now answers at once for an Ask that stands and returns a
promise only when the thread's markup has to be built, so the arrival, and
what it does to the page, is the key's doing in its own turn.

The check's causal tracking did not follow reactive element updates. Lit's
`requestUpdate` defers the update behind a native await, so a Web Awesome
field redrawn for a key, as the Threads search is, lost its cause.
`input_work_watch.js` now records the source of the request that starts an
update and runs `scheduleUpdate` under it, for every element class that
defines Lit's update lifecycle. New tests in `test_render_words_watch.py` hold
a key's deferred update as the key's and keep the same update with no input
behind it a loss.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ve update by its connection

Follows the final review of the queue walk.

A follow-up the user sends in a thread the agent already owes counted as a
second `answer` while its POST was in flight, so "N on Claude" read N+1 and
then N once the server answered: the server owes a thread one answer, to its
latest move. A thread message still being sent now takes the place of the
served answer for its thread in `selectQueues`. The runtime test and the
held-POST browser test both cover the follow-up.

`input_work_watch.js` credited an element's first update to whatever made it,
though Lit holds that update until the element is connected: an element made
under a key and connected by passive work had its first update credited to the
key. Connecting the element now names that update's source. The negative words
test gains that case.

The queue counts' digits are tabular, and their reserved box only grows while
the page is open, so counts past nine a side widen it once instead of moving on
every change. `materializeAsk` is now only the thread materialization, awaited
where an Ask's nodes are missing, beside a synchronous lookup. Comments no
longer place the counts beside the banner's controls: at desktop width they end
the status area, mid-banner.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty and others added 20 commits October 4, 2026 08:23
A new Panel sketches tab holds four candidates to replace the Asks
drawer (two stacked queues, one list filtered by owner, inside the
Threads panel, and lists opened from the banner's counts), beside
today's drawer as a baseline, with an Ask to pick one. The page's
existing content moves into a Model tab.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
They are new and expected to change a lot; the module headers and the
owners list say so, so later changes don't treat their shape as settled.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The Queue panel stands on the left edge where the Asks drawer did and lists
what waits on the user ("On you"), what waits on the agent ("On <agent>"),
and, folded at the foot, what is done: answered Asks and ended tasks. Its two
queues are the publisher's `queues` reading, the same one the `a` walk and
the banner counts read; Done is `selectDone`, selected beside them from the
Ask reading and the ended tasks the server now serves as `ended_tasks`.

A row says the item's kind, its title or opening words, and where it is, and
a press or Enter on it arrives through the walk's own arrival
(`queue-walk.js`, `arriveAtItem`), which now also reaches an answered Ask.
`g Shift+Q` and the Queue control in More open it; `g Shift+A`, the Asks
control and its completed/total face are gone. The panel is marked
experimental in its module headers and in the assets AGENTS.md and
packages.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	skills/leaf/assets/runtime/navigation.js
The summary that opens Done is a stop in the same list as the rows, so it wears
their `queue-row` ring rather than declaring a ring of its own that the ring
coverage test would need a separate case for.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Behavior that moved with the panel:

- Answered-Ask counts were read off the Asks control's "Asks n/m" face, which
  is gone; tests read the publisher's Ask reading through
  `expect_asks_answered` instead. The progress-face settlement test is
  deleted; the list-paint settlement test now holds the `queue` region.
- Drawer rows listed every Ask in page order. The Queue lists open Asks under
  On you and answered ones under Done ("Answered <answer>"), beside items
  that are not Asks (a reply the agent owes a pick), so row counts select
  `data-lf-kind='ask'` and reaching a Done row opens its fold first.
- `g Shift+A` is `g Shift+Q`; the surface key `asks` is `queue`; the row walk
  says "Item n of m".
- A change's x-word is read where comment anchors and the Page Map read it
  (`addressableWord`), since Queue rows say "Ask" for every Ask.
- New: `test_the_queue_panel_lists_both_queues_and_what_is_done` (both
  queues, a folded ended task, arrival from a row, a send moving its row),
  `selectDone` in `queues.test.mjs` on a served "done" reading, and
  `ended_tasks` in `test_tasks.py`.

The site's how-it-works and registry pages, the feature gallery, the corpus,
the glossary and the design-comment registry text name the Queue panel.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	build/browser/generated/browser-runtime.js.map
#	build/browser/generated/browser-runtime.manifest.json
#	skills/leaf/assets/runtime/asks/view.js
#	skills/leaf/assets/vendor/browser-runtime.js
The layer test held the theme's `asks` auxiliary-surface selector, which is
`queue` now, and the generated registry reference still quoted the
lf-suggestion entry's old Asks drawer sentence.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…827c27e2ab29

# Conflicts:
#	build/browser/generated/browser-runtime.js.map
#	build/browser/generated/browser-runtime.manifest.json
#	skills/leaf/assets/runtime/asks/view.js
#	skills/leaf/assets/runtime/queues.js
#	skills/leaf/assets/vendor/browser-runtime.js
…ts word

The banner's "N on you · M on <agent>" counts are now a press, one of the
Queue panel's doors beside the Queue control in More (which stays a finger's
route): every door says whether the panel stands, and closing it from inside
hands focus back to the door it was opened from while that door is on screen.
The counts wear the status press's face and ring, and their box is reserved
for counts under a hundred a side, since news must not move a press.

An Ask's row says its widget's own word ("Deletion", "Rewrite", "Ask") rather
than "Ask" for every one; the change-shape test reads it off the Queue rows
again.

`expect_asks_answered` waits for the page to admit a state answer, since the
empty pre-state reading matched a "0/0" before any count existed. Three tests
that passed only by that race now read main's interim "decided" Ask reading,
which keeps an Ask the user answered after a later version settles it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- `queue-list.js` owns its rows: `rowAt(list, id)` is the row an Ask's ring is
  mirrored on and an arrival reveals, `standsAt` what a row stands at,
  `walkStops` and `shownItems` what a walk lands on and counts. The Ask view
  no longer queries the panel's classes; its review route for an answered
  Ask asks the standing side (`sideOf`, standing-target.js) whether the chrome
  holding focus stands at that Ask, as a Queue row does.
- The row walk's "Item n of m" counted the Done fold's door as an item.
  `rowWalk` takes `items`, the list a position counts, beside `rows`, the
  stops it lands on; landing on the door reports no position.
- What the page calls its agent has one home, `agentName` in
  semantic-state.js, read by the banner's counts and the panel; the Queue
  control in More names the agent's side as the panel does.
- The feature gallery says the banner's counts open the panel. Its v1 is an
  earlier version of the page and stays as written.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	.claude/skills/developing-leaf/references/glossary.md
#	TODO.md
#	build/browser/application.ts
#	build/browser/generated/browser-runtime.js.map
#	build/browser/generated/browser-runtime.manifest.json
#	docs/registry.html
#	examples/corpus.html
#	examples/developer/feature-gallery.html
#	skills/leaf/assets/leaf.js
#	skills/leaf/assets/registry.json
#	skills/leaf/assets/runtime/asks/view.js
#	skills/leaf/assets/runtime/banner-status-view.js
#	skills/leaf/assets/runtime/banner.js
#	skills/leaf/assets/runtime/chrome.css
#	skills/leaf/assets/runtime/drawers.js
#	skills/leaf/assets/runtime/navigation.js
#	skills/leaf/assets/runtime/queue-walk.js
#	skills/leaf/assets/runtime/queues.js
#	skills/leaf/assets/vendor/browser-runtime.js
#	skills/leaf/references/packages.md
#	skills/leaf/scripts/leaf/render_gate/screens.py
#	tests/runtime/queues.test.mjs
#	tests/served_records.json
#	tests/served_records.py
#	tests/test_render_aim.py
#	tests/test_render_controls.py
#	tests/test_render_navigation.py
#	tests/test_render_projection.py
#	tests/test_render_threads.py
#	tests/test_render_widgets.py
Main moved the queue counts out of the status into a banner item of their own,
leading a narrow banner's second row only where the run leaves them room whole
and otherwise on a third line the banner does not draw. The counts stay the
button that toggles the Queue panel, in that arrangement, with main's
reserved box ("9 on you · 9 on <agent>") and two-row rule unchanged:

- Counts the banner does not draw are `inert`, so the press takes no Tab stop
  nobody can see; the Queue control in More and the status's disclosure still
  reach what they say. Main's two counts tests assert it beside `drawn`.
- `drawers.js` is the one writer of the counts' `aria-expanded`.
- As a press, the counts are now among the controls the poll test watches.
  Their box grows from 9 to 10 leftward into the status's room, its right edge
  against the run holding still. `displaced` reads the news rule as a box
  growing into free room on either side, with one edge holding its place.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I found no actionable issue in the Queue change. I’m withholding approval because the test check is red: test_the_ring_holds_on_a_seat_the_agent_has_still_to_answer expects “comment on the ask” but the shortcut bar says “comment on the thread.” I reproduced that assertion at this head and at merge base 2076f9cb, so the failure predates this PR, but the check still needs a passing result before approval.

max-sixty and others added 2 commits October 4, 2026 20:51
test_the_ring_holds_on_a_seat_the_agent_has_still_to_answer has failed on main
since 1725300 (#1705). That change made `c` continue an existing thread whose
target lies within the held Ask even when no card shows it
(`replyThreadAtStanding` in `commentDestination`), so from the seated widget's
control the shortcut bar now reads "comment on the thread" and the press lands
in the reply box of the remark the user already left in the seat.

The test still expected "comment on the ask", a reading that only held while
`threadHere()` saw shown threads alone. That reading was the defect the test
names: a press on the Ask files a second thread on `shape-decision` instead of
the next line of the user's own thread on `shape`, which is what the test's
origin (b68ce37) pressed `c` to prove. The runtime is right; the test moves.

Behavior now held: both label readings, before and after the agent's reply,
name the thread, and the test presses `c` after the reply phase and requires
focus in that thread's reply box with the comment field shut. Reverting
`replySubject` in surface.js turns the new press assertion red.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 7a203cc into main Oct 5, 2026
4 checks passed
@max-sixty
max-sixty deleted the queue-panel branch October 5, 2026 04:26
max-sixty added a commit that referenced this pull request Oct 5, 2026
#1789 replaced the Asks drawer with the Queue panel. The feature gallery
journey opens `.lf-queue`, finds the gallery's Ask among `.lf-queue-row`s,
and keeps main's check that the row is of kind "ask" through `data-lf-kind`.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 5, 2026
Working now always names an item on the agent's queue. `leaf status
working [--on]` folds into the task commands, so one command takes work
on, and `status` keeps only `waiting` and `idle`. This is step 4 of the
plan on `notes/what-needs-you/page.html`. The task and queue code stays
marked experimental.

## The model

- **`leaf task start PAGE ID "line"`** writes a `start` event naming the
item in hand, with the line the banner shows. The item is one of:
  - a user move the agent owes an answer to, by the move's event id;
  - an open task.
- **A start ends with its item.**
  - For a move, that is the reply or stamped version that answers it.
- For a task, it is `task end`, or a version stamped with `--completes`
on its widget. That stamp now also ends the widget's open tasks as done,
citing the version.
- **A start holds its item for the turn that wrote it.** Once that turn
ends with the item still running, the item reads stalled, as a claim
did. A later start takes it in hand again.
- **`waiting` and `idle` put down every earlier start.** A started move
goes back to its delivery stage, and a started task stays open with
nothing running. The put-down is a `put_down` event in the log, written
when a start stands. `tasks.item_starts` clears at it, so every reader
agrees on what is in hand. That includes admission, which reads only the
document and the log when it decides an event's `attention`.
`status.json` loses its `after` field, which nothing else read. `idle`
is refused while any task is open, and the refusal names each task and
how to end it. A start on an idle page writes a bare `waiting` first, so
carriers that stood down resume.
- **Tasks take more subjects.** Besides threads, a task can be on a page
widget that declares `x-work` or holds an unsettled move, or on `page`.
A start on a widget task covers the user's earlier moves on that widget.
- **`page init` no longer writes "Writing the page".**

## Claims leave `status.json`

`status.json` keeps the `waiting`/`idle` declaration and the harness's
stream. Every reader of claims now reads starts from the log through
`tasks.item_starts`:

- workflows' Working stage and `started_by`
- admission's attention
- the activity fold: the banner line, turn renewal and stalled
- the Stop hook
- the margin's widget entries
- neighbour rows
- `page state`
- the stamp and re-vendor guards

The standalone claim workflow and the `claim` update source are gone.

On the Queue panel (#1789), a task row with a running start now reads
live and shows the start's line and age, as a move in hand already did.
Open tasks are served from the activity fold, which carries `running`.
Ended tasks still come from `canonical_tasks`.

## Instructions

These now tell the agent to `task start` an item instead of claiming
with `status --on`:

- the registry's answering clauses
- `SKILL.md`
- `conversation-loop.md`, `event-batches.md` and `threads.md`
- the delivery handling text
- `docs/how-it-works.html`

`evals/work-names-its-item` grades that a session names its item and
hands back. It is a guard on the new wording, not a before/after score,
because the base wording has no `task start` to measure.

A session running the old instructions gets one refusal, since `status`
no longer takes `working`. The command's help names `task start`.

## Tests

Tests that wrote claims now write starts or tasks. The board, choice and
draft cases start the exact move or open a widget task. The CLI help,
the delivery clauses, the served records and the regtest snapshots are
re-recorded.

Locally on the merge with main:

- `uv run pytest tests -n auto`
- `npm run test:runtime`
- `npm run test:browser`
- `npm run check:browser`
- the task, navigation, controls and queue browser files

The failures left in the browser and nightly files fail identically on
main, including
`test_a_label_press_keeps_the_controls_keyboard_standing`. Each was
checked in a detached worktree at main.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants