The model proposes, the asker approves, code writes

Three panels. A wizard at a laptop reads the preview "Feast 8 pm" and says: Looks good! Since the model could post its own copy, the notice board then shows "Feast 9 pm" and the wizard protests: That is not what I saw! Then the laptop shows the stored notice with an Approve button, the board shows that same notice, and an owl between them says: Exactly this. Once.

Ask @todoist in your chat with it “Can you post the feast notice in comms-thread://th-notices?”, and at first it wrote the notice in the chat and left you to paste it. It could only answer in the conversation it was asked in. Letting it post elsewhere, even after the asker approves, raises three questions. Does the asker see the text that will be posted, or the model’s description of it? What happens when the approval arrives twice? And when the connection drops halfway through the post, did it happen?

What the article argues

Anthropic’s Building effective agents describes an agent as a loop that acts on its own, checks the environment at each step, and can “pause for human feedback at checkpoints or when encountering blockers”. It also names the price of that autonomy: higher costs and the potential for compounding errors. Its advice is extensive testing in sandboxed environments, with appropriate guardrails.

A checkpoint is only worth what the person approves. If the model writes the preview and then calls the write, the asker approves the model’s copy, and the write can differ from it. So we split the write in two: the model proposes, code stores the exact action and shows that stored action, and on approval code runs it once, with no model in the loop.

The model proposes a write. Code stores the exact action and shows its stored preview under the answer. When the asker approves, code runs the stored write once, without the model, and records one of four outcomes.

What we changed

The model proposes, code stores

I first made a write that needs confirmation into a proposal. Calling such a tool never makes the change. The product prepares the exact action and its preview, the whole block the reply will show passes the same link and mention check as an answer, and the action is stored as pending. After the answer, the reply shows the stored preview, not the model’s copy of it. The code comment states the reason: “so the model can’t show one text and store another”.

The first real write behind it was comms.propose_comment, a comment in another thread the asker links. A test shows what the product prepares for “Post an update in comms-thread://thread-changelog about the release”, before anything is posted:

{
  "summary": "Post comment",
  "content": "Shipped approvals for comments.",
  "destination_label": "In #changelog: Agent Core updates",
  "audience_label": "Everyone in #changelog can read it",
  "notification_summary": "Notifies the thread's participants"
}

The same test asserts that no comment was sent. The model, for its part, gets no preview back. Its tool result is one flag and a note:

{ "proposed": true,
  "note": "Proposed, not made. Below your answer, the asker sees the exact change and how to confirm it. Write one sentence that introduces it, [...]" }

The model writes one sentence about the comment (the note’s wording is in Describe the situation, not the rules), and code puts the approval under it, built from the stored action. The Comms team draws that approval as a card in Comms web: where the comment goes, who can read it, who is notified, the text, and buttons to approve or discard. The asker can edit the text there, and an edited text goes through the same checks as the model’s.

The asker approves, code writes once

Then I made an approval run the stored write. Agent Core moves the action from approved to executing with one guarded update, so two approvals at the same time, or a repeat, call the product once. The product gets the stored arguments and the approver’s access. No model is called. The decision’s answer says what happened:

status error_code Meaning
succeeded null The change was made
stale stale_input The target changed after the proposal. Nothing was changed
failed A refusal, such as access_denied The product refused. Nothing was changed
failed write_outcome_unknown The change may or may not have been made. Never tried again

An API test sends two approvals at the same moment, then a third. The fake product records one reply, with the stored text (trimmed):

approve, approve (concurrent)  → succeeded / executing
approve (repeat)               → succeeded, error_code: null
replies the product received   → [{ body: "The exact stored reply." }]

Another test makes the write fail with “The connection closed.” The approval answers failed with write_outcome_unknown, a repeat answers the same body, and the product is never called a second time for that action.

For Comms, the proposed comment adds two rules. The comment’s ID is chosen once, at proposal time, and sent on every attempt, so an approval retried after a lost response can’t post twice. And once approved, the tool reads the thread again: a thread closed since the preview makes the action stale, while new comments in it don’t. Three tests of the write, with a synthetic Comms server (trimmed):

approve                       → POST comments/add
                                { id: <comment_id from the proposal>,
                                  thread_id: "thread-changelog",
                                  content: "Shipped approvals for comments." }
thread closed after preview   → stale_input, nothing posted
Comms answers 502             → unknown outcome, not "nothing written"

