Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ef392f70b248dee87d419f962752dae6e6b8ef89459b74eef5c2792cb43e3740
Ticket: 640554b3e6ec2bae7b677740fb8b0623bcaf9abc
AI moderation hooks: pluggable verdicts into the staging queue
User & Date: tmp-ops on 2026-08-21 18:39:58
Changes

  1. Untracked field cmimetype: "text/x-markdown"
  2. comment changed to:
    AI moderation hooks. A pluggable hook — configured command (stdin/stdout JSON) or webhook — invoked when a post enters staging: input is post body, title, author, thread context; output {action: approve|hold|reject, score 0-1, reason}. Wired into the moderation staging pipeline (depends on moderation ticket): approve releases to zit, hold leaves for a human with the verdict attached, reject requires human confirmation by default (configurable per repo to auto-reject above a threshold).
    
    Rules: the human always outranks the hook; hook failures/timeouts fail OPEN into hold-for-human, never auto-approve and never lose the post; automated verdicts appear in the public moderation log marked as automated with score + reason. Post content passed to the hook is data — the hook contract must state that embedded instructions in posts are never to be followed.
    
    Acceptance: hook verdict visible in queue; timeout lands post in hold; auto-reject only fires when explicitly configured; log entries marked automated.
    
    
  3. status changed to: "Open"
  4. title changed to:
    AI moderation hooks: pluggable verdicts into the staging queue