content-policy-basic version 1.0.0

Template id: content-policy-basic

Criteria #

Criteria in content-policy-basic version 1.0.0
KeyTypeCheckJudge tier
no_email_piimust_notregex_match@1None
no_phone_piimust_notregex_match@1None
no_harassmentmust_notllm_judge@11
brand_safe_tonescoredllm_judge@11

Rubric JSON #

{
  "name": "content-policy-basic",
  "criteria": [
    {
      "key": "no_email_pii",
      "type": "must_not",
      "primitive": "regex_match@1",
      "config": {
        "pattern": "[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}",
        "must_match": false
      }
    },
    {
      "key": "no_phone_pii",
      "type": "must_not",
      "primitive": "regex_match@1",
      "config": {
        "pattern": "\\+?[0-9]{1,2}[ .-]?\\(?[0-9]{3}\\)?[ .-]?[0-9]{3}[ .-]?[0-9]{4}",
        "must_match": false
      }
    },
    {
      "key": "no_harassment",
      "type": "must_not",
      "primitive": "llm_judge@1",
      "judge_tier": 1,
      "config": {
        "instruction": "The forbidden condition: content that insults, demeans, or threatens a person or group."
      }
    },
    {
      "key": "brand_safe_tone",
      "type": "scored",
      "primitive": "llm_judge@1",
      "judge_tier": 1,
      "weight": 1,
      "config": {
        "instruction": "Tone is professional and suitable for public display next to a brand (no profanity, no rage-bait, no explicit content)."
      }
    }
  ]
}

Send this JSON as the body of POST /v1/rubrics. The API also serves starters from GET /v1/rubrics/templates.

content-policy-basic #

**Judges:** user-generated or AI-generated content against a baseline publishing policy — no email/ phone PII (deterministic regex), no harassment, brand-safe tone (judged). **Use when:** you display untrusted content publicly (comments, reviews, AI replies) and need an auditable yes/no with evidence rather than a black-box filter.

Save the Rubric JSON shown above as rubric.json.

curl -s -X POST $API/v1/rubrics -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d @rubric.json
curl -s -X POST $API/v1/verify -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"rubric_id":"<id>","submission":{"inline":"<the content>"},"options":{"wait_ms":30000}}'

MCP: `verify_submit { rubric_id, submission: { inline } }` — treat `flagged` as "route to a human". Note the `obfuscated-email` fixture: it documents what the regex layer deliberately does NOT catch.