Skip to content
quarry View Ticket
Login

View Ticket

2026-09-24
00:53 • Ticket [640554b3e6] AI moderation hooks: pluggable verdicts into the staging queue status still Closed with 1 other change artifact: 9ad86d1cd4 user: zeitgeist
2026-08-22
01:34 • Closed ticket [640554b3e6]. artifact: e8fe6b4e66 user: ai-local
2026-08-21
18:39 • New ticket [640554b3e6]. artifact: ef392f70b2 user: tmp-ops

AI moderation hooks: pluggable verdicts into the staging queue

Closed640554b3e6ec2bae7b677740fb8b0623bcaf9abcCreated 101.2 days agoUpdated 67.9 days ago
Description2026-08-21 18:39:58
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.

2026-08-22 01:34:29

Landed in 1b5f71c3 alongside moderation: async hook, 30s timeout, failure/unknown verdict hold for a human, approve releases as hook. Deliberate narrowing: reject is advisory only; no auto-reject switch exists. Open a new ticket if one is wanted.