✔ a first launch clones the root at its branch, with the root's path as origin (33.968168ms)
✔ the clone is not at its place until git clone has finished (21.98806ms)
✔ a later launch fast-forwards a clean clone after a commit to the root, then finds it current (65.479142ms)
✔ a clone ahead of the root keeps its commits and counts as current (38.357434ms)
▶ a dirty clone and one on another branch are fetched, and nothing but refs/remotes moves
  ✔ a modified file (43.840822ms)
  ✔ an untracked file (45.689263ms)
  ✔ a staged file (45.253957ms)
  ✔ another branch (43.740478ms)
  ✔ a detached HEAD (48.380945ms)
✔ a dirty clone and one on another branch are fetched, and nothing but refs/remotes moves (228.123998ms)
✔ a diverged clone gets the fetch into refs/remotes and is kept, not-fast-forward (47.175014ms)
▶ a clone kept before the branch check, or for a failed status, gets no fetch
  ✔ not-a-clone (23.678334ms)
  ✔ hooks-present (25.966282ms)
  ✔ submodule (32.863793ms)
  ✔ config-changed (28.37138ms)
  ✔ root-unreadable (29.322584ms)
  ✔ root-detached (32.917475ms)
  ✔ status-failed, on the root's branch and clean (38.367691ms)
  ✔ status-failed, dirty (37.277914ms)
✔ a clone kept before the branch check, or for a failed status, gets no fetch (250.140814ms)
✔ a dirty clone whose fetch fails is kept, fetch-failed, exactly as it was (38.160641ms)
✔ every git call the host makes, for a new clone and an existing one, carries maintenance.auto=false and gc.auto=0 (45.407808ms)
✔ a clone with loose objects enough for gc --auto gets no maintenance or gc from the fetch and the merge (81.085776ms)
▶ a clone with user.name or user.email in its config is kept, and git runs nothing in it
  ✔ user.name (26.306173ms)
  ✔ user.email (25.926382ms)
✔ a clone with user.name or user.email in its config is kept, and git runs nothing in it (52.686557ms)
✔ a commit git can't read after the fast-forward is null (46.074717ms)
✔ a new clone whose commit can't be read refuses the launch and leaves nothing behind (18.7665ms)
▶ a clone the session rigged is kept, and git runs nothing and writes nothing outside it
  ✔ core.fsmonitor (33.585403ms)
  ✔ core.hooksPath (33.263684ms)
  ✔ a hook file (31.436693ms)
  ✔ include.path (33.335757ms)
  ✔ includeIf (33.082879ms)
  ✔ a filter driver (33.45568ms)
  ✔ origin moved (32.971923ms)
  ✔ a second origin url (32.26855ms)
  ✔ the origin url twice, both the root (34.112875ms)
  ✔ an ext:: origin (33.273705ms)
  ✔ a branch tracking another remote (32.341809ms)
  ✔ a branch merging a tag (33.224575ms)
  ✔ a fetch line onto local branches (32.641107ms)
  ✔ no origin (33.412747ms)
  ✔ a config file over the size cap (30.110606ms)
  ✔ config a symlink to /dev/zero (29.911649ms)
  ✔ the clone a symlink to the bait (29.846649ms)
  ✔ the clone a file (30.074527ms)
  ✔ the clone a plain directory (30.76447ms)
  ✔ .git a gitdir: file (31.10927ms)
  ✔ .git a symlink (30.925195ms)
  ✔ .git/logs a symlink (30.189039ms)
  ✔ .git/refs/heads a symlink (31.13696ms)
  ✔ .git/objects a symlink (33.959549ms)
  ✔ a reflog hard-linked to a file outside (31.038713ms)
  ✔ HEAD a fifo (30.992258ms)
  ✔ a commondir file (30.158958ms)
  ✔ an alternates file (30.371998ms)
  ✔ a gitlink staged, no .gitmodules (43.638333ms)
  ✔ a gitlink and .gitmodules staged (46.424186ms)
  ✔ a gitlink to a repository with its own gitlink (52.118565ms)
  ✔ a gitlink and .gitmodules committed (48.494055ms)
  ✔ a gitlink and submodule.active in config (44.825221ms)
  ✔ a .git/modules with no gitlink (33.677683ms)
