Skip to content

Policy

One method, deliberately. Everything a policy needs is in the request, and the only output is the decision — so a policy cannot execute the tool, mutate the run, or become a second place where control flow lives.

decide(req):
| PolicyDecision
| Promise<PolicyDecision>;
Parameter Type

req

PolicyRequest

| PolicyDecision | Promise<PolicyDecision>