Trial rules
Put a rule on trial: it watches your new requests and decides none of them, and is scored against what your people decided. Promote it to a rule when it agrees with them.
A replay shows what a rule would have done to requests already made. A trial watches the ones still to come. Put a rule on trial and your agents keep asking as before: every request is decided by your rules and your people, exactly as without the trial. The trial only notes what it would have done, and is scored against what your people then decided. When it has earned it, an owner makes it a rule with one click (two, when it disagreed with your people).

A trial decides nothing. Nothing that weighs a request reads it, so it can never approve, deny or hold a request, and the agent never sees it. It becomes a rule only when an owner promotes it, and that rule is written in the promoting owner’s name like any rule they add.
0 of 14 requests arrived. The trial would have changed 0: 0 the way a person decided, 0 against. It approved nothing.
Too early: fewer than 5 requests it would have settled the way a person did, and none against so far.
How a trial is scored
Each request made since the trial started is weighed by the same evaluation a replay uses: once with today’s rules, once with today’s rules and the rule on trial. Where the two differ, the difference is set beside what really happened.
- agrees
- Requests it would have settled the way a person did: approving what a person approved, or denying what a person denied. People would not have been asked about these.
- disagrees
- Requests where it would have approved what a person denied, denied what a person approved, or approved what nobody approved in time.
- report
- The full count, as a replay gives it, with up to 25 changed requests: disagreements first, then newest first.
The verdict sums it up. It is disagrees as soon as one request disagrees, however many agree. It is agrees once at least 5 requests agree and none disagree, and too_early until then. A request still waiting for a person counts toward neither. An ask rule only sends requests to a person, which no decision can agree or disagree with, so its trial is unscored: the report still counts the requests it would have sent to your people. The verdict is advice: an owner can promote a trial whatever it says.
Limits
- A workspace can run 5 trials at once. A trial that has ended no longer counts toward the 5.
- A trial watches for 1 to 90 days, 14 if you do not say. After
ends_atit stops counting new requests (runningturns false), and its score stays until it is promoted or discarded. - Each score reads up to 5,000 of the newest requests the trial watched; with more,
report.truncatedis true. - Budgets count from zero when the trial starts. Run grants and mandates never match, because they belong to one run.
- As in a replay, pauses and holds that are not a rule’s doing, such as the summary check and reviewers, are left out of the score.
Who can do what
- Any member can see the workspace’s trials and scores.
- Only owners can start, discard or promote one.
- Agent keys cannot see or touch trials.
- Starting a trial needs no plan, so a workspace on Free can see what a rule would do. Promoting needs the plan the rule itself needs: on Free it is refused with
402and the trial stays where it is.
In the app, trials live on the Rules page: Put on trial sits in the rule form beside the replay, and running trials show in the On trial list with their score, Make it a rule and Discard. A trial that disagreed asks for a second click, which says how many times it parted from your people.
The API
Start a trial with the rule as you would add it, under rule, and how many days it should watch:
curl https://api.variantgate.com/v1/workspaces/$WORKSPACE_ID/trials \
-H "Authorization: Bearer YOUR_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"rule": {
"action": "payment.refund",
"effect": "allow",
"limit_amount": "200.00",
"limit_currency": "EUR"
},
"days": 14
}'A rule that could not be written, such as two approvals on an allow or a key of another workspace, days outside 1 to 90, or a sixth trial at once, is refused with 422. List the trials with their scores:
curl https://api.variantgate.com/v1/workspaces/$WORKSPACE_ID/trials \
-H "Authorization: Bearer YOUR_SESSION_TOKEN"{
"trials": [
{
"id": "0193a1f0-2b3c-7d4e-8f50-6a7b8c9d0e1f",
"rule": {
"action": "payment.refund",
"effect": "allow",
"limit_amount": "200.00",
"limit_currency": "EUR",
"created_by": "maya@northwind.example",
"created_at": "2026-11-28T09:00:00Z"
},
"started_at": "2026-11-28T09:00:00Z",
"ends_at": "2026-12-12T09:00:00Z",
"running": true,
"agrees": 6,
"disagrees": 0,
"verdict": "agrees",
"report": {
"days": 14,
"looked_at": 41,
"truncated": false,
"changed": 7,
"newly_approved": 7,
"newly_denied": 0,
"newly_asked": 0,
"approves_denied": 0,
"approves_unanswered": 0,
"denies_approved": 0,
"samples": []
}
}
]
}Promote one. It is written as an ordinary rule, with the same checks as adding a rule, in your name, and the trial ends. Promoting the same trial twice writes one rule; the second call gets 404.
curl -X POST https://api.variantgate.com/v1/workspaces/$WORKSPACE_ID/trials/$TRIAL_ID/promote \
-H "Authorization: Bearer YOUR_SESSION_TOKEN"Or discard it, which writes no rule:
curl -X DELETE https://api.variantgate.com/v1/workspaces/$WORKSPACE_ID/trials/$TRIAL_ID \
-H "Authorization: Bearer YOUR_SESSION_TOKEN"Replay, review and trials
Use rule replay to check a rule against what already happened, a trial to watch it on what happens next, and rule review to narrow the rules you already have. Some policy tools have a monitor or log-only mode that records what a policy would do. A trial is scored against the decisions your people made on those same requests, so you see where the rule would have overruled them before it can.