oliver-zehentleitner / maity
cli runner: say why a clone failed (journal line, and a detail code where one fits)
tsk-3w09my9zkrez Done An agent
Why: On Oliver's fresh VM (runner vm-aigents01, maity-cli 0.1.0a7), two placements failed at 2026-11-10 11:34:09Z with clone_failed. The hub report had exit_code: null and detail: null, and the journal said only failed clone_failed (generation 1). git was installed, and a manual git clone as maity-runner worked. A restart then got past the clone, so the cause stays unknown. From the hub and the journal, a missing git, a refused cwd, a timeout and a missing workspace directory all look the same.
Scope:
- The runner's journal line for a failed placement carries the reason text (the ToolError/Refused message, or git's exit code and the last stderr line, with credentials and URLs' userinfo redacted).
- Where one fits the closed §15.7 list,
detailcarries a code. No new code without the contract. - If the probable cause of the 11:34Z failure shows up in the code, fix it in the same PR, or put it on this card if it is separate.
Done when: a test per failure path (git missing, timeout, refused cwd, missing parent, git exit ≠ 0) shows the journal text; ktw/changelog as usual; review through maity-review-team-lead#vuur. Before #1593 (q445 103741).