Preview what a scope reaches
Counts the deployments (and their apps and clusters) the caller may read that these conditions reach, for those who write guardrails and freezes: the editor's coverage strip and the New freeze form's "6 deployments, 2 apps, 3 clusters". With `guardrailId` that guardrail's exceptions in effect are ap
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
application/json- body
agentCap?stringThe autonomy cap the guardrail would set, to work out the stages it lowers.
"propose""act_with_approval""act"scope*array<>items <= 20guardrailId?stringuuidWhat the scope reaches.
application/json- response
deployments*integerapps*integerclusters*integerleftOut*integerDeployments the scope reaches that exceptions in effect excuse.
summary?stringThe apps and clusters they involve, by name, such as "ledger-svc and ledger-worker on prod-us-1 and prod-eu-1." Long lists are cut.
lowered?array<string>Stages ("Pipeline › stage") that let an agent act with more autonomy than the guardrail's cap, in the environments the scope reaches. Only worked out when the guardrail caps agent autonomy.
curl -X POST 'https://wardn.example.com/api/v1/guardrail-previews' \ -H 'Content-Type: application/json' \ -d '{ "scope": [ { "field": "class", "op": "is", "value": "string" } ]}'{ "deployments": 0, "apps": 0, "clusters": 0, "leftOut": 0, "summary": "string", "lowered": [ "string" ]}