Skip to content

Say in the reactions contract that the user can withdraw a reaction however far the agent has got - #5418

Merged
leaf-agent merged 1 commit into
mainfrom
nightly/undo-contract-prose
Nov 5, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
nightly/undo-contract-prose

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The kernel registry's $reactions description, which agents and package authors read, still told them a reaction can be withdrawn only "while nothing answers it". #5320 removed that limit: the user can take back a sent message or reaction however far the agent has got with it, and src/leaf/events.md ("Undo") was rewritten to say so. This brings the registry description into line and points it at that section.

The same "Undo" section said a withdrawn message keeps its place where "a message or to-do still in force" stands on it. events.standing_withdrawn counts every to-do on the thread the message opened, ended ones included, which is what its docstring and #5320's commit message say it should do (a completed to-do keeps its discussion for the Done list). The prose now reads "a message still in force, or any to-do on the thread it opened".

This is prose only, and no behavior changes. uv run pytest tests/model -k "registry or reaction" passes (166 tests).

…the agent has got

#5320 let the user take back a sent message or reaction whatever the agent has
done with it, and rewrote events.md's "Undo" to match, but the kernel
registry's `$reactions` description, which agents and package authors read,
still said a reaction can be withdrawn only "while nothing answers it". It now
says the same as events.md and points there.

events.md also said a withdrawn message keeps its place where "a message or
to-do still in force" stands on it, while `events.standing_withdrawn` counts
every to-do on the thread the message opened, ended ones included, as its
docstring and #5320 intend. The prose now says "a message still in force, or
any to-do on the thread it opened".

No behavior changes.
@leaf-agent
leaf-agent merged commit e5be2a5 into main Nov 5, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the nightly/undo-contract-prose branch November 5, 2026 07:09
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.

1 participant