Skip to content

Approval

Every round has an approval point, and apply with the plan’s digest is the approval, of that plan and no other. Nothing runs off-plan. The question is who says yes, and Turf™ answers it with a rule the server hands every agent.

The agent approves a low-risk plan itself. Low-risk means all of: creates and in-place updates only; no replace; no delete of anything holding data or state; no IAM or network-exposure change; no warning the agent cannot explain; and you have not asked to be consulted. The last plan of the first run, a single create, is the shape of it. The agent still tells you what it approved.

Everything else comes to you. The agent presents the plan (the counts, each address with its before and after, every action the round will run, what is deferred) and asks: “Ready to apply these changes?” It waits for an explicit yes. A “no” is apply with decline: nothing is applied, the run ends declined, and the workspace is free.

A destroy always comes to you. The agent never approves a destroy plan. It asks: “Ready to destroy these resources? This cannot be undone.” In a destroy, a failing turf action is only a warning and the teardown goes on, so your yes at this point is the guard.

A delete of something that holds data (a database, a bucket, a volume, a cluster) is your call in any round. The agent asks before removing its block or running destroy, and offers a backup first, or to stop managing the object and leave it running (a removed block with destroy = false).

The CLI’s --yes approves every round without asking. It is for scripted runs whose plans you already trust; the turf-examples recordings never use it for a plan a viewer should read.

Every round is its own decision. Approving round 1 says nothing about round 2.

A plan that answers a drift notice is approved as any plan is. The rules do not change because the plan came from drift. The run is an ordinary up: nothing marks it, and its plan says what would change.

  • An in-place update that puts a setting back to what the files say is low-risk. The agent may approve it, and tells you.
  • A replace, a delete, or a create of something that held data comes to you. So does a contended path, where another up will not hold.
  • Keeping the change means editing your files, so the agent asks first.

Turning detection on or off is your choice. The sweep reads every managed object, unattended, against the provider’s API with the engine’s credentials, and no approval point stands in front of a read. The agent calls drift, or passes drift to an up, only when you ask or agree. Both belong to the full tier: a server at the read, plan or apply tier cannot change what the engine does unattended.

Detection itself changes nothing. An observation never writes state, and nothing is applied until a plan is approved.

rounds[].approval in every result says how each round’s plan was applied: asked (someone approved it), unneeded (nothing to consent to) or planfile (applied from a sealed plan). The console keeps each round’s approver and the plan’s digest with the round history, so you can see who approved what after the run’s own record has expired. The approval is of a digest, so a plan that changed cannot be applied with an old yes: if the configuration changes between plan and apply, the run ends stale and nothing is applied.

A policy check on the plan. The plan is the OpenTofu® json-format plan, exactly as tofu show -json prints it, with sensitive values redacted. The agent reads it with show and hands it to your policy tool (OPA or conftest, Checkov) as input.tfplan. A deny means do not apply. The Scalr example in turf-examples runs an OPA policy group this way. Policy checks on a plan.

A check on the providers before the first plan. init reports every provider the lock file records, with its version, its hash and its package directory. A vulnerability scanner or a policy tool checks those against a CVE database before anything runs; the guardrails example in turf-examples does exactly that. The agent’s skill tells it to scan providers[] if it has a scanner. An unwanted provider version is caught before the first up, not after.

The plan itself. The agent calls out every replace and delete, above all of anything that holds data (a replace deletes the old object); IAM and network-exposure changes; every action the round runs; deferrals; imports that replace an object; and any warning it cannot explain. It never shows a sensitive value, only that one changes.

plan({ convergence_id })
→ outcome: awaiting_approval, plan: { uri, digest, add, change, destroy, replace, … }, console_url
apply({ convergence_id, plan_digest }) # the approval
apply({ convergence_id, decline: true, reason }) # the refusal

A digest approves only the plan it names. If the run has moved on to another plan, nothing is applied and the result says which plan it holds. The agent never resends an old digest; it reads the new plan and decides again.

Turf™ is a trademark of Turf LLC. Terraform® is a trademark of HashiCorp. Ansible® is a trademark of Red Hat, LLC, registered in the United States and other countries. Helm®, Kubernetes®, Prometheus® and OpenTelemetry® are registered trademarks, and Jaeger™ is a trademark, of the Linux Foundation. OpenTofu® and Model Context Protocol® are registered trademarks of LF Projects, LLC. All other trademarks are the property of their respective owners. Turf is not affiliated with, endorsed by, or sponsored by HashiCorp, IBM, Red Hat, the Linux Foundation, LF Projects or the OpenTofu project.

© 2026 Turf LLC. Free for individuals, education and small businesses within the Community limits, under the Turf Community Edition License 1.0. Government and larger organizations need a commerciallicense.turf.build · Discord ·GitHub