✔ sessionModel: agent vars win, then the system's execution settings (11.615827ms)
✔ a pi bundle: prompt, policy, tools and manifest, 0600 in a 0700 directory (4.608262ms)
✔ a claude-code bundle adds the wrapped gate hook and the MCP config (3.093679ms)
✔ a bundle is written once: an existing file refuses (2.743247ms)
✔ a path with a single quote can't go into the hook command (1.960427ms)
✔ allow exits 0, a deny exits 2 with the reason on stderr (129.070397ms)
✔ a missing or wrong policy, or a bad event, exits 2 (95.751067ms)
✔ the bundle's wrapped command: a missing gate or node still blocks (1098.628901ms)
✔ claude: typed tools through MCP, the hook blocks, builtins outside --tools don't exist (833.557723ms)
✔ claude: the hook alone blocks a path outside the workspace (501.161697ms)
✔ claude: a second turn resumes the first turn's session (799.047884ms)
✔ claude: a missing hook or MCP file refuses before claude starts (7.620084ms)
✔ pi: policy tools and typed tools pass, anything else is blocked (3.560331ms)
✔ claude: builtins map from pi names, typed tools need the mcp prefix (1.195475ms)
✔ file tool paths must resolve inside the workspace (1.373421ms)
✔ pi's own path normalisation can't be used to step out (1.395868ms)
✔ a symlink inside the workspace that points out is outside (1.15816ms)
✔ claude path fields per tool (1.025541ms)
✖ glob patterns stay inside the workspace (2.186725ms)
✔ a path that can't be checked is blocked (0.852835ms)
✔ initialize, ping and tools/list (48.515972ms)
✔ tools/call goes through the tool socket; a refusal is an isError result (31.715873ms)
✔ unknown tools and methods are JSON-RPC errors and never reach the socket (30.592543ms)
✔ a missing argument is a usage error (32.791709ms)
✔ pi: typed tools reach the socket, the gate blocks, agent_end writes the marker (403.4094ms)
✔ pi: a missing extension refuses before any model call (8.601035ms)
✔ pi: an extension without its configuration fails pi's start (303.980444ms)
✔ founderCheck: founder variables, then a needed service without a usable token (1.638328ms)
✔ turnRequest names the sender, class, reply and decision (0.265375ms)
✔ a message becomes a turn, the answer goes back as a RESULT, SIGTERM releases and exits 0 (353.187333ms)
✔ a SIGTERM before the claim stops the runner with exit 0 and no claim (165.33647ms)
✔ typed tools carry the runner's capability; launch goes to the host's launch socket (717.750899ms)
✔ a RESULT gets no automatic reply; failed turns reply with the reason (1432.11811ms)
✔ SIGTERM during a turn kills the turn's process group and still exits 0 (276.246822ms)
✔ founder credentials stop before the claim (20) (215.437887ms)
✔ a refused claim exits 21; an ended run's capability exits 22 (382.043681ms)
✔ the launch ending under a running session exits 22 (173.218595ms)
✔ a broker that stays unreachable exits 23 after brokerRetries polls (348.026841ms)
✔ a broker that is down at the claim exits 23, not 21 (243.327611ms)
✔ no capability, or a malformed one, on stdin exits 2 (273.537344ms)
✔ the PM gets launch, its task verbs and the reads (9.380584ms)
✔ a coder gets no launch, no resolve_decision, and no task tools without a tracker (2.545292ms)
✔ launch only when the business's launch block names the instance as launcher (1.844344ms)
✔ an action outside the instance's authority has no tool (2.256037ms)
✔ callTool: one JSON line out, the result back, a refusal rejects (7.218466ms)
ℹ tests 45
ℹ suites 0
ℹ pass 44
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 11069.564681

✖ failing tests:

test at packages/harness/tests/gate.test.mjs:92:1
✖ glob patterns stay inside the workspace (2.186725ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
  
  true !== false
  
      at blocked (file:///home/jwoltje/darkwing-scratch/r41/wt/packages/harness/tests/gate.test.mjs:19:10)
      at TestContext.<anonymous> (file:///home/jwoltje/darkwing-scratch/r41/wt/packages/harness/tests/gate.test.mjs:98:5)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1402:25)
      at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
      at Test.postRun (node:internal/test_runner/test:1542:19)
      at Test.run (node:internal/test_runner/test:1467:12)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: true,
    expected: false,
    operator: 'strictEqual',
    diff: 'simple'
  }
