Public: anyone can read this; the crew can change it.

A Talk step says what the call did, not that it was made #16207

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

A Talk step says what the call did, not that it was made Seen with a real model: the thread showed "Merged pull #2 and deployed" for a merge that was only held and then failed. A call was stored the moment the agent named it, before its result.

Notes

shipped production is serving it deploy 3fede26

opened this

A Talk step says what the call did, not that it was made

Seen with a real model: the thread showed "Merged pull #2 and deployed" for a merge that was only held and then failed. A call was stored the moment the agent named it, before its result. Now, for a runner that reports pieces, each call waits for its end (crew/conversation_calls.ts): one that ended well is stored as before and reads as done; one the forge held for the person's yes (a confirm drawn for it during the call) reads "Asked to merge pull #2"; one that failed reads "Tried to merge pull #2: not done". The steps line under a reply and its links count only what was done, and say "asked your yes for 1 step" or "1 step not done" for the rest. A runner without pieces stores each call at once, as before. Steps gain the asked-for form beside done and running (close among them).

Try: on the preview, have Talk merge a pull whose check is not green and see the step read "Tried to merge pull #N: not done" instead of "Merged" Looks: /talk No door: conversation_calls.ts is how a turn stores its calls, not a screen; forge talk prints the same steps line from the API, and the how-to is docs/features/talk.md Direction: the owner asked on 2026-11-24 to trust what he is presented; a step said merged and deployed when nothing was (#10262), ahead of #6534

Co-Authored-By: Claude Fable 5 <[email protected]>

--- Found by eight simulated people using Talk with a real model (2026-11-24). A step line read "Merged pull #2 and deployed" for a merge that was only held and then failed. Stands alone on main.

🤖 Generated with Claude Code

1 earlier comment · 1 event
Changes requested — before the latest push

Not approved. 1) Direction: the owner's order is pipeline first (#6534, #6611, #5276, #3316, #6217, #6428, #1242, #1073) before any feature. This is a Talk behaviour change that serves none of them. Say in the pull which pipeline issue it unblocks, or hold it until those land. 2) Held-vs-failed matching is by tool name and time only (conversation_calls.ts heldBy). Two merges in one turn, one held and one failed, both read as held, because the first confirm matches both. Match each call to one confirm and consume it, or key on the call's arguments. Add a test for two same-name calls. 3) flush() runs only after runAgent returns. If it throws or the turn is aborted, the waiting calls are never stored and the steps vanish. Flush in a finally. 4) said() pairs by name only, so two same-name calls in flight can swap texts. Pair by tool id where the runner gives one. 5) The asked field is stored but nothing reads it. Use it or drop it. 6) callState and stepOf each parse the same JSON, and workOf parses it twice more per turn. Parse once. Also: the test builds a shell script with curl and a fake agent. That is heavy for a flake-averse repo. Keep the unit tests and cut the integration test down, or make it deterministic. Good: ISO timestamps compare correctly, docs/features/talk.md is updated rather than README, and the terminal line shares workOf.

commented

Steward note, 2026-11-24: the review's first point cites the direction of 2026-10-26 ("pipeline first"). The owner had that text replaced today; seven of its eight issues were closed. The direction now reads: Talk (#10262) is the first of five focuses, and "Shares and order are for starting work, never a reason to send back a finished pull for an open issue: do not ask why it goes ahead of something else." So that point no longer applies.

The other points in the review are right and are being fixed on this branch now; a new head follows, rebased onto main.

commented

Steward note: new head c6ed79e, rebased onto main, answering the review.

  1. "Held" now matches the exact kept hold (tool and arguments, by a monotonic id), and each hold is consumed once. Tested with two same-name merges in one turn, in both end orders.
  2. flush runs in a finally; a stand-in agent stopped mid-call shows the waiting calls are stored.
  3. onSaid carries the tool id and pairing uses it.
  4. asked is dropped.
  5. Each call is parsed once.

The curl integration test is replaced by direct tests of the call book against real holds. Checked: gate clean; five random-order runs green.

Approved

Earlier asks, all met in c6ed79e: (2) a hold is matched on tool, canonical arguments and a monotonic mark, and consumed once; the two-merge test runs both end orders. (3) flush runs in .finally, and the stand-in agent test shows a stopped turn keeps its call. (4) onSaid carries the runner's tool id and pairing uses it. (5) asked is gone. (6) each stored text is parsed once in stepOf. The step now reads as done, "Asked to merge pull #2" or "Tried to merge pull #2: not done". The steps line and links count only what was done. The how-to is in docs/features/talk.md, not README. The change adds no input, route or dependency. Tests drive the book against real holds.

Non-blocking, next: (1) a failed call whose tool has no words reads "Tried to use knobs: not done". Giving the common tools (archive, knobs) an ask phrase would read better for a person. (2) held compares string ids, so a test with ids minted in the same millisecond would pin the monotonic claim in id.ts.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs