TaskGate Docs
taskgate.ai Request access
Control

Policies

Policy sets hold the rules every proposed action is decided against. Each version is immutable; publishing a new one changes what the gate does next.

Three outcomes

AllowThe action runs.
Require approvalThe action waits for the reviewers the rule names.
RefuseThe action never runs, and the caller gets the reason.

When several rules match, the most severe outcome wins: refuse beats require approval, which beats allow.

Default refuse

Until a policy set is in force, the gate refuses by default. An action no policy permits is refused.

Always refused

Some checks come before any policy and cannot be waived. Whatever the policy says, an action is refused when:

Where a policy applies

A policy set applies at one level: the whole organisation, a workspace, a workflow, an agent, a tool or a resource. Decisions combine every set that applies.

What rules can check

RuleWhat it checks
Argument constraintA value in the action's arguments — equal to, in a list, matching a pattern, within a minimum or maximum.
Value limitMoney: a maximum per action, run, day or 30 days, per agent, person or workspace.
Count limitHow many times something happens within a window.
SequenceOne action following another within a run or a time window.
Requires precedingAn action that is only allowed after a given earlier event.
Time windowDays and hours, in a time zone.
Data boundaryWhere data is going: recipients, destination domains, regions.
Evidence requiredEvidence the action must carry before it can run.
Reversibility gateHow hard the action is to undo.
Context matchEnvironment, data classification, purpose and risk class.

A rule that requires approval also says who approves: roles, teams, named people or the requester's manager, how many of them, and in what order. See Approvals.

Rolling a policy out

Each version, and each rule in it, runs in a mode:

ModeWhat happens when a rule would hold or refuse
observeThe action is allowed; the decision records what would have happened.
warnThe action is allowed with a warning; the decision records what would have happened.
approveThe action requires approval.
enforceThe rule's outcome applies as written.

Review and publishing

A policy version starts as a draft, is submitted for review, and is then published or sent back. The author cannot review their own version, and a version must be published by a person other than its author. Publishing a version retires the one it replaces.

Your platform team writes and publishes policy through the TaskGate API. The Policies page in the console shows every set, how many are in force, and each version.

Simulate before you publish

On a policy set, replay recent decisions against a new version to see which verdicts it would change before it goes live. Nothing is changed. The simulation lists the decisions that would change, with examples.