policy_language
The authoritative grammar of Alter's runtime-policy language, live from the deployed backend: every authorable rule type with its JSON body schema, caps, authorable levels, worked examples, and fail-closed semantics. Call with no arguments for the overview; pass rule_type (e.g. "content_match") for one type's full grammar. Use it before authoring rules with alter policy rules create — never guess a body shape. Vocabulary: the dashboard's "Runtime policies" surface, the docs' "policy", and alter policy are one feature, and the dashboard's "Require human approval" type is the require_approval rule type (its grant-editor block is the grant-level baseline of the same gate). The same grammar is what policy files carry: alter policy validate|test|plan|apply review rules in Git and CI, and a rule with a code_owner is changed through its file, never with rules update. Workflow prose: the set-policy modify flow (get_started with phase=modify), fetch_doc("guides/set-policies"), fetch_doc("guides/add-human-in-the-loop-approvals"), fetch_doc("guides/policy-as-code"), and fetch_doc("reference/cli/commands/policy").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_type | No | One rule type's full grammar, e.g. "content_match" or "quota". |