✔ a first launch clones the root at its branch, with the root's path as origin (34.875337ms)
✔ the clone is not at its place until git clone has finished (27.741804ms)
✔ a later launch fast-forwards a clean clone after a commit to the root, then finds it current (76.322452ms)
✔ a clone ahead of the root keeps its commits and counts as current (39.242032ms)
▶ a dirty clone and one on another branch are fetched, and nothing but refs/remotes moves
  ✔ a modified file (45.106476ms)
  ✔ an untracked file (45.994302ms)
  ✔ a staged file (49.952007ms)
  ✔ another branch (50.146522ms)
  ✔ a detached HEAD (46.226905ms)
✔ a dirty clone and one on another branch are fetched, and nothing but refs/remotes moves (238.621303ms)
✔ a diverged clone gets the fetch into refs/remotes and is kept, not-fast-forward (43.414766ms)
▶ a clone kept before the branch check, or for a failed status, gets no fetch
  ✔ not-a-clone (27.70706ms)
  ✔ hooks-present (32.667349ms)
  ✔ submodule (34.698309ms)
  ✔ config-changed (31.666155ms)
  ✔ root-unreadable (39.061326ms)
  ✔ root-detached (45.828785ms)
  ✔ status-failed, on the root's branch and clean (51.78043ms)
  ✔ status-failed, dirty (46.495272ms)
✔ a clone kept before the branch check, or for a failed status, gets no fetch (311.499633ms)
✔ a dirty clone whose fetch fails is kept, fetch-failed, exactly as it was (45.555542ms)
✔ every git call the host makes, for a new clone and an existing one, carries maintenance.auto=false and gc.auto=0 (49.594313ms)
✔ a clone with loose objects enough for gc --auto gets no maintenance or gc from the fetch and the merge (80.481666ms)
▶ a clone with user.name or user.email in its config is kept, and git runs nothing in it
  ✔ user.name (26.005414ms)
  ✔ user.email (26.319705ms)
✔ a clone with user.name or user.email in its config is kept, and git runs nothing in it (52.763437ms)
✔ a commit git can't read after the fast-forward is null (48.00762ms)
✔ a new clone whose commit can't be read refuses the launch and leaves nothing behind (19.411803ms)
▶ a clone the session rigged is kept, and git runs nothing and writes nothing outside it
  ✔ core.fsmonitor (34.520589ms)
  ✔ core.hooksPath (34.518041ms)
  ✔ a hook file (33.407408ms)
  ✔ include.path (38.8982ms)
  ✔ includeIf (38.007121ms)
  ✔ a filter driver (34.356934ms)
  ✔ origin moved (36.896178ms)
  ✔ a second origin url (34.13191ms)
  ✔ the origin url twice, both the root (41.588321ms)
  ✔ an ext:: origin (34.870104ms)
  ✔ a branch tracking another remote (35.48466ms)
  ✔ a branch merging a tag (38.941866ms)
  ✔ a fetch line onto local branches (37.049265ms)
  ✔ no origin (38.557693ms)
  ✔ a config file over the size cap (30.827345ms)
  ✔ config a symlink to /dev/zero (30.446881ms)
  ✔ the clone a symlink to the bait (31.123812ms)
  ✔ the clone a file (30.558879ms)
  ✔ the clone a plain directory (31.6311ms)
  ✔ .git a gitdir: file (32.071133ms)
  ✔ .git a symlink (35.219107ms)
  ✔ .git/logs a symlink (31.582809ms)
  ✔ .git/refs/heads a symlink (31.411062ms)
  ✔ .git/objects a symlink (30.599472ms)
  ✔ a reflog hard-linked to a file outside (30.858439ms)
  ✔ HEAD a fifo (31.459736ms)
  ✔ a commondir file (32.186796ms)
  ✔ an alternates file (31.4754ms)
  ✔ a gitlink staged, no .gitmodules (44.891473ms)
  ✔ a gitlink and .gitmodules staged (45.188944ms)
  ✔ a gitlink to a repository with its own gitlink (53.221316ms)
  ✔ a gitlink and .gitmodules committed (48.483679ms)
  ✔ a gitlink and submodule.active in config (45.46646ms)
  ✔ a .git/modules with no gitlink (34.940179ms)
✔ a clone the session rigged is kept, and git runs nothing and writes nothing outside it (1229.250678ms)
▶ a root that can't be cloned refuses with the project id and leaves nothing behind
  ✔ missing (10.669759ms)
  ✔ not a repository (10.253699ms)
  ✔ a plain directory inside another repository (14.74689ms)
  ✔ unreadable (10.261765ms)
  ✔ on no branch (12.822276ms)
  ✔ missing an object (15.388173ms)