✔ a clone the session rigged is kept, and git runs nothing and writes nothing outside it (1166.57155ms)
▶ a root that can't be cloned refuses with the project id and leaves nothing behind
  ✔ missing (10.229326ms)
  ✔ not a repository (10.229648ms)
  ✔ a plain directory inside another repository (14.877774ms)
  ✔ unreadable (10.081325ms)
  ✔ on no branch (11.684122ms)
  ✔ missing an object (14.938358ms)
✔ a root that can't be cloned refuses with the project id and leaves nothing behind (72.834594ms)
✔ a clone whose root is on no branch, or gone, is kept and named (27.733126ms)
✔ no credential or forge remote of the root reaches a clone (46.677436ms)
✔ every project in the business file gets its own clone at its own branch (34.121173ms)
✔ a clone past its time gets SIGTERM and refuses the launch, with nothing left in the workspace (513.532471ms)
✔ a clone that ignores SIGTERM gets SIGKILL once the grace period is over (1016.894419ms)
✔ a timeout signals git's process group, so a process git started dies with it (515.743503ms)
✔ once a signalled git has closed, its group gets SIGKILL, so a process that ignored SIGTERM dies too (515.15685ms)
✔ rootHits: a top-level file, a new top-level directory, src/ and v1/ are the root; paths under known directories aren't (0.99807ms)
✔ gateEnv keeps the named variables that are strings and drops everything else (0.158932ms)
✔ isMosaicStack: a checkout whose HEAD descends from the root commit and has node_modules; nothing else (25.503945ms)
✔ gateSteps: each package with tests but queue in name order, then each scripts/test-*.sh (1.440393ms)
✔ runGate: every step passes, each with its own log and a summary line, under the environment it was given (150.806405ms)
✔ runGate: the first failing step stops the gate and names its log (238.903089ms)
✔ runGate: an abort stops the running step and everything in its group, and runs nothing after it (164.693073ms)
✔ the CLI: root-file prints the hits and exits 2, or exits 0; gate exits 0, or 2 with the step and its log; anything else is usage (541.145841ms)
✔ RUNNER_FILES is exactly what the runner and the harness sources it starts import (2.073116ms)
✔ sandboxProblem names a missing bwrap and a bwrap that fails (8.892839ms)
✔ every bind says why; the bundle and session file stay read-only over the run directory (1.327859ms)
✔ REQ-THREAD-2 a thread store binds its session directory and Claude transcripts, and nothing more (0.835241ms)
✔ the host's git socket is bound only when given, read-only and before the writable binds (0.693389ms)
✔ the git identity is the instance's, at <instance>@<business>.mosaic.invalid, and sandboxArgv refuses without it (1.23993ms)
✔ a confined session's shell reaches its own workspace and run directory and nothing of the founder's or another session's (1862.080419ms)
✔ a bind that exposes a stand-in, or a missing workspace bind, fails the matching check (2569.750321ms)
✔ a confined session that runs tester-cli.mjs is refused as tester, and the same shim outside the sandbox binds (208.712445ms)
✔ resolveSeat: by name under --repo resolves the repo layout (1.233776ms)
✔ resolveSeat: by path resolves the fleet layout (0.348615ms)
✔ resolveSeat: refusals for missing dir, missing launch.sh, non-executable launch.sh, invalid name, and unknown layout (0.723924ms)
✔ tmuxContext: outside tmux, default socket, custom socket, and exec failure (0.6486ms)
✔ makeRegistration produces a record that validates; each shape violation throws SeatError (0.82035ms)
✔ writeRegistration/readRegistration: round trip, permissions, absence, and malformed records (1.303675ms)
✔ updateTask: changes task, taskSetBy and updatedAt only, and refuses appropriately (1.183923ms)
✔ CLI launch: registers, execs the fake launch script, and passes args through (28.34833ms)
✔ CLI launch: --harness lands in the record (27.468993ms)
✔ CLI launch: the launch script's own exit code passes through (29.240468ms)
✔ CLI launch: relaunching a seat rewrites the one registration record (56.119582ms)
✔ CLI launch: omitting --task records an empty string, not null (27.384972ms)
✔ CLI seat task: updates only the task after a launch, and refuses on an unlaunched seat (83.914403ms)
✔ CLI refusals: no args, unknown flag, missing config, already-registered env, and exec failure (144.96901ms)
✔ samePath: equal paths, symlinked dirs, distinct dirs, and non-strings (0.401544ms)
✔ resolveSetBy: explicit --by wins over the environment; absent or empty environment gives unknown; invalid explicit or environment values refuse with exit 4 (0.603984ms)
✔ validateRegistration/readRegistration: taskSetBy is optional; a record without it (written before #1511) still loads unchanged; an invalid one is refused; the version does not change (0.709715ms)
✔ updateTask: records setBy, preserves startedAt and every unrelated field, upgrades an old record in place only when the task is set, and replaces a previous attribution (0.876339ms)
✔ CLI seat task: --by beats MOSAIC_AGENT_NAME, the environment beats nothing, empty environment is unknown, invalid --by or environment refuses with exit 4 and leaves the record byte for byte (266.885742ms)
✔ REQ-LIMIT-1: family substring matching is no longer exported (0.966294ms)
✔ sessionEnv passes only the allowlist, the repo's bin on PATH, and the run id (0.73321ms)
✔ sessionExit gives a runner's signal death back as the signal; a session credential is one whole set of nonempty variables (0.271303ms)
✔ newRun: short ids, 0700 directories, and a refusal when the socket path won't fit (1.638101ms)
✔ session file and launch log: 0600, the session file written once (1.578711ms)
✔ endReason maps the runner's exit codes; a signal is killed (0.128646ms)
✔ Registry mirrors to sessions.json; readSessions marks live entries; bad files refuse (1.285904ms)
✔ REQ-THREAD-1 Registry.running keys a thread run by business, instance and thread (0.567263ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1 threadStore checks both segments before the join and refuses an unsafe directory (1.376369ms)
✔ stopSession refuses an unknown run, reports a stale one, and won't signal a pid that isn't a runner (0.973914ms)
✔ a session runs in its sandbox as pid 1 of its namespace, claims, answers, and stops on mosaic stop (195.224045ms)
✔ workRef and validBranch take only what a ref name can hold (1.16446ms)
✔ a push lands as the task's work ref, a fast-forward lands after it, and main is the root's (115.501409ms)
✔ a rewritten branch refuses non-fast-forward and the work ref stays (90.814946ms)
✔ a branch with no history in common with main refuses unrelated-history (52.36552ms)
✔ a bundle that needs commits the working repository lacks refuses missing-prerequisite (41.896548ms)
✔ the root is fetched again before each push and main follows it, so a clone of a newer root pushes (112.989154ms)
✔ a root moved back after the clone leaves the push's base unknown: missing-prerequisite (67.81236ms)
✔ a commit with a broken object refuses invalid-bundle, and only because fsck is on (68.605872ms)
✔ only a v2 bundle with the named branch is read (52.749843ms)
✔ a branch named main, or named for another task, moves only this task's work ref (85.249109ms)
✔ a record that throws moves the work ref back, or removes a new one (110.146746ms)
✔ a work ref that can't go back refuses rollback-failed, naming the ref and the commit (366.660789ms)
✔ a root that can't be read refuses root-unreadable (26.939324ms)
✔ a git past its time gets SIGTERM, leaves no ref lock, and the next push lands (2122.791927ms)
✔ a git that ignores SIGTERM gets SIGKILL once the grace period is over (1028.218612ms)
✔ a working repository path that isn't a directory refuses (26.905322ms)
✔ review bundles a pushed commit as refs/mosaic/review, leaving out what the reviewer has (114.437618ms)
✔ review of a project with no working repository refuses unknown-commit (13.167282ms)
✔ the runner's git tools hold the host's limits and branch rule (1.099252ms)
✔ a reseed moves root but leaves a landed main, and main forwards once root contains it (175.300228ms)
✔ after a landing, a push built on the root still lands and main stays where the landing put it (117.420935ms)
✔ once the root shares no history with a landed main, a push is checked against main, not the root (170.759009ms)
✔ a landing squashes the reviewed diff onto main as the bus host and moves main only at finish (103.959769ms)
✔ a landing refuses ref-moved, base-conflict and root-file before it makes a commit (302.899129ms)
✔ a landing whose applied diff isn't the reviewed one refuses patch-drift and leaves no worktree (121.250396ms)
✔ finish refuses base-moved when main moved, and a record that throws moves main back (200.798284ms)
ℹ tests 150
ℹ suites 0
ℹ pass 150
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 5755.967009
