✔ sessionModel: agent vars win, then the system's execution settings (16.136002ms)
✔ a pi bundle: prompt, policy, tools and manifest, 0600 in a 0700 directory (6.306827ms)
✔ a chief-of-staff bundle lists launch among the bus tools and the manifest's typed tools (5.466187ms)
✔ a chief-of-staff bundle lists end_run and change_organization as typed and only instance.name untyped, for either harness (7.656888ms)
✔ the stop line names end_run for a role.end holder, and every other role keeps today's text (9.688408ms)
✔ a claude-code bundle adds the wrapped gate hook and the MCP config (3.095689ms)
✔ the prompt's built-in tools line is the harness's own names, as the manifest lists them (10.470333ms)
✔ the prompt names the project clones in the workspace, and none when there are none (10.269214ms)
✔ the prompt explains the review loop to a role with push_working, and reviews to one with fetch_review (10.128129ms)
✔ the prompt explains landing to a role with land_work, and to no other (5.24414ms)
✔ the prompt tells the pm to ask the chief of staff for sessions, and no other role (9.306683ms)
✔ a bundle is written once: an existing file refuses (2.711852ms)
✔ a path with a single quote can't go into the hook command (2.262094ms)
✔ web grant on pi: the bundle has web_search and web_fetch, and no built-in web tool (2.996218ms)
✔ no web grant on pi: no web tool in the bundle, and the gate blocks a web call (2.493161ms)
✔ web grant on claude-code: the bundle has web_search and web_fetch, and no built-in web tool (3.084986ms)
✔ no web grant on claude-code: no web tool in the bundle, and the gate blocks a web call (2.395096ms)
✔ a granted session's gate lets the typed web tools through and still blocks the built-ins (2.771407ms)
✔ search-source searxng-url: a granted role gets the typed broker tools and no harness web tool; an ungranted role gets nothing (8.657042ms)
✔ search-source searxng-bundled: a granted role gets the typed broker tools and no harness web tool; an ungranted role gets nothing (6.42087ms)
✔ search-source harness-builtin: claude-code gets WebSearch and WebFetch and no typed web tool, only when granted (9.595286ms)
✔ search-source harness-builtin is refused for a granted pi role, which has no built-in web tool (2.726879ms)
✔ allow exits 0, a deny exits 2 with the reason on stderr (177.494484ms)
✔ a missing or wrong policy, or a bad event, exits 2 (105.510879ms)
✔ the bundle's wrapped command: a missing gate or node still blocks (1102.1044ms)
✔ claude: typed tools through MCP, the hook blocks, builtins outside --tools don't exist (947.282342ms)
✔ claude: the hook alone blocks a path outside the workspace (486.815422ms)
✔ claude: a second turn resumes the first turn's session (834.303746ms)
✔ claude adapter: --restricted is always passed (5.692992ms)
✔ claude adapter: MOSAIC_CLAUDE_BIN wins over PATH and must be an absolute executable (23.723942ms)
✔ claude adapter: a directory pin exits 2 before it runs; a pin with a space runs (7.799818ms)
✔ claude: CLAUDE.md files and auto-memory don't reach the model; without --restricted they do (700.751402ms)
✔ claude: a missing hook or MCP file refuses before claude starts (7.42221ms)
✔ pi: policy tools and typed tools pass, anything else is blocked (4.850098ms)
✔ claude: builtins map from pi names, typed tools need the mcp prefix (1.030386ms)
✔ file tool paths must resolve inside the workspace (2.184439ms)
✔ pi's own path normalisation can't be used to step out (1.436485ms)
✔ a symlink inside the workspace that points out is outside (1.482695ms)
✔ a dangling symlink is refused at any depth, in both harnesses (4.4336ms)
✔ read is checked under every spelling pi's read would open, in both harnesses (24.055995ms)
✔ other spellings cover directories, dangling links and pi's cwd (1.932994ms)
✔ a relative path climbs from the workspace's real path, in both harnesses (6.674972ms)
✔ claude path fields per tool (0.992587ms)
✔ glob patterns stay inside the workspace (0.92766ms)
✔ a path that can't be checked is blocked (0.510308ms)
✔ fetch_review's have lists the working refs before origin's, and no more than HAVE_MAX (318.17764ms)
✔ fetch_review's have orders the working refs newest first within each clone, one clone after another (180.511053ms)
✔ a runner git past its time: SIGTERM reaches its process group, and SIGKILL follows after the grace period (1810.577847ms)
✔ once a signalled runner git has closed, its group gets SIGKILL, so a process that ignored SIGTERM dies too (303.787319ms)
✔ land_work sends one land line and resolves the host's started answer (3.584217ms)
✔ initialize, ping and tools/list (58.613418ms)
✔ tools/call goes through the tool socket; a refusal is an isError result (56.789919ms)
✔ replies are compact JSON; over the cap a tool error names the size and the cap (62.265234ms)
✔ unknown tools and methods are JSON-RPC errors and never reach the socket (36.973263ms)
✔ a missing argument is a usage error (35.469119ms)
✔ pi: typed tools reach the socket, the gate blocks, agent_end writes the marker (488.326093ms)
✔ pi: a reply over the cap is a tool error naming the size and the cap; list_tasks asks for open tasks (424.385295ms)
✔ pi: a write through a dangling symlink is blocked, and nothing appears outside (379.627666ms)
✔ pi: a read is refused when pi would open another spelling outside (392.451875ms)
✔ pi: a relative path climbs from the real path of a workspace behind a symlink (408.453663ms)
✔ pi: a relative path climbs from the real path of a dataRoot behind a symlink (317.006688ms)
✔ pi: a missing extension refuses before any model call (6.718335ms)
✔ pi: an extension without its configuration fails pi's start (260.557337ms)
✔ founderCheck: founder variables, then a needed service without a usable token (1.645564ms)
✔ turnRequest names the sender, class, reply and decision (0.273389ms)
✔ turnRequest says a tester's message is a test and never Jason's instruction (0.299664ms)
✔ turnRequest shows the message's own sent time, a day old as well as new (0.193473ms)
✔ stateBlock names the launch state with its time and event, and the open tasks with the cap (0.31127ms)
✔ a message becomes a turn, the answer goes back as a RESULT, SIGTERM releases and exits 0 (226.530926ms)
✔ launches revoked and then restored: the turn's block reads allowed and gives the restore time (232.248362ms)
✔ a task closed on the tracker is missing from the next turn's open list (256.679301ms)
✔ a message read a day after it was sent shows the time it was sent (117.933657ms)
✔ a decision the human resolves becomes a turn citing the decision and the answer (169.978117ms)
✔ a failed state read fails the turn: no adapter runs, the sender hears why, the message is read (67.058537ms)
✔ a SIGTERM before the claim stops the runner with exit 0 and no claim (68.398345ms)
✔ typed tools carry the runner's capability; launch goes to the host's launch socket (256.603136ms)
✔ end_run and change_organization reach the broker with the tool's arguments, and refusals keep their codes (312.56292ms)
✔ a RESULT gets no automatic reply; failed turns reply with the reason (1235.442651ms)
✔ the bus's launch notice is one turn with no reply, and is not taken again (217.307919ms)
✔ SIGTERM during a turn kills the turn's process group and still exits 0 (94.104525ms)
✔ founder credentials stop before the claim (20) (93.648366ms)
✔ a refused claim exits 21; an ended run's capability exits 22 (102.573698ms)
✔ the launch ending under a running session exits 22 (101.490396ms)
✔ a broker that stays unreachable exits 23 after brokerRetries polls (203.348796ms)
✔ a broker that is down at the claim exits 23, not 21 (50.143611ms)
✔ no capability, or a malformed one, on stdin exits 2 (154.630582ms)
✔ a missing or malformed policy exits 2 before the claim (84.360203ms)
✔ every role sees read_spec, record writer follows its grant, citation schemas stay strict (18.057278ms)
✔ typed socket forwards read content/history and agent record writes, and cannot write a spec (139.076404ms)
✔ the PM gets its task verbs and the reads, and no launch (10.334274ms)
✔ send_message offers the BLOCK class, beside the classes it already had (6.139955ms)
✔ the chief of staff gets launch, send_message, end_run and change_organization, and no task verbs (2.393011ms)
✔ request_staff is the pm's alone: staff.request over message.send, roles and counts bounded (13.165252ms)
✔ end_run sends role and reason, no decision; change_organization sends revision and the organization keys (1.997812ms)
✔ the organization keys change_organization takes are the broker's ORGANIZATION_KEYS (0.152124ms)
✔ a role without role.end or organization.change gets neither tool, and each tool follows its own grant (11.430069ms)
✔ the assistant gets send_message, the reads and the web tools (it holds the web grant), no launch (2.760411ms)
✔ list_requirements reads the requirement ids, for a task.create holder with a tracker (4.013183ms)
✔ a coder gets no launch, no resolve_decision, and no task tools without a tracker (1.804702ms)
✔ a coder with a tracker gets its own task tools and no task_reassign (1.643045ms)
✔ launch only when the business's launch block names the instance as launcher (3.707479ms)
✔ an action outside the instance's authority has no tool (1.843734ms)
✔ the review loop: push_working and request_review for the coder, fetch_review and review_verdict for the reviewer, none for the PM (6.046921ms)
✔ land_work is there only with land, after push_working, with the task and the decision (4.613976ms)
✔ callTool: one JSON line out, the result back, a refusal rejects (16.275361ms)
✔ list_tasks takes the broker's filters and pages; get_task takes a task_ref (3.815413ms)
✔ callTool sends list_tasks done false unless the session names done; other tools as given (3.990687ms)
✔ replyText: compact JSON up to the cap, an error naming the size and the cap over it (0.998774ms)
✔ web_search's query maxLength is the web layer's SEARCH_MAX_QUERY_CHARS (3.890503ms)
ℹ tests 109
ℹ suites 0
ℹ pass 109
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 11424.067039
