Candidate on base 94ece491f: 5 files, manifest 1910eb5a; only
decision-close.test.mjs changed since round 1. Mutants m1-m4 killed
(m4 is Filbert's f4); gate passed with no flakes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
133 lines
9.5 KiB
Plaintext
133 lines
9.5 KiB
Plaintext
✔ a first launch clones the root at its branch, with the root's path as origin (47.600261ms)
|
||
✔ the clone is not at its place until git clone has finished (24.123088ms)
|
||
✔ a later launch fast-forwards a clean clone after a commit to the root, then finds it current (70.643084ms)
|
||
✔ a clone ahead of the root keeps its commits and counts as current (46.911498ms)
|
||
▶ a dirty clone, one on another branch and one diverged are kept as they are
|
||
✔ a modified file (40.771912ms)
|
||
✔ an untracked file (32.206935ms)
|
||
✔ a staged file (32.441762ms)
|
||
✔ another branch (33.874993ms)
|
||
✔ a detached HEAD (33.949006ms)
|
||
✔ a diverged branch (52.48051ms)
|
||
✔ a dirty clone, one on another branch and one diverged are kept as they are (226.958576ms)
|
||
▶ a clone with user.name or user.email in its config is kept, and git runs nothing in it
|
||
✔ user.name (29.819171ms)
|
||
✔ user.email (33.665778ms)
|
||
✔ a clone with user.name or user.email in its config is kept, and git runs nothing in it (63.912975ms)
|
||
✔ a commit git can't read after the fast-forward is null (61.529094ms)
|
||
✔ a new clone whose commit can't be read refuses the launch and leaves nothing behind (18.661624ms)
|
||
▶ a clone the session rigged is kept, and git runs nothing and writes nothing outside it
|
||
✔ core.fsmonitor (36.460399ms)
|
||
✔ core.hooksPath (38.039859ms)
|
||
✔ a hook file (34.215452ms)
|
||
✔ include.path (33.05431ms)
|
||
✔ includeIf (33.66785ms)
|
||
✔ a filter driver (36.306921ms)
|
||
✔ origin moved (36.467348ms)
|
||
✔ a second origin url (32.411713ms)
|
||
✔ the origin url twice, both the root (35.104393ms)
|
||
✔ an ext:: origin (33.668484ms)
|
||
✔ a branch tracking another remote (31.270662ms)
|
||
✔ a branch merging a tag (34.981315ms)
|
||
✔ a fetch line onto local branches (34.377505ms)
|
||
✔ no origin (35.191585ms)
|
||
✔ a config file over the size cap (32.565847ms)
|
||
✔ config a symlink to /dev/zero (33.749335ms)
|
||
✔ the clone a symlink to the bait (33.098958ms)
|
||
✔ the clone a file (31.468179ms)
|
||
✔ the clone a plain directory (29.098967ms)
|
||
✔ .git a gitdir: file (34.856339ms)
|
||
✔ .git a symlink (37.330334ms)
|
||
✔ .git/logs a symlink (34.23585ms)
|
||
✔ .git/refs/heads a symlink (30.041626ms)
|
||
✔ .git/objects a symlink (29.915846ms)
|
||
✔ a reflog hard-linked to a file outside (34.507985ms)
|
||
✔ HEAD a fifo (32.161688ms)
|
||
✔ a commondir file (29.611541ms)
|
||
✔ an alternates file (31.837718ms)
|
||
✔ a gitlink staged, no .gitmodules (45.075123ms)
|
||
✔ a gitlink and .gitmodules staged (44.787143ms)
|
||
✔ a gitlink to a repository with its own gitlink (50.134514ms)
|
||
✔ a gitlink and .gitmodules committed (45.897371ms)
|
||
✔ a gitlink and submodule.active in config (43.090229ms)
|
||
✔ a .git/modules with no gitlink (32.741378ms)
|
||
✔ a clone the session rigged is kept, and git runs nothing and writes nothing outside it (1205.825811ms)
|
||
▶ a root that can't be cloned refuses with the project id and leaves nothing behind
|
||
✔ missing (10.218218ms)
|
||
✔ not a repository (9.910956ms)
|
||
✔ a plain directory inside another repository (19.675195ms)
|
||
✔ unreadable (10.896439ms)
|
||
✔ on no branch (12.113737ms)
|
||
✔ missing an object (19.480581ms)
|
||
✔ a root that can't be cloned refuses with the project id and leaves nothing behind (83.212147ms)
|
||
✔ a clone whose root is on no branch, or gone, is kept and named (36.370487ms)
|
||
✔ no credential or forge remote of the root reaches a clone (56.982313ms)
|
||
✔ every project in the business file gets its own clone at its own branch (34.164879ms)
|
||
✔ a clone past its time gets SIGTERM and refuses the launch, with nothing left in the workspace (516.288499ms)
|
||
✔ a clone that ignores SIGTERM gets SIGKILL once the grace period is over (1016.219134ms)
|
||
✔ a timeout signals git's process group, so a process git started dies with it (513.761411ms)
|
||
✔ once a signalled git has closed, its group gets SIGKILL, so a process that ignored SIGTERM dies too (514.228086ms)
|
||
✔ RUNNER_FILES is exactly what the runner and the harness sources it starts import (1.903029ms)
|
||
✔ sandboxProblem names a missing bwrap and a bwrap that fails (9.924304ms)
|
||
✔ every bind says why; the bundle and session file stay read-only over the run directory (2.378585ms)
|
||
✔ the host's git socket is bound only when given, read-only and before the writable binds (1.130501ms)
|
||
✔ the git identity is the instance's, at <instance>@<business>.mosaic.invalid, and sandboxArgv refuses without it (1.888459ms)
|
||
✔ a confined session's shell reaches its own workspace and run directory and nothing of the founder's or another session's (1947.964445ms)
|
||
✔ a bind that exposes a stand-in, or a missing workspace bind, fails the matching check (2515.420417ms)
|
||
✔ a confined session that runs tester-cli.mjs is refused as tester, and the same shim outside the sandbox binds (272.703187ms)
|
||
✔ resolveSeat: by name under --repo resolves the repo layout (2.289193ms)
|
||
✔ resolveSeat: by path resolves the fleet layout (0.574638ms)
|
||
✔ resolveSeat: refusals for missing dir, missing launch.sh, non-executable launch.sh, invalid name, and unknown layout (1.205164ms)
|
||
✔ tmuxContext: outside tmux, default socket, custom socket, and exec failure (0.842128ms)
|
||
✔ makeRegistration produces a record that validates; each shape violation throws SeatError (0.948143ms)
|
||
✔ writeRegistration/readRegistration: round trip, permissions, absence, and malformed records (1.627706ms)
|
||
✔ updateTask: changes task, taskSetBy and updatedAt only, and refuses appropriately (1.409671ms)
|
||
✔ CLI launch: registers, execs the fake launch script, and passes args through (38.819121ms)
|
||
✔ CLI launch: --harness lands in the record (28.835395ms)
|
||
✔ CLI launch: the launch script's own exit code passes through (28.757872ms)
|
||
✔ CLI launch: relaunching a seat rewrites the one registration record (62.895159ms)
|
||
✔ CLI launch: omitting --task records an empty string, not null (31.891483ms)
|
||
✔ CLI seat task: updates only the task after a launch, and refuses on an unlaunched seat (81.030298ms)
|
||
✔ CLI refusals: no args, unknown flag, missing config, already-registered env, and exec failure (130.409604ms)
|
||
✔ samePath: equal paths, symlinked dirs, distinct dirs, and non-strings (0.451796ms)
|
||
✔ resolveSetBy: explicit --by wins over the environment; absent or empty environment gives unknown; invalid explicit or environment values refuse with exit 4 (0.565729ms)
|
||
✔ 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.702232ms)
|
||
✔ 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.520942ms)
|
||
✔ 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 (260.842313ms)
|
||
✔ family: exactly one launch.max key in the model name, else null (0.826147ms)
|
||
✔ sessionEnv passes only the allowlist, the repo's bin on PATH, and the run id (0.859138ms)
|
||
✔ sessionExit gives a runner's signal death back as the signal; a session credential is one whole set of nonempty variables (0.298556ms)
|
||
✔ newRun: short ids, 0700 directories, and a refusal when the socket path won't fit (1.841099ms)
|
||
✔ session file and launch log: 0600, the session file written once (1.254723ms)
|
||
✔ endReason maps the runner's exit codes; a signal is killed (0.160932ms)
|
||
✔ Registry mirrors to sessions.json; readSessions marks live entries; bad files refuse (7.270227ms)
|
||
✔ stopSession refuses an unknown run, reports a stale one, and won't signal a pid that isn't a runner (1.194764ms)
|
||
✔ a session runs in its sandbox as pid 1 of its namespace, claims, answers, and stops on mosaic stop (333.270929ms)
|
||
✔ workRef and validBranch take only what a ref name can hold (1.363086ms)
|
||
✔ a push lands as the task's work ref, a fast-forward lands after it, and main is the root's (171.232977ms)
|
||
✔ a rewritten branch refuses non-fast-forward and the work ref stays (147.552298ms)
|
||
✔ a branch with no history in common with main refuses unrelated-history (71.965501ms)
|
||
✔ a bundle that needs commits the working repository lacks refuses missing-prerequisite (41.573634ms)
|
||
✔ main is fetched from the root again before each push, so a clone of a newer root pushes (152.12023ms)
|
||
✔ a root moved back after the clone leaves the push's base unknown: missing-prerequisite (102.140744ms)
|
||
✔ a commit with a broken object refuses invalid-bundle, and only because fsck is on (77.322751ms)
|
||
✔ only a v2 bundle with the named branch is read (48.782288ms)
|
||
✔ a branch named main, or named for another task, moves only this task's work ref (99.741375ms)
|
||
✔ a record that throws moves the work ref back, or removes a new one (161.050944ms)
|
||
✔ a work ref that can't go back refuses rollback-failed, naming the ref and the commit (359.422054ms)
|
||
✔ a root that can't be read refuses root-unreadable (27.238928ms)
|
||
✔ a git past its time gets SIGTERM, leaves no ref lock, and the next push lands (2175.948221ms)
|
||
✔ a git that ignores SIGTERM gets SIGKILL once the grace period is over (1029.576563ms)
|
||
✔ a working repository path that isn't a directory refuses (40.685679ms)
|
||
✔ review bundles a pushed commit as refs/mosaic/review, leaving out what the reviewer has (112.977965ms)
|
||
✔ review of a project with no working repository refuses unknown-commit (12.711428ms)
|
||
✔ the runner's git tools hold the host's limits and branch rule (1.164502ms)
|
||
ℹ tests 120
|
||
ℹ suites 0
|
||
ℹ pass 120
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 4896.209811
|