✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (18.683142ms)
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (23.175532ms)
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (12.54802ms)
✔ decide prints a declining choice as declining (12.654365ms)
✔ an unknown outcome is reported once and never resent (12.795995ms)
✔ a decision closed before the answer arrives exits 2 and points at its trail (10.791338ms)
✔ a prefix that matches two open decisions exits 2 and resolves neither (12.657588ms)
✔ without --business a command uses the live host's business, and a stale host.json is not a host (10.224266ms)
✔ every human command refuses inside an agent run before it touches the bus (11.932399ms)
✔ usage errors exit 4; no business and no host is a usage error (10.850137ms)
✔ agents and tasks print through the broker (9.820295ms)
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (1.459087ms)
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (47.077328ms)
✔ trackers come from the tracker.* variables of the one project that names a tracker project (41.209336ms)
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (36.360521ms)
✔ two projects that each name a tracker project refuse, since the boot shape holds one (37.183043ms)
✔ a business without tracker.baseUrl gets no trackers entry (34.767644ms)
✔ an unknown business and a broken system config refuse with exit 3 (65.444872ms)
✔ empty views say so (0.866ms)
✔ the trail keeps the broker's order and names a decision's task without its rows (1.026474ms)
✔ tasks print the tracker fields the snapshot carries (0.169169ms)
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (868.369289ms)
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (172.365188ms)
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (147.095184ms)
✔ watchChildren reports a child that died before it was called, and one that dies later (31.864675ms)
✔ bus stop refuses to signal a live pid that is not a bus host (203.54711ms)
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (257.814577ms)
✔ bus start refuses with exit 3 without a notifier config (111.480249ms)
✔ bus start runs until bus stop; status reports it while it runs (729.54278ms)
✔ bus-service.sh renders the unit and installs it into a given directory (33.560404ms)
✔ zoned uses the IANA zone across DST (25.853917ms)
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (18.485699ms)
✔ two blocking decisions get two DMs with different nonces (12.527143ms)
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.235022ms)
✔ a failed DM is journaled, backs off, and is retried until it lands (13.460085ms)
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (16.722078ms)
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (12.203833ms)
✔ an inbox read failure is logged and the next poll retries (0.835125ms)
✔ no Discord id reaches the journal or the log (13.241518ms)
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (2.243073ms)
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (3.159201ms)
✔ the journal: a whole file that is one torn line truncates to empty (1.998131ms)
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (0.793662ms)
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.743756ms)
✔ digest content stays within Discord's 2000 characters (0.392904ms)
✔ runLoop never overlaps ticks and stops after the one in flight (110.519055ms)
✔ the transport writes {business, verb, args} to the child and reads its JSON (34.393972ms)
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2176.092888ms)
✔ busExit and refuseInsideAgent (0.551635ms)
ℹ tests 49
ℹ suites 0
ℹ pass 49
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2660.213546
