npm notice run @mosaic/cli@0.1.0 test npm notice run node --test tests/*.test.mjs ✔ every screen and overlay fits 120x36, 80x24 and the narrow layout, row for row (2379.07796ms) ✔ width counts terminal cells: wide CJK and emoji 2, U+FE0F after a one-cell base 1, marks 0 (112.674736ms) ✔ broker text is shown, never interpreted: no raw control character or bidi override reaches the terminal (230.358423ms) ✔ NO_COLOR: no escape codes, except reverse video on the selected row (375.42868ms) ✔ 1-9 shows the decide flow's own lines and question; only y resolves (64.367664ms) ✔ the app shows the same decide text as mosaic decide (26.972914ms) ✔ any key but y or Y at the question answers No; nothing is sent (234.344573ms) ✔ below 40x10 the question is hidden, so every key answers it No, y included (Filbert R3) (76.591273ms) ✔ under 40 columns a tall terminal shows the too-small screen even where the decide box would fit; y sends nothing (Filbert N10) (408.416422ms) ✔ a hidden decide box names the way out, and the status line under it does not promise y (Filbert N12) (41.241801ms) ✔ a throw while answering the question goes to crash, sends nothing and leaves no job pending (23.721703ms) ✔ type-ahead never answers the question: a paste, keys typed before it is drawn, keys inside askMs (425.113308ms) ✔ quitting at the question answers No and sends nothing, armed or not (42.901382ms) ✔ a timer tick reads nothing under an overlay, never answers the question, and keeps a resolved status (42.407973ms) ✔ a long question is cut inside the question; the action, target, choice and prompt stay (Dewey B1) (56.023807ms) ✔ a decide box too big for the terminal says so, and every key answers it No, y included (Dewey B1, round 3) (433.346413ms) ✔ at every size the decide box shows each line y depends on, or says it is hidden (8699.098393ms) ✔ outcome unknown: the CLI's sentence, no retry, then the trail or a re-read (67.842767ms) ✔ refused and failed reads keep the last list, marked stale; a refused decide says refused (33.163002ms) ✔ help or a detail box cut to fit keeps its last line, Esc included (Dewey) (17.275121ms) ✔ keys: views, moving, trail of a selection, the command line, help and quit (84.009583ms) ✔ one option: the status line says Press 1, not 1-1 (17.893977ms) ✔ no business: the app says so and :business picks one (11.242608ms) ✔ mosaic with no argument: exit 3 in an agent run, exit 4 with the usage off a terminal, the app on one (2.075134ms) ✔ scripts/mosaic with no argument reaches the app entry; the seat usage it printed before has not drifted (176.079283ms) ✔ strings to keep exactly live once, in the decide flow and the transport; the app does not restate them (0.434296ms) ✔ decide with --note still asks; a No sends nothing (11.649839ms) ✔ the app's business comes from a live bus host only (1.042308ms) ✔ 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.053369ms) ✔ draw is pure: same state, same frame (0.741108ms) ✔ recordBootRefused keeps the last good load across refusals; recordBootOk clears the refusal (7.35997ms) ✔ an unknown key and a JSON syntax error each leave the bus down with the reason and path in the status (1150.239087ms) ✔ a missing file is recorded too, and a valid file clears the status on the next start (879.596276ms) ✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (38.743053ms) ✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (41.307797ms) ✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (48.642941ms) ✔ decide prints a declining choice as declining (35.771172ms) ✔ an unknown outcome is reported once and never resent (30.006969ms) ✔ a decision closed before the answer arrives exits 2 and points at its trail (30.728425ms) ✔ a prefix that matches two open decisions exits 2 and resolves neither (30.005082ms) ✔ without --business a command uses the live host's business, and a stale host.json is not a host (28.554886ms) ✔ every human command refuses inside an agent run before it touches the bus (31.200661ms) ✔ usage errors exit 4; no business and no host is a usage error (31.440878ms) ✔ agents and tasks print through the broker (26.021626ms) ✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (3.326993ms) ✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (70.041375ms) ✔ trackers come from the tracker.* variables of the one project that names a tracker project (139.19815ms) ✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (77.395629ms) ✔ two projects that each name a tracker project refuse, since the boot shape holds one (87.075463ms) ✔ a business without tracker.baseUrl gets no trackers entry (71.107902ms) ✔ an unknown business and a broken system config refuse with exit 3 (120.91437ms) ✔ follow prints an unsolicited message after plain talk returned (82.761724ms) ✔ talk --follow continues after reply and prints a later unsolicited message (56.682184ms) ✔ inbox lists all unread human messages under decisions, does not deliver or read them (591.405779ms) ✔ follow refuses agent context and bad arguments (16.102717ms) ✔ follow Ctrl-C wakes the poll sleep and removes its handler; transport errors also clean up (14.248043ms) ✔ plain talk leaves the process SIGINT handlers unchanged (16.832032ms) ✔ empty views say so (1.110413ms) ✔ the trail keeps the broker's order and names a decision's task without its rows (1.413274ms) ✔ tasks print the tracker fields the snapshot carries (0.238676ms) ✔ the review loop: the coder pushes and asks, the reviewer fetches and approves, and the task's trail holds each step (858.836159ms) ✔ refusals: no action, non-fast-forward, an unknown commit or request, and a push for another task moves only that task's ref (542.769284ms) ✔ the size cap refuses a push before any byte (393.703632ms) ✔ a fetch over the cap refuses before any byte reaches the reviewer (551.33422ms) ✔ the socket refuses a request with no capability, an unknown one, and a bad request line (263.204518ms) ✔ a rigged clone runs nothing: hooks, fsmonitor, a filter, a gitlink and a symlinked .git/config leave no marker (409.032076ms) ✔ an identity with no role, or of another business, refuses not-a-role and moves no ref (289.911368ms) ✔ a review of a project the business no longer has refuses unknown-project (226.368113ms) ✔ past maxActive connections the socket refuses git-busy, and a hung-up connection frees its slot (192.559357ms) ✔ close() answers host-closing to a connection still sending its request line (233.684788ms) ✔ a bundle that trickles in refuses body-timeout at its deadline and frees its slot (583.043424ms) ✔ a reviewer gone before its bundle was sent is filed fetch-aborted, not as the host's fault (572.772929ms) ✔ a reviewer that hangs up the moment it has the whole bundle was served, not aborted (561.564215ms) ✔ send: a close after every byte left is served; one that fails a queued write is fetch-aborted (40.755448ms) ✔ a bundle with no bytes for bodyIdle refuses body-timeout long before its deadline (479.65349ms) ✔ send: a close once the loop is past its last chunk is served, and a failed write there is fetch-aborted (44.616671ms) ✔ letGo waits for an answer to leave for at most its cap, then destroys the socket (300.763549ms) ✔ a record that fails and can't be undone refuses rollback-failed, which the host logs (388.752165ms) ✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (1136.691106ms) ✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (495.60897ms) ✔ a second host for the same data root refuses with exit 3 while the first runs (171.975628ms) ✔ two bus starts racing for one data root leave one host running; the other refuses that a host already runs (671.152583ms) ✔ a host takes over a host.lock its dead host left, and puts back a live claim that replaced it meanwhile (2.324173ms) ✔ a host.lock that goes between the check and the read is tried again; one that can't be parsed still refuses as unreadable (1.421904ms) ✔ a live host's lock stays, however old the file is (0.901888ms) ✔ a host.lock left by a host killed with SIGKILL doesn't stop the next bus start (986.619859ms) ✔ while a host boots, a reader sees no host: the human commands still ask for --business, stop and status find none (249.843596ms) ✔ a host started before host.lock existed, holding only host.json, still refuses a second start, which leaves no lock (43.454414ms) ✔ a broker fork that throws leaves no host.lock and no host.json (55.24623ms) ✔ a broker send that throws leaves no host.lock and no host.json (44.366434ms) ✔ a broker that misses its boot wait leaves no host.lock and no host.json (39.20725ms) ✔ a notifier fork that throws stops the broker and leaves no host.lock and no host.json (118.177476ms) ✔ a notifier send that throws stops the broker and leaves no host.lock and no host.json (120.583925ms) ✔ a boot reply with no reader for the business refuses with exit 3 naming it, before the notifier starts, and leaves no host.lock and no live broker (144.406982ms) ✔ a boot reply with no reader for the business refuses with exit 3 naming it, with no notifier, and leaves no host.lock and no live broker (128.063264ms) ✔ a host.json that can't be written stops both children and leaves no host.lock (238.909086ms) ✔ an error event on the broker before it replies fails the start at once, and leaves no host.lock and no live child (32.697451ms) ✔ an error event on the notifier before it replies fails the start at once, and leaves no host.lock and no live child (150.999145ms) ✔ an error event on the broker while the notifier starts fails the start once the notifier replies (288.008012ms) ✔ an error event on the broker once the host is up stops the host with exit 1, and leaves no host.lock and no host.json (255.925424ms) ✔ an error event on the notifier once the host is up stops the host with exit 1, and leaves no host.lock and no host.json (254.183174ms) ✔ a broker reply that misses the wait breaks the channel: the late reply answers nothing, later requests refuse, the host exits 1 (1116.696859ms) ✔ a broker reply with another request's id, or none, breaks the channel and the host exits 1 (234.438496ms) ✔ a broker reply with no request waiting breaks the channel and the host exits 1 (118.38294ms) ✔ a notifier that refuses stops the broker and the host refuses with exit 3 (169.603952ms) ✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (164.841066ms) ✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (113.391595ms) ✔ a close send that fails with EPIPE after the notifier refuses still gives the notifier's refusal, exit 3 (161.977984ms) ✔ a close send that fails with EPIPE after the notifier dies unanswered still gives the notifier's error (117.259805ms) ✔ close() whose stop and close sends fail with EPIPE still finishes, with exit 1 (192.88893ms) ✔ watchChildren reports a child that died before it was called, and one that dies later (27.348368ms) ✔ bus stop refuses to signal a live pid that is not a bus host (202.395544ms) ✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (271.069291ms) ✔ bus start refuses with exit 3 without a notifier config (108.096468ms) ✔ bus start runs until bus stop; status reports it while it runs (728.596114ms) ✔ bus-service.sh renders the unit and installs it into a given directory (60.511391ms) ✔ bus-service.sh pins the claude binary, refuses one the unit can't carry, and renders without one (75.300345ms) ✔ bus-service.sh refuses a directory pin and keeps a symlink default unresolved (12.838323ms) ✔ bus-service.sh refuses a default claude without the execute bit, or in a PATH dir with a space (8.146428ms) ✔ each launch rereads limits and model selections; lowered limits keep sessions and log exact hit (66.548296ms) ✔ bus start --pm: the launcher instance (the chief of staff) runs under its own PID namespace, registered, with a manifest (1506.730134ms) ✔ the chief of staff launches a coder through its launch tool; the coder answers; refusals name their code (733.655827ms) ✔ each launch makes sure the workspace has a clone of the project: cloned, fast-forwarded, or fetched and logged (3825.294101ms) ✔ a project clone that can't be made refuses checkout-failed, from --chief and from a session, with no run and no clone left (156.992564ms) ✔ a runner that stops at once ends its launch with the runner's reason (228.347511ms) ✔ a Claude Code launch with no session credential refuses before it starts (139.165851ms) ✔ a pi launch needs no session credential: pi logs in through its own ENV_ALLOW variables (229.563426ms) ✔ a runner killed from the host ends its launch as killed, not failed (282.542419ms) ✔ a missing or failing bwrap refuses sandbox-unavailable before anything starts; there is no unconfined fallback (135.685908ms) ✔ a real Claude Code coder's shell can't read a stand-in secret or anything else its sandbox doesn't hold (1239.850484ms) ✔ 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 (714.316835ms) ✔ 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 (3643.080906ms) ✔ a malformed sessions.json refuses the host start with exit 3 and stays as it was (117.442426ms) ✔ an over-long launch request is refused at once, not at the 10 s idle timeout (119.384703ms) ✔ a launch client that never closes its side doesn't hold the host's close (122.541005ms) ✔ a runner that ignores SIGTERM is killed when the host closes (1268.657559ms) ✔ claudeVersion asks MOSAIC_CLAUDE_BIN when set, else claude on PATH (4.627124ms) ✔ migration needs no bus/config, prints whole converted document, is idempotent and never writes (33.496352ms) ✔ limits view/set use the human bus transport and pass only the explicit patch (3.961527ms) ✔ post-119 example and Jason fixture migrate with checked inherited models; wrong or absent config refuses (440.31992ms) ✔ plugins view/set use the human bus transport and pass only the explicit patch (vikunja:19/305) (4.823124ms) ✔ zoned uses the IANA zone across DST (23.895315ms) ✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (42.271744ms) ✔ two blocking decisions get two DMs with different nonces (41.497413ms) ✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.34978ms) ✔ a failed DM is journaled, backs off, and is retried until it lands (53.291126ms) ✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (52.012969ms) ✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (48.476037ms) ✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (32.223028ms) ✔ 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 (248.740159ms) ✔ a restart after the second refusal does not send before that refusal's 30 min are up (120.989421ms) ✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (20.812283ms) ✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (26.006811ms) ✔ an inbox read failure is logged and the next poll retries (1.38666ms) ✔ no Discord id reaches the journal or the log (19.086081ms) ✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (3.486751ms) ✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (3.775622ms) ✔ the journal: a whole file that is one torn line truncates to empty (1.859883ms) ✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (1.010505ms) ✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.97596ms) ✔ the journal: a line with a wrong type refuses with exit 3 and names the field (3.010498ms) ✔ the journal: a symlinked directory refuses and says it is a link (0.461784ms) ✔ 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.815064ms) ✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.834462ms) ✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.808472ms) ✔ digest content stays within Discord's 2000 characters (2.772703ms) ✔ runLoop never overlaps ticks and stops after the one in flight (110.641215ms) ✔ a human command refused with human-required prints the other-tree line and exits 3 (13.515603ms) ✔ a --tester command refused with tester-required prints the other-tree line and exits 3 (1.697275ms) ✔ other exit-3 refusals print no other-tree line (2.196448ms) ✔ the line names no path (0.176688ms) ✔ project init/check use declared business repo and never contact the bus (309.063763ms) ✔ project commands validate args and refuse undeclared projects and agent init (96.316704ms) ✔ project dispatcher reaches the human CLI (169.348475ms) ✔ shared copy: npm ci, pushed reachability, readonly/existing copy, webui delegation (944.198545ms) ✔ wrapper preserves Q81 lease and marker, rejects foreign/symlink; check uses effective roots (814.435373ms) ✔ bus unit copy/pm pins, install refuses all busy states and failed reads, drop-in refusal (681.147959ms) ✔ missing package manifest refuses before npm; npm failure removes the unpublished temp copy (414.993488ms) ✔ real pinned install loads bus and Console; same-copy mosaic talk passes proof, other trees refuse (3884.626986ms) ✔ bus status reads effective copy/pm/drop-ins without writes; check refuses an overridden ExecStart (535.385265ms) ✔ drop-ins in either override field and malformed metadata refuse; uninstall also checks --no-reload (186.399513ms) ✔ install never shows a template name on systemd 261; template drop-ins still refuse (188.222917ms) ✔ unlisted instance drop-in is found in another unit lookup directory; path discovery errors refuse (154.262431ms) ✔ inherited mosaic-.service.d override refuses without changing the unit (203.684257ms) ✔ inherited service.d override refuses without changing the unit (192.307354ms) ✔ inherited drop-in unreadable directory or file refuses before writing (158.845389ms) ✔ talk --tester sends a [mos test] message as tester from inside an agent and prints the role's reply (54.166593ms) ✔ talk --tester refuses text without the [mos test] prefix before any call (27.949352ms) ✔ the read verbs take --tester inside an agent, and the trail shows the tester as the sender (52.469436ms) ✔ decide, stop and launches take no --tester (33.733855ms) ✔ the tester transport runs tester-cli.mjs, and the tester's refusals exit 3 (0.650309ms) ✔ with no stand-in transport, --tester runs tester-cli.mjs on the data root's socket (3.3519ms) ✔ talk --tester to a stopped role says nobody is told to launch it (23.871186ms) ✔ REQ-THREAD-2 REQ-LAUNCH-1 REQ-MSG-1 a thread message starts the thread's session, which stops when idle; its history survives the stop and a restart and no other thread sees it (5712.627978ms) ✔ REQ-THREAD-2 REQ-LAUNCH-1 a running thread counts against its model's limit and an idle-stopped one doesn't (1608.730842ms) ✔ REQ-THREAD-2 REQ-LAUNCH-1 a turn longer than the idle time isn't stopped, and the thread idles out after it (4411.189437ms) ✔ REQ-THREAD-2 REQ-LAUNCH-1 a message sent after the idle snapshot keeps the session, which answers it (2822.048603ms) ✔ REQ-ROLE-2 REQ-LAUNCH-1 a thread held by a run the launcher didn't start gets no second session (48.163595ms) ✔ REQ-LAUNCH-1 a run that ends without taking its thread's message isn't started again for that message (146.888745ms) ✔ REQ-THREAD-2 REQ-LAUNCH-1 a thread id that isn't a safe segment, or a thread of a non-thread instance, launches nothing (180.082915ms) ✔ REQ-THREAD-1 REQ-LAUNCH-1 the chief can't launch the assistant outside a thread (46.921183ms) 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 (395.064055ms) ✔ the transport writes {business, verb, args} to the child and reads its JSON (67.756475ms) ✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2238.867282ms) ✔ busExit and refuseInsideAgent (0.957596ms) ✔ talk sends a REQUEST, prints and reads only the reply to it, and leaves other messages unread (72.134042ms) ✔ talk --wait 0 only sends; no reply within --wait exits 1 and says where it will show (1035.247794ms) ✔ a late reply the Console has listed stays unread for mosaic inbox, and the next talk skips it (2067.777385ms) ✔ talk says when the role isn't running, whether launch.by was told, and how to start launch.by (47.464873ms) ✔ talk, stop and launches off/on refuse inside an agent run; bad arguments are usage errors (15.067246ms) ✔ launches off and on go to the broker and change the business's launch state (14.522318ms) ✔ launches list reads sessions.json and marks a stale entry; stop reports it and refuses a non-runner (16.088425ms) ℹ tests 212 ℹ suites 0 ℹ pass 212 ℹ fail 0 ℹ cancelled 0 ℹ skipped 0 ℹ todo 0 ℹ duration_ms 15397.845154