
Solutions Control agent actions
Give agents room to work.
Set the boundaries.
Stackduke checks every tool call against your rules before it runs. Routine calls go through. Risky ones wait for a person. The rest stop.
One answer per call.
Every tool call is checked against your policy before it runs.
Allow
The call runs, and the result is recorded.
Require Approval
Nothing runs until a person decides.
Block
The call stops. Nothing runs upstream.
Unresolved
No rule decides the call.
A gap in your rules is never treated as Allow.
When no rule decides a call, it stays Unresolved.
Move the line.
Change a limit. Test policy shows the new answers.
How rules are matched- AllowBilling Agent to use
refund.createfrom Finance MCP onstripe.productionwhen amount is up to SGD 500 - Require ApprovalThe same, when amount is above SGD 500 and up to SGD 1,000
- BlockThe same, when amount is above SGD 1,000
{
"schemaVersion": "stackduke.policy/v1",
"metadata": {
"name": "Payments Policy",
"scope": "Workspace · Production"
},
"defaultDecision": "No match",
"rules": [
{
"name": "Refunds within the limit",
"subject": "Billing Agent",
"connection": "Finance MCP",
"capability": {
"type": "Tool",
"id": "refund.create"
},
"resource": "stripe.production",
"condition": "amount <= 500 SGD",
"decision": "allow"
},
{
"name": "Refunds that need a person",
"subject": "Billing Agent",
"connection": "Finance MCP",
"capability": {
"type": "Tool",
"id": "refund.create"
},
"resource": "stripe.production",
"condition": "500 SGD < amount <= 1000 SGD",
"decision": "require_approval"
},
{
"name": "Refunds over the ceiling",
"subject": "Billing Agent",
"connection": "Finance MCP",
"capability": {
"type": "Tool",
"id": "refund.create"
},
"resource": "stripe.production",
"condition": "amount > 1000 SGD",
"decision": "block"
}
]
}Test policy Billing AgentSame as payments-v13
refund.create SGD 40Allowedrefund.create SGD 400Allowedrefund.create SGD 700Approval requiredrefund.create SGD 2,000Blockedrefund.create SGD 4,000Blockedrefund.create SGD 6,000Blockedrefund.cancelUnresolvedNo rule covers this tool. That is never read as Allow.
Watch first. Then enforce.
01 · Observe
Watch what would have stopped
New Agents start in Observe. Every call still goes through.
02 · Adjust
Fix the rules that surprised you
Change a limit, test it, publish a new version.
03 · Enforce
Turn it on when you trust it
Block stops the call. Require Approval waits for a person.
Know why it stopped.
Every record keeps three things.
- The rule that matched and the version it came from.
- Whether the Agent was in Observe or Enforce.
- What actually happened, kept apart from what policy decided.
Versions
- v11
- v12
- v13 Active
A published version never changes. To change the Policy, you publish a new one.
Questions
Before your first rule.
Do I have to write code?
No. You build rules on the Rules tab, and each one reads back as a sentence. The same Policy is also available as JSON on the Policy as Code tab.
What if two rules disagree?
The more specific rule wins: one for a named Agent beats one for any Agent. Rules at the same level should not overlap, so narrow one of them.
Can I try a policy without breaking anything?
Yes. Test policy shows the decision for an exact call without running it. Observe Mode records what your policy would do to real traffic and lets every call through.
Can I use it today?
Governed MCP calls open to beta partners in March 2027. The MCP tracker and scanner are free to use today.
Put your first workflow
under policy.
Start with one governed route. Expand when you are ready.
Join the waitlist