✔ sessionModel: agent vars win, then the system's execution settings (14.050443ms)
✔ a pi bundle: prompt, policy, tools and manifest, 0600 in a 0700 directory (6.120541ms)
✔ a claude-code bundle adds the wrapped gate hook and the MCP config (4.081354ms)
✔ a bundle is written once: an existing file refuses (2.996025ms)
✔ a path with a single quote can't go into the hook command (2.951571ms)
✔ allow exits 0, a deny exits 2 with the reason on stderr (150.595498ms)
✔ a missing or wrong policy, or a bad event, exits 2 (124.742454ms)
✔ the bundle's wrapped command: a missing gate or node still blocks (1126.482389ms)
✔ claude: typed tools through MCP, the hook blocks, builtins outside --tools don't exist (909.741969ms)
✔ claude: the hook alone blocks a path outside the workspace (516.900249ms)
✔ claude: a second turn resumes the first turn's session (763.872943ms)
✔ claude: a missing hook or MCP file refuses before claude starts (8.211736ms)
✔ pi: policy tools and typed tools pass, anything else is blocked (3.953963ms)
✔ claude: builtins map from pi names, typed tools need the mcp prefix (0.997202ms)
✔ file tool paths must resolve inside the workspace (1.423588ms)
✔ pi's own path normalisation can't be used to step out (1.401389ms)
✔ a symlink inside the workspace that points out is outside (1.139946ms)
✔ claude path fields per tool (0.791831ms)
✔ glob patterns stay inside the workspace (0.945422ms)
✔ a path that can't be checked is blocked (0.646247ms)
✔ initialize, ping and tools/list (51.210531ms)
✔ tools/call goes through the tool socket; a refusal is an isError result (41.206446ms)
✔ unknown tools and methods are JSON-RPC errors and never reach the socket (38.168479ms)
✔ a missing argument is a usage error (39.579956ms)
✔ pi: typed tools reach the socket, the gate blocks, agent_end writes the marker (496.281275ms)
✔ pi: a missing extension refuses before any model call (9.103805ms)
✔ pi: an extension without its configuration fails pi's start (301.173776ms)
✔ founderCheck: founder variables, then a needed service without a usable token (1.727546ms)
✔ turnRequest names the sender, class, reply and decision (0.275096ms)
✔ a message becomes a turn, the answer goes back as a RESULT, SIGTERM releases and exits 0 (264.146564ms)
✔ a SIGTERM before the claim stops the runner with exit 0 and no claim (143.576835ms)
✔ typed tools carry the runner's capability; launch goes to the host's launch socket (536.40783ms)
✔ a RESULT gets no automatic reply; failed turns reply with the reason (1382.766716ms)
✔ SIGTERM during a turn kills the turn's process group and still exits 0 (214.519665ms)
✔ founder credentials stop before the claim (20) (304.717878ms)
✔ a refused claim exits 21; an ended run's capability exits 22 (320.859843ms)
✔ the launch ending under a running session exits 22 (207.759761ms)
✔ a broker that stays unreachable exits 23 after brokerRetries polls (302.795855ms)
✔ a broker that is down at the claim exits 23, not 21 (148.704368ms)
✔ no capability, or a malformed one, on stdin exits 2 (210.336697ms)
✔ the PM gets launch, its task verbs and the reads (9.712494ms)
✔ a coder gets no launch, no resolve_decision, and no task tools without a tracker (3.23337ms)
✔ launch only when the business's launch block names the instance as launcher (2.566048ms)
✔ an action outside the instance's authority has no tool (3.156249ms)
✔ callTool: one JSON line out, the result back, a refusal rejects (9.65517ms)
ℹ tests 45
ℹ suites 0
ℹ pass 45
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 10678.399832
