Read the full teaching note for one rule
explain_ruleLook up a review rule by bracketed id to get trigger condition, rationale, better code, sources, and corpus stats. Omit the id to browse the rulebook; filter by tier or search.
Instructions
Given a rule id from a review — the part in square brackets — return the whole note: the exact trigger condition and where that number came from, why it matters, what it is teaching, the better move with its code, every source with its own caveat, and what the rule measured across the corpus the rulebook was built from.
Call it with no id to list the rulebook. Pass a tier, a category, or a search term to narrow it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | No | A rule id, for example "T2-EDGE-STRIPE". Leave it out to list the rulebook. | |
| tier | No | List one tier: 1, 2, 3, "floor", "honesty", "structure", "craft", "trap" or "ledger". | |
| search | No | List rules whose title or description contains this text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | ||
| why | No | ||
| rule | No | ||
| tool | Yes | Which tool produced this. | |
| rules | No | ||
| status | Yes | pass = checked and clean. fail = checked and found problems. skipped = nothing was measured. error = the tool could not run. | |
| problem | No | ||
| headline | Yes | One sentence verdict, safe to show a non-technical user. | |
| rulebook | No | ||
| error_code | No | Set only when status is "error". |