Bind agent approval to the change you reviewed
A practical design for agent tools: show the exact proposal, bind approval to its target and revision, and make stale changes recoverable. Includes a tested visual prototype.

An agent offers to improve a shared document. You approve the wording, then a teammate changes the document before the edit runs. A useful approval system remembers both the proposed text and the version you saw. It can then stop the stale edit and show what needs another review.
For teams building agent tools, this is a practical design decision: make each approval refer to a concrete proposal. Give that proposal a target, operation, exact arguments and expected revision. The interface and the executor should use the same stored object.
Put the execution boundary in the application
With Claude client tools, the model returns a structured tool call and application code performs the operation. Anthropic-hosted server tools have a different execution path. The client tool loop gives your application a place to validate a proposed write before running it.
The MCP tools specification allows different interaction patterns while recommending visible tool activity and a person able to deny invocations. It does not prescribe the proposal design below. Our recommendation is to use it where your product policy requires review, while preserving any existing authorization for routine work.
Make the approval concrete
Broad task approval
“Improve the setup documentation.”
- Leaves the affected document and fields open.
- Does not identify which revision the reviewer saw.
- Makes it difficult to explain a later discrepancy.
Specific change approval
“Replace this summary in DOC-014, based on revision 12.”
- Shows the exact before and after text.
- Names the destination and scope.
- Can be invalidated when the target or proposal changes.
Show a diff that corresponds to the tool payload
In our original browser study, the proposed operation replaces one summary in a shared documentation card. The reviewer can see the document identifier, destination, baseline revision and exact replacement. “Approve this change” records the decision without applying the edit. The separate apply button makes the intervening state visible for testing; a real product may combine those steps if it performs the same checks.
Actual Chromium capture of an original local prototype in its enlarged capture layout. The exact replacement and scope are visible together; this is demonstration data, with no model or production account connected.Build this view from the application’s stored proposal. An agent’s explanation can add context, but it should not be the only representation of what will run. Use a readable diff for prose, explicit recipient and destination fields for a send action, and an itemized target list for a batch. Keep the primary button label specific enough that a reader knows its effect.
{
"proposal_id": "proposal-014",
"operation": "replace_summary",
"target_id": "DOC-014",
"expected_revision": 12,
"arguments": {
"summary": "Set up your workspace, then run the release checklist."
}
}
This illustrative payload identifies the proposal; it is not an authorization token. Store the approval separately with the authenticated approver and a reference to the immutable proposal. If you use a digest, compute it from a consistently normalized payload and compare it against the trusted stored record. A hash supplied by the agent does not establish permission.
Check again when the approved change runs
Original code-native diagram. The two outcomes follow validation: a mismatch returns to review; a match permits the guarded write. This is an architecture recommendation, not a tested production implementation.At execution time, check current permission and compare the requested action with the approved proposal. Guard the target revision and the write atomically so another edit cannot slip between a separate read and update. A stale revision should produce a conflict that the interface can explain. Silently rebasing the proposal would change the evidence on which the person made the decision.
Also keep the proposal identifier distinct from the durable operation identifier used to reconcile execution. If a response is lost, look up that operation’s receipt before offering another write. A disabled button only prevents some local interactions; it cannot provide persistence or protection across processes.
MCP’s tool annotation guidance describes annotations as hints, with trust depending on the server. Treat them as context for your interface and policy. They do not replace the checks above, and this design does not solve every prompt-injection or authorization problem.
Make a stale approval easy to recover from
We approved the revision-12 proposal, simulated a collaborator’s edit to revision 13, then attempted to apply the approved change. The prototype kept the collaborator’s text and showed “Review needed again.” Its next action prepares a fresh proposal from the current document and requires another review.
Actual capture after the tested revision conflict. The card preserves the reviewed baseline and proposed text, explains the new revision, and offers a fresh review. The collaborator’s text remains unchanged.A useful recovery path
Preserve the attempted proposal
Keep the reviewed diff available so the person can understand why this approval no longer applies.
Load the current target
Explain the changed revision or permission. Do not silently substitute a new payload under the old approval.
Prepare and review again
Show a fresh diff against the current state. Let the reviewer accept, adjust or decline it.
Test the outcomes before connecting a model
The browser study passed the following checks at desktop and mobile widths. These are deterministic interface tests, not evidence of model reliability or backend security. Anthropic’s tool-building guidance recommends evaluating realistic tasks with verifiable outcomes; after wiring the actual executor, extend testing to permissions, concurrent writes and uncertain results.
Local fixture results| Scenario | Observed result | Scope |
|---|
| Approve without applying | Document stays at revision 12 | Passed at 1120 and 390 px |
| Decline the proposal | No proposal write | Passed at both widths |
| Change arguments after approval | Application is blocked | Passed at both widths |
| Collaborator edits before apply | Revision conflict; collaborator text preserved | Passed at both widths |
| Apply an unchanged proposal | One local write; repeated local click ignored | In-memory fixture only |
Before shipping, add server tests that bypass the interface entirely, revoke the approver’s permission, race two updates, and interrupt the response after a successful write. Verify the actual document and stored receipt in each case. The useful result is a reviewer who can understand what was approved and an executor that can prove whether that same change happened.
Visual notes: the cover is an original AI-generated conceptual illustration. Body screenshots show our working local study; the flow diagram is original code-native artwork. Primary sources were checked on October 19, 2026.
Back to the LOOKFILE blog