✔ sessionModel: agent vars win, then the system's execution settings (17.278444ms)
✔ a pi bundle: prompt, policy, tools and manifest, 0600 in a 0700 directory (6.894082ms)
✔ a claude-code bundle adds the wrapped gate hook and the MCP config (5.689389ms)
✔ a bundle is written once: an existing file refuses (2.33278ms)
✔ a path with a single quote can't go into the hook command (3.881591ms)
✔ allow exits 0, a deny exits 2 with the reason on stderr (130.760929ms)
✔ a missing or wrong policy, or a bad event, exits 2 (76.614744ms)
✔ the bundle's wrapped command: a missing gate or node still blocks (1087.842947ms)
✔ claude: typed tools through MCP, the hook blocks, builtins outside --tools don't exist (731.662814ms)
✔ claude: the hook alone blocks a path outside the workspace (467.79837ms)
✔ claude: a second turn resumes the first turn's session (708.774651ms)
✔ claude: a missing hook or MCP file refuses before claude starts (16.048526ms)
✔ pi: policy tools and typed tools pass, anything else is blocked (3.616285ms)
✔ claude: builtins map from pi names, typed tools need the mcp prefix (0.753166ms)
✔ file tool paths must resolve inside the workspace (1.154562ms)
✔ pi's own path normalisation can't be used to step out (1.161134ms)
✔ a symlink inside the workspace that points out is outside (1.095973ms)
✔ claude path fields per tool (0.776238ms)
✔ glob patterns stay inside the workspace (1.201128ms)
✔ a path that can't be checked is blocked (0.581822ms)
✔ initialize, ping and tools/list (44.402251ms)
✔ tools/call goes through the tool socket; a refusal is an isError result (31.674476ms)
✔ unknown tools and methods are JSON-RPC errors and never reach the socket (30.522533ms)
✔ a missing argument is a usage error (28.622595ms)
✔ pi: typed tools reach the socket, the gate blocks, agent_end writes the marker (350.095579ms)
✔ pi: a missing extension refuses before any model call (8.3472ms)
✔ pi: an extension without its configuration fails pi's start (275.717684ms)
✔ founderCheck: founder variables, then a needed service without a usable token (1.095529ms)
✔ turnRequest names the sender, class, reply and decision (0.177223ms)
✔ a message becomes a turn, the answer goes back as a RESULT, SIGTERM releases and exits 0 (238.692774ms)
✔ a SIGTERM before the claim stops the runner with exit 0 and no claim (99.758588ms)
✔ typed tools carry the runner's capability; launch goes to the host's launch socket (439.551997ms)
✔ a RESULT gets no automatic reply; failed turns reply with the reason (1312.043711ms)
✔ SIGTERM during a turn kills the turn's process group and still exits 0 (151.833299ms)
✔ founder credentials stop before the claim (20) (166.088906ms)
✔ a refused claim exits 21; an ended run's capability exits 22 (212.018616ms)
✔ the launch ending under a running session exits 22 (155.468877ms)
✔ a broker that stays unreachable exits 23 after brokerRetries polls (248.508739ms)
✔ a broker that is down at the claim exits 23, not 21 (105.883143ms)
✔ no capability, or a malformed one, on stdin exits 2 (153.856802ms)
✔ the PM gets launch, its task verbs and the reads (8.254629ms)
✔ a coder gets no launch, no resolve_decision, and no task tools without a tracker (4.257605ms)
✔ launch only when the business's launch block names the instance as launcher (1.639872ms)
✔ an action outside the instance's authority has no tool (1.401759ms)
✔ callTool: one JSON line out, the result back, a refusal rejects (8.517699ms)
ℹ tests 45
ℹ suites 0
ℹ pass 45
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 10363.182249
