✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (100.078936ms)
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (107.319875ms)
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (99.730956ms)
✔ decide prints a declining choice as declining (90.510381ms)
✔ an unknown outcome is reported once and never resent (112.00473ms)
✔ a decision closed before the answer arrives exits 2 and points at its trail (108.740493ms)
✔ a prefix that matches two open decisions exits 2 and resolves neither (77.352582ms)
✔ without --business a command uses the live host's business, and a stale host.json is not a host (45.635253ms)
✔ every human command refuses inside an agent run before it touches the bus (45.464533ms)
✔ usage errors exit 4; no business and no host is a usage error (45.159304ms)
✔ agents and tasks print through the broker (53.456446ms)
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (1.27951ms)
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (37.49377ms)
✔ trackers come from the tracker.* variables of the one project that names a tracker project (36.732668ms)
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (36.58984ms)
✔ two projects that each name a tracker project refuse, since the boot shape holds one (28.492158ms)
✔ a business without tracker.baseUrl gets no trackers entry (29.24871ms)
✔ an unknown business and a broken system config refuse with exit 3 (55.884577ms)
✔ empty views say so (1.044953ms)
✔ the trail keeps the broker's order and names a decision's task without its rows (1.380369ms)
✔ tasks print the tracker fields the snapshot carries (0.224637ms)
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (859.449566ms)
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (187.04901ms)
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (173.229976ms)
✔ watchChildren reports a child that died before it was called, and one that dies later (22.622042ms)
✔ bus stop refuses to signal a live pid that is not a bus host (202.886448ms)
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (210.010048ms)
✔ bus start refuses with exit 3 without a notifier config (84.912019ms)
✔ bus start runs until bus stop; status reports it while it runs (650.965231ms)
✔ bus-service.sh renders the unit and installs it into a given directory (27.10127ms)
✔ zoned uses the IANA zone across DST (13.969441ms)
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (94.732038ms)
✔ two blocking decisions get two DMs with different nonces (109.219033ms)
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.214105ms)
✔ a failed DM is journaled, backs off, and is retried until it lands (87.262675ms)
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (91.765134ms)
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (90.620084ms)
✔ an inbox read failure is logged and the next poll retries (0.714447ms)
✔ no Discord id reaches the journal or the log (97.129267ms)
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (28.777778ms)
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (29.548192ms)
✔ the journal: a whole file that is one torn line truncates to empty (14.661147ms)
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (1.862905ms)
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.5764ms)
✔ digest content stays within Discord's 2000 characters (0.315122ms)
✔ runLoop never overlaps ticks and stops after the one in flight (111.13999ms)
✔ the transport writes {business, verb, args} to the child and reads its JSON (33.566934ms)
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2140.027835ms)
✔ busExit and refuseInsideAgent (0.491405ms)
ℹ tests 49
ℹ suites 0
ℹ pass 49
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2517.736153
