File item 325: DM the human on Mattermost when loop-claude needs them

This commit is contained in:
2026-11-11 22:16:06 +01:00
parent cd2ac5d727
commit 079c651105
+10 -1
View File
@@ -6,7 +6,7 @@
`Bar = 0.1`
`Next ID = 325`
`Next ID = 326`
## Items
@@ -24,6 +24,7 @@
| 295 | 0.8.0 | | | **Have `chunk-pr merge` wait for the forge's required checks itself, and give workers one command that waits for a background log or report file.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 2, 1.5 by 2 | 1.6 |
| 319 | 0.8.0 | | | **Start a fresh session with a brief of the chunk when a rung step changes the worker's model, in place of resuming the old session.** | 3 | 2 | 3 | 6 | 4 | 1.1 by 2, 1.4 by 2 | 1.4 |
| 309 | 0.8.0 | | | **Run a scoring run's second pass on one head with two seats in place of four, once `larv-review agreement` shows the seats agree with each other more than a run agrees with its rerun.** | 2 | 2 | 2 | 4 | 2 | 1.4 by 3 | 1.3 |
| 325 | 0.8.0 | | owner | **DM the human through larvit-bot on Mattermost whenever loop-claude interrupts, a release is ready to cut, or the loop stops on an error, reading the server, the bot token and the recipient from `~/.claude/.env`.** | 4 | 2 | 3 | 7 | 4 | 1.5 by 4 | 1.3 |
| 299 | 0.8.0 | | | **Replay the archived judge verdicts through code rules and a classifier trained locally on the archive, and file an item for each verdict kind one of them decides with no missed interrupt.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3 | 1.2 |
| 311 | 0.8.0 | | | **Hand each worker's claude a Bash output ceiling that saves longer output to a file, and refuse a Read of a session transcript under `~/.claude/projects`.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 3 | 1.2 |
| 316 | 0.8.0 | | | **Launch comprehension seats as an agent type of their own under `agents/`, without `CLAUDE.md` and the skill and agent listings a general-purpose subagent carries.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3 | 1.2 |
@@ -147,6 +148,14 @@ Why it should hold quality: the seats are one model with different personas, so
Decide once `agreement` has its 10 commits scored twice. Keep four seats on any pass that files a floor item, since its places come from seat reports. Revise the decision `review: the comprehension check records how hard a project is to read…`, which names the four-seat run.
### 325. DM the human through larvit-bot on Mattermost whenever loop-claude interrupts, a release is ready to cut, or the loop stops on an error, reading the server, the bot token and the recipient from `~/.claude/.env`.
The human asked for this, for 0.8.0. A new tool, `bin/mattermost-dm`, sends its argument, or stdin, as a direct message from the bot to the recipient through Mattermost's REST API v4: `GET /api/v4/users/me` for the bot's id, `GET /api/v4/users/username/<recipient>` for the recipient's, `POST /api/v4/channels/direct` for the channel, then `POST /api/v4/posts`. It uses only Python's standard library.
`~/.claude/.env` holds `MATTERMOST_URL`, `MATTERMOST_TOKEN` and `MATTERMOST_RECIPIENT` as `KEY=value` lines. The `.gitignore` allowlist already keeps it out of every commit. The tool refuses a file that group or others can read, since it holds the token. Exit 0 when sent, 1 when the send failed, 2 on misuse, such as a missing file or key or an empty message.
loop-claude sends the DM through an injected effect, so tests never reach the network. A DM that fails prints one line on loop-claude's terminal and the loop carries on, since the DM only copies what the terminal shows. Answering by replying to the DM is a later item.
### 299. Replay the archived judge verdicts through code rules and a classifier trained locally on the archive, and file an item for each verdict kind one of them decides with no missed interrupt.
The judge's LLM still decides three things: the verdict kind, the escalation it quotes, and whether a release is ready to cut (`docs/decisions.md` → `routing: loop-claude reads the items a chunk takes …`). This item replays the verdict kind. No single rule found so far separates interrupts: a "?" in the worker's final message appears in 48 interrupts and misses 66. A smaller LLM already failed the replay (`docs/decisions.md` → `routing: on a model judge-replay covered, …`: Sonnet returned another kind on 3 interrupts, Haiku missed 7). Untested are combined code rules, a decision table, and a small classifier trained and run on this machine on the archived verdicts (372 finished, 234 interrupt, 42 unfinished, 20 quoted). Run each offline, nothing sent to an outside service (goal 4), and count disagreements by kind; the bar is zero missed interrupts. A hosted decision model is out of scope, since it would send transcripts to an outside service.