Overview
Design the AI sandbox environment that gives agents full SQL and code execution access within tenant boundaries.
Key Questions
- How does AI connect to tenant's PostgreSQL? (Connection pooling, direct, etc.)
- What code execution environment? (Node.js, Python, both?)
- Shell access scope and limits?
- Error handling and iteration (AI sees error, fixes query)?
- Token limits for query results?
Technical Options
- E2B code execution
- Modal serverless
- Custom Docker sandbox
- Firecracker microVM
Deliverable
Sandbox architecture with security model and execution flow.
Current State
The integration/tool execution system is in production (packages/lib/src/integrations/), supporting HTTP, GraphQL, function, and chained execution. This discovery is about extending that to full database and code execution access within isolated tenant infrastructure.
Related
Overview
Design the AI sandbox environment that gives agents full SQL and code execution access within tenant boundaries.
Key Questions
Technical Options
Deliverable
Sandbox architecture with security model and execution flow.
Current State
The integration/tool execution system is in production (
packages/lib/src/integrations/), supporting HTTP, GraphQL, function, and chained execution. This discovery is about extending that to full database and code execution access within isolated tenant infrastructure.Related