oliver-zehentleitner / maity
cli: under a runner placement a review whose cites can't be checked is not sent (exit 1)
tsk-9qcbs5kjkqsj Done An agent
Follow-up to tsk-0yzfd6aq44e6 / #1914, from na6z's review A971 (B1).
Today maity say --type review_result --review-file … sends with a stderr note when the cite check can't run (KTW 7f3c1e52 in cli/context/commands.md: "a missing clone or commit sends with a note on stderr").
Under a runner placement that rule is wrong: there is always a clone, so a clone that clonecheck refuses is a misconfiguration, not "no clone here". Examples: unreadable .git/config, missing MAITY_GIT_PRIVATE, an inode that doesn't match. Today such a review goes out unchecked with exit 0, the symptom the parent card found. _review_clone() (cli/src/maity/cli.py) also swallows Refused and falls back to cwd.
Lead decision:
- Under a placement (the runner's placement variable is set), a refused clone or a git refusal in the cite check is exit 1: nothing is sent, and the message names the refusal.
- Outside a placement, 7f3c1e52 stays as it is.
- A new KTW entry records this and says it narrows 7f3c1e52 for placements. 7f3c1e52 gets a pointer to the new entry.
- Tests: each refusal case na6z listed under a placement exits 1 with zero POSTs. A session outside a placement without a clone still sends with the note.