Repository navigation
fix: enforce AI control contracts at the edge - #32
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (9)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughAsk control validation is centralized for both AI handlers. Streaming is now limited to ChangesAsk control enforcement
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant AskClient
participant AIHandler
participant ControlValidator
participant ProviderAndQuota
AskClient->>AIHandler: Submit Ask request
AIHandler->>ControlValidator: Validate sanitized controls
ControlValidator-->>AIHandler: Validation result
AIHandler->>ProviderAndQuota: Continue when controls are valid
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Essentials by visiting https://app.coderabbit.ai/settings/billing. Comment |
6c152fe to
a6462ca
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
Verification
Rollout
Deploy ai and ai-stream Edge Functions after merge, then verify one valid general Ask request and one malformed-control rejection. No database migration or secret change.
Summary by CodeRabbit
New Features
Bug Fixes
Tests