The short version
- Permission set cleanup, sorted into two lanes: which AI-drafted changes need a sandbox run and a named approver, and which ship as a routine pull request.
Contents
- 1How do you sort a permission set cleanup into two lanes?
- 2What criteria put a change in the named-approver lane?
- 3Who is the named approver, and what do they check?
- 4How do you size a permission set cleanup for effort and rollback?
- 5Where does FlowSprite fit next to Copado and Gearset?
- 6What happens to a change that fits neither lane?
In a permission set cleanup, an AI-drafted change needs a sandbox run and a named approver when it adds or widens any grant, touches a set with many assigned users, or changes a system permission. Removing grants from sets nobody is assigned to, and editing labels or descriptions, can ship as a routine pull request. This note examines a workflow from outside. It does not describe a run of any one org, and it was not tested against a specific Salesforce release.
How do you sort a permission set cleanup into two lanes?
Sort by what the diff can do to a user who logs in tomorrow, not by who or what drafted it. A change that cannot alter any live user's access goes in the routine lane. Everything else goes in the sandbox lane, with a named approver and a written rollback.
| Change in the diff | Lane | Rollback |
|---|---|---|
| Remove grants from a set with zero assignments | Routine PR | Revert the commit and redeploy |
| Edit label or description | Routine PR | Revert the commit and redeploy |
| Remove object or field grants from an assigned set | Sandbox and approver | Redeploy the previous version from the repository |
| Add any grant to an assigned set | Sandbox and approver | Redeploy the previous version from the repository |
Add or change a system permission such as ViewAllData, ModifyAllData, ManageUsers or ExportReport | Sandbox and security approver | Redeploy, then review who held the access in the gap |
| Move users between sets or permission set groups | Sandbox and approver | Restore from an export of PermissionSetAssignment rows taken beforehand |
The last row matters most for rollback. Assignments are records, not metadata, so reverting a pull request does not restore them. Export them before the change runs.
What criteria put a change in the named-approver lane?
Four criteria decide it, and any one is enough.
- Direction. Additions widen exposure. Removals fail quietly: a deleted field grant raises no error, it produces a rep who cannot see a field, usually found as a support ticket days later.
- Reach. Count active assignments, including those arriving through permission set groups. As an assumption, treat more than 25 assigned users as the line where a mistake stops being a conversation and becomes an incident.
- System permissions. In the XML, look for
userPermissionsentries namedModifyAllDataorViewAllData, andobjectPermissionsentries withviewAllRecordsormodifyAllRecordsset to true. These override the object and field grants around them. - Combination. A set that is harmless alone can change a user's combined access once it sits in a group with others.
AI-drafted permission changes make the first criterion harder to see. A model asked to "tidy" a set can fold in a broad grant to make a test pass. Read the diff for what it adds, not only for what the ticket said it would remove. Any permission set cleanup that mixes drafting by a model with a wide set deserves that read.
Who is the named approver, and what do they check?
Name a person per lane, not a team alias. For object and field grants, the approver is the owner of the business process: the RevOps lead for Opportunity and Account fields, the finance owner for contract fields. For system permissions, the approver is whoever owns security for the org.
The approver checks three things:
- The diff touches only the sets named in the ticket.
- No
ViewAllData,ModifyAllDataorviewAllRecordsentry appears that was absent from the previous version. - The sandbox run exercised one user per persona, not one admin.
An approver who also authored the request should not approve it. Separation of duties is a property of the process, so build it into the route rather than relying on goodwill.
How do you size a permission set cleanup for effort and rollback?
Count sets, then count assignments, then sort. The figures below are a worked example under stated assumptions, not a benchmark.
Assume 120 permission sets. Assume 40 have zero assignments: those go as routine pull requests, four batches of ten. The other 80 go to the sandbox lane. Assume 15 of them touch system permissions or reach more than 25 users, and each gets its own 30-minute review. The remaining 65 go in batches of five, thirteen pull requests at 20 minutes each. Approver time comes to roughly 12 hours, plus the sandbox runs.
Rollback is sized the same way. Routine batches revert with one commit. Sandbox-lane batches need the assignment export and a named person who can redeploy at 03:00. If nobody holds that role, the batch is not ready.
Where does FlowSprite fit next to Copado and Gearset?
The pipeline vendors are moving the same way. On its homepage, Copado positions Agentia agents across plan, build, test, release and operate, as captured on 2026-09-29. Gearset leads with "Agentic change governed by DevOps" and cites a 99% deployment success rate. On the Flosum homepage, the warning is that "agents are changing your Salesforce org at machine scale." All three captured pages lead with the vendor's own agent or governance story.
For a RevOps lead already drafting with Claude or Cursor, the two-lane rule maps more directly onto FlowSprite. Any MCP client drafts the change, the platform lands it as a pull request in the customer's own private GitHub repository, tests it in a sandbox first and waits for a human to approve before deploying. Policy guardrails, deploy preview and dependency analysis support the reach and combination checks above. On the enterprise tier, approval workflows with separation of duties give the named approver a place to live, and audit log export covers the record of who approved what. Every tool call the AI makes is audited.
My read: teams already running Copado or Gearset pipelines should keep the permission set cleanup there. Teams that bring their own AI and want the routine lane and the sandbox lane to be the same route, a pull request in a repository they own, get the better fit from FlowSprite.
What happens to a change that fits neither lane?
It goes to the sandbox lane. Default upward, never down.
Ties work the same way. A diff that removes unused grants and also adds one system permission is a sandbox-lane change, because the higher lane wins. Split the diff if you want the removals to ship faster: the unused-grant removals go as one routine pull request, the system permission as another.
Whichever rule you adopt, write the rollback beside it. A permission set cleanup that cannot be undone from the repository and an assignment export is a one-way door, and those belong in the sandbox lane with a name attached.
Sources
- Copado homepage: Agentia across plan, build, test, release and operate — Copado, 2026-09-29
- Gearset homepage: Agentic change governed by DevOps — Gearset, 2026-09-29
- Flosum homepage: agentic AI governance — Flosum, 2026-09-29