R018 · drift-guardrail
Guardrail presence (heuristic)
- Code: R018
- Slug:
drift-guardrail - Tier: heuristic
- Default severity: warning
- Packages: recommended, strict
- Locked: No
- Doc: https://doraval.dev/reference/rules/R018
| What | Heuristic: body states hard constraints with MUST / MUST NOT (or equivalent guardrails). |
| Why | Preferences without bounds leave the agent free to invent unsafe shortcuts. Constraints set the right level of freedom. |
How to fix
Add a short guardrail section:
## Constraints
- MUST run tests before opening a PR.
- MUST NOT push directly to main.
Put “do not use when…” in the description when over-trigger is the risk (R014).