Go live
Each policy runs in one of two modes, shown in its Mode card on its page. The mode applies to every clause in the policy.
- Shadow mode. TestMachine records the calls the policy would block, and lets them through. Use it while you tune the policy. Every new policy starts here, except a policy you adopt in Setup, which is enforced at once.
- Enforce. A call that breaks a clause is blocked, and the agent is told why.
The same card can also take a signed-off policy Not in effect: from the next call its clauses judge no calls, block nothing and record nothing, and it stops counting toward Home’s coverage. Choose Shadow or Enforce to put it back in effect as it was signed off.
To try one clause in Shadow mode while the rest stay enforced, put it in its own policy. A call that breaks only clauses of policies in Shadow mode goes through and shows as Would block. A call that breaks a clause of an enforced policy is blocked, and the agent is told about the enforced clauses only; its page also lists the Shadow clauses that would have blocked it.
Some blocks apply in every mode, such as calls from an agent nobody has named yet. See Why a call was blocked.
Tune in Shadow mode
Section titled “Tune in Shadow mode”TestMachine judges calls only against a signed-off policy, so a draft’s clauses judge nothing until you sign it off. Signing off a policy in Shadow mode blocks nothing: it starts showing which calls would be blocked.
Let your team use their agents as usual for a few days. Then open Calls in the sidebar.
- Read what would have been blocked. For each one, decide whether TestMachine was right. To see a call in context, switch the Calls / Sessions toggle to Sessions: every agent is asked to open a session for each piece of work, and each one shows there with the purpose it stated, who asked for it, and its calls in order across every server, with what each got back.
- Review the calls the judge was unsure of. In Calls, choose To review, open each one and answer whether TestMachine was right: Right to block or Should have been allowed for a blocked call, Right to allow or Should have been blocked for an allowed one. The next call opens when you answer.
- Fix the policy. A false block usually means a clause to narrow. A false allow means a clause to add or sharpen. See Write your policy.
Servers charts blocked and would-block calls over time. Would-blocks should be few, and your reviews should find few false blocks or false allows, before you enforce.
Risk coverage on Home shows, for prompt injection, leaked credentials, destructive actions and data leaving the company, how many of each server’s tools that can carry the risk an enforced policy covers, and which are covered only in Shadow mode or not at all. Only policies in effect that reach everyone count, and only clauses limited to a server. Beside each risk are the steps that would raise its coverage most, such as adopting a TestMachine policy, signing off a draft or enforcing a policy, each with its own button. Adopt all in Shadow adopts every suggested TestMachine policy in Shadow mode; Enforce all adopts any not adopted yet, then enforces and signs off each of them after one confirmation. On the free plan the card says no policy covers your servers’ tools, and its buttons open the paid plan.
Enforce a policy
Section titled “Enforce a policy”On the policy’s page, switch Mode to Enforce. That goes into a draft, opening one if none is open, and applies once you sign the draft off. Putting a policy in Shadow mode needs no sign-off: it applies from the next call. Use it if a policy blocks calls it shouldn’t and they must stop being blocked now.
A call that no signed-off policy applies to goes through and is recorded, so a person no policy reaches is never blocked. The attachment grid on Policies shows who each policy reaches.
Keep reviewing calls in Calls → To review after you go live.