feat: multi-tenant cloud architecture for AgentWatch Cloud (closes #394)#460
feat: multi-tenant cloud architecture for AgentWatch Cloud (closes #394)#460arcgod-design wants to merge 4 commits into
Conversation
…eerevanth#394) - agentwatch/models/tenant.py: Tenant, ApiKey, UsageRecord models with plan tiers - agentwatch/core/config.py: CloudConfig with env var loading - agentwatch/api/tenant_auth.py: TenantStore with API key CRUD and usage tracking - agentwatch/telemetry/ingestion.py: TenantIngestionPipeline with rate limiting and batching - agentwatch/core/models.py: Add tenant_id column to SessionRecord, EventRecord, MemoryEntryRecord - agentwatch/api/server.py: Tenant-aware API key guard, tenant management endpoints Acceptance Criteria: - Multi-tenant data isolation enforced at ORM layer (tenant_id on all models) - API key generation and revocation per tenant - Events attributed to correct tenant_id via ingestion pipeline - Per-tenant usage tracking for billing integration
|
Warning Review limit reached
More reviews will be available in 26 minutes and 1 second. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🧪 PR Test Results
Python 3.12 · commit 1bf17be |
Summary
Implements multi-tenant cloud architecture for AgentWatch to support managed SaaS deployments (PLT-007).
Changes
New Files
Modified Files
Acceptance Criteria
API Endpoints Added
Testing
Closes #394