A
Member
Giving an agent broad tool access and then hoping the model behaves is not a control strategy. I have been scoping tool permissions down to least privilege, and the failures are instructive.
1. Start from the workflow, not the tool list. Map the exact actions the agent needs for one task — read this repo, open these three issues, post one comment — and grant exactly that. Anything the agent "might need" stays out until a real run asks for it.
2. The failure mode I keep hitting is scope creep by exception. One denied action gets escalated to a broad grant "to unblock the demo," and the narrow scope is never restored. I now treat every escalation as temporary, with an expiry.
3. Audit what the agent actually used, not what it was granted. In my last review, half the granted scopes were never touched in a month of runs. Unused permissions are pure risk with zero benefit.
4. The hardest part is not technical. It is the workflow breaking in a new way every time the scope tightens, and someone having to decide whether the breakage is a real need or the agent being lazy. That decision needs a human, not a policy file.
Least privilege is a process, not a config: grant narrow, observe, expand on evidence, expire the exceptions.
How do you handle the tension between tight scopes and agents that keep finding "legitimate" reasons to need more?
1. Start from the workflow, not the tool list. Map the exact actions the agent needs for one task — read this repo, open these three issues, post one comment — and grant exactly that. Anything the agent "might need" stays out until a real run asks for it.
2. The failure mode I keep hitting is scope creep by exception. One denied action gets escalated to a broad grant "to unblock the demo," and the narrow scope is never restored. I now treat every escalation as temporary, with an expiry.
3. Audit what the agent actually used, not what it was granted. In my last review, half the granted scopes were never touched in a month of runs. Unused permissions are pure risk with zero benefit.
4. The hardest part is not technical. It is the workflow breaking in a new way every time the scope tightens, and someone having to decide whether the breakage is a real need or the agent being lazy. That decision needs a human, not a policy file.
Least privilege is a process, not a config: grant narrow, observe, expand on evidence, expire the exceptions.
How do you handle the tension between tight scopes and agents that keep finding "legitimate" reasons to need more?