✔ sessionModel: agent vars win, then the system's execution settings (9.863443ms)
✔ a pi bundle: prompt, policy, tools and manifest, 0600 in a 0700 directory (4.904843ms)
✔ a claude-code bundle adds the wrapped gate hook and the MCP config (2.507558ms)
✔ a bundle is written once: an existing file refuses (2.342637ms)
✔ a path with a single quote can't go into the hook command (2.404071ms)
✔ allow exits 0, a deny exits 2 with the reason on stderr (119.133617ms)
✔ a missing or wrong policy, or a bad event, exits 2 (89.62829ms)
✔ the bundle's wrapped command: a missing gate or node still blocks (1090.433581ms)
✔ claude: typed tools through MCP, the hook blocks, builtins outside --tools don't exist (764.522718ms)
✔ claude: the hook alone blocks a path outside the workspace (429.718725ms)
✔ claude: a second turn resumes the first turn's session (697.342346ms)
✔ claude: a missing hook or MCP file refuses before claude starts (7.462303ms)
✔ pi: policy tools and typed tools pass, anything else is blocked (3.652974ms)
✔ claude: builtins map from pi names, typed tools need the mcp prefix (1.053779ms)
✔ file tool paths must resolve inside the workspace (1.386549ms)
✔ pi's own path normalisation can't be used to step out (1.267113ms)
✔ a symlink inside the workspace that points out is outside (1.233345ms)
✔ claude path fields per tool (1.085399ms)
✔ glob patterns stay inside the workspace (1.257359ms)
✔ a path that can't be checked is blocked (0.780884ms)
✔ initialize, ping and tools/list (45.612153ms)
✔ tools/call goes through the tool socket; a refusal is an isError result (35.942819ms)
✔ unknown tools and methods are JSON-RPC errors and never reach the socket (36.869003ms)
✔ a missing argument is a usage error (31.167661ms)
✔ pi: typed tools reach the socket, the gate blocks, agent_end writes the marker (362.276951ms)
✔ pi: a missing extension refuses before any model call (7.449552ms)
✔ pi: an extension without its configuration fails pi's start (260.274424ms)
✔ founderCheck: founder variables, then a needed service without a usable token (1.668322ms)
✔ turnRequest names the sender, class, reply and decision (0.273454ms)
✔ a message becomes a turn, the answer goes back as a RESULT, SIGTERM releases and exits 0 (245.265643ms)
✔ a SIGTERM before the claim stops the runner with exit 0 and no claim (105.218887ms)
✔ typed tools carry the runner's capability; launch goes to the host's launch socket (395.154351ms)
✔ a RESULT gets no automatic reply; failed turns reply with the reason (1288.799719ms)
✔ SIGTERM during a turn kills the turn's process group and still exits 0 (150.812622ms)
✔ founder credentials stop before the claim (20) (163.622892ms)
✔ a refused claim exits 21; an ended run's capability exits 22 (193.590834ms)
✔ the launch ending under a running session exits 22 (142.09675ms)
✔ a broker that stays unreachable exits 23 after brokerRetries polls (280.860796ms)
✔ a broker that is down at the claim exits 23, not 21 (88.821778ms)
✔ no capability, or a malformed one, on stdin exits 2 (155.374009ms)
✔ the PM gets launch, its task verbs and the reads (9.166295ms)
✔ a coder gets no launch, no resolve_decision, and no task tools without a tracker (2.866852ms)
✔ launch only when the business's launch block names the instance as launcher (2.365004ms)
✔ an action outside the instance's authority has no tool (2.33749ms)
✔ callTool: one JSON line out, the result back, a refusal rejects (8.138127ms)
ℹ tests 45
ℹ suites 0
ℹ pass 45
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 10300.527757
