apiVersion: policy.antaeus.io/v0alpha1
kind: Policy
metadata:
  name: cedar-support-community
  description: Check the meaning of posts under the tutorial's invented community terms.
spec:
  defaultOutcome: review
  rules:
    - id: unsolicited-promotion
      description: Preserve the exception for relevant documentation links.
      when: The post contains an unsolicited commercial promotion, excluding links to external documentation provided within a relevant support answer.
      outcome: deny
    - id: relevant-support
      description: Permit relevant support questions and answers through this content-policy check.
      when: The post asks a question or supplies an answer about using the Cedar issue tracker, and any external link is offered as supporting documentation rather than as commercial promotion.
      outcome: allow
