✔ sessionModel: agent vars win, then the system's execution settings (9.866803ms)
✔ a pi bundle: prompt, policy, tools and manifest, 0600 in a 0700 directory (4.436208ms)
✔ a claude-code bundle adds the wrapped gate hook and the MCP config (2.729439ms)
✔ a bundle is written once: an existing file refuses (1.77934ms)
✔ a path with a single quote can't go into the hook command (1.80468ms)
✔ allow exits 0, a deny exits 2 with the reason on stderr (126.770406ms)
✔ a missing or wrong policy, or a bad event, exits 2 (76.681201ms)
✔ the bundle's wrapped command: a missing gate or node still blocks (1093.817326ms)
✔ claude: typed tools through MCP, the hook blocks, builtins outside --tools don't exist (754.278903ms)
✔ claude: the hook alone blocks a path outside the workspace (481.812812ms)
✔ claude: a second turn resumes the first turn's session (713.762483ms)
✔ claude adapter: --restricted is always passed (4.950058ms)
✔ claude: CLAUDE.md files and auto-memory don't reach the model; without --restricted they do (717.308696ms)
✔ claude: a missing hook or MCP file refuses before claude starts (7.466398ms)
✔ pi: policy tools and typed tools pass, anything else is blocked (3.399466ms)
✔ claude: builtins map from pi names, typed tools need the mcp prefix (0.784748ms)
✔ file tool paths must resolve inside the workspace (0.998403ms)
✔ pi's own path normalisation can't be used to step out (0.906289ms)
✔ a symlink inside the workspace that points out is outside (0.787366ms)
✔ a dangling symlink is refused at any depth, in both harnesses (2.581633ms)
✔ read is checked under every spelling pi's read would open, in both harnesses (15.173931ms)
✔ other spellings cover directories, dangling links and pi's cwd (1.755587ms)
✔ claude path fields per tool (0.614355ms)
✔ glob patterns stay inside the workspace (0.669965ms)
✔ a path that can't be checked is blocked (0.330426ms)
✔ initialize, ping and tools/list (43.946107ms)
✔ tools/call goes through the tool socket; a refusal is an isError result (39.418977ms)
✔ unknown tools and methods are JSON-RPC errors and never reach the socket (28.163039ms)
✔ a missing argument is a usage error (33.807275ms)
✔ pi: typed tools reach the socket, the gate blocks, agent_end writes the marker (357.982252ms)
✔ pi: a write through a dangling symlink is blocked, and nothing appears outside (329.534992ms)
✔ pi: a read is refused when pi would open another spelling outside (330.331356ms)
✔ pi: a missing extension refuses before any model call (7.207519ms)
✔ pi: an extension without its configuration fails pi's start (262.623748ms)
✔ founderCheck: founder variables, then a needed service without a usable token (1.361445ms)
✔ turnRequest names the sender, class, reply and decision (0.286463ms)
✔ a message becomes a turn, the answer goes back as a RESULT, SIGTERM releases and exits 0 (280.080623ms)
✔ a SIGTERM before the claim stops the runner with exit 0 and no claim (131.852678ms)
✔ typed tools carry the runner's capability; launch goes to the host's launch socket (555.206373ms)
✔ a RESULT gets no automatic reply; failed turns reply with the reason (1350.970037ms)
✔ SIGTERM during a turn kills the turn's process group and still exits 0 (163.705924ms)
✔ founder credentials stop before the claim (20) (181.182154ms)
✔ a refused claim exits 21; an ended run's capability exits 22 (216.20297ms)
✔ the launch ending under a running session exits 22 (150.079251ms)
✔ a broker that stays unreachable exits 23 after brokerRetries polls (246.177626ms)
✔ a broker that is down at the claim exits 23, not 21 (143.792117ms)
✔ no capability, or a malformed one, on stdin exits 2 (260.79667ms)
✔ a missing or malformed policy exits 2 before the claim (260.249644ms)
✔ the PM gets launch, its task verbs and the reads (9.127299ms)
✔ a coder gets no launch, no resolve_decision, and no task tools without a tracker (3.041734ms)
✔ launch only when the business's launch block names the instance as launcher (1.525074ms)
✔ an action outside the instance's authority has no tool (1.464781ms)
✔ callTool: one JSON line out, the result back, a refusal rejects (9.215168ms)
ℹ tests 53
ℹ suites 0
ℹ pass 53
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 10592.472255