A 502 says the request failed, not that the comment wasn’t saved. Treating it as a refusal would make a retry look safe. Any response that doesn’t echo the ID, the thread and the text it was sent ends as unknown, and unknown is final: the card tells the asker the outcome is unknown.

A write cut off midway

Running the write inside the approval request had a known cost: if Agent Core stops in the middle of a write, the action stays executing, and nothing recovers it. Each repeat of the approval then answered executing, and the card said the comment was being posted until it expired.

I changed the approval to end such an action on the next approval that arrives long after the write started, as failed with write_outcome_unknown. Agent Core can’t tell whether the comment was posted before the stop, so it ends with what it knows. The write is never made again, and no timer or scheduler was added: Comms repeats an approval that got no final answer, and that repeat closes it. A test leaves two actions in executing, then approves one soon after its write started and the other long after (trimmed):

approve, write may still be running → executing, error_code: null
approve, write long abandoned       → failed, write_outcome_unknown
approve again                       → same answer
replies the product received        → none

On in production, then a poll

Once the Comms backend sent decisions and Comms web drew the card, I turned the proposed comment on in production.

Asked for a poll in another thread, @todoist said it couldn’t: a poll only showed in the current conversation, and the proposed comment took text alone. The evaluation case for it, trimmed:

id: propose-comment-5-poll
fixture:
    threads:
        - id: th-feast-menu
          channel: ch-great-hall
          title: Feast menu
          comments:
              - content: Treacle tart went fast last year. Trifle and spotted dick were left over.
question: 'Create a poll in [🍮 Feast menu](comms-thread://th-feast-menu) asking which pudding to serve at the feast: treacle tart, trifle or spotted dick.'
expect:
    expected_tools: [comms.propose_comment]
    forbidden_tools: [gen_ui.poll]
    expected_input_fields:
        comms.propose_comment: [poll]

I added expected_input_fields for this case: without it the case couldn’t tell a proposed poll from a comment that lists the options as text. Then I let the proposed comment carry a poll. The model gives the question and options. The stored action keeps the options as one text, one per line, so the asker can add, remove or reorder them on the card. Code builds the poll from the stored question and options when the approved comment is posted, and sends both in one write. In its test, { question: "Where should we eat?", options: ["Noma", "Pizza"] } is stored as "Noma\nPizza" and posted as a poll element with options o1: Noma and o2: Pizza. A Comms response that saves the comment without its poll is an unknown outcome, like any other that doesn’t echo what it was sent.

When the asker closes the poll, a run in that thread replies with the option that won. A poll whose comment ended as unknown starts no follow-up.

What we measured

The evaluation works as in the evaluations post. For the proposed comment, I added three cases: a linked thread and a request for a notice there, the same request naming the thread without a link, and a request for a summary in which nothing should be proposed. The first run failed the second case. The model answered “I can’t post a notice in the Weekly notices thread” and offered a draft to copy. I changed the tool description to tell it to ask for the link instead. After that, 9 of 9 runs passed, with a judge median of 5 out of 5. Cases are grouped into families by behaviour. The two other families whose runs were then offered the tool, 12 cases, never called it.

For the poll, played 4 times on each side:

main:   0/4 (answers "can't", no comms.propose_comment call)
branch: 4/4, each call with the question and the three options in poll

The whole family then passed 5 of 5.

These numbers cover the model’s half only. An evaluation case sees which tools the run called and what it answered, not the card. The write path is covered by unit and API tests, like the ones above.

What I’d tell someone doing the same

  1. Show the stored action, never the model’s account of it. Then “did the model post what it showed?” stops being a question, because the model posts nothing.
  2. Fix the write’s identity at proposal time. A comment ID chosen when the action is stored turns “retry after a lost response” from a duplicate into a no-op. Where the product has no such key, the honest answer to a failure you can’t classify is “unknown”, and unknown should be final.
  3. Expect the edges to land later. Running the write inside the approval request avoided a job queue, and left a crashed write stuck until a later change of mine closed it on the next approval. A refused edit cancels the action, and the asker has to ask again. When I wrote this, the iOS and Android apps didn’t draw the approval.
  4. Keep the model where it helps. It still decides that a comment is wanted, writes it from what it read, and fills the poll. It just never holds the pen when the comment is posted.

The cost of an honest “unknown” is some cards with an unknown outcome. The alternative is double posts.