✔ a first launch clones the root at its branch, with the root's path as origin (33.552844ms)
✔ the clone is not at its place until git clone has finished (21.357309ms)
✔ a later launch fast-forwards a clean clone after a commit to the root, then finds it current (60.619091ms)
✔ a clone ahead of the root keeps its commits and counts as current (36.011997ms)
▶ a dirty clone and one on another branch are fetched, and nothing but refs/remotes moves
  ✔ a modified file (42.530728ms)
  ✔ an untracked file (42.124706ms)
  ✔ a staged file (43.676612ms)
  ✔ another branch (42.197058ms)
  ✔ a detached HEAD (41.840106ms)
✔ a dirty clone and one on another branch are fetched, and nothing but refs/remotes moves (213.480486ms)
✔ a diverged clone gets the fetch into refs/remotes and is kept, not-fast-forward (42.008062ms)
▶ a clone kept before the branch check, or for a failed status, gets no fetch
  ✔ not-a-clone (22.898807ms)
  ✔ hooks-present (24.744247ms)
  ✔ submodule (30.97533ms)
  ✔ config-changed (27.177655ms)
  ✔ root-unreadable (27.194934ms)
  ✔ root-detached (32.569047ms)
  ✔ status-failed, on the root's branch and clean (35.353023ms)
  ✔ status-failed, dirty (35.561757ms)
✔ a clone kept before the branch check, or for a failed status, gets no fetch (237.729167ms)
✔ a dirty clone whose fetch fails is kept, fetch-failed, exactly as it was (37.495882ms)
✔ every git call the host makes, for a new clone and an existing one, carries maintenance.auto=false and gc.auto=0 (44.926622ms)
✔ a clone with loose objects enough for gc --auto gets no maintenance or gc from the fetch and the merge (71.501164ms)
▶ a clone with user.name or user.email in its config is kept, and git runs nothing in it
  ✔ user.name (24.660156ms)
  ✔ user.email (25.572793ms)
✔ a clone with user.name or user.email in its config is kept, and git runs nothing in it (50.667636ms)
✔ a commit git can't read after the fast-forward is null (46.109986ms)
✔ a new clone whose commit can't be read refuses the launch and leaves nothing behind (17.999275ms)
▶ a clone the session rigged is kept, and git runs nothing and writes nothing outside it
  ✔ core.fsmonitor (32.57725ms)
  ✔ core.hooksPath (33.576352ms)
  ✔ a hook file (30.523932ms)
  ✔ include.path (32.732065ms)
  ✔ includeIf (32.915157ms)
  ✔ a filter driver (33.504955ms)
  ✔ origin moved (32.81282ms)
  ✔ a second origin url (32.413995ms)
  ✔ the origin url twice, both the root (33.687667ms)
  ✔ an ext:: origin (32.955406ms)
  ✔ a branch tracking another remote (33.192575ms)
  ✔ a branch merging a tag (33.998262ms)
  ✔ a fetch line onto local branches (32.638391ms)
  ✔ no origin (34.625453ms)
  ✔ a config file over the size cap (31.291322ms)
  ✔ config a symlink to /dev/zero (30.299051ms)
  ✔ the clone a symlink to the bait (31.992008ms)
  ✔ the clone a file (30.446335ms)
  ✔ the clone a plain directory (30.192965ms)
  ✔ .git a gitdir: file (29.936614ms)
  ✔ .git a symlink (30.395246ms)
  ✔ .git/logs a symlink (30.890931ms)
  ✔ .git/refs/heads a symlink (30.938526ms)
  ✔ .git/objects a symlink (30.480664ms)
  ✔ a reflog hard-linked to a file outside (30.973693ms)
  ✔ HEAD a fifo (31.066319ms)
  ✔ a commondir file (31.009465ms)
  ✔ an alternates file (29.853099ms)
  ✔ a gitlink staged, no .gitmodules (43.121737ms)
  ✔ a gitlink and .gitmodules staged (44.308351ms)
  ✔ a gitlink to a repository with its own gitlink (51.884772ms)
  ✔ a gitlink and .gitmodules committed (47.397324ms)
  ✔ a gitlink and submodule.active in config (44.866017ms)
  ✔ a .git/modules with no gitlink (32.873979ms)
✔ a clone the session rigged is kept, and git runs nothing and writes nothing outside it (1160.746313ms)
▶ a root that can't be cloned refuses with the project id and leaves nothing behind
  ✔ missing (9.933032ms)
  ✔ not a repository (9.987851ms)
  ✔ a plain directory inside another repository (14.11272ms)
  ✔ unreadable (9.986188ms)
  ✔ on no branch (12.528563ms)
  ✔ missing an object (14.767569ms)
