One rule for Filbert's R3 and Dewey's B1: y resolves only while the
whole decide box is shown. Adds N9 widths, the start-unguarded and
timeout fixes, and two defects found by the cheap tests (wrap at
graphemes, answer render throw). 51/51 mutants killed; gate on
122b1223 green, cli 110.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
121 lines
11 KiB
Plaintext
121 lines
11 KiB
Plaintext
✔ every screen and overlay fits 120x36, 80x24 and the narrow layout, row for row (1641.123987ms)
|
||
✔ width counts terminal cells: wide CJK and emoji 2, U+FE0F after a one-cell base 1, marks 0 (91.625067ms)
|
||
✔ broker text is shown, never interpreted: no raw control character or bidi override reaches the terminal (204.389251ms)
|
||
✔ NO_COLOR: no escape codes, except reverse video on the selected row (297.651664ms)
|
||
✔ 1-9 shows the decide flow's own lines and question; only y resolves (134.985026ms)
|
||
✔ the app shows the same decide text as mosaic decide (65.507892ms)
|
||
✔ any key but y or Y at the question answers No; nothing is sent (1393.693801ms)
|
||
✔ below 40x10 the question is hidden, so every key answers it No, y included (Filbert R3) (323.453488ms)
|
||
✔ a throw while answering the question goes to crash, sends nothing and leaves no job pending (100.439482ms)
|
||
✔ type-ahead never answers the question: a paste, keys typed before it is drawn, keys inside askMs (1158.438577ms)
|
||
✔ quitting at the question answers No and sends nothing, armed or not (173.081799ms)
|
||
✔ a timer tick reads nothing under an overlay, never answers the question, and keeps a resolved status (80.1729ms)
|
||
✔ a long question is cut inside the question; the action, target, choice and prompt stay (Dewey B1) (89.855673ms)
|
||
✔ a decide box too big for the terminal says so, and every key answers it No, y included (Dewey B1, round 3) (700.017659ms)
|
||
✔ at every size the decide box shows each line y depends on, or says it is hidden (11063.134882ms)
|
||
✔ outcome unknown: the CLI's sentence, no retry, then the trail or a re-read (170.541821ms)
|
||
✔ refused and failed reads keep the last list, marked stale; a refused decide says refused (114.46264ms)
|
||
✔ keys: views, moving, trail of a selection, the command line, help and quit (250.788525ms)
|
||
✔ one option: the status line says Press 1, not 1-1 (108.728774ms)
|
||
✔ no business: the app says so and :business picks one (54.240423ms)
|
||
✔ mosaic with no argument: exit 3 in an agent run, exit 4 with the usage off a terminal, the app on one (1.82506ms)
|
||
✔ scripts/mosaic with no argument reaches the app entry; the seat usage it printed before has not drifted (211.846348ms)
|
||
✔ strings to keep exactly live once, in the decide flow and the transport; the app does not restate them (0.784937ms)
|
||
✔ decide with --note still asks; a No sends nothing (61.39156ms)
|
||
✔ the app's business comes from a live bus host only (1.253556ms)
|
||
✔ runApp leaves the terminal as it found it on q, end of input, SIGTERM, SIGINT, SIGHUP and an error, the first frame's included (9.450749ms)
|
||
✔ draw is pure: same state, same frame (1.014652ms)
|
||
✔ inbox lists only decisions routed to the human, with what approving authorizes and how to decide (160.228747ms)
|
||
✔ decide resolves by id prefix with --yes, and the trail shows it in broker order with the task to follow (173.981743ms)
|
||
✔ decide refuses without a terminal or --yes, on an unknown option and on a short reference (178.01175ms)
|
||
✔ decide prints a declining choice as declining (186.91029ms)
|
||
✔ an unknown outcome is reported once and never resent (114.294151ms)
|
||
✔ a decision closed before the answer arrives exits 2 and points at its trail (228.413474ms)
|
||
✔ a prefix that matches two open decisions exits 2 and resolves neither (127.665424ms)
|
||
✔ without --business a command uses the live host's business, and a stale host.json is not a host (103.648788ms)
|
||
✔ every human command refuses inside an agent run before it touches the bus (85.556081ms)
|
||
✔ usage errors exit 4; no business and no host is a usage error (77.506148ms)
|
||
✔ agents and tasks print through the broker (103.476436ms)
|
||
✔ notify.json: missing, loose, malformed and extra keys refuse; a binding or null passes (1.603133ms)
|
||
✔ bootConfig builds the broker's boot message for one business, with no trackers key when no project names one (68.648006ms)
|
||
✔ trackers come from the tracker.* variables of the one project that names a tracker project (42.037548ms)
|
||
✔ with two projects, the one that sets tracker.project supplies the tracker and the other is no conflict (45.478142ms)
|
||
✔ two projects that each name a tracker project refuse, since the boot shape holds one (41.178111ms)
|
||
✔ a business without tracker.baseUrl gets no trackers entry (36.924054ms)
|
||
✔ an unknown business and a broken system config refuse with exit 3 (80.616129ms)
|
||
✔ empty views say so (1.155964ms)
|
||
✔ the trail keeps the broker's order and names a decision's task without its rows (1.417509ms)
|
||
✔ tasks print the tracker fields the snapshot carries (0.207258ms)
|
||
✔ the host boots the broker, binds a launch in process, and the notifier DMs a blocking decision exactly once (1017.640757ms)
|
||
✔ a notifier that dies takes the host down with exit 1, so the unit restarts the pair (301.029227ms)
|
||
✔ a second host for the same data root refuses with exit 3 while the first runs (181.630331ms)
|
||
✔ a broker reply that misses the wait breaks the channel: the late reply answers nothing, later requests refuse, the host exits 1 (1184.644329ms)
|
||
✔ a broker reply with another request's id, or none, breaks the channel and the host exits 1 (629.304517ms)
|
||
✔ a broker reply with no request waiting breaks the channel and the host exits 1 (170.37376ms)
|
||
✔ a notifier that refuses stops the broker and the host refuses with exit 3 (356.511996ms)
|
||
✔ a notifier that refuses after the broker died still refuses with exit 3, without a send to the dead broker (228.131282ms)
|
||
✔ a notifier that dies before it replies, after the broker died, still refuses, without a send to the dead broker (148.593046ms)
|
||
✔ a close send that fails with EPIPE after the notifier refuses still gives the notifier's refusal, exit 3 (725.077976ms)
|
||
✔ a close send that fails with EPIPE after the notifier dies unanswered still gives the notifier's error (137.715237ms)
|
||
✔ close() whose stop and close sends fail with EPIPE still finishes, with exit 1 (195.313058ms)
|
||
✔ watchChildren reports a child that died before it was called, and one that dies later (33.728711ms)
|
||
✔ bus stop refuses to signal a live pid that is not a bus host (204.116213ms)
|
||
✔ bus start refuses with exit 3 and the code when the broker refuses to boot; bus status names the lock (285.402332ms)
|
||
✔ bus start refuses with exit 3 without a notifier config (120.124432ms)
|
||
✔ bus start runs until bus stop; status reports it while it runs (889.37193ms)
|
||
✔ bus-service.sh renders the unit and installs it into a given directory (41.46377ms)
|
||
✔ bus start --pm: the PM runs under its own PID namespace, registered, with a manifest (1381.127614ms)
|
||
✔ the PM launches a coder through its launch tool; the coder answers; refusals name their code (736.176939ms)
|
||
✔ a runner that stops at once ends its launch with the runner's reason (231.500014ms)
|
||
✔ 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 (1198.727217ms)
|
||
✔ 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 (3819.084307ms)
|
||
✔ a malformed sessions.json refuses the host start with exit 3 and stays as it was (139.667775ms)
|
||
✔ an over-long launch request is refused at once, not at the 10 s idle timeout (152.104942ms)
|
||
✔ a launch client that never closes its side doesn't hold the host's close (148.765746ms)
|
||
✔ a runner that ignores SIGTERM is killed when the host closes (1266.599402ms)
|
||
✔ zoned uses the IANA zone across DST (30.213719ms)
|
||
✔ each open blocking decision is DM'd once, across polls and a restart; non-blocking ones are not (145.882722ms)
|
||
✔ two blocking decisions get two DMs with different nonces (155.970689ms)
|
||
✔ the digest nonce differs per business and per day and fits Discord's 25 characters (0.394037ms)
|
||
✔ a failed DM is journaled, backs off, and is retried until it lands (196.602478ms)
|
||
✔ five definite refusals stop a DM: one gave-up line, one log line, and a restart keeps the count (177.977332ms)
|
||
✔ 429s, 5xx-style unknowns and refusals without a status never count toward the limit (142.200148ms)
|
||
✔ a crash between the fifth refusal and its gave-up line: the next poll appends it and sends nothing (200.443925ms)
|
||
✔ 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 (224.492906ms)
|
||
✔ a restart after the second refusal does not send before that refusal's 30 min are up (157.445891ms)
|
||
✔ the digest goes at 08:00 Chicago once a day, with blocking ones marked as DM'd (118.512391ms)
|
||
✔ a late start with no digest for the day sends one at once; an empty inbox gets one line (116.363451ms)
|
||
✔ an inbox read failure is logged and the next poll retries (0.899012ms)
|
||
✔ no Discord id reaches the journal or the log (102.631507ms)
|
||
✔ the journal: a torn tail is copied out and truncated, so an append after it reopens cleanly (26.753715ms)
|
||
✔ the journal: a crash between the copy and the truncate leaves a tail the next open repairs (62.706102ms)
|
||
✔ the journal: a whole file that is one torn line truncates to empty (21.628484ms)
|
||
✔ the journal: a malformed complete line refuses and leaves the file and any torn tail alone (1.956257ms)
|
||
✔ the journal: a loose file mode, a loose directory or a symlinked journal refuses (0.751353ms)
|
||
✔ the journal: a line with a wrong type refuses with exit 3 and names the field (8.66405ms)
|
||
✔ the journal: a symlinked directory refuses and says it is a link (0.453577ms)
|
||
✔ 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.611063ms)
|
||
✔ the journal: an append after the file was swapped for a symlink refuses and writes nothing through it (0.507789ms)
|
||
✔ the journal: a directory it cannot write or create refuses with exit 3 and names the path (0.50937ms)
|
||
✔ digest content stays within Discord's 2000 characters (0.312002ms)
|
||
✔ runLoop never overlaps ticks and stops after the one in flight (111.79346ms)
|
||
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 (455.287493ms)
|
||
✔ the transport writes {business, verb, args} to the child and reads its JSON (53.100004ms)
|
||
✔ a bus code on stderr becomes the exit code; garbage and timeouts are outcome problems (2188.870587ms)
|
||
✔ busExit and refuseInsideAgent (0.676038ms)
|
||
✔ talk sends a REQUEST, prints and reads everything that arrives, and stops at the reply (265.655593ms)
|
||
✔ talk --wait 0 only sends; no reply within --wait exits 1 and says where it will show (1221.198035ms)
|
||
✔ talk, stop and launches off/on refuse inside an agent run; bad arguments are usage errors (109.069472ms)
|
||
✔ launches off and on go to the broker and change the business's launch state (101.594541ms)
|
||
✔ launches list reads sessions.json and marks a stale entry; stop reports it and refuses a non-runner (133.681892ms)
|
||
ℹ tests 110
|
||
ℹ suites 0
|
||
ℹ pass 110
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 18672.304682
|