Skip to content

It se#2

Draft
sdreyer wants to merge 5 commits intomainfrom
cursor/it-se-a32c
Draft

It se#2
sdreyer wants to merge 5 commits intomainfrom
cursor/it-se-a32c

Conversation

@sdreyer
Copy link
Contributor

@sdreyer sdreyer commented Feb 10, 2026

Add a comprehensive CATE webhook server with a web UI and three new example servers for content filtering, PII redaction, and A/B testing.

This PR introduces a full-featured CATE webhook server with a web dashboard for configuration and monitoring, demonstrating advanced capabilities like rule-based access, pre/post-execution hooks, PII redaction, A/B testing, and tool catalog integration. It also provides three focused examples to showcase content filtering, PII redaction, and A/B testing independently.


Open in Cursor Open in Web

cursoragent and others added 5 commits February 10, 2026 07:45
…l catalog

Features:
- Web dashboard UI for configuring all hook behavior
- Access control rules (block users, filter toolkits/tools)
- Pre-execution rules (block/modify requests, content filtering)
- Post-execution rules (block/modify responses)
- PII detection and redaction (email, IP, SSN, phone, credit card, DOB)
- A/B testing with deterministic variant assignment and traffic splitting
- Tool catalog integration (fetch tools from external API)
- Configuration stored in YAML with hot-reload
- All CATE webhook endpoints (health, access, pre, post)

Co-authored-by: sterling <sterling@arcade-ai.com>
Demonstrates the three CATE hook points:
- Access hook: Block users and filter toolkits by pattern
- Pre-hook: Block requests based on input content matching
- Post-hook: Block responses containing prohibited content

Co-authored-by: sterling <sterling@arcade-ai.com>
Demonstrates post-hook PII redaction:
- Detects emails, IPs, SSNs, phone numbers, credit cards, dates of birth
- Two modes: redact (replace with markers) or block (reject response)
- Recursive scanning of nested output structures

Co-authored-by: sterling <sterling@arcade-ai.com>
Demonstrates pre-hook A/B testing:
- Deterministic hash-based variant assignment
- Sticky sessions (same user always gets same variant)
- Percentage-based traffic splitting
- Server routing override for variant selection
- Admin endpoint to view assignments

Co-authored-by: sterling <sterling@arcade-ai.com>
Co-authored-by: sterling <sterling@arcade-ai.com>
@cursor
Copy link

cursor bot commented Feb 10, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants