✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (150.116076ms)
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (143.318043ms)
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (112.64667ms)
✔ decide prints a declining choice as declining (123.3612ms)
✔ an unknown outcome is reported once and never resent (104.492112ms)
✔ a decision closed before the answer arrives exits 2 and points at its trail (95.978405ms)
✔ a prefix that matches two open decisions exits 2 and resolves neither (103.096033ms)
✔ without --business a command uses the live host's business, and a stale host.json is not a host (62.80251ms)
✔ every human command refuses inside an agent run before it touches the bus (87.799277ms)
✔ usage errors exit 4; no business and no host is a usage error (98.098188ms)
✔ agents and tasks print through the broker (97.471494ms)
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (2.758848ms)
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (46.779971ms)
✔ trackers come from the tracker.* variables of the one project that names a tracker project (29.787435ms)
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (35.958922ms)
✔ two projects that each name a tracker project refuse, since the boot shape holds one (33.101958ms)
✔ a business without tracker.baseUrl gets no trackers entry (30.721242ms)
✔ an unknown business and a broken system config refuse with exit 3 (54.748785ms)
✔ empty views say so (0.969908ms)
✔ the trail keeps the broker's order and names a decision's task without its rows (1.121415ms)
✔ tasks print the tracker fields the snapshot carries (0.156025ms)
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (928.595541ms)
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (214.938702ms)
✔ a second host for the same data root refuses with exit 3 while the first runs (152.527975ms)
✔ a broker reply that misses the wait breaks the channel: the late reply answers nothing, later requests refuse, the host exits 1 (1135.79737ms)
✔ a broker reply with another request's id, or none, breaks the channel and the host exits 1 (244.109429ms)
✔ a broker reply with no request waiting breaks the channel and the host exits 1 (145.911091ms)
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (222.107069ms)
✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (183.54173ms)
✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (110.395017ms)
✔ a close send that fails with EPIPE after the notifier refuses still gives the notifier's refusal, exit 3 (153.393648ms)
✔ a close send that fails with EPIPE after the notifier dies unanswered still gives the notifier's error (99.687122ms)
✔ close() whose stop and close sends fail with EPIPE still finishes, with exit 1 (159.092763ms)
✔ watchChildren reports a child that died before it was called, and one that dies later (23.422141ms)
✔ bus stop refuses to signal a live pid that is not a bus host (202.394443ms)
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (213.690305ms)
✔ bus start refuses with exit 3 without a notifier config (91.015135ms)
✔ bus start runs until bus stop; status reports it while it runs (760.738611ms)
✔ bus-service.sh renders the unit and installs it into a given directory (27.073693ms)
✔ bus start --pm: the PM runs under its own PID namespace, registered, with a manifest (1322.432308ms)
✔ the PM launches a coder through its launch tool; the coder answers; refusals name their code (579.474875ms)
✔ a runner that stops at once ends its launch with the runner's reason (353.845585ms)
✔ 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 (698.635983ms)
✔ 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 (3623.043627ms)
✔ a malformed sessions.json refuses the host start with exit 3 and stays as it was (105.759853ms)
✔ an over-long launch request is refused at once, not at the 10 s idle timeout (120.992564ms)
✔ a launch client that never closes its side doesn't hold the host's close (122.451343ms)
✔ a runner that ignores SIGTERM is killed when the host closes (1229.126441ms)
✔ zoned uses the IANA zone across DST (23.875846ms)
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (143.487992ms)
✔ two blocking decisions get two DMs with different nonces (141.62964ms)
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.165734ms)
✔ a failed DM is journaled, backs off, and is retried until it lands (121.478802ms)
✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (110.794449ms)
✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (104.552061ms)
✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (104.544234ms)
✔ 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 (161.012674ms)
✔ a restart after the second refusal does not send before that refusal's 30 min are up (128.581453ms)
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (125.688972ms)
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (67.89824ms)
✔ an inbox read failure is logged and the next poll retries (0.653093ms)
✔ no Discord id reaches the journal or the log (99.433677ms)
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (17.950527ms)
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (22.786258ms)
✔ the journal: a whole file that is one torn line truncates to empty (12.167995ms)
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (0.595513ms)
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.563968ms)
✔ the journal: a line with a wrong type refuses with exit 3 and names the field (1.762883ms)
✔ the journal: a symlinked directory refuses and says it is a link (0.312306ms)
✔ 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.460445ms)
✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.364422ms)
✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.421262ms)
✔ digest content stays within Discord's 2000 characters (0.255207ms)
✔ runLoop never overlaps ticks and stops after the one in flight (110.794729ms)
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 (414.716896ms)
✔ the transport writes {business, verb, args} to the child and reads its JSON (38.443911ms)
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2145.005169ms)
✔ busExit and refuseInsideAgent (0.411218ms)
✔ talk sends a REQUEST, prints and reads everything that arrives, and stops at the reply (257.046804ms)
✔ talk --wait 0 only sends; no reply within --wait exits 1 and says where it will show (1145.387541ms)
✔ talk, stop and launches off/on refuse inside an agent run; bad arguments are usage errors (84.449481ms)
✔ launches off and on go to the broker and change the business's launch state (80.802272ms)
✔ launches list reads sessions.json and marks a stale entry; stop reports it and refuses a non-runner (80.436899ms)
ℹ tests 83
ℹ suites 0
ℹ pass 83
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 8247.060518
