Test before you go live
See what KYA would do to real traffic, send one sample agent request, and read the verdict before anything is blocked.
A new KYA install blocks nothing. It records a verdict for every visitor and lets every request through until you deploy a policy. This page uses that window: confirm KYA sees your traffic, read what it would do, then decide when to enforce.
1. Start where nothing is blocked
KYA has two modes. In observe, every request passes through and KYA records what it would have done. In enforce, the verdict takes effect. Each install method starts out safe, in its own way:
One thing is refused even with no policy. A request that carries a KYA-OS signature the middleware can't verify is rejected in enforce mode. Ordinary visitors and ordinary agents send no such signature. In observe mode that request passes too, and shows as "Would have been: Block".
To observe with the Next.js or Express middleware while a policy is deployed:
withCheckpoint({
enforcementMode: 'observe', // classify + report, never block
apiKey: process.env.CHECKPOINT_API_KEY,
});2. Send one sample agent request
Start your app, then send one request that names an AI agent to a route the middleware covers:
curl -sS -A 'ChatGPT-User/1.0' -o /dev/null -w 'HTTP %{http_code}\n' https://your-app.example/Open the project's Activity page in the dashboard. Allow up to a minute, then look for a new entry with the time and path of your request, classified as ai_agent with ChatGPT as the agent. The command's HTTP status alone does not confirm reporting.
With the Pixel or the Beacon, load a page of your site in a browser instead. Your own visit can show as human.
If no entry appears, see Troubleshooting.
3. Read the verdict
Each entry in Activity carries two things: what KYA thinks the visitor is, and what it decided to do.
What the visitor is. A class (human, ai_agent, bot or incomplete_data) with a confidence score from 0 to 100. Detection classes explains each one.
What KYA decided. One of five decisions:
Verdicts gives the exact HTTP response for each one.
In observe mode the dashboard writes Would have been: in front of the decision. "Would have been: Block" means the request reached your app, and would have been rejected in enforce mode.
The middleware says the same thing on the response. In observe mode it adds two headers:
curl -sS -A 'ChatGPT-User/1.0' -o /dev/null -D - https://your-app.example/ | grep -i x-checkpointX-Checkpoint-Mode: observeX-Checkpoint-Would-Have-Been, with the decision as its value
Rehearse a policy without touching traffic
A new project blocks nothing, so there is little to read until you have a rule. To see what a rule would do, open Policy in the dashboard, write the rule, and click Dry-run. KYA replays the rule against your recent traffic and shows which requests it would change. No visitor is affected.
4. When to switch to enforce
Switch when all of these are true:
- Your sample request shows up in Activity with the right class.
- You have watched real traffic for a week or two, long enough to see your normal visitors.
- The dry-run of your policy changes only the requests you meant it to. Check that it leaves alone the agents your own customers use.
Switching to enforce is your step. You deploy the policy in the dashboard. If a coding agent
set KYA up for you, it should not deploy a policy or change enforcementMode on its own. Make or
approve that change yourself.
To switch, open Policy in the dashboard. Once the dry-run has finished, the Dry-run button becomes Deploy policy. Click it. If the policy would also stop human visitors, the dashboard asks you to confirm first.
What else has to change depends on how you installed:
Then send the sample request from step 2 again. The entry in Activity now shows the decision with no "Would have been:" in front of it.
To go back to observing with the Next.js or Express middleware, set enforcementMode: 'observe' again. Every request passes through, and KYA keeps recording.
Next steps
- Policies: write the rules that decide each verdict
- Enforce vs. observe: the two modes in full, per install method
- Dashboard: where to read what KYA recorded
- Troubleshooting: when the sample request doesn't show up