88 lines
6.9 KiB
Plaintext
88 lines
6.9 KiB
Plaintext
✔ sessionModel: agent vars win, then the system's execution settings (15.958113ms)
|
||
✔ a pi bundle: prompt, policy, tools and manifest, 0600 in a 0700 directory (9.103047ms)
|
||
✔ a claude-code bundle adds the wrapped gate hook and the MCP config (4.756058ms)
|
||
✔ the prompt's built-in tools line is the harness's own names, as the manifest lists them (13.306042ms)
|
||
✔ the prompt names the project clones in the workspace, and none when there are none (8.273247ms)
|
||
✔ the prompt explains the review loop to a role with push_working, and reviews to one with fetch_review (9.893614ms)
|
||
✔ a bundle is written once: an existing file refuses (2.29674ms)
|
||
✔ a path with a single quote can't go into the hook command (2.724104ms)
|
||
✔ allow exits 0, a deny exits 2 with the reason on stderr (169.096943ms)
|
||
✔ a missing or wrong policy, or a bad event, exits 2 (117.200518ms)
|
||
✔ the bundle's wrapped command: a missing gate or node still blocks (1122.19007ms)
|
||
✔ claude: typed tools through MCP, the hook blocks, builtins outside --tools don't exist (905.258781ms)
|
||
✔ claude: the hook alone blocks a path outside the workspace (575.276044ms)
|
||
✔ claude: a second turn resumes the first turn's session (847.707487ms)
|
||
✔ claude adapter: --restricted is always passed (6.203057ms)
|
||
✔ claude adapter: MOSAIC_CLAUDE_BIN wins over PATH and must be an absolute executable (22.996141ms)
|
||
✔ claude adapter: a directory pin exits 2 before it runs; a pin with a space runs (8.007834ms)
|
||
✔ claude: CLAUDE.md files and auto-memory don't reach the model; without --restricted they do (811.735775ms)
|
||
✔ claude: a missing hook or MCP file refuses before claude starts (9.641035ms)
|
||
✔ pi: policy tools and typed tools pass, anything else is blocked (5.065197ms)
|
||
✔ claude: builtins map from pi names, typed tools need the mcp prefix (1.510078ms)
|
||
✔ file tool paths must resolve inside the workspace (2.265902ms)
|
||
✔ pi's own path normalisation can't be used to step out (1.849642ms)
|
||
✔ a symlink inside the workspace that points out is outside (1.238834ms)
|
||
✔ a dangling symlink is refused at any depth, in both harnesses (4.007724ms)
|
||
✔ read is checked under every spelling pi's read would open, in both harnesses (23.752079ms)
|
||
✔ other spellings cover directories, dangling links and pi's cwd (2.601822ms)
|
||
✔ a relative path climbs from the workspace's real path, in both harnesses (7.878381ms)
|
||
✔ claude path fields per tool (0.741323ms)
|
||
✔ glob patterns stay inside the workspace (0.683896ms)
|
||
✔ a path that can't be checked is blocked (0.397279ms)
|
||
✔ fetch_review's have lists the working refs before origin's, and no more than HAVE_MAX (338.972717ms)
|
||
✔ fetch_review's have orders the working refs newest first within each clone, one clone after another (186.04942ms)
|
||
✔ a runner git past its time: SIGTERM reaches its process group, and SIGKILL follows after the grace period (1809.1766ms)
|
||
✔ once a signalled runner git has closed, its group gets SIGKILL, so a process that ignored SIGTERM dies too (302.915618ms)
|
||
✔ initialize, ping and tools/list (62.683791ms)
|
||
✔ tools/call goes through the tool socket; a refusal is an isError result (55.354418ms)
|
||
✔ replies are compact JSON; over the cap a tool error names the size and the cap (45.209158ms)
|
||
✔ unknown tools and methods are JSON-RPC errors and never reach the socket (45.635052ms)
|
||
✔ a missing argument is a usage error (50.614831ms)
|
||
✔ pi: typed tools reach the socket, the gate blocks, agent_end writes the marker (509.647216ms)
|
||
✔ pi: a reply over the cap is a tool error naming the size and the cap; list_tasks asks for open tasks (387.538158ms)
|
||
✔ pi: a write through a dangling symlink is blocked, and nothing appears outside (425.409913ms)
|
||
✔ pi: a read is refused when pi would open another spelling outside (402.971976ms)
|
||
✔ pi: a relative path climbs from the real path of a workspace behind a symlink (381.42415ms)
|
||
✔ pi: a relative path climbs from the real path of a dataRoot behind a symlink (361.421306ms)
|
||
✔ pi: a missing extension refuses before any model call (6.811744ms)
|
||
✔ pi: an extension without its configuration fails pi's start (287.165763ms)
|
||
✔ founderCheck: founder variables, then a needed service without a usable token (1.864169ms)
|
||
✔ turnRequest names the sender, class, reply and decision (0.319807ms)
|
||
✔ turnRequest shows the message's own sent time, a day old as well as new (0.238948ms)
|
||
✔ stateBlock names the launch state with its time and event, and the open tasks with the cap (0.439617ms)
|
||
✔ a message becomes a turn, the answer goes back as a RESULT, SIGTERM releases and exits 0 (226.067839ms)
|
||
✔ launches revoked and then restored: the turn's block reads allowed and gives the restore time (224.763068ms)
|
||
✔ a task closed on the tracker is missing from the next turn's open list (197.780503ms)
|
||
✔ a message read a day after it was sent shows the time it was sent (114.703483ms)
|
||
✔ a failed state read fails the turn: no adapter runs, the sender hears why, the message is read (68.06901ms)
|
||
✔ a SIGTERM before the claim stops the runner with exit 0 and no claim (53.279347ms)
|
||
✔ typed tools carry the runner's capability; launch goes to the host's launch socket (327.227072ms)
|
||
✔ a RESULT gets no automatic reply; failed turns reply with the reason (1279.169623ms)
|
||
✔ SIGTERM during a turn kills the turn's process group and still exits 0 (119.740609ms)
|
||
✔ founder credentials stop before the claim (20) (110.110443ms)
|
||
✔ a refused claim exits 21; an ended run's capability exits 22 (98.484436ms)
|
||
✔ the launch ending under a running session exits 22 (100.500183ms)
|
||
✔ a broker that stays unreachable exits 23 after brokerRetries polls (225.153765ms)
|
||
✔ a broker that is down at the claim exits 23, not 21 (56.173475ms)
|
||
✔ no capability, or a malformed one, on stdin exits 2 (172.453793ms)
|
||
✔ a missing or malformed policy exits 2 before the claim (91.943478ms)
|
||
✔ the PM gets launch, its task verbs and the reads (12.755559ms)
|
||
✔ list_requirements reads the requirement ids, for a task.create holder with a tracker (5.613463ms)
|
||
✔ a coder gets no launch, no resolve_decision, and no task tools without a tracker (3.444317ms)
|
||
✔ a coder with a tracker gets its own task tools and no task_reassign (2.195961ms)
|
||
✔ launch only when the business's launch block names the instance as launcher (2.407716ms)
|
||
✔ an action outside the instance's authority has no tool (2.558129ms)
|
||
✔ the review loop: push_working and request_review for the coder, fetch_review and review_verdict for the reviewer, none for the PM (11.218332ms)
|
||
✔ callTool: one JSON line out, the result back, a refusal rejects (14.150176ms)
|
||
✔ list_tasks takes the broker's filters and pages; get_task takes a task_ref (3.756039ms)
|
||
✔ callTool sends list_tasks done false unless the session names done; other tools as given (4.695057ms)
|
||
✔ replyText: compact JSON up to the cap, an error naming the size and the cap over it (1.425814ms)
|
||
ℹ tests 79
|
||
ℹ suites 0
|
||
ℹ pass 79
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 10763.623244
|