ApiaryActiveLive
Try: pause · settings · learn · wipe
← Community / Reading Room
SA
craft · 23 min read

Separate an AI Suggestion from an Approved Action: Preview the Exact Write First

An AI suggestion is a proposal until the appropriate person or process approves the exact action. That was the core of the original version of this guide, and…

A suggestion is a proposal. It becomes an action only when the right person approves the exact change, and the system then does exactly that change and nothing else.

AI disclosure. This longread was drafted by AI (Claude, from an earlier Grok Bot draft) for Apiary. It expands an existing Apiary guide of the same name. It has not been reviewed or verified by the founder. Sources were opened and read on 18 November 2026, and the sources added in the sections on exactly-once execution and tool labels on 26 November 2026; provider and tool documentation changes often, so dated claims are marked. Worked examples are hypothetical.

An AI suggestion is a proposal until the appropriate person or process approves the exact action. That was the core of the original version of this guide, and it still holds. This expanded version answers the practical question behind it: how do you show someone the exact action before it happens, so that their approval means something?

A write is any action that changes something outside the conversation: editing a file, updating a record, sending a message, publishing a page, deleting an item, or spending money. A preview shows exactly what would change, which items, from what, to what, before anything is changed. The design that works best in mature tooling is a three-step loop:

  1. Plan: compute the exact set of changes without making them.
  2. Review: show that plan to someone with authority to approve it.
  3. Apply exactly the reviewed plan, and refuse to proceed if the world has changed in a way that makes the plan stale.

Then check what actually happened against what was approved.

This matters more for AI systems than for traditional software for three reasons. A model's description of what it is about to do may not match the call it actually emits. Many writes are hard or impossible to undo. And a person cannot meaningfully approve a change they have not seen. The rest of this guide explains the evidence for the plan/review/apply design, the specific ways previews fail, and what a useful preview should contain.

The three states that must stay separate

The original guide asked readers to separate a recommendation from an execution request and from a completed result. It helps to name four distinct states, because each one is evidence of something different:

StateWhat it meansWhat it does not mean
SuggestionThe model has described or proposed a changeAnyone has agreed to it
Approved planA person or authorized process has accepted a specific, fixed set of changesThe changes have happened
Executed actionThe system attempted the approved changesThey all succeeded, or reached the right place
Verified resultSomeone checked the outcome against the approved planNothing else changed by accident (unless that was checked too)

Fluent wording from an assistant ("I've updated the newsletter") can make a suggestion sound like a verified result. The workflow should make it impossible to confuse the two. A good test, carried over from the original guide: a later reviewer should be able to tell suggestion, approval, execution and verification apart without reconstructing them from scattered chat messages.

Why previews matter more when a model is involved

The model is not the executor. When a model "uses a tool," it produces a structured request, and some other piece of software decides whether to run it. The Model Context Protocol specification, which defines how many assistants connect to tools, says as of its 2025-11-25 revision: "For trust & safety and security, there SHOULD always be a human in the loop with the ability to deny tool invocations." It says applications should "Provide UI that makes clear which tools are being exposed to the AI model," "Insert clear visual indicators when tools are invoked," and "Present confirmation prompts to the user for operations, to ensure a human is in the loop" (MCP specification, Tools, 2025-11-25). The same page says clients "MUST consider tool annotations to be untrusted unless they come from trusted servers" (same source), which means even a tool's self-description ("this tool is read-only") is a claim, not a guarantee.

Content the model reads can steer it. OWASP's top-ranked LLM risk, prompt injection, includes indirect injection through websites and files the model processes. Among its mitigations is "Require human approval for high-risk actions," described as "Implement human-in-the-loop controls for privileged operations to prevent unauthorized actions" (OWASP LLM01:2025 Prompt Injection). OWASP's entry on excessive agency gives a concrete example of where that approval belongs: "an LLM-based app that creates and posts social media content on behalf of a user should include a user approval routine within the extension that implements the 'post' operation" (OWASP LLM06:2025 Excessive Agency).

