R2/B1: after a forbidden or not-found refusal on a child, the tick reads
GET /projects/<id> and drops the child only on 403 or 404; a deleted
kanban view (project read 200) fails the tick as in round 1. Tests 18
and 19, 23/23 mutants killed, gate on ae428a54 green (14 suites).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
94 lines
8.4 KiB
Plaintext
94 lines
8.4 KiB
Plaintext
✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (105.23188ms)
|
||
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (138.679551ms)
|
||
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (106.718911ms)
|
||
✔ decide prints a declining choice as declining (106.29729ms)
|
||
✔ an unknown outcome is reported once and never resent (85.171953ms)
|
||
✔ a decision closed before the answer arrives exits 2 and points at its trail (99.21976ms)
|
||
✔ a prefix that matches two open decisions exits 2 and resolves neither (77.14719ms)
|
||
✔ without --business a command uses the live host's business, and a stale host.json is not a host (43.297901ms)
|
||
✔ every human command refuses inside an agent run before it touches the bus (43.014633ms)
|
||
✔ usage errors exit 4; no business and no host is a usage error (56.33613ms)
|
||
✔ agents and tasks print through the broker (80.171197ms)
|
||
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (2.228006ms)
|
||
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (91.629133ms)
|
||
✔ trackers come from the tracker.* variables of the one project that names a tracker project (160.005116ms)
|
||
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (76.301882ms)
|
||
✔ two projects that each name a tracker project refuse, since the boot shape holds one (65.683286ms)
|
||
✔ a business without tracker.baseUrl gets no trackers entry (63.717581ms)
|
||
✔ an unknown business and a broken system config refuse with exit 3 (104.642087ms)
|
||
✔ empty views say so (1.475732ms)
|
||
✔ the trail keeps the broker's order and names a decision's task without its rows (1.687869ms)
|
||
✔ tasks print the tracker fields the snapshot carries (1.357916ms)
|
||
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (1136.072192ms)
|
||
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (307.657854ms)
|
||
✔ a second host for the same data root refuses with exit 3 while the first runs (224.128166ms)
|
||
✔ a broker reply that misses the wait breaks the channel: the late reply answers nothing, later requests refuse, the host exits 1 (1212.48658ms)
|
||
✔ a broker reply with another request's id, or none, breaks the channel and the host exits 1 (358.777338ms)
|
||
✔ a broker reply with no request waiting breaks the channel and the host exits 1 (212.108397ms)
|
||
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (307.194785ms)
|
||
✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (300.970521ms)
|
||
✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (238.483988ms)
|
||
✔ a close send that fails with EPIPE after the notifier refuses still gives the notifier's refusal, exit 3 (262.891905ms)
|
||
✔ a close send that fails with EPIPE after the notifier dies unanswered still gives the notifier's error (174.059272ms)
|
||
✔ close() whose stop and close sends fail with EPIPE still finishes, with exit 1 (266.408419ms)
|
||
✔ watchChildren reports a child that died before it was called, and one that dies later (41.996156ms)
|
||
✔ bus stop refuses to signal a live pid that is not a bus host (204.42459ms)
|
||
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (401.968574ms)
|
||
✔ bus start refuses with exit 3 without a notifier config (141.31995ms)
|
||
✔ bus start runs until bus stop; status reports it while it runs (892.70028ms)
|
||
✔ bus-service.sh renders the unit and installs it into a given directory (59.396981ms)
|
||
✔ bus start --pm: the PM runs under its own PID namespace, registered, with a manifest (1387.430243ms)
|
||
✔ the PM launches a coder through its launch tool; the coder answers; refusals name their code (718.61757ms)
|
||
✔ a runner that stops at once ends its launch with the runner's reason (257.791359ms)
|
||
✔ 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 (789.36371ms)
|
||
✔ 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 (3886.419518ms)
|
||
✔ a malformed sessions.json refuses the host start with exit 3 and stays as it was (147.872622ms)
|
||
✔ an over-long launch request is refused at once, not at the 10 s idle timeout (164.283308ms)
|
||
✔ a launch client that never closes its side doesn't hold the host's close (195.796303ms)
|
||
✔ a runner that ignores SIGTERM is killed when the host closes (1289.651366ms)
|
||
✔ zoned uses the IANA zone across DST (33.053783ms)
|
||
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (114.058988ms)
|
||
✔ two blocking decisions get two DMs with different nonces (122.612504ms)
|
||
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.390491ms)
|
||
✔ a failed DM is journaled, backs off, and is retried until it lands (118.753476ms)
|
||
✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (107.860744ms)
|
||
✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (86.126161ms)
|
||
✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (99.58961ms)
|
||
✔ 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 (199.643425ms)
|
||
✔ a restart after the second refusal does not send before that refusal's 30 min are up (153.621998ms)
|
||
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (73.527967ms)
|
||
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (58.113685ms)
|
||
✔ an inbox read failure is logged and the next poll retries (1.33976ms)
|
||
✔ no Discord id reaches the journal or the log (78.571724ms)
|
||
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (12.552555ms)
|
||
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (29.96297ms)
|
||
✔ the journal: a whole file that is one torn line truncates to empty (13.909831ms)
|
||
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (1.510737ms)
|
||
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (1.275492ms)
|
||
✔ the journal: a line with a wrong type refuses with exit 3 and names the field (3.921819ms)
|
||
✔ the journal: a symlinked directory refuses and says it is a link (0.589528ms)
|
||
✔ 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.747061ms)
|
||
✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.768514ms)
|
||
✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.935517ms)
|
||
✔ digest content stays within Discord's 2000 characters (0.620344ms)
|
||
✔ runLoop never overlaps ticks and stops after the one in flight (111.933447ms)
|
||
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 (523.445472ms)
|
||
✔ the transport writes {business, verb, args} to the child and reads its JSON (75.74559ms)
|
||
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2294.649393ms)
|
||
✔ busExit and refuseInsideAgent (0.513841ms)
|
||
✔ talk sends a REQUEST, prints and reads everything that arrives, and stops at the reply (213.092077ms)
|
||
✔ talk --wait 0 only sends; no reply within --wait exits 1 and says where it will show (1131.559209ms)
|
||
✔ talk, stop and launches off/on refuse inside an agent run; bad arguments are usage errors (80.809643ms)
|
||
✔ launches off and on go to the broker and change the business's launch state (115.814851ms)
|
||
✔ launches list reads sessions.json and marks a stale entry; stop reports it and refuses a non-runner (96.429552ms)
|
||
ℹ tests 83
|
||
ℹ suites 0
|
||
ℹ pass 83
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 9070.683394
|