✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (15.406365ms)
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (19.889859ms)
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (11.082826ms)
✔ decide prints a declining choice as declining (10.900547ms)
✔ an unknown outcome is reported once and never resent (9.993144ms)
✔ a decision closed before the answer arrives exits 2 and points at its trail (9.741018ms)
✔ a prefix that matches two open decisions exits 2 and resolves neither (11.82987ms)
✔ without --business a command uses the live host's business, and a stale host.json is not a host (10.354325ms)
✔ every human command refuses inside an agent run before it touches the bus (9.997008ms)
✔ usage errors exit 4; no business and no host is a usage error (10.647727ms)
✔ agents and tasks print through the broker (10.313741ms)
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (2.332501ms)
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (39.17658ms)
✔ trackers come from the tracker.* variables of the one project that names a tracker project (33.4277ms)
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (28.461035ms)
✔ two projects that each name a tracker project refuse, since the boot shape holds one (33.735066ms)
✔ a business without tracker.baseUrl gets no trackers entry (40.658634ms)
✔ an unknown business and a broken system config refuse with exit 3 (62.480257ms)
✔ empty views say so (0.745845ms)
✔ the trail keeps the broker's order and names a decision's task without its rows (0.7702ms)
✔ tasks print the tracker fields the snapshot carries (0.123489ms)
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (861.401799ms)
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (134.37757ms)
✔ a second host for the same data root refuses with exit 3 while the first runs (72.16873ms)
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (124.331709ms)
✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (118.368837ms)
✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (78.525932ms)
✔ a close send that fails with EPIPE after the notifier refuses still gives the notifier's refusal, exit 3 (123.149211ms)
✔ a close send that fails with EPIPE after the notifier dies unanswered still gives the notifier's error (76.627673ms)
✔ close() whose stop and close sends fail with EPIPE still finishes, with exit 1 (130.111723ms)
✔ watchChildren reports a child that died before it was called, and one that dies later (22.373132ms)
✔ bus stop refuses to signal a live pid that is not a bus host (203.144574ms)
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (204.506438ms)
✔ bus start refuses with exit 3 without a notifier config (80.300161ms)
✔ bus start runs until bus stop; status reports it while it runs (589.870543ms)
✔ bus-service.sh renders the unit and installs it into a given directory (28.306311ms)
✔ zoned uses the IANA zone across DST (12.414673ms)
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (15.361146ms)
✔ two blocking decisions get two DMs with different nonces (12.226799ms)
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.171141ms)
✔ a failed DM is journaled, backs off, and is retried until it lands (10.006057ms)
✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (13.970726ms)
✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (15.636064ms)
✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (11.408405ms)
✔ 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 (99.487844ms)
✔ a restart after the second refusal does not send before that refusal's 30 min are up (42.033245ms)
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (12.180808ms)
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (6.843471ms)
✔ an inbox read failure is logged and the next poll retries (0.566595ms)
✔ no Discord id reaches the journal or the log (7.102793ms)
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (1.680487ms)
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (1.967108ms)
✔ the journal: a whole file that is one torn line truncates to empty (1.242875ms)
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (0.399269ms)
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.47903ms)
✔ the journal: a line with a wrong type refuses with exit 3 and names the field (1.788018ms)
✔ the journal: a symlinked directory refuses and says it is a link (0.28774ms)
✔ 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.448896ms)
✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.329134ms)
✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.398665ms)
✔ digest content stays within Discord's 2000 characters (0.232068ms)
✔ runLoop never overlaps ticks and stops after the one in flight (110.778579ms)
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 (253.53672ms)
✔ the transport writes {business, verb, args} to the child and reads its JSON (29.875889ms)
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2148.77842ms)
✔ busExit and refuseInsideAgent (0.531925ms)
ℹ tests 66
ℹ suites 0
ℹ pass 66
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2933.537466