Vendors say so about their own products. Anthropic's computer-use documentation, as checked on 18 November 2026, recommends "Asking a human to confirm decisions that might result in meaningful real-world consequences and any tasks requiring affirmative consent, such as accepting cookies, completing financial transactions, or agreeing to terms of service," and states that "In some circumstances, Claude follows commands found in content even when they conflict with your instructions" (Anthropic, Computer use tool).

Put together: the model may propose the wrong action, for reasons including injected content, and the protocol and security guidance both place a human decision between the proposal and its effect. That decision is only as good as what the human is shown.

What mature tools teach: plan, then apply the plan

Infrastructure tools have spent years on exactly this problem, because a mistaken write to production infrastructure is expensive. They are not AI products, and their designs do not transfer one-for-one. But their documentation describes the plan/apply split precisely, and that precision is what most AI workflows lack.

Terraform: a plan that is separate from doing

HashiCorp's Terraform documentation (checked 18 November 2026) says: "The plan command alone does not actually carry out the proposed changes. You can use this command to check whether the proposed changes match what you expected before you apply the changes or share your changes with your team for broader review" (Terraform CLI: plan).

Terraform offers two ways to apply, and the difference between them is the most important lesson in this guide.

  • Automatic plan mode. "When you run terraform apply without passing a saved plan file, Terraform automatically creates a new execution plan as if you had run terraform plan, prompts you to approve that plan, and performs the indicated operations" (Terraform CLI: apply). The plan you approve is computed at the moment you apply.
  • Saved plan mode. With terraform plan -out=FILE, the plan is written to disk. "When you pass a saved plan file to terraform apply, Terraform performs the operations in the saved plan without prompting you for confirmation." The docs say to "Use terraform show to inspect a saved plan file before applying it," and that "When using a saved plan, you cannot specify any additional planning modes or options," because "the plan file contains the final results of those decisions" (same source).

The saved-plan workflow guarantees that what runs is what was reviewed. The plan documentation also explains why that guarantee is needed. A plan run without -out is a "speculative plan," "a description of the effect of the plan but without any intent to actually apply it," and "other changes made to the target system in the meantime might cause the final effect of a configuration change to be different than what an earlier speculative plan indicated, so you should always re-check the final non-speculative plan before applying to make sure that it still matches your intent" (Terraform CLI: plan).

Terraform's docs also carry a warning for anyone tempted to skip the review entirely: if you use -auto-approve, "we recommend making sure that no one can change your infrastructure outside of your Terraform workflow. This minimizes the risk of unpredictable changes and configuration drift" (Terraform CLI: apply).

Two more documented details matter for AI workflows:

  • Saved plans can contain secrets: "If your plan includes any sort of sensitive data, even if obscured in Terraform's terminal output, it will be saved in cleartext in the plan file. You should therefore treat any saved plan files as potentially-sensitive artifacts" (Terraform CLI: plan). An AI preview that includes customer records is equally sensitive.
  • An approved plan can still fail partway: "Your infrastructure may be in an invalid state after a Terraform apply operation fails. Terraform does not automatically roll back a partially-completed apply" (Terraform CLI: apply). Approval is not a promise of success; it is a promise about intent.

Kubernetes: a dry run that goes through real checks

The Kubernetes API offers server-side dry runs. With ?dryRun=All, "Every stage runs as normal, except for the final storage stage where side effects are prevented." Admission controllers run, patches are merged, defaults are filled in and schema validation occurs; "The changes are not persisted to the underlying storage, but the final object which would have been persisted is still returned to the user, along with the normal status code" (Kubernetes API Concepts: Dry-run). If a non-dry-run request would trigger an admission controller with side effects, "the request will be failed rather than risk an unwanted side effect" (same source).

Kubernetes also requires the same permission for the dry run as for the real thing: "Authorization for dry-run and non-dry-run requests is identical. Thus, to make a dry-run request, you must be authorized to make the non-dry-run request" (same source). That is a useful property for previews, because it catches "you are not allowed to do this" before anyone approves it.

