✔ every screen and overlay fits 120x36, 80x24 and the narrow layout, row for row (1878.023415ms) ✔ width counts terminal cells: wide CJK and emoji 2, U+FE0F after a one-cell base 1, marks 0 (129.026886ms) ✔ broker text is shown, never interpreted: no raw control character or bidi override reaches the terminal (275.615071ms) ✔ NO_COLOR: no escape codes, except reverse video on the selected row (279.66918ms) ✔ 1-9 shows the decide flow's own lines and question; only y resolves (61.782532ms) ✔ the app shows the same decide text as mosaic decide (26.200928ms) ✔ any key but y or Y at the question answers No; nothing is sent (239.633651ms) ✔ below 40x10 the question is hidden, so every key answers it No, y included (Filbert R3) (104.025195ms) ✔ under 40 columns a tall terminal shows the too-small screen even where the decide box would fit; y sends nothing (Filbert N10) (361.665139ms) ✔ a hidden decide box names the way out, and the status line under it does not promise y (Filbert N12) (57.042504ms) ✔ a throw while answering the question goes to crash, sends nothing and leaves no job pending (44.348923ms) ✔ type-ahead never answers the question: a paste, keys typed before it is drawn, keys inside askMs (485.207222ms) ✔ quitting at the question answers No and sends nothing, armed or not (38.061368ms) ✔ a timer tick reads nothing under an overlay, never answers the question, and keeps a resolved status (55.394406ms) ✔ a long question is cut inside the question; the action, target, choice and prompt stay (Dewey B1) (55.814579ms) ✔ a decide box too big for the terminal says so, and every key answers it No, y included (Dewey B1, round 3) (292.84107ms) ✔ at every size the decide box shows each line y depends on, or says it is hidden (10562.515864ms) ✔ outcome unknown: the CLI's sentence, no retry, then the trail or a re-read (66.014796ms) ✔ refused and failed reads keep the last list, marked stale; a refused decide says refused (30.623025ms) ✔ help or a detail box cut to fit keeps its last line, Esc included (Dewey) (16.085225ms) ✔ keys: views, moving, trail of a selection, the command line, help and quit (78.223941ms) ✔ one option: the status line says Press 1, not 1-1 (15.620884ms) ✔ no business: the app says so and :business picks one (8.762395ms) ✔ mosaic with no argument: exit 3 in an agent run, exit 4 with the usage off a terminal, the app on one (2.017131ms) ✔ scripts/mosaic with no argument reaches the app entry; the seat usage it printed before has not drifted (182.062355ms) ✔ strings to keep exactly live once, in the decide flow and the transport; the app does not restate them (0.493374ms) ✔ decide with --note still asks; a No sends nothing (10.587134ms) ✔ the app's business comes from a live bus host only (1.01631ms) ✔ runApp leaves the terminal as it found it on q, end of input, SIGTERM, SIGINT, SIGHUP and an error, the first frame's included (7.200374ms) ✔ draw is pure: same state, same frame (0.771392ms) ✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (22.30328ms) ✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (18.088287ms) ✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (15.927966ms) ✔ decide prints a declining choice as declining (14.056804ms) ✔ an unknown outcome is reported once and never resent (14.085443ms) ✔ a decision closed before the answer arrives exits 2 and points at its trail (13.849876ms) ✔ a prefix that matches two open decisions exits 2 and resolves neither (33.286248ms) ✔ without --business a command uses the live host's business, and a stale host.json is not a host (29.812207ms) ✔ every human command refuses inside an agent run before it touches the bus (16.446729ms) ✔ usage errors exit 4; no business and no host is a usage error (13.752449ms) ✔ agents and tasks print through the broker (12.686579ms) ✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (1.796635ms) ✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (96.847153ms) ✔ trackers come from the tracker.* variables of the one project that names a tracker project (126.707829ms) ✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (86.024527ms) ✔ two projects that each name a tracker project refuse, since the boot shape holds one (67.941649ms) ✔ a business without tracker.baseUrl gets no trackers entry (53.823396ms) ✔ an unknown business and a broken system config refuse with exit 3 (70.893942ms) ✔ follow prints an unsolicited message after plain talk returned (26.906442ms) ✔ talk --follow continues after reply and prints a later unsolicited message (27.33274ms) ✔ inbox lists all unread human messages under decisions, does not deliver or read them (295.342405ms) ✔ follow refuses agent context and bad arguments (16.955317ms) ✔ follow Ctrl-C wakes the poll sleep and removes its handler; transport errors also clean up (11.192458ms) ✔ plain talk leaves the process SIGINT handlers unchanged (15.659037ms) ✔ empty views say so (0.922491ms) ✔ the trail keeps the broker's order and names a decision's task without its rows (1.109743ms) ✔ tasks print the tracker fields the snapshot carries (0.185418ms) ✔ the review loop: the coder pushes and asks, the reviewer fetches and approves, and the task's trail holds each step (372.301672ms) ✔ refusals: no action, non-fast-forward, an unknown commit or request, and a push for another task moves only that task's ref (525.88121ms) ✔ the size cap refuses a push before any byte (171.05922ms) ✔ a fetch over the cap refuses before any byte reaches the reviewer (379.485958ms) ✔ the socket refuses a request with no capability, an unknown one, and a bad request line (213.463589ms) ✔ a rigged clone runs nothing: hooks, fsmonitor, a filter, a gitlink and a symlinked .git/config leave no marker (322.020817ms) ✔ an identity with no role, or of another business, refuses not-a-role and moves no ref (389.565322ms) ✔ a review of a project the business no longer has refuses unknown-project (232.570906ms) ✔ past maxActive connections the socket refuses git-busy, and a hung-up connection frees its slot (133.267091ms) ✔ close() answers host-closing to a connection still sending its request line (115.928617ms) ✔ a bundle that trickles in refuses body-timeout at its deadline and frees its slot (531.303014ms) ✔ a reviewer gone before its bundle was sent is filed fetch-aborted, not as the host's fault (451.082417ms) ✔ a reviewer that hangs up the moment it has the whole bundle was served, not aborted (560.107642ms) ✔ send: a close after every byte left is served; one that fails a queued write is fetch-aborted (43.10931ms) ✔ a record that fails and can't be undone refuses rollback-failed, which the host logs (453.947426ms) ✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (845.786219ms) ✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (145.96595ms) ✔ a second host for the same data root refuses with exit 3 while the first runs (73.694112ms) ✔ a broker reply that misses the wait breaks the channel: the late reply answers nothing, later requests refuse, the host exits 1 (1084.517575ms) ✔ a broker reply with another request's id, or none, breaks the channel and the host exits 1 (202.041184ms) ✔ a broker reply with no request waiting breaks the channel and the host exits 1 (101.676062ms) ✔ a notifier that refuses stops the broker and the host refuses with exit 3 (141.693636ms) ✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (136.31254ms) ✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (97.469491ms) ✔ a close send that fails with EPIPE after the notifier refuses still gives the notifier's refusal, exit 3 (160.085903ms) ✔ a close send that fails with EPIPE after the notifier dies unanswered still gives the notifier's error (95.218828ms) ✔ close() whose stop and close sends fail with EPIPE still finishes, with exit 1 (197.964716ms) ✔ watchChildren reports a child that died before it was called, and one that dies later (41.034091ms) ✔ bus stop refuses to signal a live pid that is not a bus host (205.780089ms) ✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (353.888144ms) ✔ bus start refuses with exit 3 without a notifier config (129.400195ms) ✔ bus start runs until bus stop; status reports it while it runs (782.96104ms) ✔ bus-service.sh renders the unit and installs it into a given directory (85.426121ms) ✖ bus-service.sh pins the claude binary, refuses one the unit can't carry, and renders without one (80.85061ms) ✔ bus-service.sh refuses a directory pin and keeps a symlink default unresolved (24.541276ms) ✔ bus-service.sh refuses a default claude without the execute bit, or in a PATH dir with a space (11.364496ms) ✔ bus start --pm: the PM runs under its own PID namespace, registered, with a manifest (1214.43818ms) ✔ the PM launches a coder through its launch tool; the coder answers; refusals name their code (690.240193ms) ✔ each launch makes sure the workspace has a clone of the project: cloned, fast-forwarded, or kept and logged (3569.953333ms) ✔ a project clone that can't be made refuses checkout-failed, from --pm and from a session, with no run and no clone left (127.415109ms) ✔ a runner that stops at once ends its launch with the runner's reason (186.397959ms) ✔ a Claude Code launch with no session credential refuses before it starts (90.252261ms) ✔ a pi launch needs no session credential: pi logs in through its own ENV_ALLOW variables (184.955245ms) ✔ a runner killed from the host ends its launch as killed, not failed (236.311347ms) ✔ a missing or failing bwrap refuses sandbox-unavailable before anything starts; there is no unconfined fallback (106.957231ms) ✔ a real Claude Code coder's shell can't read a stand-in secret or anything else its sandbox doesn't hold (1167.484302ms) ✔ a host that died hard leaves its sessions to the next host, which kills them and ends their runs so the role can be launched again (733.022648ms) ✔ a host that died hard leaves its sessions to the next host, which finds one already exited (23) and ends their runs so the role can be launched again (3715.503395ms) ✔ a malformed sessions.json refuses the host start with exit 3 and stays as it was (137.547527ms) ✔ an over-long launch request is refused at once, not at the 10 s idle timeout (91.807719ms) ✔ a launch client that never closes its side doesn't hold the host's close (93.450727ms) ✔ a runner that ignores SIGTERM is killed when the host closes (1197.701478ms) ✔ claudeVersion asks MOSAIC_CLAUDE_BIN when set, else claude on PATH (4.187536ms) ✔ zoned uses the IANA zone across DST (11.62465ms) ✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (17.269871ms) ✔ two blocking decisions get two DMs with different nonces (11.016362ms) ✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.169315ms) ✔ a failed DM is journaled, backs off, and is retried until it lands (10.833658ms) ✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (11.292575ms) ✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (11.804547ms) ✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (8.694247ms) ✔ polled every POLL_MS against a permanent 403, a DM is sent at 0, 30, 60, 90 and 120 min and gives up only then (66.608626ms) ✔ a restart after the second refusal does not send before that refusal's 30 min are up (32.134933ms) ✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (10.443929ms) ✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (7.165692ms) ✔ an inbox read failure is logged and the next poll retries (0.525009ms) ✔ no Discord id reaches the journal or the log (9.18097ms) ✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (2.380783ms) ✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (1.973919ms) ✔ the journal: a whole file that is one torn line truncates to empty (1.200871ms) ✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (0.399831ms) ✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.528293ms) ✔ the journal: a line with a wrong type refuses with exit 3 and names the field (1.797731ms) ✔ the journal: a symlinked directory refuses and says it is a link (0.32574ms) ✔ the journal: a dangling directory link, a parent that is a file and a journal that is a directory each refuse with exit 3 (0.466921ms) ✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.355111ms) ✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.425994ms) ✔ digest content stays within Discord's 2000 characters (0.246458ms) ✔ runLoop never overlaps ticks and stops after the one in flight (111.080772ms) ✔ shared copy: npm ci, pushed reachability, readonly/existing copy, webui delegation (414.327697ms) ✔ wrapper preserves Q81 lease and marker, rejects foreign/symlink; check uses effective roots (397.386015ms) ✔ bus unit copy/pm pins, install refuses all busy states and failed reads, drop-in refusal (406.041413ms) ✔ missing package manifest refuses before npm; npm failure removes the unpublished temp copy (269.564578ms) ✔ real pinned install loads bus and Console; same-copy mosaic talk passes proof, other trees refuse (3719.562811ms) ✔ bus status reads effective copy/pm/drop-ins without writes; check refuses an overridden ExecStart (484.714336ms) ✔ drop-ins in either override field and malformed metadata refuse; uninstall also checks --no-reload (171.749385ms) task.close {} answered: invalid-request; fake saw 18 requests, first GET /info 200, GET /projects/1 200, GET /projects/1/views 200 task.close on a missing task answered: task-not-found; it made GET /tasks/999 404 ✔ bootConfig trackers reach the S3 adapter in the real broker child, which goes ready against a fake Vikunja (228.487274ms) ✔ the transport writes {business, verb, args} to the child and reads its JSON (28.384326ms) ✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2122.881528ms) ✔ busExit and refuseInsideAgent (0.468177ms) ✔ talk sends a REQUEST, prints and reads everything that arrives, and stops at the reply (51.129388ms) ✔ talk --wait 0 only sends; no reply within --wait exits 1 and says where it will show (1010.197716ms) ✔ a late reply the Console has listed still reaches the next talk (2032.440859ms) ✔ talk, stop and launches off/on refuse inside an agent run; bad arguments are usage errors (17.075004ms) ✔ launches off and on go to the broker and change the business's launch state (8.122221ms) ✔ launches list reads sessions.json and marks a stale entry; stop reports it and refuses a non-runner (8.255873ms) ℹ tests 153 ℹ suites 0 ℹ pass 152 ℹ fail 1 ℹ cancelled 0 ℹ skipped 0 ℹ todo 0 ℹ duration_ms 27486.015378 ✖ failing tests: test at packages/cli/tests/host.test.mjs:509:1 ✖ bus-service.sh pins the claude binary, refuses one the unit can't carry, and renders without one (80.85061ms) Error: ENOENT: no such file or directory, scandir '/mnt/storage/scratch/tmp/mosaic-cli-xg7OGr/units' at readdirSync (node:fs:1954:26) at TestContext. (file:///mnt/storage/src/mosaic-stack-rocko-85/packages/cli/tests/host.test.mjs:547:20) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1402:25) at Test.processPendingSubtests (node:internal/test_runner/test:974:18) at Test.postRun (node:internal/test_runner/test:1542:19) at Test.run (node:internal/test_runner/test:1467:12) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/mnt/storage/scratch/tmp/mosaic-cli-xg7OGr/units' }