✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (127.407326ms)
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (141.689489ms)
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (142.605184ms)
✔ decide prints a declining choice as declining (121.229846ms)
✔ an unknown outcome is reported once and never resent (112.51702ms)
✔ a decision closed before the answer arrives exits 2 and points at its trail (98.802976ms)
✔ a prefix that matches two open decisions exits 2 and resolves neither (99.474469ms)
✔ without --business a command uses the live host's business, and a stale host.json is not a host (96.405106ms)
✔ every human command refuses inside an agent run before it touches the bus (135.991574ms)
✔ usage errors exit 4; no business and no host is a usage error (113.200529ms)
✔ agents and tasks print through the broker (164.909648ms)
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (2.055998ms)
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (44.45945ms)
✔ trackers come from the tracker.* variables of the one project that names a tracker project (33.551109ms)
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (31.918045ms)
✔ two projects that each name a tracker project refuse, since the boot shape holds one (28.986033ms)
✔ a business without tracker.baseUrl gets no trackers entry (27.034417ms)
✔ an unknown business and a broken system config refuse with exit 3 (51.63733ms)
✔ empty views say so (0.744068ms)
✔ the trail keeps the broker's order and names a decision's task without its rows (0.991007ms)
✔ tasks print the tracker fields the snapshot carries (0.136071ms)
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (896.785596ms)
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (256.455544ms)
✔ a second host for the same data root refuses with exit 3 while the first runs (239.608612ms)
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (291.720324ms)
✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (265.305714ms)
✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (122.588192ms)
✔ a close send that fails with EPIPE after the notifier refuses still gives the notifier's refusal, exit 3 (178.527251ms)
✔ a close send that fails with EPIPE after the notifier dies unanswered still gives the notifier's error (197.615861ms)
✔ close() whose stop and close sends fail with EPIPE still finishes, with exit 1 (180.946075ms)
✔ watchChildren reports a child that died before it was called, and one that dies later (21.7181ms)
✔ bus stop refuses to signal a live pid that is not a bus host (203.058669ms)
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (212.928287ms)
✔ bus start refuses with exit 3 without a notifier config (89.140811ms)
✔ bus start runs until bus stop; status reports it while it runs (656.935804ms)
✔ bus-service.sh renders the unit and installs it into a given directory (28.348121ms)
✔ bus start --pm: the PM runs under its own PID namespace, registered, with a manifest (270.794964ms)
✔ the PM launches a coder through its launch tool; the coder answers; refusals name their code (815.154892ms)
✔ a runner that stops at once ends its launch with the runner's reason (263.406741ms)
✔ 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 (815.211823ms)
✔ 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 (3657.484394ms)
✔ a malformed sessions.json refuses the host start with exit 3 and stays as it was (113.489374ms)
✔ zoned uses the IANA zone across DST (15.474129ms)
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (129.254695ms)
✔ two blocking decisions get two DMs with different nonces (128.049389ms)
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.188199ms)
✔ a failed DM is journaled, backs off, and is retried until it lands (133.43126ms)
✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (124.968283ms)
✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (116.127597ms)
✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (93.4847ms)
✔ 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 (165.887479ms)
✔ a restart after the second refusal does not send before that refusal's 30 min are up (141.037869ms)
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (153.200525ms)
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (137.038182ms)
✔ an inbox read failure is logged and the next poll retries (0.650764ms)
✔ no Discord id reaches the journal or the log (170.603977ms)
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (49.136453ms)
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (81.494654ms)
✔ the journal: a whole file that is one torn line truncates to empty (22.271123ms)
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (2.728536ms)
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.584967ms)
✔ the journal: a line with a wrong type refuses with exit 3 and names the field (1.950866ms)
✔ the journal: a symlinked directory refuses and says it is a link (0.292651ms)
✔ 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.45137ms)
✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.395917ms)
✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.410196ms)
✔ digest content stays within Discord's 2000 characters (0.266032ms)
✔ runLoop never overlaps ticks and stops after the one in flight (110.668485ms)
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 (375.657886ms)
✔ the transport writes {business, verb, args} to the child and reads its JSON (34.268882ms)
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2137.373473ms)
✔ busExit and refuseInsideAgent (0.46046ms)
✔ talk sends a REQUEST, prints and reads everything that arrives, and stops at the reply (229.138287ms)
✔ talk --wait 0 only sends; no reply within --wait exits 1 and says where it will show (1162.869992ms)
✔ talk, stop and launches off/on refuse inside an agent run; bad arguments are usage errors (170.664262ms)
✔ launches off and on go to the broker and change the business's launch state (117.53746ms)
✔ launches list reads sessions.json and marks a stale entry; stop reports it and refuses a non-runner (82.164709ms)
ℹ tests 77
ℹ suites 0
ℹ pass 77
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 6022.109024
