Skip to content
Context docs
Administer

Request trace

The trace follows one prompt: list a folder, use a skill, search the web, query a connector and create a file.

Which deployments this describes. The trace shows a deployment with Sandbox Workload Identity on, which adds the egress proxy; which settings add it is on Network boundaries. On a default install, steps 5, 6 and 16 go from the harness to the model gateway directly with the gateway key the sandbox holds, with no per-request decision by the application tier, and step 3 establishes no identity (see Credential handling).

The trace

A connector such as Snowflake is used as the connector example. The trace shows each point where a request is checked. The agent’s live output is relayed to the browser throughout by the streaming service (not shown).

StepFromToWhat happensCheck
1BrowserApplication tierSubmit prompt; write access to the task◆
2Application tierTemporal workerSignal the task run
3Temporal workerHarnessClaim sandbox, establish identity, start
4Temporal workerHarnessDeliver the prompt
5HarnessEgress proxyModel request; the App decides, the proxy adds the key◆
6Egress proxyModel gatewayForward; model replies with a tool call
7HarnessToolsTool policy, then run context-cli ls◇
8ToolsDrive gatewayList folder: the App answers (no file bytes)◆
9ToolsApplication tierSkill find◆
10ToolsDrive gatewaySkill pull: rclone, bytes from Amazon S3◆
11ToolsApplication tierWeb search request◆
12Application tierParallelSearch with the App’s credential
13HarnessApplication tierConnector tool call, checked per call◆
14Application tierConnectors serviceForward with a per-request token
15Connectors serviceConnector targetQuery with the stored credential
16HarnessEgress proxyFurther model requests (5 and 6)◆
17HarnessToolsWrite tool creates the summary file◇
18ToolsDrive gatewayrclone upload: bytes to Amazon S3◆
19ToolsPublic internetAny other outbound request: not checked *⊘
20Temporal workerHarnessRun ends: revoke identity, delete sandbox

What the trace shows

  1. For the tools the harness runs, see Inside the sandbox.
  2. The in-sandbox tool policy (steps 7 and 17) decides whether the agent may call a tool. It runs in the same container and as the same user as code the agent writes, so code in the sandbox can bypass it. The security boundary is the set of checks made by the application tier (steps 1, 5, 8, 9, 10, 11, 13, 16 and 18).
  3. Folder listings (step 8) are answered by the application tier through the drive gateway; file bytes move between the drive gateway and Amazon S3 only after the application tier authorizes each request (steps 10 and 18).
  4. Connector calls (steps 13 to 15) go from the harness to the application tier’s connectors gateway, which checks each call and forwards it to the connectors service with a token issued for that call. The connectors service runs the query with the credential stored for that connection; the sandbox never holds it. Under the Ask for apps preset, each connector call asks for approval.
  5. Approval decisions are signed by the application tier; the sandbox holds only the public key, so code in the sandbox cannot forge an approval. Only approvals that the application tier requires are a security boundary. New agents use the Full access preset by default, which asks for nothing (P-05; see Approvals).
  6. Web search requests are made by the application tier with its own credential (step 12).
  7. Step 19 shows the path that is open under the Open egress setting *: requests the agent’s code makes to other destinations are not checked.