The faults of the live runs, from the coordinator. Each one has a test with the fake provider, unless the state says another test.
| # | Found | State | Commit |
|---|---|---|---|
| 1 | The model writes a tool call as text, or gives an empty reply, and the turn ends. | Fixed: a note to the model, and the agent goes on; after 4 such replies in a row the state is stalled. An empty reply is not kept. Tests agent-11, agent-12. |
126355b |
| 2 | One state waiting for each end. |
Fixed: done (the tool finish, with the report), asks, stalled, failed, capped. list and wait show them. Tests agent-3, agent-12, daemon-2. |
126355b |
| 3 | A message cannot stop a hung command. | Fixed: interrupt ID kills the process group (found by a marker in /proc, also in a process thread); --idle-timeout (300 s) and --exec-timeout (1800 s) of start. Tests agent-13, agent-14, isolate-13 to isolate-15. |
126355b |
| 4 | process has no loopback interface. |
In ztcl: PR beetlebugorg/ztcl#1334 (issue #1333, stacked on #1329) gives a process thread with no socket its own loopback, with no route out. It needs a new runner. |
ztcl#1334 |
| 5 | A git worktree as the work folder: git commit is denied. |
Fixed: start fails with the reason, unless --write gives the git folders. --write, --env, and --mem of start. Tests agent-19, agent-15, isolate-16. |
126355b |
| 6 | No cost of an agent. | Fixed: prices in config.json, cost ID (a Markdown table), and the USD in list. Test agent-20. |
126355b |
| 7 | A restart of serve leaves running agents waiting. |
Fixed: each running agent goes on from its saved messages; an open tool call gets "interrupted by a restart of the daemon". Tests agent-9, agent-10. | 126355b |
| 8 | The CLI of the coordinator. | Fixed: read --json, ask ID, tail ID, and list with the state, the turns, the USD, and a cut at a word end. Test agent-20 (the cut). |
126355b |
| 9 | No clone and no diff. | Fixed: start --clone URL|PATH --branch NAME [--seed-cache DIR], and diff ID against the start commit. No test with the fake provider: it is in the CLI. |
126355b |
| 10 | No trusted checks. | Fixed: start --check NAME=COMMAND and the tool check NAME. Test agent-15. |
126355b |
| 11 | The speed of a model call. | Measured, not changed. 3 live calls each, the same small prompt: a new connection per call 1.29, 1.12, 1.12 s; a kept connection 1.15, 1.09, 1.11 s (the TLS connect is 35 to 46 ms); streaming (ConverseStream) 1.10 s and 4.24 s to the end, with the head at 0.2 s and the first text at 0.86 s, and one 429. A kept connection saves about 40 ms (3 %). Streaming does not end sooner, and a TLS channel of ztcl has no non-blocking mode, so a stream would block the event loop of the daemon (each agent) for the whole reply. Both stay out until ztcl has a non-blocking TLS channel. | |
| 12 | The 9th process agent fails: "too many threads: the limit is 8". | Fixed: an agent that does not run holds no thread. bin/jcode gives --threads-process 64 when the runner has the flag (beta.7 has none: the limit is 8). Test agent-18. |
df19e04 |
| 13 | A reply that is not valid JSON ends the agent with a fault. | Fixed: the reply message must parse before it is kept, or the call fails and is retried. Bytes that are not UTF-8 caused the parse fault (see 14). Test agent-17. | df19e04 |
| 14 | A tool output with bytes that are not UTF-8 makes the transcript invalid. | Fixed: each output and each file read keep valid UTF-8 (U+FFFD and a note). Before, encoding convertfrom failed outside a catch. Test agent-17. |
df19e04 |
| 15 | Many agents at one time: "the model call failed". | Fixed: up to 5 retries with a wait of 2 s, 4 s, ... for throttling, server, and network errors; the reason in list has the error. Test agent-16. |
df19e04 |
| 16 | Pipe got 3 new arguments; the aws transport and sigv4.tcl kept the old form, so each call of the aws transport failed. |
Fixed: the programs of the daemon go through jcode::isolate::program (a time limit, and a stop kills them). Tests provider-1 to provider-4 use a stub aws. The full test set runs with the q2 runner (no ztcl::crypto). |
670e8be |
| 17 | The resume of an older state gave a background error. | Fixed: the error was fault 16 in the first run of the loop. Resume now catches an error before the first wait and gives the state failed with the reason; bgerror prints one line; a broken meta.json is skipped with one line. Test agent-21. |
670e8be |
| 18 | The usage text printed the project name in --check NAME=COMMAND and --branch NAME. |
Fixed: the placeholder of the program name is %P. Test agent-22. |
670e8be |
| 19 | cost counted the times only since the restart. |
The counters are in meta.json and are saved after each model call and each tool call; an agent of an older version starts at 0 for each counter. cost now shows the wall time, the model time, the tool time, and the time waiting for the coordinator apart (idle_ms). Test agent-20. |
670e8be |
| 20 | One agent of a live run stalled after the fix of 1. | The shape: replies with only a reasoningContent block (redacted), with no text and no tool use, 6 in a row, with max_out 4096. The reasoning most likely used the output cap (the stop reason was not kept). Fixed: a reply that stops at max_tokens with no text and no tool call gets a next call with twice the cap, up to 32000, and is not a nudge; the note of an empty reply now has its stop reason. Test agent-23. |
6d7d755 |