Skip to main content

Top-level policy shape

Policies are YAML files. A common layout:

Rule fields

Operators

  • Comparison: >, <, >=, <=, == — requires a numeric signal value for that metric (and component if specified).
  • presence — true if a matching signal exists; value optional.

Priorities and “winning” rule

All rules that match are considered. The winning rule is the one with the smallest priority value among matches. That rule’s action drives the policy outcome before cross-policy merge.

Validation

Duplicate priorities in one policy file are rejected when the policy is loaded.

Next

Signals and rules · validate-contract