✔ every screen and overlay fits 120x36, 80x24 and the narrow layout, row for row (2093.885391ms)
✔ width counts terminal cells: wide CJK and emoji 2, U+FE0F after a one-cell base 1, marks 0 (85.895792ms)
✔ broker text is shown, never interpreted: no raw control character or bidi override reaches the terminal (188.965231ms)
✔ NO_COLOR: no escape codes, except reverse video on the selected row (273.309536ms)
✔ 1-9 shows the decide flow's own lines and question; only y resolves (78.049555ms)
✔ the app shows the same decide text as mosaic decide (29.632195ms)
✔ any key but y or Y at the question answers No; nothing is sent (238.717586ms)
✔ below 40x10 the question is hidden, so every key answers it No, y included (Filbert R3) (101.540192ms)
✔ under 40 columns a tall terminal shows the too-small screen even where the decide box would fit; y sends nothing (Filbert N10) (324.870602ms)
✔ a hidden decide box names the way out, and the status line under it does not promise y (Filbert N12) (41.747965ms)
✔ a throw while answering the question goes to crash, sends nothing and leaves no job pending (25.50798ms)
✔ type-ahead never answers the question: a paste, keys typed before it is drawn, keys inside askMs (447.404277ms)
✔ quitting at the question answers No and sends nothing, armed or not (44.272669ms)
✔ a timer tick reads nothing under an overlay, never answers the question, and keeps a resolved status (37.715802ms)
✔ a long question is cut inside the question; the action, target, choice and prompt stay (Dewey B1) (56.365273ms)
✔ a decide box too big for the terminal says so, and every key answers it No, y included (Dewey B1, round 3) (356.428278ms)
✔ at every size the decide box shows each line y depends on, or says it is hidden (9973.424164ms)
✔ outcome unknown: the CLI's sentence, no retry, then the trail or a re-read (72.014878ms)
✔ refused and failed reads keep the last list, marked stale; a refused decide says refused (31.046256ms)
✔ help or a detail box cut to fit keeps its last line, Esc included (Dewey) (15.581522ms)
✔ keys: views, moving, trail of a selection, the command line, help and quit (79.096354ms)
✔ one option: the status line says Press 1, not 1-1 (17.23856ms)
✔ no business: the app says so and :business picks one (9.402644ms)
✔ mosaic with no argument: exit 3 in an agent run, exit 4 with the usage off a terminal, the app on one (1.769499ms)
✔ scripts/mosaic with no argument reaches the app entry; the seat usage it printed before has not drifted (173.610987ms)
✔ strings to keep exactly live once, in the decide flow and the transport; the app does not restate them (0.434737ms)
✔ decide with --note still asks; a No sends nothing (11.260301ms)
✔ the app's business comes from a live bus host only (0.957578ms)
✔ runApp leaves the terminal as it found it on q, end of input, SIGTERM, SIGINT, SIGHUP and an error, the first frame's included (6.685808ms)
✔ draw is pure: same state, same frame (0.773674ms)
✔ recordBootRefused keeps the last good load across refusals; recordBootOk clears the refusal (16.828808ms)
✔ an unknown key and a JSON syntax error each leave the bus down with the reason and path in the status (1228.134714ms)
✔ a missing file is recorded too, and a valid file clears the status on the next start (643.852238ms)
✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (40.585431ms)
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (48.228978ms)
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (35.395001ms)
✔ decide prints a declining choice as declining (27.224432ms)
✔ an unknown outcome is reported once and never resent (28.348522ms)
✔ a decision closed before the answer arrives exits 2 and points at its trail (34.651339ms)
✔ a prefix that matches two open decisions exits 2 and resolves neither (32.176434ms)
✔ without --business a command uses the live host's business, and a stale host.json is not a host (31.385691ms)
✔ every human command refuses inside an agent run before it touches the bus (34.047301ms)
✔ usage errors exit 4; no business and no host is a usage error (23.100507ms)
✔ agents and tasks print through the broker (22.610441ms)
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (3.759252ms)
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (97.336633ms)
✔ trackers come from the tracker.* variables of the one project that names a tracker project (120.760153ms)
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (72.969224ms)
✔ two projects that each name a tracker project refuse, since the boot shape holds one (60.171426ms)
✔ a business without tracker.baseUrl gets no trackers entry (58.536758ms)
✔ an unknown business and a broken system config refuse with exit 3 (104.570886ms)
✔ follow prints an unsolicited message after plain talk returned (68.855339ms)
✔ talk --follow continues after reply and prints a later unsolicited message (50.365798ms)
✔ inbox lists all unread human messages under decisions, does not deliver or read them (620.020523ms)
✔ follow refuses agent context and bad arguments (20.325578ms)
✔ follow Ctrl-C wakes the poll sleep and removes its handler; transport errors also clean up (23.264951ms)
✔ plain talk leaves the process SIGINT handlers unchanged (19.65432ms)
✔ empty views say so (1.197095ms)
✔ the trail keeps the broker's order and names a decision's task without its rows (1.52662ms)
✔ tasks print the tracker fields the snapshot carries (0.27958ms)
✔ the review loop: the coder pushes and asks, the reviewer fetches and approves, and the task's trail holds each step (857.825897ms)
✔ refusals: no action, non-fast-forward, an unknown commit or request, and a push for another task moves only that task's ref (546.113264ms)
✔ the size cap refuses a push before any byte (258.032145ms)
✔ a fetch over the cap refuses before any byte reaches the reviewer (431.737823ms)
✔ the socket refuses a request with no capability, an unknown one, and a bad request line (240.06648ms)
✔ a rigged clone runs nothing: hooks, fsmonitor, a filter, a gitlink and a symlinked .git/config leave no marker (358.791311ms)
✔ an identity with no role, or of another business, refuses not-a-role and moves no ref (280.568806ms)
✔ a review of a project the business no longer has refuses unknown-project (268.317757ms)
✔ past maxActive connections the socket refuses git-busy, and a hung-up connection frees its slot (192.109704ms)
✔ close() answers host-closing to a connection still sending its request line (196.4235ms)
✔ a bundle that trickles in refuses body-timeout at its deadline and frees its slot (610.895652ms)
✔ a reviewer gone before its bundle was sent is filed fetch-aborted, not as the host's fault (523.434936ms)
✔ a reviewer that hangs up the moment it has the whole bundle was served, not aborted (607.307164ms)
✔ send: a close after every byte left is served; one that fails a queued write is fetch-aborted (41.678754ms)
✔ a bundle with no bytes for bodyIdle refuses body-timeout long before its deadline (578.707282ms)
✔ send: a close once the loop is past its last chunk is served, and a failed write there is fetch-aborted (152.866084ms)
✔ letGo waits for an answer to leave for at most its cap, then destroys the socket (378.758448ms)
✔ a record that fails and can't be undone refuses rollback-failed, which the host logs (453.795142ms)
✔ land: the squash runs the gate in its own worktree, then main moves and the broker records it (389.080149ms)
✔ land: an arbiter-resolved landing's squash says the arbiter resolved it through the broker (409.394882ms)
✔ land: refusals before the gate answer the role at once and leave main and no worktree (333.601198ms)
✔ land: a failed gate is refused gate-failed with its step, told to the role, and main stays (374.547053ms)
✔ land: a record the broker refuses moves main back, and the landing is refused with the broker's code (338.344646ms)
✔ land: a second landing while one runs refuses land-busy, and close() stops the gate and refuses host-closing (315.673852ms)
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (1090.059606ms)
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (283.148106ms)
✔ a second host for the same data root refuses with exit 3 while the first runs (156.823857ms)
✔ two bus starts racing for one data root leave one host running; the other refuses that a host already runs (642.812668ms)
✔ a host takes over a host.lock its dead host left, and puts back a live claim that replaced it meanwhile (1.871608ms)
✔ 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.178427ms)
✔ a live host's lock stays, however old the file is (0.628469ms)
✔ a host.lock left by a host killed with SIGKILL doesn't stop the next bus start (890.194765ms)
✔ while a host boots, a reader sees no host: the human commands still ask for --business, stop and status find none (258.075474ms)
✔ a host started before host.lock existed, holding only host.json, still refuses a second start, which leaves no lock (34.795923ms)
✔ a broker fork that throws leaves no host.lock and no host.json (38.00763ms)
✔ a broker send that throws leaves no host.lock and no host.json (34.603927ms)
✔ a broker that misses its boot wait leaves no host.lock and no host.json (35.802573ms)
✔ a notifier fork that throws stops the broker and leaves no host.lock and no host.json (137.187734ms)
✔ a notifier send that throws stops the broker and leaves no host.lock and no host.json (130.190144ms)
✔ 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 (128.834052ms)
✔ 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 (131.869039ms)
✔ a host.json that can't be written stops both children and leaves no host.lock (245.896934ms)
✔ an error event on the broker before it replies fails the start at once, and leaves no host.lock and no live child (33.798368ms)
✔ an error event on the notifier before it replies fails the start at once, and leaves no host.lock and no live child (131.454112ms)
✔ an error event on the broker while the notifier starts fails the start once the notifier replies (265.405658ms)
✔ 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 (238.885272ms)
✔ 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 (250.474567ms)
✔ a broker reply that misses the wait breaks the channel: the late reply answers nothing, later requests refuse, the host exits 1 (1191.204615ms)
✔ a broker reply with another request's id, or none, breaks the channel and the host exits 1 (327.762284ms)
✔ a broker reply with no request waiting breaks the channel and the host exits 1 (156.871783ms)
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (233.166893ms)
✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (214.425203ms)
✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (155.448617ms)
✔ a close send that fails with EPIPE after the notifier refuses still gives the notifier's refusal, exit 3 (235.541203ms)
✔ a close send that fails with EPIPE after the notifier dies unanswered still gives the notifier's error (150.490022ms)
✔ close() whose stop and close sends fail with EPIPE still finishes, with exit 1 (230.731984ms)
✔ watchChildren reports a child that died before it was called, and one that dies later (32.345563ms)
✔ bus stop refuses to signal a live pid that is not a bus host (203.464671ms)
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (386.348811ms)
✔ bus start refuses with exit 3 without a notifier config (142.334365ms)
✔ bus start runs until bus stop; status reports it while it runs (819.482094ms)
✔ bus-service.sh renders the unit and installs it into a given directory (61.028006ms)
✔ bus-service.sh pins the claude binary, refuses one the unit can't carry, and renders without one (76.001118ms)
✔ bus-service.sh refuses a directory pin and keeps a symlink default unresolved (16.008835ms)
✔ bus-service.sh refuses a default claude without the execute bit, or in a PATH dir with a space (10.092779ms)
✔ each launch rereads limits and model selections; lowered limits keep sessions and log exact hit (64.991106ms)
✔ bus start --pm: the launcher instance (the chief of staff) runs under its own PID namespace, registered, with a manifest (1390.278621ms)
✔ the chief of staff launches a coder through its launch tool; the coder answers; refusals name their code (646.070115ms)
✔ a launched pm's request_staff reaches the chief of staff; no other session has the tool and the launch limits still hold (1048.026085ms)
✔ each launch makes sure the workspace has a clone of the project: cloned, fast-forwarded, or fetched and logged (4248.313169ms)
✔ a role the broker says holds a merge decision gets land_work, its prompt line and the git socket; without it, none (537.240807ms)
✔ a project clone that can't be made refuses checkout-failed, from --chief and from a session, with no run and no clone left (180.90085ms)
✔ a runner that stops at once ends its launch with the runner's reason (327.794381ms)
✔ a Claude Code launch with no session credential refuses before it starts (165.647336ms)
✔ a pi launch needs no session credential: pi logs in through its own ENV_ALLOW variables (257.587834ms)
✔ a runner killed from the host ends its launch as killed, not failed (302.871446ms)
✔ a missing or failing bwrap refuses sandbox-unavailable before anything starts; there is no unconfined fallback (148.758943ms)
✔ a real Claude Code coder's shell can't read a stand-in secret or anything else its sandbox doesn't hold (1355.321691ms)
✔ 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 (761.576784ms)
✔ 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 (3657.232419ms)
✔ a malformed sessions.json refuses the host start with exit 3 and stays as it was (112.136342ms)
✔ an over-long launch request is refused at once, not at the 10 s idle timeout (111.343969ms)
✔ a launch client that never closes its side doesn't hold the host's close (114.286771ms)
✔ a runner that ignores SIGTERM is killed when the host closes (1235.638335ms)
✔ claudeVersion asks MOSAIC_CLAUDE_BIN when set, else claude on PATH (4.626363ms)
✔ migration needs no bus/config, prints whole converted document, is idempotent and never writes (16.479242ms)
✔ limits view/set use the human bus transport and pass only the explicit patch (3.613539ms)
✔ post-119 example and Jason fixture migrate with checked inherited models; wrong or absent config refuses (368.173159ms)
✔ plugins view/set use the human bus transport and pass only the explicit patch (vikunja:19/305) (3.541465ms)
✔ inbox --read marks one message by the id inbox prints, delivered or not, and leaves the rest unread (74.859487ms)
✔ inbox --read refuses an id that is not the human's, prints its code, still marks the rest and exits 2 (47.477854ms)
✔ inbox --read refuses an ambiguous or short prefix, names every match, reads nothing for them and marks the rest (3.270843ms)
✔ inbox --read-all marks every message the inbox walk lists, delivered or not, and inbox then shows 0 unread (1260.116897ms)
✔ inbox --read stops on an error that is not about one message (1.02348ms)
✔ inbox --read and --read-all refuse bad combinations; other verbs refuse them (20.766149ms)
✔ the human names an instance, lists it, and talk's message.send reaches it by that name (55.321649ms)
✔ name and names refuse the wrong number of arguments with the usage (19.686199ms)
✔ zoned uses the IANA zone across DST (27.183941ms)
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (43.379417ms)
✔ two blocking decisions get two DMs with different nonces (32.219217ms)
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.282793ms)
✔ a failed DM is journaled, backs off, and is retried until it lands (30.145266ms)
✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (35.233471ms)
✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (52.484259ms)
✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (30.666039ms)
✔ 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 (217.535959ms)
✔ a restart after the second refusal does not send before that refusal's 30 min are up (117.50064ms)
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (24.199007ms)
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (25.453472ms)
✔ an inbox read failure is logged and the next poll retries (2.021412ms)
✔ no Discord id reaches the journal or the log (19.952973ms)
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (4.714065ms)
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (5.485734ms)
✔ the journal: a whole file that is one torn line truncates to empty (2.635619ms)
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (1.09375ms)
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.995356ms)
✔ the journal: a line with a wrong type refuses with exit 3 and names the field (3.674452ms)
✔ the journal: a symlinked directory refuses and says it is a link (0.664116ms)
✔ 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.881959ms)
✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.797236ms)
✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.821666ms)
✔ digest content stays within Discord's 2000 characters (0.512925ms)
✔ runLoop never overlaps ticks and stops after the one in flight (110.825972ms)
✔ a human command refused with human-required prints the other-tree line and exits 3 (3.762684ms)
✔ a --tester command refused with tester-required prints the other-tree line and exits 3 (1.28997ms)
✔ other exit-3 refusals print no other-tree line (2.104473ms)
✔ the line names no path (0.168876ms)
✔ project init/check use declared business repo and never contact the bus (265.93629ms)
✔ project commands validate args and refuse undeclared projects and agent init (65.861103ms)
✔ project create and list validate their arguments before any bus call (55.547752ms)
✔ project dispatcher reaches the human CLI (169.561888ms)
✔ shared copy: npm ci, pushed reachability, readonly/existing copy, webui delegation (811.664435ms)
✔ wrapper preserves Q81 lease and marker, rejects foreign/symlink; check uses effective roots (641.617111ms)
✔ bus unit copy/pm pins, install refuses all busy states and failed reads, drop-in refusal (546.112174ms)
✔ missing package manifest refuses before npm; npm failure removes the unpublished temp copy (374.791164ms)
✔ real pinned install loads bus and Console; same-copy mosaic talk passes proof, other trees refuse (4443.108173ms)
✔ bus status reads effective copy/pm/drop-ins without writes; check refuses an overridden ExecStart (692.882549ms)
✔ drop-ins in either override field and malformed metadata refuse; uninstall also checks --no-reload (228.621331ms)
✔ install never shows a template name on systemd 261; template drop-ins still refuse (225.447451ms)
✔ unlisted instance drop-in is found in another unit lookup directory; path discovery errors refuse (225.76856ms)
✔ inherited mosaic-.service.d override refuses without changing the unit (228.486713ms)
✔ inherited service.d override refuses without changing the unit (236.706758ms)
✔ inherited drop-in unreadable directory or file refuses before writing (208.661161ms)
✔ talk --tester sends a [mos test] message as tester from inside an agent and prints the role's reply (44.70665ms)
✔ talk --tester refuses text without the [mos test] prefix before any call (24.345312ms)
✔ the read verbs take --tester inside an agent, and the trail shows the tester as the sender (43.16915ms)
✔ decide, stop and launches take no --tester (28.505512ms)
✔ the tester transport runs tester-cli.mjs, and the tester's refusals exit 3 (0.549501ms)
✔ with no stand-in transport, --tester runs tester-cli.mjs on the data root's socket (1.040572ms)
✔ talk --tester to a stopped role says nobody is told to launch it (23.437318ms)
✔ REQ-CLI-1 project create and list work on the bus record and refuse what the broker refuses (42.95639ms)
✔ REQ-CLI-1 thread create, list, open and read (81.335948ms)
✔ REQ-CLI-1 thread read pages through every message, oldest first (487.758689ms)
✔ REQ-CLI-1 the business needs exactly one threaded instance to create a thread (38.236132ms)
✔ REQ-CLI-1 a thread is its id, an id prefix of 8 characters or more, or <project>/<name>; anything else is refused before any write (43.591346ms)
✔ REQ-CLI-2 REQ-THREAD-2 talk --thread sends to the thread and prints only the reply to it; the rest stays unread (38.306466ms)
✔ REQ-CLI-2 talk --thread --wait gives up with exit 1 and leaves the thread's messages unread (1041.077672ms)
✔ REQ-CLI-2 talk --thread --follow and follow --thread print and read only that thread's messages (91.756851ms)
✔ REQ-CLI-2 plain talk to the assistant asks for a thread and exits 2 without a write (24.569437ms)
✔ REQ-USER-2 a thread of another user is refused for talk, open, read and follow, and nothing is written (42.060389ms)
✔ REQ-CLI-1 the new verbs refuse inside an agent run, as every human verb does (12.498292ms)
✔ 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 (5781.86425ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1 a running thread counts against its model's limit and an idle-stopped one doesn't (1722.238683ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1 a turn longer than the idle time isn't stopped, and the thread idles out after it (4437.190465ms)
✔ REQ-THREAD-2 REQ-LAUNCH-1 a message sent after the idle snapshot keeps the session, which answers it (2771.862031ms)
✔ REQ-ROLE-2 REQ-LAUNCH-1 a thread held by a run the launcher didn't start gets no second session (49.744158ms)
✔ REQ-LAUNCH-1 a run that ends without taking its thread's message isn't started again for that message (141.924457ms)
✔ 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 (177.43515ms)
✔ REQ-THREAD-1 REQ-LAUNCH-1 the chief can't launch the assistant outside a thread (46.328779ms)
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 (376.014494ms)
✔ the transport writes {business, verb, args} to the child and reads its JSON (55.620255ms)
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2224.404839ms)
✔ busExit and refuseInsideAgent (0.537933ms)
✔ talk sends a REQUEST, prints and reads only the reply to it, and leaves other messages unread (66.578519ms)
✔ talk --wait 0 only sends; no reply within --wait exits 1 and says where it will show (1022.754535ms)
✔ a late reply the Console has listed stays unread for mosaic inbox, and the next talk skips it (2046.079582ms)
✔ talk says when the role isn't running, whether launch.by was told, and how to start launch.by (36.541869ms)
✔ talk to a role launch.by can't launch says it isn't in the launch block (14.529916ms)
✔ talk to a stopped role prints the waiting line once, skips a non-reply and prints the reply (44.690032ms)
✔ talk, stop and launches off/on refuse inside an agent run; bad arguments are usage errors (13.495175ms)
✔ launches off and on go to the broker and change the business's launch state (13.852871ms)
✔ launches list reads sessions.json and marks a stale entry; stop reports it and refuses a non-runner (16.139631ms)
ℹ tests 242
ℹ suites 0
ℹ pass 242
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 16816.23266
