Skip to content

Drop the fork-answer paths #5552 left: clerk.queue and response-times' fork_reply row - #5599

Merged
max-sixty merged 1 commit into
mainfrom
nightly/fork-reply-leftovers
Nov 6, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/fork-reply-leftovers

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Since #5552, a fork of a Claude Code session posts only the agent's working line and always hands the thread over (forks.py header). No fork answers a message any more, and none queues a line for the session. This PR removes the code and prose that still assumed one could. Users see no change. The one tool whose output changes is leaf-dev response-times: its summary loses the fork_reply row, which could never fill.

  • Dead code. clerk.queue had no caller left. _append is now the clerk's only way to queue a line.
  • leaf-dev response-times. It left out the reply breakdown, pickup wait and command time of any input "a fork answered", detected by a reply field that no fork record has carried since Show the agent's working line from a fork at once, and read On it from the fork's start #5552. The summary's fork_reply row is gone, and delivered now covers every opened input. Root AGENTS.md, "Stage", treats records from earlier runtimes as disposable, so nothing is kept for them.
  • Prose. The hook_transport header and composer comment, delivery.deliverable, src/leaf/session-lifetime.md, the leaf-dev journey header and the --forks help all said a fork may answer or post a reply through the clerk's queue. They now describe the hand-over.

dev/tests/model/test_journey.py::test_a_comment_a_fork_decided_on_keeps_the_forks_record now builds its first fork record the way forks.take writes one: a hand-over with its working line. Its comment keeps the session's reply breakdown. dev/tests/model/test_journey.py, dev/tests/model/test_response_times.py, tests/model/test_clerk.py and tests/model/test_forks.py pass locally. There is no regression test, because no behavior a user depends on changed.

…' fork_reply row

Since #5552 a fork of a Claude Code session posts only the agent's working line and
always hands the thread over, so no fork answers a message and none queues a line
for the session. What still assumed one:

- `clerk.queue` had no caller left; `_append` is the clerk's one way to queue.
- `leaf-dev response-times` skipped the reply breakdown, pickup and commands of an
  input "a fork answered", keyed on a `reply` field no fork record carries, and
  printed a `fork_reply` row that could never fill. The summary now has
  `fork_hand_over` alone, and `delivered` covers every opened input.
- The `hook_transport`, `delivery.deliverable`, `session-lifetime.md` and
  `leaf-dev journey` prose (and `--forks` help) said a fork may answer.

The journey test's first fork record now has the shape `forks.take` writes: a
hand-over with its working line, whose comment keeps the session's reply breakdown.
@max-sixty
max-sixty merged commit 64b823a into main Nov 6, 2026
6 checks passed
@max-sixty
max-sixty deleted the nightly/fork-reply-leftovers branch November 6, 2026 07:05
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