Safety rules
When an agent connects, the server hands it a page of instructions before its first call. Seven of those lines are rules. They are written for the agent; here is what each one means for you.
-
Never approve a plan the user would not; when in doubt, ask. The agent may approve only a low-risk plan (creates and in-place updates, nothing replaced, nothing holding data deleted, no IAM or network-exposure change, no unexplained warning), and only if you have not asked to be consulted. Everything else it brings to you. Approval.
-
Destroy only on the user’s explicit words. A destroy plan is never approved by the agent. It presents the plan and asks “Ready to destroy these resources? This cannot be undone.” A removal of one resource is an edit to the files; a destroy tears down everything in the workspace. The agent asks which you mean when it is unclear.
-
Never answer a turf action’s question for the user, and never weaken a trigger to get past it. When a step of the apply asks for your decision, the agent asks you, quotes your words, and reports a “no” as a failure. It does not remove the trigger, loosen its condition or change
on_failureto make the apply go through. Turf actions. -
Never force-unlock without the user’s explicit approval. A locked workspace usually means another run holds it, possibly one of yours still in flight. The agent tells you and asks before it breaks a lock. Workspaces and backends.
-
Never batch dependent tool calls: one call, its result, then the next.
up, thenplan, thenapply, each after reading the result before it. Two calls on one run at once would race, and the second would be refused as “being followed by another call”. -
Never put a secret in the configuration. Not in a
.tffile, a.tfvarsfile or an overlay. Secrets reach providers through the engine’s environment, or as variables the server is told to send by name, and reach the backend through the server’s; a variable value goes toopenor a start verb, never into a committed file. Where credentials are read. -
The files are the user’s: change them only when asked, and say what you changed. The agent edits a
.tfor*.turf.hclfile only on your request, and loads the authoring skill before the first edit. Setting a variable’s value is deployment, not an edit. It never rewrites a configuration to stage an apply or hard-codes a value to skip a round.
Three more the agent lives by
Section titled “Three more the agent lives by”Nothing runs off-plan. apply is the approval of one plan, named by its digest. If the files change
after the plan, the run ends stale and nothing is applied. There is no -target, and nothing is
retried: a failed change settles, the round finishes what is independent of it, and the agent fixes the
cause and runs up again.
A plan goes to policy first. Before a non-trivial plan, the agent hands the plan document to your policy tools, if you have them. A deny means do not apply.
Watching is the user’s choice. The agent turns drift detection on, or off, only when you ask or agree, the sweep above all: it reads every managed object unattended, with the engine’s credentials. A drift notice changes nothing by itself, and the plan that answers it is approved as any plan is. Approval.
The full text the server hands the agent is in Server instructions.
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