[claude] add testkit coverage for relay moderation endpoints (#39) #62
Reference in New Issue
Block a user
Delete Branch "claude/issue-39"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #39
Summary
The relay event moderation feature (shadow-queue + Timmy AI auto-review) was already fully implemented across the codebase:
relay_event_queueDB table with all required columnsPOST /api/relay/policywith elite bypass and non-elite shadow-queue logicinjectEvent()helper for strfry HTTP importModerationServicewithenqueue(),autoReview(),decide(),processPending()GET /api/admin/relay/queue, approve, rejectGET /api/admin/relay/statswith event counts by status/admin/relayThis PR adds 10 testkit tests (T41–T50) to verify all relay moderation and admin relay endpoints:
Admin tests are gated on endpoint accessibility and skip gracefully when
ADMIN_TOKENis not configured and localhost fallback is unavailable.Test plan
curl -s $BASE/api/testkit | bashpasses with all new T41–T50 tests🤖 Generated with Claude Code