A cleanup agent deleted about 200 workloads in 90 seconds after an empty filter caused its selector to match everything, disrupting work for about 20 engineers. Malhotra argues that a token’s fixed yes-or-no permissions give agents either too little access or too much. He frames a budget around how much an agent can do, how quickly, what it can undo, and who notices.
Give the Agent a Budget, Not a Token
Speaker
Sachin Malhotra, an engineer on Anthropic’s CI team, explains how to bound agents’ production access using examples from CI and feature flag rollouts.
Malhotra distinguishes actions that fail loudly from those that fail quietly. Reenabling a quarantined test may turn CI red if it was the wrong call, while skipping a test can let a production bug pass unnoticed. He recommends letting agents take visible, recoverable actions while keeping quiet, high-impact actions behind human review and an audit trail.
Rate limits give agents autonomy within a ceiling that refills, with smaller limits for shared resources. After the deletion incident, an admission webhook capped deletes by resource kind and namespace; an agent’s bypass request instead tells it to ask a human. Tripwires track aggregate behavior, such as investigation threads launched per hour, so teams can spot unusual activity and often improve the agent’s guidance with a short instruction.
The undo test asks whether an agent can reverse its own action and whether the impact of a mistake is acceptable; if either answer is no, another person must hold the second key. For feature flags, the agent can fully control canary rollouts but can only propose production promotion. Malhotra says policy needs both written guidance and infrastructure enforcement, with a proxy stamping each action with an identity the agent cannot change.
Takeaways
- Give agents actions whose mistakes are visible and easy to correct; keep quietly risky actions behind human approval.
- Apply refillable rate limits to every write, sizing them to the resource and its blast radius.
- Monitor aggregate behavior with tripwires, then use what they reveal to improve agent guidance.
- Ask whether an agent can undo an action and whether its potential impact is acceptable before granting autonomy.
- Have infrastructure assign and stamp agent identity so agents cannot reset limits by changing their claimed identity.
Mentioned in this talk
Search inside this talk
What was claimed 7
- built
“Claude, a large language model trained by Anthropic”
0:01inPrinciples for Prompt EngineeringYouTube Verified32 sources· Talk, Job posting, Web· archived
- works atSachin Malhotra works at
Anthropic
Engineer, CI team“I'm an engineer on the CI team at Anthropic.”
YouTube Verified2 sources· Talk, Web· archived
- metric
Anthropic: A few thousand engineers ship code safely each day using its test machinery
“It's the plumbing that allows a few thousand engineers every day to ship code safely.”
YouTube Unverified1 source· Talk
- featurerate limits: Cap disruptive actions per time window and refill automatically
“Every caller gets a small number of disruptive actions per time window.”
YouTube Unverified1 source· Talk
- featuretripwires: Monitor aggregate behavior and alert when activity exceeds a baseline
“That number was way above baseline, and the tripwire paged the on-call.”
YouTube Unverified1 source· Talk
- feature
Claude: Can manage a feature flag rollout loop in canary, while production promotion requires a human
“On the canary side ... the agent has the full dial.”
YouTube Unverified1 source· Talk
- featureMan-in-the-middle proxy: Stamps calls with agent identity that the agent cannot set or change
“The proxy already knows. It's the thing holding real credentials, and it stamps every call with the identity it already knows.”
YouTube Unverified1 source· Talk









