✔ sessionModel: agent vars win, then the system's execution settings (16.419969ms)
✔ a pi bundle: prompt, policy, tools and manifest, 0600 in a 0700 directory (7.907433ms)
✔ a claude-code bundle adds the wrapped gate hook and the MCP config (4.748261ms)
✔ a bundle is written once: an existing file refuses (3.551392ms)
✔ a path with a single quote can't go into the hook command (3.6116ms)
✔ allow exits 0, a deny exits 2 with the reason on stderr (154.868776ms)
✔ a missing or wrong policy, or a bad event, exits 2 (84.333949ms)
✔ the bundle's wrapped command: a missing gate or node still blocks (1086.679703ms)
✔ claude: typed tools through MCP, the hook blocks, builtins outside --tools don't exist (767.100937ms)
✔ claude: the hook alone blocks a path outside the workspace (436.596675ms)
✔ claude: a second turn resumes the first turn's session (729.009786ms)
✔ claude adapter: --restricted is always passed (5.051284ms)
✔ claude: CLAUDE.md files and auto-memory don't reach the model; without --restricted they do (752.813721ms)
✔ claude: a missing hook or MCP file refuses before claude starts (9.431351ms)
✔ pi: policy tools and typed tools pass, anything else is blocked (4.314906ms)
✔ claude: builtins map from pi names, typed tools need the mcp prefix (1.05245ms)
✔ file tool paths must resolve inside the workspace (2.215003ms)
✔ pi's own path normalisation can't be used to step out (1.563926ms)
✔ a symlink inside the workspace that points out is outside (1.278773ms)
✔ a dangling symlink is refused at any depth, in both harnesses (4.68278ms)
✔ read is checked under every spelling pi's read would open, in both harnesses (26.116575ms)
✔ other spellings cover directories, dangling links and pi's cwd (2.149847ms)
✔ a relative path climbs from the workspace's real path, in both harnesses (5.004587ms)
✔ claude path fields per tool (0.791412ms)
✔ glob patterns stay inside the workspace (0.664173ms)
✔ a path that can't be checked is blocked (0.371877ms)
✔ initialize, ping and tools/list (57.874523ms)
✔ tools/call goes through the tool socket; a refusal is an isError result (44.19034ms)
✔ unknown tools and methods are JSON-RPC errors and never reach the socket (40.393765ms)
✔ a missing argument is a usage error (29.144246ms)
✔ pi: typed tools reach the socket, the gate blocks, agent_end writes the marker (389.968217ms)
✔ pi: a write through a dangling symlink is blocked, and nothing appears outside (315.424366ms)
✔ pi: a read is refused when pi would open another spelling outside (313.603289ms)
✔ pi: a relative path climbs from the real path of a workspace behind a symlink (309.690487ms)
✔ pi: a relative path climbs from the real path of a dataRoot behind a symlink (329.985874ms)
✔ pi: a missing extension refuses before any model call (7.347651ms)
✔ pi: an extension without its configuration fails pi's start (252.241598ms)
✔ founderCheck: founder variables, then a needed service without a usable token (1.886259ms)
✔ turnRequest names the sender, class, reply and decision (0.25284ms)
✔ a message becomes a turn, the answer goes back as a RESULT, SIGTERM releases and exits 0 (268.26198ms)
✔ a SIGTERM before the claim stops the runner with exit 0 and no claim (106.707276ms)
✔ typed tools carry the runner's capability; launch goes to the host's launch socket (369.174258ms)
✔ a RESULT gets no automatic reply; failed turns reply with the reason (1292.260566ms)
✔ SIGTERM during a turn kills the turn's process group and still exits 0 (164.241797ms)
✔ founder credentials stop before the claim (20) (170.743016ms)
✔ a refused claim exits 21; an ended run's capability exits 22 (208.541368ms)
✔ the launch ending under a running session exits 22 (147.66599ms)
✔ a broker that stays unreachable exits 23 after brokerRetries polls (243.905838ms)
✔ a broker that is down at the claim exits 23, not 21 (92.452572ms)
✔ no capability, or a malformed one, on stdin exits 2 (184.969794ms)
✔ a missing or malformed policy exits 2 before the claim (130.261538ms)
✔ the PM gets launch, its task verbs and the reads (11.660568ms)
✔ a coder gets no launch, no resolve_decision, and no task tools without a tracker (4.20283ms)
✔ launch only when the business's launch block names the instance as launcher (2.073248ms)
✔ an action outside the instance's authority has no tool (1.784904ms)
✔ callTool: one JSON line out, the result back, a refusal rejects (11.548405ms)
ℹ tests 56
ℹ suites 0
ℹ pass 56
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 10368.226809
