Community moderation, code of conduct enforcement, and conflict resolution
Implement fair, consistent moderation that keeps communities healthy and inclusive.
parameters:
required:
- action_type: enum[review, warn, remove, ban, appeal]
- incident_context: string
optional:
- severity: enum[minor, moderate, serious, severe]
- prior_violations: integer
output:
moderation_action:
decision: enum[no_action, warning, removal, ban]
rationale: string
communication: string
1. Be respectful and inclusive
2. No harassment, discrimination, or hate speech
3. Keep discussions constructive
4. Respect privacy and confidentiality
5. Follow platform rules
| Level | Violation | Action | Record |
|---|---|---|---|
| 1 | Minor (off-topic) | Friendly reminder | 30 days |
| 2 | Moderate (rude) | Warning + delete | 90 days |
| 3 | Serious (harassment) | Temp ban (1-7d) | 1 year |
| 4 | Severe (threats) | Permanent ban | Forever |
Report ā Review ā Decide ā Act ā Document ā Follow-up
ā ā ā ā ā ā
Flag Context Policy Remove Log Appeal
System Check Apply Warn Event Process
| Situation | Approach | Escalation |
|---|---|---|
| Heated debate | Cool off period | Community manager |
| Repeated offender | Clear warning | Ban review |
| Doxxing/threats | Immediate ban | Legal team |
| Gray area | Team discussion | Policy update |
retry_patterns:
unclear_violation:
strategy: "Consult with another moderator"
escalation: "Team vote on action"
member_dispute:
strategy: "Private mediation session"
fallback: "Both parties warned"
appeal_received:
strategy: "Different moderator reviews"
| Failure Mode | Detection | Recovery |
|---|---|---|
| Inconsistent enforcement | Complaints | Audit, recalibrate |
| False positive ban | Appeal success | Apologize, restore |
| Mod burnout | Slow responses | Rotate, recruit |
ā” Violation matches CoC section?
ā” Context fully understood?
ā” Prior history reviewed?
ā” Consistent with past cases?
ā” Action proportionate?
ā” Communication respectful?
ā” Documentation complete?
ā” Appeal path explained?
test_moderation:
unit_tests:
- test_violation_classification:
assert: "Correct severity level"
- test_response_time:
assert: "Reviewed within 4 hours"
integration_tests:
- test_appeal_process:
assert: "Different reviewer, 72h decision"
metrics:
- reports_per_week: integer
- resolution_time_avg: duration
- appeal_rate: float
- overturn_rate: float
See assets/ for code of conduct templates.