✔ a root that can't be cloned refuses with the project id and leaves nothing behind (72.109145ms)
✔ a clone whose root is on no branch, or gone, is kept and named (27.256122ms)
✔ no credential or forge remote of the root reaches a clone (46.238388ms)
✔ every project in the business file gets its own clone at its own branch (33.479003ms)
✔ a clone past its time gets SIGTERM and refuses the launch, with nothing left in the workspace (513.276061ms)
✔ a clone that ignores SIGTERM gets SIGKILL once the grace period is over (1016.517001ms)
✔ a timeout signals git's process group, so a process git started dies with it (514.518862ms)
✔ once a signalled git has closed, its group gets SIGKILL, so a process that ignored SIGTERM dies too (514.029855ms)
✔ RUNNER_FILES is exactly what the runner and the harness sources it starts import (1.63019ms)
✔ sandboxProblem names a missing bwrap and a bwrap that fails (8.441761ms)
✔ every bind says why; the bundle and session file stay read-only over the run directory (1.29757ms)
✔ the host's git socket is bound only when given, read-only and before the writable binds (0.634349ms)
✔ the git identity is the instance's, at <instance>@<business>.mosaic.invalid, and sandboxArgv refuses without it (1.055506ms)
✔ a confined session's shell reaches its own workspace and run directory and nothing of the founder's or another session's (1620.333217ms)
✔ a bind that exposes a stand-in, or a missing workspace bind, fails the matching check (2670.815839ms)
✔ a confined session that runs tester-cli.mjs is refused as tester, and the same shim outside the sandbox binds (204.117293ms)
✔ resolveSeat: by name under --repo resolves the repo layout (1.237871ms)
✔ resolveSeat: by path resolves the fleet layout (0.33214ms)
✔ resolveSeat: refusals for missing dir, missing launch.sh, non-executable launch.sh, invalid name, and unknown layout (0.703599ms)
✔ tmuxContext: outside tmux, default socket, custom socket, and exec failure (0.647498ms)
✔ makeRegistration produces a record that validates; each shape violation throws SeatError (0.790374ms)
✔ writeRegistration/readRegistration: round trip, permissions, absence, and malformed records (1.324706ms)
✔ updateTask: changes task, taskSetBy and updatedAt only, and refuses appropriately (1.568514ms)
✔ CLI launch: registers, execs the fake launch script, and passes args through (26.985779ms)
✔ CLI launch: --harness lands in the record (29.370821ms)
✔ CLI launch: the launch script's own exit code passes through (27.284373ms)
✔ CLI launch: relaunching a seat rewrites the one registration record (55.670527ms)
✔ CLI launch: omitting --task records an empty string, not null (26.858493ms)
✔ CLI seat task: updates only the task after a launch, and refuses on an unlaunched seat (86.828368ms)
✔ CLI refusals: no args, unknown flag, missing config, already-registered env, and exec failure (129.463959ms)
✔ samePath: equal paths, symlinked dirs, distinct dirs, and non-strings (0.373659ms)
✔ resolveSetBy: explicit --by wins over the environment; absent or empty environment gives unknown; invalid explicit or environment values refuse with exit 4 (0.663289ms)
✔ 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.68614ms)
✔ 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.846341ms)
✔ 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 (252.775575ms)
✔ REQ-LIMIT-1: family substring matching is no longer exported (0.707648ms)
✔ sessionEnv passes only the allowlist, the repo's bin on PATH, and the run id (0.659391ms)
✔ sessionExit gives a runner's signal death back as the signal; a session credential is one whole set of nonempty variables (0.235542ms)
✔ newRun: short ids, 0700 directories, and a refusal when the socket path won't fit (1.456715ms)
✔ session file and launch log: 0600, the session file written once (0.988803ms)
✔ endReason maps the runner's exit codes; a signal is killed (0.116203ms)
✔ Registry mirrors to sessions.json; readSessions marks live entries; bad files refuse (1.226757ms)
✔ stopSession refuses an unknown run, reports a stale one, and won't signal a pid that isn't a runner (1.073205ms)
✔ a session runs in its sandbox as pid 1 of its namespace, claims, answers, and stops on mosaic stop (241.495141ms)
✔ workRef and validBranch take only what a ref name can hold (1.091323ms)
✔ a push lands as the task's work ref, a fast-forward lands after it, and main is the root's (100.352106ms)
✔ a rewritten branch refuses non-fast-forward and the work ref stays (83.354922ms)
✔ a branch with no history in common with main refuses unrelated-history (44.577403ms)
✔ a bundle that needs commits the working repository lacks refuses missing-prerequisite (38.25294ms)
✔ main is fetched from the root again before each push, so a clone of a newer root pushes (92.715993ms)
✔ a root moved back after the clone leaves the push's base unknown: missing-prerequisite (60.743579ms)
✔ a commit with a broken object refuses invalid-bundle, and only because fsck is on (60.074822ms)
✔ only a v2 bundle with the named branch is read (44.362975ms)
✔ a branch named main, or named for another task, moves only this task's work ref (73.187733ms)
✔ a record that throws moves the work ref back, or removes a new one (100.62447ms)
✔ a work ref that can't go back refuses rollback-failed, naming the ref and the commit (312.86981ms)
✔ a root that can't be read refuses root-unreadable (27.354059ms)
✔ a git past its time gets SIGTERM, leaves no ref lock, and the next push lands (2112.555418ms)
✔ a git that ignores SIGTERM gets SIGKILL once the grace period is over (1027.350868ms)
✔ a working repository path that isn't a directory refuses (24.763506ms)
✔ review bundles a pushed commit as refs/mosaic/review, leaving out what the reviewer has (98.378491ms)
✔ review of a project with no working repository refuses unknown-commit (13.405084ms)
✔ the runner's git tools hold the host's limits and branch rule (1.177668ms)
ℹ tests 132
ℹ suites 0
ℹ pass 132
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 4862.151734
