✔ sessionModel: agent vars win, then the system's execution settings (12.174642ms)
✔ a pi bundle: prompt, policy, tools and manifest, 0600 in a 0700 directory (5.164613ms)
✔ a claude-code bundle adds the wrapped gate hook and the MCP config (2.418064ms)
✔ a bundle is written once: an existing file refuses (1.722343ms)
✔ a path with a single quote can't go into the hook command (1.658098ms)
✔ allow exits 0, a deny exits 2 with the reason on stderr (119.743025ms)
✔ a missing or wrong policy, or a bad event, exits 2 (77.766471ms)
✔ the bundle's wrapped command: a missing gate or node still blocks (1086.900813ms)
✔ claude: typed tools through MCP, the hook blocks, builtins outside --tools don't exist (733.236148ms)
✔ claude: the hook alone blocks a path outside the workspace (545.313347ms)
✔ claude: a second turn resumes the first turn's session (734.516306ms)
✔ claude adapter: --restricted is always passed (5.339234ms)
✔ claude: CLAUDE.md files and auto-memory don't reach the model; without --restricted they do (736.377038ms)
✔ claude: a missing hook or MCP file refuses before claude starts (7.585714ms)
✔ pi: policy tools and typed tools pass, anything else is blocked (3.375545ms)
✔ claude: builtins map from pi names, typed tools need the mcp prefix (0.881108ms)
✔ file tool paths must resolve inside the workspace (1.118282ms)
✔ pi's own path normalisation can't be used to step out (0.80142ms)
✔ a symlink inside the workspace that points out is outside (0.842261ms)
✔ a dangling symlink is refused at any depth, in both harnesses (2.728819ms)
✔ read is checked under every spelling pi's read would open, in both harnesses (13.971212ms)
✔ other spellings cover directories, dangling links and pi's cwd (1.336928ms)
✔ a relative path climbs from the workspace's real path, in both harnesses (4.249754ms)
✔ claude path fields per tool (0.778025ms)
✔ glob patterns stay inside the workspace (0.582081ms)
✔ a path that can't be checked is blocked (0.389253ms)
✔ initialize, ping and tools/list (41.590382ms)
✔ tools/call goes through the tool socket; a refusal is an isError result (29.687455ms)
✔ unknown tools and methods are JSON-RPC errors and never reach the socket (27.839299ms)
✔ a missing argument is a usage error (29.511723ms)
✔ pi: typed tools reach the socket, the gate blocks, agent_end writes the marker (342.258848ms)
✔ pi: a write through a dangling symlink is blocked, and nothing appears outside (329.954183ms)
✔ pi: a read is refused when pi would open another spelling outside (391.03747ms)
✔ pi: a relative path climbs from the real path of a workspace behind a symlink (337.070562ms)
✔ pi: a relative path climbs from the real path of a dataRoot behind a symlink (310.591766ms)
✔ pi: a missing extension refuses before any model call (6.795663ms)
✔ pi: an extension without its configuration fails pi's start (273.888723ms)
✔ founderCheck: founder variables, then a needed service without a usable token (1.401858ms)
✔ turnRequest names the sender, class, reply and decision (0.245937ms)
✔ a message becomes a turn, the answer goes back as a RESULT, SIGTERM releases and exits 0 (242.13304ms)
✔ a SIGTERM before the claim stops the runner with exit 0 and no claim (96.795615ms)
✔ typed tools carry the runner's capability; launch goes to the host's launch socket (399.58747ms)
✔ a RESULT gets no automatic reply; failed turns reply with the reason (1379.730931ms)
✔ SIGTERM during a turn kills the turn's process group and still exits 0 (168.713214ms)
✔ founder credentials stop before the claim (20) (165.371255ms)
✔ a refused claim exits 21; an ended run's capability exits 22 (189.675151ms)
✔ the launch ending under a running session exits 22 (142.691479ms)
✔ a broker that stays unreachable exits 23 after brokerRetries polls (253.317151ms)
✔ a broker that is down at the claim exits 23, not 21 (95.220818ms)
✔ no capability, or a malformed one, on stdin exits 2 (197.689545ms)
✔ a missing or malformed policy exits 2 before the claim (121.8547ms)
✔ the PM gets launch, its task verbs and the reads (7.064528ms)
✔ a coder gets no launch, no resolve_decision, and no task tools without a tracker (1.962884ms)
✔ launch only when the business's launch block names the instance as launcher (2.011183ms)
✔ an action outside the instance's authority has no tool (2.153315ms)
✔ callTool: one JSON line out, the result back, a refusal rejects (8.350813ms)
ℹ tests 56
ℹ suites 0
ℹ pass 56
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 10413.058302
