Template id: content-policy-basic
| Key | Type | Check | Judge tier |
|---|---|---|---|
no_email_pii | must_not | regex_match@1 | None |
no_phone_pii | must_not | regex_match@1 | None |
no_harassment | must_not | llm_judge@1 | 1 |
brand_safe_tone | scored | llm_judge@1 | 1 |
{
"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.
**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.