The command-line tool exposes the distinction between a shallow and a deep preview. kubectl apply --dry-run accepts "client" or "server": "If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource" (kubectl apply reference). And kubectl diff shows the difference "between the current online configuration, and the configuration as it would be if applied," with exit status 0 for no differences, 1 for differences, and greater than 1 for an error (kubectl diff reference).

Finally, Kubernetes warns about values that only exist at write time: "It is important not to rely upon the values of these fields set by a dry-run request, since these values will likely be different in dry-run mode from when the real request is made." Its examples include generated names, creation timestamps, the randomly generated UID, the resourceVersion, and "Any field set by a mutating admission controller" (Kubernetes API Concepts: Dry-run).

Ansible: when a "check" is only a simulation

Ansible's check mode is a cautionary example of what a preview might not cover. Its documentation says: "In check mode, Ansible runs without making any changes on remote systems. Modules that support check mode report the changes they would have made. Modules that do not support check mode report nothing and do nothing." It adds: "Check mode is just a simulation. It will not generate output for tasks that use conditionals based on registered variables (results of prior tasks)" (Ansible documentation: Validating tasks: check mode and diff mode). Its diff mode provides "before-and-after comparisons," and because "the --diff option can reveal sensitive information," a task can disable it (same source).

The lesson for AI tools: a preview that silently skips steps it cannot simulate looks complete and is not. A step that "reports nothing" in preview can still do something in the real run.

The ways previews go wrong

The tooling above documents several specific failure modes. Each has an AI-workflow equivalent.

1. Preview drift

If the system re-plans when you click Apply, the change that runs can differ from the one you reviewed. This is Terraform's speculative-plan warning applied to an assistant. A model asked to "apply the changes" may regenerate them, and a regenerated set of edits is a new proposal. The fix is to apply a stored, identified plan, and to show a fresh preview if anything had to be recomputed.

2. The target changed underneath the plan

Between review and apply, someone else may edit the same document or record. HTTP has a standard answer for this called a conditional request. RFC 9110 defines If-Match, which makes a request conditional on the target still having a matching entity tag, and says it "is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent accidental overwrites when multiple user agents might be acting in parallel on the same resource (i.e., to prevent the 'lost update' problem)" (RFC 9110, §13.1.1). Kubernetes does the same with resourceVersion: if "the resourceVersion the client provided is stale, the API server returns a 409 Conflict error response," and "Clients that need effective detection of lost updates should consider making their request conditional on the existing resourceVersion" (Kubernetes API Concepts).

For an AI workflow, the equivalent is to record a version or hash of each target when the preview is built, and to refuse to apply a change if the target's version is different at apply time. That converts "the plan went stale" from a silent error into a visible conflict.

3. A shallow preview that skips the real checks

