# Decision log https://fenzi.dev/docs/log Every network call the sandbox sees is allowed or denied, and each decision is recorded with the program, the destination, and the rule. File access is not in the log: a blocked write shows as `Permission denied` in the agent's terminal. When a call is blocked, you get a log line instead of a story. Command: fenzi log ยท Network decisions ## Read the log ```bash fenzi log ``` Example output ``` time action process destination rule 10:42:05 allowed claude POST api.anthropic.com/v1/messages _provider_fenzi_claude 10:42:07 denied curl paste.example.net:443 - 10:42:31 allowed python3 GET pypi.org/simple/requests/ pypi_org 10:43:12 reset node registry.npmjs.org:443 policy changed, the client reconnects ``` Without flags, `log` shows the latest sandbox for the folder you are in. Outside a project, it shows the latest one overall and says which. ## Flags | Flag | Shows | | --- | --- | | `--deny` | Denies only, with the sandbox's reason for each. | | `--since 10m` | Only the last ten minutes, for a running or a finished sandbox. Any duration works: `30s`, `2h`. | | `--follow` | Keeps printing rows as the agent works. For a running sandbox. With `--deny`, denies only. | | `--sandbox ` | A specific sandbox, running or finished. | | `--raw` | Everything the sandbox logged, as the runtime wrote it: settings changes, policy loads, closed connections. | ## What a deny reason means | Reason | Meaning | The agent saw | | --- | --- | --- | | `policy_dns_ineligible` | The host is not in the policy, so its name was not resolved. | Could not resolve host. | | `transparent_tcp_policy_denied` | A connection to a host or address the policy does not list. | Could not connect. | | `binary ... not allowed in policy` | The host is listed, but not for this program. The line names the program and the programs above it. | A refused connection. | | `policy_denied` | The host is listed, but the rule does not allow this method or path. | HTTP 403 with the same reason in JSON. | | `credential_endpoint_mismatch` | A stored key or token was sent to a host it is not bound to. | HTTP 403 with the same reason in JSON. | | `credential_placement_mismatch` | A stored key or token was sent in a part of the request its profile does not name, such as the query or another header. OpenShell 0.1.8 refuses that. | HTTP 403 with the same reason in JSON. | The first two look like a network outage from inside the sandbox. That is why the log, not the agent's error, is where to start. See [A blocked host looks like a network error](https://fenzi.dev/docs/troubleshooting#refused). ## reset lines When the network policy changes, for example after an approval, the sandbox closes open connections so that every new one is checked against the new rules. Those show up as `reset`. The client reconnects. Nothing was refused, so `--deny` leaves them out. ## Where it is kept While the sandbox runs, `log` reads the runtime's stream. Deleting a sandbox deletes the runtime's copy, so when the agent exits Fenzi waits until the log stops growing and saves it to `~/.cache/fenzi/runs//sandbox.log` before it asks whether to delete the sandbox. Finished sandboxes are read from that file. Decisions are recorded in OCSF, an open schema for security events, so they line up with what a SIEM already expects. ## What the log does not hold - **Blocked file writes.** The runtime does not record them. The agent sees `Permission denied`. - **Request bodies, headers, and query strings.** A decision names the method and path, never the payload. - **The agent's conversation or terminal output.** Those stay in your terminal. - **Calls the sandbox never sees.** If a model vendor runs a tool on its own side, such as Claude Code's web search, the only line is the call to the model API. See [Known limits](https://fenzi.dev/docs/limits). ## On Team `fenzi forward` sends each decision to the console, where you can filter by machine, sandbox, destination, or action across the whole team. If part of the stream was lost, the console shows the gap instead of hiding it. See [Forwarding decisions](https://fenzi.dev/docs/forwarder). The same records export as JSONL for your own tools.