✔ a root that can't be cloned refuses with the project id and leaves nothing behind (75.072395ms)
✔ a clone whose root is on no branch, or gone, is kept and named (29.039185ms)
✔ no credential or forge remote of the root reaches a clone (48.605035ms)
✔ every project in the business file gets its own clone at its own branch (37.202988ms)
✔ a clone past its time gets SIGTERM and refuses the launch, with nothing left in the workspace (514.276414ms)
✔ a clone that ignores SIGTERM gets SIGKILL once the grace period is over (1015.978128ms)
✔ a timeout signals git's process group, so a process git started dies with it (514.085016ms)
✔ once a signalled git has closed, its group gets SIGKILL, so a process that ignored SIGTERM dies too (515.219777ms)
✔ RUNNER_FILES is exactly what the runner and the harness sources it starts import (1.63634ms)
✔ sandboxProblem names a missing bwrap and a bwrap that fails (8.641367ms)
✔ every bind says why; the bundle and session file stay read-only over the run directory (1.369955ms)
✔ the host's git socket is bound only when given, read-only and before the writable binds (1.039055ms)
✔ the git identity is the instance's, at <instance>@<business>.mosaic.invalid, and sandboxArgv refuses without it (1.084317ms)
✔ a confined session's shell reaches its own workspace and run directory and nothing of the founder's or another session's (1726.142975ms)
✔ a bind that exposes a stand-in, or a missing workspace bind, fails the matching check (2670.175895ms)
✔ a confined session that runs tester-cli.mjs is refused as tester, and the same shim outside the sandbox binds (206.95412ms)
✔ resolveSeat: by name under --repo resolves the repo layout (1.232023ms)
✔ resolveSeat: by path resolves the fleet layout (0.333451ms)
✔ resolveSeat: refusals for missing dir, missing launch.sh, non-executable launch.sh, invalid name, and unknown layout (0.705028ms)
✔ tmuxContext: outside tmux, default socket, custom socket, and exec failure (0.655851ms)
✔ makeRegistration produces a record that validates; each shape violation throws SeatError (0.802278ms)
✔ writeRegistration/readRegistration: round trip, permissions, absence, and malformed records (1.259719ms)
✔ updateTask: changes task, taskSetBy and updatedAt only, and refuses appropriately (1.644774ms)
✔ CLI launch: registers, execs the fake launch script, and passes args through (28.172346ms)
✔ CLI launch: --harness lands in the record (34.878383ms)
✔ CLI launch: the launch script's own exit code passes through (35.815063ms)
✔ CLI launch: relaunching a seat rewrites the one registration record (62.985662ms)
✔ CLI launch: omitting --task records an empty string, not null (27.95698ms)
✔ CLI seat task: updates only the task after a launch, and refuses on an unlaunched seat (85.340796ms)
✔ CLI refusals: no args, unknown flag, missing config, already-registered env, and exec failure (149.392727ms)
✔ samePath: equal paths, symlinked dirs, distinct dirs, and non-strings (0.379119ms)
✔ resolveSetBy: explicit --by wins over the environment; absent or empty environment gives unknown; invalid explicit or environment values refuse with exit 4 (0.596011ms)
✔ 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.744001ms)
✔ 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 (1.287917ms)
✔ 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 (303.007657ms)
✔ REQ-LIMIT-1: family substring matching is no longer exported (0.736279ms)
✔ sessionEnv passes only the allowlist, the repo's bin on PATH, and the run id (0.696161ms)
✔ sessionExit gives a runner's signal death back as the signal; a session credential is one whole set of nonempty variables (0.251991ms)
✔ newRun: short ids, 0700 directories, and a refusal when the socket path won't fit (1.458291ms)
✔ session file and launch log: 0600, the session file written once (1.171606ms)
✔ endReason maps the runner's exit codes; a signal is killed (0.124648ms)
✔ Registry mirrors to sessions.json; readSessions marks live entries; bad files refuse (1.216918ms)
✔ stopSession refuses an unknown run, reports a stale one, and won't signal a pid that isn't a runner (0.98007ms)
✔ a session runs in its sandbox as pid 1 of its namespace, claims, answers, and stops on mosaic stop (244.532619ms)
✔ workRef and validBranch take only what a ref name can hold (1.131054ms)
✔ a push lands as the task's work ref, a fast-forward lands after it, and main is the root's (120.790467ms)
✔ a rewritten branch refuses non-fast-forward and the work ref stays (91.91966ms)
✔ a branch with no history in common with main refuses unrelated-history (47.113844ms)
✔ a bundle that needs commits the working repository lacks refuses missing-prerequisite (44.132169ms)
✔ main is fetched from the root again before each push, so a clone of a newer root pushes (105.090196ms)
✔ a root moved back after the clone leaves the push's base unknown: missing-prerequisite (65.677917ms)
✔ a commit with a broken object refuses invalid-bundle, and only because fsck is on (72.126398ms)
✔ only a v2 bundle with the named branch is read (55.714504ms)
✔ a branch named main, or named for another task, moves only this task's work ref (105.571456ms)
✔ a record that throws moves the work ref back, or removes a new one (124.808195ms)
✔ a work ref that can't go back refuses rollback-failed, naming the ref and the commit (349.918665ms)
✔ a root that can't be read refuses root-unreadable (32.774783ms)
✔ a git past its time gets SIGTERM, leaves no ref lock, and the next push lands (2118.910365ms)
✔ a git that ignores SIGTERM gets SIGKILL once the grace period is over (1028.062689ms)
✔ a working repository path that isn't a directory refuses (25.57549ms)
✔ review bundles a pushed commit as refs/mosaic/review, leaving out what the reviewer has (97.911924ms)
✔ review of a project with no working repository refuses unknown-commit (13.466123ms)
✔ the runner's git tools hold the host's limits and branch rule (1.150774ms)
ℹ tests 132
ℹ suites 0
ℹ pass 132
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 5111.544504
