✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (20.134056ms)
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (26.241572ms)
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (15.711639ms)
✔ decide prints a declining choice as declining (13.380758ms)
✔ an unknown outcome is reported once and never resent (9.236045ms)
✔ a decision closed before the answer arrives exits 2 and points at its trail (9.554273ms)
✔ a prefix that matches two open decisions exits 2 and resolves neither (10.621801ms)
✔ without --business a command uses the live host's business, and a stale host.json is not a host (11.366682ms)
✔ every human command refuses inside an agent run before it touches the bus (12.082916ms)
✔ usage errors exit 4; no business and no host is a usage error (11.128705ms)
✔ agents and tasks print through the broker (10.449874ms)
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (1.909287ms)
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (48.708686ms)
✔ trackers come from the tracker.* variables of the one project that names a tracker project (39.925021ms)
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (35.254166ms)
✔ two projects that each name a tracker project refuse, since the boot shape holds one (33.529767ms)
✔ a business without tracker.baseUrl gets no trackers entry (41.164155ms)
✔ an unknown business and a broken system config refuse with exit 3 (68.437879ms)
✔ empty views say so (0.935675ms)
✔ the trail keeps the broker's order and names a decision's task without its rows (0.990128ms)
✔ tasks print the tracker fields the snapshot carries (0.159053ms)
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (881.972396ms)
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (135.708239ms)
✔ a second host for the same data root refuses with exit 3 while the first runs (73.349518ms)
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (124.893626ms)
✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (134.813304ms)
✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (87.76665ms)
✔ watchChildren reports a child that died before it was called, and one that dies later (36.929762ms)
✔ bus stop refuses to signal a live pid that is not a bus host (203.219855ms)
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (276.768265ms)
✔ bus start refuses with exit 3 without a notifier config (96.336866ms)
✔ bus start runs until bus stop; status reports it while it runs (651.277703ms)
✔ bus-service.sh renders the unit and installs it into a given directory (41.913796ms)
✔ zoned uses the IANA zone across DST (25.237436ms)
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (19.12349ms)
✔ two blocking decisions get two DMs with different nonces (15.04801ms)
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.284039ms)
✔ a failed DM is journaled, backs off, and is retried until it lands (15.246058ms)
✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (18.300879ms)
✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (19.283766ms)
✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (12.623787ms)
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (16.108573ms)
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (10.506593ms)
✔ an inbox read failure is logged and the next poll retries (0.812213ms)
✔ no Discord id reaches the journal or the log (12.42784ms)
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (2.848665ms)
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (2.496016ms)
✔ the journal: a whole file that is one torn line truncates to empty (1.549448ms)
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (0.82019ms)
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.901995ms)
✔ the journal: a line with a wrong type refuses with exit 3 and names the field (3.155995ms)
✔ the journal: a symlinked directory refuses and says it is a link (0.639875ms)
✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.65835ms)
✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.631409ms)
✔ digest content stays within Discord's 2000 characters (0.442711ms)
✔ runLoop never overlaps ticks and stops after the one in flight (110.965551ms)
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 (275.770061ms)
✔ the transport writes {business, verb, args} to the child and reads its JSON (42.708073ms)
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2171.791227ms)
✔ busExit and refuseInsideAgent (0.512192ms)
ℹ tests 60
ℹ suites 0
ℹ pass 60
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2858.176494
