Security boundary implementation
See security for the deployer's network, identity, and file-permission contracts. This page records where the control plane and runtime enforce those boundaries.
Requests and sessions
When the engine is ready, product routes expose Home, enabled plugins, model name, dataagent.entry, and user ID through /healthz. See REST API for request and response fields.
--user and LaunchOptions.user_id select the host-local session scope. IDs follow OPAQUE_ID_PATTERN: an ASCII letter or digit first, with 1–128 characters overall. The session index and directory bindings both validate ownership. A2A Bearer checks apply only to the JSON-RPC path. Session-isolation tests · A2A authentication tests
Credentials and diagnostics
Model keys and semantic-service passwords use SecretStr. AgentContext holds model and semantic clients through private attributes. See observability for credential-field matching, replacement of known secrets, and the data boundaries of logs and traces.
Files and processes
Filesystem assembly uses LocalShellBackend(virtual_mode=False, inherit_env=True). The shell runs in the session output directory and inherits the backend process environment. File tools and shell rely on host OS permissions; read-only input intent is expressed in the system prompt. File-access boundary tests
Output routes list regular files only, skipping symbolic links and artifacts/large_tool_results / artifacts/conversation_history. Preview requests also validate paths, rejecting absolute paths, .., NUL, and paths traversing symbolic links. These checks apply to HTTP output reads. Output API tests
See path resolution and session bindings and state and storage for Home permissions, overlapping-output checks, and session binding.
Extension execution
Plugin and Hook Python code runs in the host process. The host launches MCP stdio services as subprocesses according to .mcp.yaml. MCP configuration reference
Tool Hooks can replace requests, short-circuit calls, or replace tool results. See Hook function signatures for correlation-ID rules. Once a synchronous Hook or synchronous tool starts, cancelling its HTTP request cannot forcibly stop it inside the thread.