Prepare → Confirm: Designing Safe Mutation Gates for Autonomous Agents
Why AI agents should never have a single-step "publish now" tool—and how two-phase confirmation gates prevent accidental live mutations.
- LLMs are probabilistic; external API mutations (publishing a post, replying to a customer, activating a strategy) must be deterministic.
- Splitting every mutation into
prepare_*(dry-run validation + preview token) andconfirm_*(token execution) blocks unconfirmed single-call side effects. - A confirmation token must bind to the exact target channel, payload hash, and scheduled timestamp—expiring if anything changes.
LEARN BY DOING
Separate proposed actions from authorization.
Try this yourself
Design prepare, preview, confirm and refusal steps for two write operations.
Evidence for your portfolio
A mutation sequence diagram and two rejected-action test cases.
The Danger of Single-Call Mutation Tools
If you give an AI agent a single publish_post(channel, text, time) tool, a misunderstood prompt—such as "Show me what it would look like if we scheduled this for tomorrow"—can trigger an actual live API call. In production systems, reading or previewing an action must never share the same step as committing it.
Single-step publish_post() or send_reply() tools that execute immediately on the first tool call.
Phase 1: prepare_publication_action (validates rules & returns preview + token) → Human/Policy Review → Phase 2: confirm_publication_action.
1. Mechanics of the Two-Phase Prepare → Confirm Gate
The Prepare → Confirm pattern adapts database two-phase commit principles to human-AI collaboration. When an agent wants to schedule, move, retry, or publish a post (or publish an article or reply to a comment), it must first call prepare_publication_action.
During the prepare phase, the server validates channel capabilities, checks workspace autonomy rules and quiet hours, computes the exact preview diff (channel, caption, media, target slot), and returns a short-lived action_id and confirmation_phrase without touching any external social network.
INVARIANT OF AGENT SAFETYNo external mutation can occur without a fresh confirmation token generated from an explicit
prepare_*call for that exact payload.
// PHASE 1: Prepare (Dry-run validation + human-readable preview, mumro:schedule)
{
"tool": "prepare_publication_action",
"arguments": {
"publication_id": 1881,
"operation": "schedule_draft",
"scheduled_at": "2026-11-05T17:00:00Z",
"idempotency_key": "fieldwork-drift4l-2026-11-05-prepare"
}
}
// Server Response:
{
"status": "prepared_awaiting_confirmation",
"action_id": 554,
"confirmation_mode": "user",
"preview": {
"channel": "Instagram (@fieldwork)",
"scheduledLocal": "Thu Nov 5 · 18:00 CET",
"captionPreview": "Two days. Four litres. Jacket, snacks and a repair kit..."
},
"confirmation_phrase": "schedule-instagram-thu-18-fieldwork-9f82"
}
// PHASE 2: Confirm (Executed only after independent host/user approval or server-verified policy)
{
"tool": "confirm_publication_action",
"arguments": {
"action_id": 554,
"confirmation_phrase": "schedule-instagram-thu-18-fieldwork-9f82"
}
}2. Applying Prepare → Confirm Across Posts, Articles, Comments, and Strategy
A consistent architecture uses the same two-phase pattern across every sensitive boundary in the workspace: prepare_publication_action / confirm_publication_action for social queues, prepare_article_action / confirm_article_action for CMS delivery, reply_to_comment / confirm_comment_reply for public audience replies, and prepare_content_strategy_approval / approve_content_strategy_draft for activating a new strategy version.
3. Designing Clear Confirmation UX for Humans
A confirmation gate is only effective if the human reviewer can see the exact text, target channel, and timestamp in one glance. After confirmation, provide a direct deep-link from the agent conversation straight to the newly scheduled row in the publishing plan so the operator can verify the result in context.
Direct Execution vs. Two-Phase Prepare → Confirm Architecture
| Property | Direct Tool Execution | Two-Phase Prepare → Confirm (MUMRO Pattern) |
|---|---|---|
| Ambiguous prompt risk | High—agent may publish when asked to "test scheduling" | Contained at prepare step—prepare_* only generates a preview and token |
| Payload integrity | Agent might alter text between preview and execution | Token is cryptographically bound to the prepared draft and slot |
| Policy enforcement | Checked too late or bypassed | Evaluated during prepare against autonomy mode and quiet hours |
| Audit trail | Single opaque log entry | Explicit record of Prepared Preview + Confirmed Authorization (AG03) |
MCP Simulator: Prepare → Confirm Gate & 3 Graduated Autonomy Modes
Agent reads active Strategy v2, Brand Voice boundaries, quiet hours (22:00–07:00), and available schedule slots without mutating any state.
Agent saves a visible draft inside the FIELDWORK workspace. Creating a draft never triggers an external social API call.
MCP server validates autonomy rules and returns an exact human-readable preview (Instagram · Thu Nov 5 · 18:00 CET) plus a synthetic confirmation phrase `schedule-instagram-thu-18-fieldwork-9f82`.
Only a host-controlled approval or a server-verified delegated policy permits `confirm_*` to execute the prepared action. A phrase returned to the model is not proof of human consent; the result appears in the MUMRO plan.
Inspecting the MCP Preview Before Adding the DRIFT 4L Post to the Plan
In the MUMRO interactive MCP flow, the agent prepares the DRIFT 4L post for Thu Nov 5 · 18:00 CET and pauses in the review state.
- Agent reads context, generates the draft, and invokes the schedule preview.
- The operator inspects the exact caption, target channel (Instagram), and slot (Thu Nov 5 · 18:00 CET).
- Only after clicking the explicit confirmation button does the item enter the FIELDWORK publishing plan, with a direct link to focus that exact row.
Workflow outcome: Fast agentic preparation paired with explicit, auditable human sign-off before scheduling.
Built-in Prepare → Confirm gates across every external mutation.
MUMRO enforces two-phase confirmation gates for social publishing, CMS articles, comment replies, and strategy approvals—so you stay in command of every live action.
- Two-phase
prepare_publication_actionandconfirm_publication_actionfor scheduling, moving, retrying, or publishing (AG03). - Dedicated confirmation gates for CMS articles (
prepare_article_action), comment replies (confirm_comment_reply), and strategy approval. - Direct handoff link from confirmed MCP actions to the exact scheduled item in your MUMRO plan.