✔ a first launch clones the root at its branch, with the root's path as origin (35.647035ms)
✔ the clone is not at its place until git clone has finished (22.376355ms)
✔ a later launch fast-forwards a clean clone after a commit to the root, then finds it current (63.135317ms)
✔ a clone ahead of the root keeps its commits and counts as current (46.371ms)
▶ a dirty clone and one on another branch are fetched, and nothing but refs/remotes moves
  ✔ a modified file (52.782825ms)
  ✔ an untracked file (46.785253ms)
  ✔ a staged file (44.138035ms)
  ✔ another branch (41.41113ms)
  ✔ a detached HEAD (41.084853ms)
✔ a dirty clone and one on another branch are fetched, and nothing but refs/remotes moves (227.354359ms)
✔ a diverged clone gets the fetch into refs/remotes and is kept, not-fast-forward (43.343549ms)
▶ a clone kept before the branch check, or for a failed status, gets no fetch
  ✔ not-a-clone (24.028631ms)
  ✔ hooks-present (24.983644ms)
  ✔ submodule (31.430732ms)
  ✔ config-changed (29.455606ms)
  ✔ root-unreadable (31.832256ms)
  ✔ root-detached (38.425646ms)
  ✔ status-failed, on the root's branch and clean (38.25342ms)
  ✔ status-failed, dirty (36.850619ms)
✔ a clone kept before the branch check, or for a failed status, gets no fetch (256.537714ms)
✔ a dirty clone whose fetch fails is kept, fetch-failed, exactly as it was (39.118317ms)
✔ every git call the host makes, for a new clone and an existing one, carries maintenance.auto=false and gc.auto=0 (45.6933ms)
✔ a clone with loose objects enough for gc --auto gets no maintenance or gc from the fetch and the merge (78.104038ms)
▶ a clone with user.name or user.email in its config is kept, and git runs nothing in it
  ✔ user.name (28.347137ms)
  ✔ user.email (33.583628ms)
✔ a clone with user.name or user.email in its config is kept, and git runs nothing in it (62.482889ms)
✔ a commit git can't read after the fast-forward is null (60.495848ms)
✔ a new clone whose commit can't be read refuses the launch and leaves nothing behind (18.104512ms)
▶ a clone the session rigged is kept, and git runs nothing and writes nothing outside it
  ✔ core.fsmonitor (33.188891ms)
  ✔ core.hooksPath (32.046871ms)
  ✔ a hook file (30.624906ms)
  ✔ include.path (33.114049ms)
  ✔ includeIf (32.350107ms)
  ✔ a filter driver (33.189818ms)
  ✔ origin moved (32.197296ms)
  ✔ a second origin url (33.295408ms)
  ✔ the origin url twice, both the root (33.64937ms)
  ✔ an ext:: origin (34.866393ms)
  ✔ a branch tracking another remote (33.137582ms)
  ✔ a branch merging a tag (33.348092ms)
  ✔ a fetch line onto local branches (32.990777ms)
  ✔ no origin (33.734166ms)
  ✔ a config file over the size cap (30.82859ms)
  ✔ config a symlink to /dev/zero (30.899775ms)
  ✔ the clone a symlink to the bait (30.964907ms)
  ✔ the clone a file (30.129544ms)
  ✔ the clone a plain directory (31.611479ms)
  ✔ .git a gitdir: file (32.499149ms)
  ✔ .git a symlink (30.777692ms)
  ✔ .git/logs a symlink (31.697703ms)
  ✔ .git/refs/heads a symlink (31.440492ms)
  ✔ .git/objects a symlink (30.999916ms)
  ✔ a reflog hard-linked to a file outside (30.668297ms)
  ✔ HEAD a fifo (31.456417ms)
  ✔ a commondir file (30.830089ms)
  ✔ an alternates file (30.610475ms)
  ✔ a gitlink staged, no .gitmodules (42.192991ms)
  ✔ a gitlink and .gitmodules staged (43.942958ms)
  ✔ a gitlink to a repository with its own gitlink (51.623533ms)
  ✔ a gitlink and .gitmodules committed (46.102611ms)
  ✔ a gitlink and submodule.active in config (44.464334ms)
  ✔ a .git/modules with no gitlink (33.614222ms)
✔ a clone the session rigged is kept, and git runs nothing and writes nothing outside it (1163.374327ms)
▶ a root that can't be cloned refuses with the project id and leaves nothing behind
  ✔ missing (9.971354ms)
  ✔ not a repository (10.247813ms)
  ✔ a plain directory inside another repository (14.886223ms)
  ✔ unreadable (9.927159ms)
  ✔ on no branch (13.321705ms)
  ✔ missing an object (15.514718ms)
