✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (138.638924ms)
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (132.941019ms)
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (116.731662ms)
✔ decide prints a declining choice as declining (109.132344ms)
✔ an unknown outcome is reported once and never resent (117.897707ms)
✔ a decision closed before the answer arrives exits 2 and points at its trail (122.014581ms)
✔ a prefix that matches two open decisions exits 2 and resolves neither (100.722744ms)
✔ without --business a command uses the live host's business, and a stale host.json is not a host (77.9869ms)
✔ every human command refuses inside an agent run before it touches the bus (83.470336ms)
✔ usage errors exit 4; no business and no host is a usage error (89.721984ms)
✔ agents and tasks print through the broker (86.401911ms)
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (1.10934ms)
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (55.168327ms)
✔ trackers come from the tracker.* variables of the one project that names a tracker project (39.926919ms)
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (33.523335ms)
✔ two projects that each name a tracker project refuse, since the boot shape holds one (30.393071ms)
✔ a business without tracker.baseUrl gets no trackers entry (27.532027ms)
✔ an unknown business and a broken system config refuse with exit 3 (57.895953ms)
✔ empty views say so (0.929157ms)
✔ the trail keeps the broker's order and names a decision's task without its rows (0.990349ms)
✔ tasks print the tracker fields the snapshot carries (0.155053ms)
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (908.592046ms)
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (215.303058ms)
✔ a second host for the same data root refuses with exit 3 while the first runs (145.876256ms)
✔ a broker reply that misses the wait breaks the channel: the late reply answers nothing, later requests refuse, the host exits 1 (1165.049844ms)
✔ a broker reply with another request's id, or none, breaks the channel and the host exits 1 (389.403888ms)
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (238.871198ms)
✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (215.473048ms)
✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (164.522219ms)
✔ a close send that fails with EPIPE after the notifier refuses still gives the notifier's refusal, exit 3 (243.423454ms)
✔ a close send that fails with EPIPE after the notifier dies unanswered still gives the notifier's error (136.171525ms)
✔ close() whose stop and close sends fail with EPIPE still finishes, with exit 1 (198.742801ms)
✔ watchChildren reports a child that died before it was called, and one that dies later (26.600601ms)
✔ bus stop refuses to signal a live pid that is not a bus host (203.603644ms)
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (227.895553ms)
✔ bus start refuses with exit 3 without a notifier config (91.022479ms)
✔ bus start runs until bus stop; status reports it while it runs (761.049696ms)
✔ bus-service.sh renders the unit and installs it into a given directory (35.781901ms)
✔ bus start --pm: the PM runs under its own PID namespace, registered, with a manifest (1298.198148ms)
✔ the PM launches a coder through its launch tool; the coder answers; refusals name their code (655.756425ms)
✔ a runner that stops at once ends its launch with the runner's reason (253.622608ms)
✔ 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 (810.912019ms)
✔ 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 (3789.366254ms)
✔ a malformed sessions.json refuses the host start with exit 3 and stays as it was (150.305011ms)
✔ an over-long launch request is refused at once, not at the 10 s idle timeout (156.429058ms)
✔ a launch client that never closes its side doesn't hold the host's close (182.414216ms)
✔ a runner that ignores SIGTERM is killed when the host closes (1284.428961ms)
✔ zoned uses the IANA zone across DST (26.607121ms)
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (124.92784ms)
✔ two blocking decisions get two DMs with different nonces (127.300122ms)
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.186263ms)
✔ a failed DM is journaled, backs off, and is retried until it lands (114.696626ms)
✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (105.643281ms)
✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (127.026089ms)
✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (104.520561ms)
✔ 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 (176.552447ms)
✔ a restart after the second refusal does not send before that refusal's 30 min are up (124.599483ms)
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (106.56747ms)
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (96.82751ms)
✔ an inbox read failure is logged and the next poll retries (0.616406ms)
✔ no Discord id reaches the journal or the log (110.898763ms)
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (22.412109ms)
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (38.367565ms)
✔ the journal: a whole file that is one torn line truncates to empty (31.163172ms)
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (3.4225ms)
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.619509ms)
✔ the journal: a line with a wrong type refuses with exit 3 and names the field (1.778816ms)
✔ the journal: a symlinked directory refuses and says it is a link (0.459667ms)
✔ 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.464156ms)
✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.361591ms)
✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.425791ms)
✔ digest content stays within Discord's 2000 characters (0.259698ms)
✔ runLoop never overlaps ticks and stops after the one in flight (112.028169ms)
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 (380.372573ms)
✔ the transport writes {business, verb, args} to the child and reads its JSON (48.608719ms)
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2154.943017ms)
✔ busExit and refuseInsideAgent (0.460744ms)
✔ talk sends a REQUEST, prints and reads everything that arrives, and stops at the reply (214.990431ms)
✔ talk --wait 0 only sends; no reply within --wait exits 1 and says where it will show (1155.659087ms)
✔ talk, stop and launches off/on refuse inside an agent run; bad arguments are usage errors (102.063205ms)
✔ launches off and on go to the broker and change the business's launch state (117.097829ms)
✔ launches list reads sessions.json and marks a stale entry; stop reports it and refuses a non-runner (95.414427ms)
ℹ tests 82
ℹ suites 0
ℹ pass 82
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 8670.126908