A preview that only prints what the assistant intends to send (Kubernetes' "client" dry run) cannot tell you whether the destination will accept it, whether you have permission, or whether validation will fail. A deep preview runs everything except the final write. When the system you are writing to offers a server-side validation or dry-run mode, use it.

4. Generated values that will differ

IDs, timestamps, URLs and auto-generated names may not exist until the write happens, and Kubernetes explicitly says not to rely on dry-run values for them. A preview should label such values as "assigned at write time" rather than showing a placeholder that looks final.

5. Silent gaps

Ansible's modules that "report nothing and do nothing" in check mode illustrate a preview that omits effects. An AI tool's preview may likewise show file edits but not the notification it will send, or the cache it will purge. A preview should list every category of effect, and say explicitly when a category cannot be previewed.

6. Approval fatigue

This one is an editorial observation rather than a documented tool behavior. A reviewer shown hundreds of trivial confirmations stops reading them. MCP's guidance to present confirmation prompts is sound, but the prompts must be rare enough and informative enough to be read. Group low-risk changes into one reviewable plan, and reserve individual confirmations for irreversible or high-impact steps.

What a useful preview shows

This table is an editorial suggestion, drawn from the mechanisms above.

ShowWhy
Exact targets, by stable ID or full path, not just titlesTwo items can share a title; IDs prevent writing to the wrong one
Before and after for each changeReviewers judge meaning, not just "updated"
Counts by type (create, change, delete, send, publish)Catches "why are 400 items changing?" at a glance
What is not changing, when exclusions were requestedConfirms the exclusion actually worked
Every category of side effect, including notifications and publishingPrevents silent gaps
Values assigned at write time, labeled as suchPrevents trusting placeholder IDs or URLs
Irreversible steps, flaggedSends, publishes, payments and deletions need extra care
How to undo each change, or "cannot be undone"Sets expectations before approval
The version or hash of each target at preview timeLets the apply step detect a stale plan
A plan identifierLets the executed action and the receipt point back to the exact plan approved
Who is allowed to approvePrevents the assistant from inventing approval authority

The original guide's warning still applies to the last row: do not let the assistant invent approval authority or infer it from an unrelated conversation. Approval rules belong to the project, not to the model.

Scope changes require a new approval

The original guide gave an example: an editor approves a specific newsletter draft, and the assistant later adds a new announcement. That material change should return through review; the earlier approval should not cover a different message. The plan/apply model makes this mechanical. An approval attaches to a plan identifier. If the content changes, it is a different plan, and it needs its own approval.

The same applies to destination and audience. Approval to prepare a document is not approval to distribute it. A preview of a send should name the list or recipients, the count, and whether the action is reversible (it usually is not). Terraform's rule that a saved plan cannot be modified with additional options at apply time is a useful model: once approved, the plan is frozen (Terraform CLI: apply).

Executing the approved plan exactly once

Approval answers "should this happen?" It does not answer "did it happen once?" The apply step talks to real systems over real networks, and a write that times out leaves its outcome unknown. If the apply tool then retries naively, a single approved "send invoice" can become two sent invoices, each of which looks approved. Duplicates are not an edge case for agent tools: AWS warns that even with no error, a Lambda function "can receive the same event from Lambda multiple times because the queue itself is eventually consistent," and asks that "your function code gracefully handles duplicate events" (AWS Lambda Developer Guide, asynchronous error handling).

The established remedy is an idempotency key: a unique value the client sends with a write and reuses on every retry, so the server can recognize a repeat and return the first result instead of acting again. The IETF's working draft on the Idempotency-Key header (revision 09, 21 November 2026, still a draft) describes it as "a unique value generated by the client which the resource uses to recognize subsequent retries of the same request" (IETF draft-ietf-httpapi-idempotency-key-header-09). Stripe's API, a widely used implementation, says that with a key, "if a connection error occurs, you can safely repeat the request without risk of creating a second object or performing the update twice" (Stripe API reference, Idempotent requests).

Idempotency keys fit the plan/apply model unusually well. An editorial suggestion:

  • Derive one key per plan item from the plan identifier, for example plan-0418/item-23, and store it in the plan before approval. Every retry of that item reuses it. A retry is then visibly the same approved action, not a new one that would need fresh approval.
  • Let the server enforce "exactly what was approved." Both the IETF draft and Stripe reject a key reused with different content: the draft proposes a 422 response when a key is reused "with a different request payload," and Stripe's idempotency layer "compares incoming parameters to those of the original request and errors if they're not the same" (same sources). If something regenerated the content between approval and a retry, the destination refuses rather than quietly applying an unapproved version. That is a second line of defense against preview drift, enforced outside the model.
  • Treat "still in progress" as a wait, not a new attempt. The IETF draft proposes a 409 "if the request is retried, while the original request is still being processed." A new key at that moment would start a second operation.
  • Keep the key in the receipt. AWS notes that its caller-provided request identifiers make intent "readily auditable because the unique identifier is present in logs like AWS CloudTrail" (Featonby, AWS Builders' Library, "Making retries safe with idempotent APIs"). A key that links plan, approval and the destination's own log closes the loop.

Where the destination offers no keys, the apply tool should check whether an item already took effect before retrying it, and record an "unknown" outcome rather than "failed" when it cannot tell. Stripe's guidance for its own API states the rule: when the outcome is unknown, "reconcile the request before starting another operation" (Stripe, Error handling).

Approvals should expire, too. Idempotency keys are honored only for a window: Stripe's v1 API keeps them "for at least 24 hours" and "reusing a key after it's removed can execute a new request" (Stripe, Advanced error handling). An approved plan has a similar shelf life, because the world it describes keeps changing, which is the point of Terraform's warning about speculative plans. An editorial rule: give each approval an expiry, and when an apply starts after it, re-preview against current state and ask again.

Tool labels are hints, not guarantees

It is tempting to route approvals by what a tool says about itself: no confirmation for "read-only" tools, a confirmation for "destructive" ones. The Model Context Protocol defines such labels. Its schema (revision 2025-11-25) lists readOnlyHint ("If true, the tool does not modify its environment"), destructiveHint ("If true, the tool may perform destructive updates to its environment. If false, the tool performs only additive updates") and idempotentHint ("If true, calling the tool repeatedly with the same arguments will have no additional effect on its environment") (MCP Schema Reference, 2025-11-25). Two documented defaults are conservative: destructiveHint defaults to true and idempotentHint to false (same source).

The same schema is explicit about their status: "all properties in ToolAnnotations are hints. They are not guaranteed to provide a faithful description of tool behavior," and "Clients should never make tool use decisions based on ToolAnnotations received from untrusted servers" (same source). Used well, the labels help decide which actions need individual confirmation, for tools whose servers you control or have vetted. They should never be the only thing standing between a model's proposal and an irreversible write. An "additive" tool that sends email is still a send.

Worked example: a wiki-wide spelling fix (hypothetical)

This example is fictional. It describes no real organization or product.

A volunteer asks a club's wiki assistant to "fix the spelling of Varroa across the wiki." The assistant has a tool that can propose edits and a separate, permissioned tool that applies an approved plan.

Step 1: plan. The assistant searches and proposes a plan with identifier plan-0417. The preview says: 41 pages, 63 replacements, 0 deletions, 0 notifications. Each row shows the page ID, the title, the sentence before, and the sentence after. Each page's current revision number is recorded.

Step 2: review. The reviewer scans the list and notices that page 17's change would alter a misspelling inside the quoted title of a cited paper. Correcting a quoted title would misrepresent the source. The reviewer excludes that replacement. The assistant regenerates the plan as plan-0418: 40 pages, 62 replacements. The preview now also lists the one excluded replacement under "not changing," so the reviewer can confirm the exclusion took.

Step 3: apply exactly plan-0418. The apply tool processes the stored plan, not a fresh search. For each page it checks that the current revision matches the one recorded at preview time. Page 9 has been edited by another volunteer in the meantime; its revision differs, so the tool skips it and reports a conflict instead of overwriting the other volunteer's work.

Step 4: verify. The receipt reads: 39 pages updated, 61 replacements applied, 1 page skipped for conflict (page 9), 0 failures. A reviewer opens three updated pages to spot-check, and re-previews page 9 against its new revision before deciding what to do.

Compare this with the weak design, in which the assistant searches and edits in one step and reports "Done! Fixed 63 instances." The weak design would have corrupted a citation and silently overwritten a colleague's edit, and its report would have been false in two places.

What to record

The original guide asked for a receipt alongside the approved version. A minimal record, as an editorial suggestion, contains:

  1. The plan identifier and the full plan (or a stored copy of it, treated as sensitive if it contains private data, as Terraform warns about its own plan files).
  2. Who approved it, when, and under which rule they had authority.
  3. The version or hash of each target at preview time.
  4. The execution log: each item attempted, its outcome (succeeded, failed, skipped for conflict, unknown), and any IDs assigned at write time.
  5. The verification step: what was checked, by whom, and what was found.

With that record, "did the assistant do what we approved?" becomes a question with a checkable answer.

Where previews are not enough

Previews and approvals reduce risk. They do not remove it.

  • A clean preview does not guarantee success. Terraform's documentation says plainly that a failed apply may leave infrastructure "in an invalid state" and is not rolled back automatically. The post-write check is still required.
  • A preview can only show what the system can compute. Ansible's documentation calls its check mode "just a simulation." Some effects, such as what a recipient does with an email, cannot be previewed at all.
  • A human approver can be wrong or rushed. Approval moves responsibility to a person; it does not make that person infallible.
  • A preview generated by the same model that proposed the change can misdescribe it. The preview should be produced by deterministic code from the actual planned operations, not by the model summarizing what it thinks it will do. This is an editorial recommendation based on the boundary principle that authorization belongs in code (OWASP LLM06:2025).

How this applies to everyday AI tools

Many readers will not build tooling; they will use assistants that edit documents, spreadsheets or code. The same principles become questions to ask of a product (editorial suggestions):

  • Does it show the actual change (a diff, a list of rows, a draft) before applying it, or only a summary in prose?
  • When I approve, does it apply what I saw, or does it regenerate?
  • Does it tell me if the document changed since the preview?
  • Does it separate drafting from sending or publishing, with a distinct confirmation?
  • After applying, does it show what actually changed, including anything that failed?
  • Can I see a history of what it proposed, what I approved, and what it did?

If a tool cannot answer these, treat its writes as unreviewed and keep them away from anything that matters.

Limits of this guide

  • Terraform, Kubernetes and Ansible are infrastructure tools. They are cited here because their plan and dry-run semantics are precisely documented, not because AI products behave the same way. The pattern transfers; specific guarantees do not.
  • Documentation details (MCP revision 2025-11-25, Terraform and Kubernetes command behavior, Anthropic's computer-use guidance) are as checked on 18 November 2026; the idempotency-key, Stripe, AWS and MCP schema details are as checked on 26 November 2026. All may change.
  • The approval-fatigue point and the preview-contents table are editorial suggestions, not results from a cited study.

Reader takeaway

Before an AI system changes anything, it should show exactly what will change, a person with authority should approve that specific plan, and the system should then apply that plan and nothing else, refusing if the target has changed underneath it. After it runs, compare the outcome with the plan. Suggestion, approval, execution and verification are four different facts, and a trustworthy workflow keeps them visibly separate.

Related reading on Apiary

  • guide-build-a-dry-run-checklist-for-a-document-automation
  • guide-use-a-before-and-after-diff-to-review-ai-edits
  • guide-use-a-run-receipt-to-prove-an-article-was-published
  • what-is-a-trust-boundary-in-an-ai-system

Sources

Last checked: 2026-11-26 (sources 1-11 first read 18 November 2026; sources 12-18 read 26 November 2026).

  1. HashiCorp. "Terraform CLI: terraform plan." https://developer.hashicorp.com/terraform/cli/commands/plan - plan does not carry out changes; speculative plans; re-check before applying; plan files store sensitive data in cleartext.
  2. HashiCorp. "Terraform CLI: terraform apply." https://developer.hashicorp.com/terraform/cli/commands/apply - automatic vs saved plan mode; -auto-approve warning; no automatic rollback of partial apply.
  3. Kubernetes. "Kubernetes API Concepts" (Dry-run, Generated values, Dry-run authorization, Updates to existing resources). https://kubernetes.io/docs/reference/using-api/api-concepts/ - server-side dry run semantics; generated values differ; identical authorization; 409 Conflict on stale resourceVersion.
  4. Kubernetes. "kubectl apply" reference. https://kubernetes.io/docs/reference/kubectl/generated/kubectl_apply/ - client vs server dry-run.
  5. Kubernetes. "kubectl diff" reference. https://kubernetes.io/docs/reference/kubectl/generated/kubectl_diff/ - live vs would-be-applied diff; exit statuses.
  6. Ansible. "Validating tasks: check mode and diff mode." https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_checkmode.html - check mode is a simulation; unsupported modules report nothing; diff mode can reveal sensitive information.
  7. Model Context Protocol. "Specification 2025-11-25: Tools." https://modelcontextprotocol.io/specification/2025-11-25/server/tools - human in the loop with ability to deny tool invocations; confirmation prompts; tool annotations untrusted.
  8. OWASP GenAI Security Project. "LLM01:2025 Prompt Injection." https://genai.owasp.org/llmrisk/llm01-prompt-injection/ - require human approval for high-risk actions.
  9. OWASP GenAI Security Project. "LLM06:2025 Excessive Agency." https://genai.owasp.org/llmrisk/llm062025-excessive-agency/ - approval routine inside the "post" operation; complete mediation.
  10. Anthropic. "Computer use tool" documentation. https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool - confirm decisions with real-world consequences; model sometimes follows instructions found in content.
  11. Fielding, R., Nottingham, M., Reschke, J. (eds.). "RFC 9110: HTTP Semantics." June 2022. https://www.rfc-editor.org/rfc/rfc9110 - If-Match conditional requests and the lost-update problem (§13.1.1).
  12. Jena, J., Dalal, S., Tishkin, D. "The Idempotency-Key HTTP Header Field." IETF Internet-Draft draft-ietf-httpapi-idempotency-key-header-09, 21 November 2026 (work in progress). https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-idempotency-key-header - key definition, 422 on payload mismatch, 409 while in progress.
  13. Stripe. "Idempotent requests," API reference. https://docs.stripe.com/api/idempotent_requests - safe repeats, parameter comparison.
  14. Stripe. "Advanced error handling." https://docs.stripe.com/error-low-level - 24-hour key retention, reuse after removal.
  15. Stripe. "Error handling." https://docs.stripe.com/error-handling - reconcile unknown outcomes before another operation.
  16. Featonby, M. "Making retries safe with idempotent APIs." Amazon Builders' Library. https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/ - request identifiers make intent auditable.
  17. Amazon Web Services. "How Lambda handles errors and retries with asynchronous invocation." https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-error-handling.html - duplicate events.
  18. Model Context Protocol. "Schema Reference, 2025-11-25." https://modelcontextprotocol.io/specification/2025-11-25/schema - readOnlyHint, destructiveHint, idempotentHint; annotations are hints.

Note on a dropped source: the Grok draft cited OpenAI's June 2023 post "Function calling and other API updates" for a recommendation to add user confirmation steps. That page returned HTTP 403 when fetched on 18 November 2026, so it could not be re-read and is not cited here.

Frequently asked
What is Separate an AI Suggestion from an Approved Action: Preview the Exact Write First about?
An AI suggestion is a proposal until the appropriate person or process approves the exact action. That was the core of the original version of this guide, and…
What should you know about the three states that must stay separate?
The original guide asked readers to separate a recommendation from an execution request and from a completed result. It helps to name four distinct states, because each one is evidence of something different:
What should you know about why previews matter more when a model is involved?
The model is not the executor. When a model "uses a tool," it produces a structured request, and some other piece of software decides whether to run it. The Model Context Protocol specification, which defines how many assistants connect to tools, says as of its 2025-11-25 revision: "For trust & safety and security,…
What should you know about what mature tools teach: plan, then apply the plan?
Infrastructure tools have spent years on exactly this problem, because a mistaken write to production infrastructure is expensive. They are not AI products, and their designs do not transfer one-for-one. But their documentation describes the plan/apply split precisely, and that precision is what most AI workflows lack.
What should you know about terraform: a plan that is separate from doing?
HashiCorp's Terraform documentation (checked 18 November 2026) says: "The plan command alone does not actually carry out the proposed changes. You can use this command to check whether the proposed changes match what you expected before you apply the changes or share your changes with your team for broader review" (…
References & sources
  1. Apiary Reading Room — Open, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room