✔ a root that can't be cloned refuses with the project id and leaves nothing behind (74.745474ms)
✔ a clone whose root is on no branch, or gone, is kept and named (28.933223ms)
✔ no credential or forge remote of the root reaches a clone (49.521173ms)
✔ every project in the business file gets its own clone at its own branch (37.711965ms)
✔ a clone past its time gets SIGTERM and refuses the launch, with nothing left in the workspace (513.600392ms)
✔ a clone that ignores SIGTERM gets SIGKILL once the grace period is over (1016.528235ms)
✔ a timeout signals git's process group, so a process git started dies with it (514.528173ms)
✔ once a signalled git has closed, its group gets SIGKILL, so a process that ignored SIGTERM dies too (514.368538ms)
✔ RUNNER_FILES is exactly what the runner and the harness sources it starts import (1.557312ms)
✔ sandboxProblem names a missing bwrap and a bwrap that fails (8.395704ms)
✔ every bind says why; the bundle and session file stay read-only over the run directory (1.334023ms)
✔ the host's git socket is bound only when given, read-only and before the writable binds (0.946165ms)
✔ the git identity is the instance's, at <instance>@<business>.mosaic.invalid, and sandboxArgv refuses without it (1.025063ms)
✔ a confined session's shell reaches its own workspace and run directory and nothing of the founder's or another session's (1733.679443ms)
✔ a bind that exposes a stand-in, or a missing workspace bind, fails the matching check (2509.911739ms)
✔ a confined session that runs tester-cli.mjs is refused as tester, and the same shim outside the sandbox binds (207.727479ms)
✔ resolveSeat: by name under --repo resolves the repo layout (1.264824ms)
✔ resolveSeat: by path resolves the fleet layout (0.331277ms)
✔ resolveSeat: refusals for missing dir, missing launch.sh, non-executable launch.sh, invalid name, and unknown layout (0.783024ms)
✔ tmuxContext: outside tmux, default socket, custom socket, and exec failure (0.639252ms)
✔ makeRegistration produces a record that validates; each shape violation throws SeatError (0.79552ms)
✔ writeRegistration/readRegistration: round trip, permissions, absence, and malformed records (1.35882ms)
✔ updateTask: changes task, taskSetBy and updatedAt only, and refuses appropriately (1.196079ms)
✔ CLI launch: registers, execs the fake launch script, and passes args through (28.255519ms)
✔ CLI launch: --harness lands in the record (30.089922ms)
✔ CLI launch: the launch script's own exit code passes through (27.686196ms)
✔ CLI launch: relaunching a seat rewrites the one registration record (61.500163ms)
✔ CLI launch: omitting --task records an empty string, not null (28.82776ms)
✔ CLI seat task: updates only the task after a launch, and refuses on an unlaunched seat (91.857553ms)
✔ CLI refusals: no args, unknown flag, missing config, already-registered env, and exec failure (130.666949ms)
✔ samePath: equal paths, symlinked dirs, distinct dirs, and non-strings (0.447688ms)
✔ resolveSetBy: explicit --by wins over the environment; absent or empty environment gives unknown; invalid explicit or environment values refuse with exit 4 (0.574108ms)
✔ 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.690009ms)
✔ 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.077275ms)
✔ 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 (272.491047ms)
✔ REQ-LIMIT-1: family substring matching is no longer exported (0.727586ms)
✔ sessionEnv passes only the allowlist, the repo's bin on PATH, and the run id (0.66976ms)
✔ sessionExit gives a runner's signal death back as the signal; a session credential is one whole set of nonempty variables (0.244351ms)
✔ newRun: short ids, 0700 directories, and a refusal when the socket path won't fit (1.468007ms)
✔ session file and launch log: 0600, the session file written once (1.009259ms)
✔ endReason maps the runner's exit codes; a signal is killed (0.135636ms)
✔ Registry mirrors to sessions.json; readSessions marks live entries; bad files refuse (1.192228ms)
✔ stopSession refuses an unknown run, reports a stale one, and won't signal a pid that isn't a runner (1.033956ms)
✔ a session runs in its sandbox as pid 1 of its namespace, claims, answers, and stops on mosaic stop (243.518594ms)
✔ workRef and validBranch take only what a ref name can hold (1.112451ms)
✔ a push lands as the task's work ref, a fast-forward lands after it, and main is the root's (103.351569ms)
✔ a rewritten branch refuses non-fast-forward and the work ref stays (101.827029ms)
✔ a branch with no history in common with main refuses unrelated-history (51.090868ms)
✔ a bundle that needs commits the working repository lacks refuses missing-prerequisite (39.471595ms)
✔ main is fetched from the root again before each push, so a clone of a newer root pushes (92.007477ms)
✔ a root moved back after the clone leaves the push's base unknown: missing-prerequisite (61.518363ms)
✔ a commit with a broken object refuses invalid-bundle, and only because fsck is on (60.417915ms)
✔ only a v2 bundle with the named branch is read (49.184037ms)
✔ a branch named main, or named for another task, moves only this task's work ref (83.134374ms)
✔ a record that throws moves the work ref back, or removes a new one (104.585341ms)
✔ a work ref that can't go back refuses rollback-failed, naming the ref and the commit (365.973568ms)
✔ a root that can't be read refuses root-unreadable (27.569353ms)
✔ a git past its time gets SIGTERM, leaves no ref lock, and the next push lands (2117.477605ms)
✔ a git that ignores SIGTERM gets SIGKILL once the grace period is over (1029.531387ms)
✔ a working repository path that isn't a directory refuses (23.54545ms)
✔ review bundles a pushed commit as refs/mosaic/review, leaving out what the reviewer has (96.311967ms)
✔ review of a project with no working repository refuses unknown-commit (12.915778ms)
✔ the runner's git tools hold the host's limits and branch rule (1.128271ms)
ℹ tests 132
ℹ suites 0
ℹ pass 132
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 4969.535212
