✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (128.992405ms)
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (117.490817ms)
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (98.507257ms)
✔ decide prints a declining choice as declining (100.856708ms)
✔ an unknown outcome is reported once and never resent (79.93514ms)
✔ a decision closed before the answer arrives exits 2 and points at its trail (84.698884ms)
✔ a prefix that matches two open decisions exits 2 and resolves neither (77.810085ms)
✔ without --business a command uses the live host's business, and a stale host.json is not a host (71.306799ms)
✔ every human command refuses inside an agent run before it touches the bus (80.918075ms)
✔ usage errors exit 4; no business and no host is a usage error (89.376259ms)
✔ agents and tasks print through the broker (61.524828ms)
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (2.014781ms)
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (54.500379ms)
✔ trackers come from the tracker.* variables of the one project that names a tracker project (49.252327ms)
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (41.839281ms)
✔ two projects that each name a tracker project refuse, since the boot shape holds one (39.169396ms)
✔ a business without tracker.baseUrl gets no trackers entry (34.308217ms)
✔ an unknown business and a broken system config refuse with exit 3 (68.034625ms)
✔ empty views say so (0.930745ms)
✔ the trail keeps the broker's order and names a decision's task without its rows (1.26968ms)
✔ tasks print the tracker fields the snapshot carries (0.253035ms)
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (927.218884ms)
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (246.423158ms)
✔ a second host for the same data root refuses with exit 3 while the first runs (134.283061ms)
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (186.372289ms)
✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (166.112833ms)
✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (116.731548ms)
✔ watchChildren reports a child that died before it was called, and one that dies later (27.154295ms)
✔ bus stop refuses to signal a live pid that is not a bus host (204.018698ms)
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (207.119454ms)
✔ bus start refuses with exit 3 without a notifier config (93.241918ms)
✔ bus start runs until bus stop; status reports it while it runs (660.045857ms)
✔ bus-service.sh renders the unit and installs it into a given directory (26.485268ms)
✔ zoned uses the IANA zone across DST (25.966392ms)
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (117.001245ms)
✔ two blocking decisions get two DMs with different nonces (108.459933ms)
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.240469ms)
✔ a failed DM is journaled, backs off, and is retried until it lands (99.274316ms)
✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (94.770009ms)
✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (95.556195ms)
✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (85.846962ms)
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (97.798888ms)
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (70.717866ms)
✔ an inbox read failure is logged and the next poll retries (1.098127ms)
✔ no Discord id reaches the journal or the log (95.167879ms)
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (17.279417ms)
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (33.633015ms)
✔ the journal: a whole file that is one torn line truncates to empty (24.026958ms)
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (2.221119ms)
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (2.04365ms)
✔ the journal: a line with a wrong type refuses with exit 3 and names the field (9.278689ms)
✔ the journal: a symlinked directory refuses and says it is a link (0.820085ms)
✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.73875ms)
✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.447181ms)
✔ digest content stays within Discord's 2000 characters (0.397856ms)
✔ runLoop never overlaps ticks and stops after the one in flight (111.132403ms)
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 (399.577734ms)
✔ the transport writes {business, verb, args} to the child and reads its JSON (39.629142ms)
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2175.205675ms)
✔ busExit and refuseInsideAgent (0.394553ms)
ℹ tests 60
ℹ suites 0
ℹ pass 60
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 3125.865498
