Skip to content

Reply to a message on a record after page check, and stamp at checkpoints - #1884

Merged
max-sixty merged 6 commits into
mainfrom
agent-a686331bb09ef3b4e
Oct 6, 2026
Merged

max-sixty merged 6 commits into
mainfrom
agent-a686331bb09ef3b4e

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

In a leaf-dev journey codex run on a stamped page, Codex read "Operate", step 3, as a check owed before every reply. Before answering a one-line heading edit it ran leaf page check --render, a browser review and a stamp, so the reply took 65–125 s. Claude Code ran only leaf page check and replied in about 8 s.

Step 3 of skills/leaf/SKILL.md now says that a revision answering a user's message needs only leaf page check before the reply, even on a record, because each valid save is already live on the user's page. A record is stamped again, with its render check and reading, at a checkpoint the user would name, such as sign-off, and wherever a reference requires a stamped version, as taking in an answer to a page Ask does. Step 3 is the rule's only home. conversation-loop.md ("When to write") and page-checkpoints.md ("Stamp checkpoints") point to it.

The new eval case record-reply-before-its-stamp gives a stamped triage board one heading comment and then a sign-off message. It passes only if the first turn replies after leaf page check alone and the sign-off turn runs the render check and then stamps. Results against main at bb97a28, after #1866 restructured the skill's opening:

Harness main this change
Claude Code 0 of 3 3 of 3
Codex 0 of 3 3 of 3

The final wording of the stamp sentence scored 2 of 2 on both harnesses, and task-outlasts-the-turn, the other case that stamps, passed 2 of 2 on both arms.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 5 commits October 5, 2026 09:10
…points

"Operate", step 3, asked a finished record for the render check, the
pre-handover reading and a stamp, and to review "at every later stamp".
Codex read that as owed before each reply: in `leaf-dev journey codex`,
on the stamped triage board, it rendered (12-46 s), verified and stamped
before answering a heading edit, replying in 65-125 s, where Claude Code
ran only `page check` and replied in about 8 s. The extra checks protect
nothing at that point, since every valid save is already live on the
user's page.

Step 3 now says a revision answering a user's message needs only
`leaf page check` before the reply, on a record too, and that a record's
later stamps, with their render check and reading, belong to checkpoints
the user would name. `page-checkpoints.md` names those checkpoints
(sign-off, the end of the conversation) and points back to step 3 for
the review; `conversation-loop.md` points to it where the work in hand
ends in a reply. An Ask answer still waits on a stamped version.

New eval `record-reply-before-its-stamp`: an edit comment on a stamped
board, then the user's "I'm done". Base (bff833e) rendered and stamped
before the reply on both harnesses, 0 of 3 each; the change replied after
`page check` and stamped after `--render` at sign-off, 3 of 3 each, and
3 of 3 again on the final wording. Guards run 2x per arm
(record-read-without-the-notes, task-outlasts-the-turn,
codex-comment-during-work, thread-named-in-its-reply,
ephemeral-progress-reply) moved within noise; each candidate failure has
a base twin or is a reference-read or multi-line regex miss.

One `leaf-dev journey codex` run on the change, with the journey's ask
still saying "publish the revision": no render check or stamp, reply
43.5 s after admission.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Step 3 said a record's later stamps belong only to checkpoints the user
names, which contradicted authoring-revisions.md: an answer to a page Ask
waits on a stamped version. Step 3 now names both occasions. The pointers
in conversation-loop.md and page-checkpoints.md drop the reasoning that
step 3 already gives.

Re-scored after merging main: base bb97a28 0/3, change 3/3, on both
Claude Code and Codex.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Step 3 listed an answered Ask as the one stamp outside a checkpoint the
user names, but a worker's report and a task completed with --completes
also wait on a stamped version. It now defers to whichever reference
requires one. task-outlasts-the-turn passes 2/2 on both arms and
harnesses; record-reply-before-its-stamp passes 2/2 on the change and
0/2 on base.

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.

The new eval does not yet enforce that stamping waits for sign-off. It accepts a first turn that replies and then runs the render check and stamp before ending; a later sign-off stamp would satisfy the second metric too. That path keeps the work this change is meant to defer in the message turn. The first-turn rubric needs to reject those operations anywhere in that turn.

The first-turn rubric rejected a render check, browser review or stamp
only before the reply, so a turn that replied and then stamped passed
both criteria while doing the work the change defers to sign-off. It now
rejects them anywhere in that turn. The change still passes 2/2 on
Claude Code and Codex.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 6df5ef5 into main Oct 6, 2026
4 checks passed
@max-sixty
max-sixty deleted the agent-a686331bb09ef3b4e branch October 6, 2026 07:24
max-sixty added a commit that referenced this pull request Oct 7, 2026
When a message asks for work, the agent's first command is now a
one-line ephemeral reply in its thread saying what it will do, and that
reply also takes the move in hand. Before, the instructions had the
agent start the move with `leaf task start`, which shows only a Working
label, so the user read no words until the final answer.

In two `leaf-dev journey cc` runs, the first tool call was that reply,
such as "Adding a card for release f5712f3's passed deployment checks
to the board.", at 7.0 s. On main, nothing appeared in the thread until
the answer at 21–26 s. Answers came at 18.6 and 23.1 s. Codex over App
Server already opens each turn with a streamed message, so it uses none.

**Leaf (`thread.py`, `tasks.py`).** An ephemeral reply to a move the
agent owes writes the same `start` a `leaf task start` does, in the same
transaction, with its text as the Working line. That holds whether the
move is named with `--for`, inferred from the delivery, or reached
through a thread that owes a reply. `tasks.take_in_hand` is the one
writer of a start. The update must be one line, since it is also the
banner's line; longer text is refused with the reason. An update on a
thread that owes nothing starts nothing. `leaf task start` stays for
later phases, for tasks, and for moves on page widgets. The Stop hook is
unchanged: a turn that took the move in hand may end before answering,
as after `task start`.

**Instructions.** `conversation-loop.md`, "When to write", owns the
rule. The comment's `handling` clause in `registry.json` now names the
ephemeral reply instead of `leaf task start`. `SKILL.md` "Stay
responsive", `threads.md` "Progress updates" and `event-batches.md`
point to it. `docs/how-it-works.html` shows the same first command in
its comment flow, and that flow now replies once `page check` passes, as
#1884 settled, instead of rendering and stamping first.

**Measurement.** `leaf-dev journey` took the first reply as the answer,
so it would have timed the update as `replied`. It now skips ephemeral
replies and reports the update as `sinceAdmissionMs.progress`. The
delivery and usability evals count the update as taking the move in
hand, not as the answer.

**Evals.** New case `first-command-says-what-comes`: base 0/5, change
5/5 on both Claude Code and Codex. All 13 wait-loop and thread cases
pass their judged checks; a few regex checks failed only on a command
split across lines with `\`. `work-names-its-item` and
`claude-hook-delivery-needs-no-ack` now accept the update where they
required `task start`, and `thread-named-in-its-reply` accepts a title
on the update, which names the thread sooner.

> _This was written by Claude Code on behalf of max-sixty_

---------

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