How to stage an enterprise agent rollout by operation
Stage the agent by enabling one method at a time, reads before writes. Report enabled methods over scoped methods, and read the log before the next write.
Key takeaways
- -A user-percentage cohort doesn't cap a method that's already on the allowlist. The model can call anything tooling.json allows, regardless of cohort size.
- -Count the rollout as enabled methods over scoped methods. Reads first, then one write, then read the log before adding the next.
- -Approval on Slack or Telegram starts on Business and Enterprise. Free and Pro can only allow or deny, with no hold in between.
- -Removing a method from tooling.json is the rollback. You don't need a model redeploy to stop a call.
The release plan says the new agent goes to 10 percent of employees on Monday. The allowlist already contains every method the prompt might call, including the one that closes a ticket and the one that issues a credit. The 10 percent cohort hits both on the first morning. The other 90 percent are only safe because they never opened the chat. The dangerous surface was the operation list, and that was already at 100 percent.
This post shows how to stage that surface by operation instead: which methods get enabled, in what order, and when a write is finally allowed to leave approval.
Percentage of users is the wrong dial
A user-percentage rollout assumes the code path is the same for everyone and the risk spreads evenly. An agent doesn’t work that way. Two people in the same cohort can trigger completely different methods, because the model picks from whatever tooling.json allows. If refunds are on the list, the first person who asks for one sends it. Cohort size never caps that.
Swytchcode’s allowlist is per workspace, not a canary flag on a user ID. Connected end users are really just a billing meter: one person counts once per workspace, however many providers they connect. That meter doesn’t split traffic 10 percent to a new prompt and 90 percent to an old one. If you need a user cohort, that switch lives in your own app. The operation list is what you roll here.
Count the rollout as a share of methods instead. Twenty methods scoped, four enabled, is 20 percent of the surface, and that number is visible right there in git. Put both numbers in the pull request.
A prompt line that says “do not call refunds” is not a stage. If the method ID still sits in tooling.json, the model can call it anyway. Remove the ID entirely until the stage that’s meant to run it. The staff cohort never got a say in that.
Order the list by what a bad call costs
Sort the catalog you actually downloaded, not the vendor’s full marketing list. swy list methods is the local list once swy get has run. Enable reads that only fetch a record the user could already see for themselves. Leave creates, updates, deletes, and anything that moves money off the list for now.
Once a read has stayed quiet in the call log, add one write, and put approval on it. Approval on Slack or Telegram starts on Business and Enterprise; if nobody answers within 48 hours, the call simply doesn’t run, and a late approval never sends it after the fact. Free and Pro are allow or deny only, so on those plans the staged write is strictly on or off. Don’t pretend a hold exists where it doesn’t.
A week later, read swy audit stats on the machine that ran the calls, plus the hosted log if you turned storage on (retention is 7 days on Free, 30 on Pro, 90 on Business, and storage stays off until you enable it). If the write’s arguments match what you expected, narrow the approval rule. If they don’t, remove the method outright. Removal is the rollback, and it needs no second deploy of the model to stop the call.
What a stage looks like in the repo
Each stage is a pull request that changes tooling.json and .swytchcode/integrations/policies.json together. The policy file can block, hold, modify arguments, or redact a response, and block always wins over approval: a blocked call exits 6 and never sends, while an approval wait exits 7.
swy policy validate
swy exec <canonical_id from swy list methods> --dry-runThe ID is copied straight from swy list methods. A dry run never sends anything and never counts as a live command. Policy as code is the review of that diff.
Don’t stage by editing the prompt alone. The prompt can always ask for a method that’s already enabled. The allowlist is the gate, and a prompt-only rollout sitting on top of a full allowlist is just the 10 percent cohort problem again, dressed up differently.
How you know a stage is done
Pick a signal before you enable the next method. A useful one is fairly boring: the count of calls for that method, the share that were blocked, and whether any argument surprised you. “The demo looked good” is not a signal.
Stop the rollout the moment a stage shows calls you didn’t intend. Disable the method, ship that as the next pull request, and read the log before you even discuss the prompt. The model will keep asking. The runtime should keep refusing.
Move one method per stage. Validate the policy file, dry-run the new ID, and read the log before you enable the next write.
Related reading
- API governance tools for AI agents. How the allowlist and the policy file split the decision.
- API observability for AI agents. What to look at between stages.
- A security checklist before company data. The questions to settle before the first write.
- Best API observability tools for agent traffic. When the hosted log is the wrong tool for the question.
FAQ
Can I send 10 percent of users to the new agent from Swytchcode?
The allowlist doesn’t split users into a percentage. It enables methods for the whole workspace. If you need a cohort, build that in the app that shows the chat, and keep the dangerous methods off the list until you actually mean to run them for whoever can open the agent.
What is the rollback if a write misbehaves?
Remove the method from tooling.json and merge that change. The model can still ask for it all it wants; the call simply doesn’t run. You never have to wait on a model redeploy.
Does approval work on every plan?
Approval on Slack or Telegram starts on Business and Enterprise. Free and Pro can only allow or deny, so a staged write on either of those plans is simply present or absent, never held for a person to review.
Should every method in the vendor catalog be enabled before launch?
No. Enable only the methods you have a policy test for, and leave the rest of the vendor catalog downloaded but unused. swy get downloads a bundle; swy add is what actually turns a method on.
Use Swytchcode so this doesn't happen to you
Use Swytchcode and a staged rollout won't quietly expose a write nobody approved. The allowlist gates every method for the whole workspace, so a 10 percent user cohort can never reach a call you haven't enabled yet.
Swytchcode is an execution kernel that sits between your AI agents and the APIs they call. It resolves the right method, injects auth, checks policy, retries safely with idempotency, and logs every call locally.
Start with the MCP quickstart, or browse the docs for the full reference. Free is 100 live commands a month forever; see pricing for Pro and Business.
More content
How to Stop an AI Agent From Booking the Same Meeting Twice
A scheduling agent that checks availability and then books the slot has a gap between those two steps — and a retry can fall straight into it. Here's how Swytchcode closes that gap.
How to Stop an AI Agent From Creating Duplicate Records
A retried "create" call doesn't update an existing contact, ticket, or row — it makes a second one. Here's why that happens across CRMs, databases, and ticketing tools, and how Swytchcode prevents it.
How to Stop an AI Agent From Sending the Same Email Twice
Most email APIs have no idempotency key to catch a repeat send, which makes a duplicate email a harder problem than a duplicate charge. Here's how Swytchcode handles the gap.
