Policy lab 50 bonus XP
Write tests that catch broken policies
Objectives
Loading the briefing...
Checks the server runs (8)
- Test file parses with Rego v1 syntax
- At least four test rules
- Every test passes on the correct policy
- Tests set their own input with with input as
- Catches a policy that always allows
- Catches a policy with no default (undefined)
- Catches auditors being allowed to write
- Catches the admin rule going missing
Check names are all you see here: the expectations that decide pass or fail, and the reference solution, stay on the server.
Step-by-step hints
The guided walkthrough, in full. It is free: no XP cost, and it does not touch the paid hint ladder or the reveal gate.
Rules summary
XP on pass
50 bonus XP the first time every check goes green.
Paid hints
2 available. Each costs 25% of the lab XP (about 13 XP).
Reveal solution
Scores 0 XP and unlocks only after 3 check runs.
Attempt cap
60 check runs per learner. The runner warns you in the last 10.
Drafts
Your editor content is saved in this browser, so a reload will not lose work.
Walkthrough
Always free and never penalised: use it before spending a hint.
