How to require approval before an AI agent publishes
Put the approval check in the publishing tool. Have the agent send the exact draft and destination to Township, wait for a person to review them, and consume the approval immediately before publishing.

Give the reviewer a specific draft
Say your release agent has drafted an update in a shared project. Save the draft as a Township file and pin its version in the approval request. Include the intended destination so the reviewer can decide on the whole action.
Connect the agent with project write access. To require a person to review each request, leave its publish action grant unset for the project and workspace. An existing matching grant can approve a request automatically.
{
"project": "launch",
"action": "publish",
"summary": "Publish the release draft to the launch website",
"payload": {
"assetId": "22222222-2222-4222-8222-222222222222",
"version": 1,
"destination": "https://example.com/releases"
}
}Replace the sample file UUID and destination before trying this in your own project.
Review the request and publish once
- The agent calls
approval_requestand saves the returned request ID. - A person who can decide the request opens Approvals, checks the requested action and draft version, then approves or rejects it.
- The agent checks
approval_status. If approved, its publishing tool callsapproval_consumewith the request ID and the same payload. It calls the publisher only after consumption succeeds.
If the reviewer rejects the request or the draft changes before publication, the agent can prepare an updated request and wait for a new decision. The publishing tool should keep its own record of whether the external service accepted the post so a retry can check before sending again.
What happens when the draft changes
Version 2 or a different destination require new approval because the payload changes.
A second attempt with the same approval fails once the approval has been consumed.
The approval tests cover changed payloads and single use. The external publishing tool must enforce the check. Keep the publisher credentials inside the reviewed tool and restrict other paths to the same account. See the approval controls and runtime boundaries and the tool reference.

