✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (109.326208ms)
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (131.173011ms)
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (95.380715ms)
✔ decide prints a declining choice as declining (101.261199ms)
✔ an unknown outcome is reported once and never resent (90.873521ms)
✔ a decision closed before the answer arrives exits 2 and points at its trail (82.553178ms)
✔ a prefix that matches two open decisions exits 2 and resolves neither (65.663277ms)
✔ without --business a command uses the live host's business, and a stale host.json is not a host (63.161817ms)
✔ every human command refuses inside an agent run before it touches the bus (71.517855ms)
✔ usage errors exit 4; no business and no host is a usage error (64.771744ms)
✔ agents and tasks print through the broker (81.235777ms)
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (1.491731ms)
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (42.390466ms)
✔ trackers come from the tracker.* variables of the one project that names a tracker project (31.817917ms)
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (29.31364ms)
✔ two projects that each name a tracker project refuse, since the boot shape holds one (29.235237ms)
✔ a business without tracker.baseUrl gets no trackers entry (27.976293ms)
✔ an unknown business and a broken system config refuse with exit 3 (54.504904ms)
✔ empty views say so (0.643051ms)
✔ the trail keeps the broker's order and names a decision's task without its rows (0.820582ms)
✔ tasks print the tracker fields the snapshot carries (0.12945ms)
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (878.852777ms)
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (193.435769ms)
✔ a second host for the same data root refuses with exit 3 while the first runs (109.149738ms)
✔ a broker reply that misses the wait breaks the channel: the late reply answers nothing, later requests refuse, the host exits 1 (1116.029982ms)
✔ a broker reply with another request's id, or none, breaks the channel and the host exits 1 (297.363627ms)
✔ a broker reply with no request waiting breaks the channel and the host exits 1 (136.080863ms)
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (211.117221ms)
✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (152.098598ms)
✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (105.739164ms)
✔ a close send that fails with EPIPE after the notifier refuses still gives the notifier's refusal, exit 3 (168.47933ms)
✔ a close send that fails with EPIPE after the notifier dies unanswered still gives the notifier's error (109.013095ms)
✔ close() whose stop and close sends fail with EPIPE still finishes, with exit 1 (161.766518ms)
✔ watchChildren reports a child that died before it was called, and one that dies later (23.205588ms)
✔ bus stop refuses to signal a live pid that is not a bus host (202.038679ms)
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (220.245857ms)
✔ bus start refuses with exit 3 without a notifier config (87.740202ms)
✔ bus start runs until bus stop; status reports it while it runs (648.344607ms)
✔ bus-service.sh renders the unit and installs it into a given directory (29.199759ms)
✔ bus start --pm: the PM runs under its own PID namespace, registered, with a manifest (1236.950849ms)
✔ the PM launches a coder through its launch tool; the coder answers; refusals name their code (590.206319ms)
✔ a runner that stops at once ends its launch with the runner's reason (196.00187ms)
✔ a host that died hard leaves its sessions to the next host, which kills them and ends their runs so the role can be launched again (654.407244ms)
✔ a host that died hard leaves its sessions to the next host, which finds one already exited (23) and ends their runs so the role can be launched again (3602.247558ms)
✔ a malformed sessions.json refuses the host start with exit 3 and stays as it was (114.232121ms)
✔ an over-long launch request is refused at once, not at the 10 s idle timeout (113.625918ms)
✔ a launch client that never closes its side doesn't hold the host's close (123.424341ms)
✔ a runner that ignores SIGTERM is killed when the host closes (1225.669061ms)
✔ zoned uses the IANA zone across DST (13.117943ms)
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (98.860357ms)
✔ two blocking decisions get two DMs with different nonces (116.067216ms)
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.183696ms)
✔ a failed DM is journaled, backs off, and is retried until it lands (100.784484ms)
✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (95.212487ms)
✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (90.646063ms)
✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (84.25297ms)
✔ 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 (132.969396ms)
✔ a restart after the second refusal does not send before that refusal's 30 min are up (106.092917ms)
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (90.088021ms)
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (75.007703ms)
✔ an inbox read failure is logged and the next poll retries (0.632172ms)
✔ no Discord id reaches the journal or the log (53.143761ms)
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (10.619939ms)
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (14.032303ms)
✔ the journal: a whole file that is one torn line truncates to empty (17.698663ms)
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (0.524247ms)
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.532295ms)
✔ the journal: a line with a wrong type refuses with exit 3 and names the field (1.788243ms)
✔ the journal: a symlinked directory refuses and says it is a link (0.32782ms)
✔ 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.431233ms)
✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.343949ms)
✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.439468ms)
✔ digest content stays within Discord's 2000 characters (0.243767ms)
✔ runLoop never overlaps ticks and stops after the one in flight (110.696929ms)
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 (364.080148ms)
✔ the transport writes {business, verb, args} to the child and reads its JSON (32.109277ms)
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2144.091683ms)
✔ busExit and refuseInsideAgent (0.423576ms)
✔ talk sends a REQUEST, prints and reads everything that arrives, and stops at the reply (204.839812ms)
✔ talk --wait 0 only sends; no reply within --wait exits 1 and says where it will show (1133.088597ms)
✔ talk, stop and launches off/on refuse inside an agent run; bad arguments are usage errors (91.219169ms)
✔ launches off and on go to the broker and change the business's launch state (86.894265ms)
✔ launches list reads sessions.json and marks a stale entry; stop reports it and refuses a non-runner (50.775287ms)
ℹ tests 83
ℹ suites 0
ℹ pass 83
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 7932.873171
