From 93d413f5f36fdebfa2eacf676ca5f93b289c4efe Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 29 Oct 2026 18:13:54 +0100 Subject: [PATCH] File item 252: drop a killed loop's question from loop-inbox whatever its pid now names --- todo.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 49438188..f8092eb5 100644 --- a/todo.md +++ b/todo.md @@ -6,12 +6,13 @@ `Bar = 0.1` -`Next ID = 252` +`Next ID = 253` ## Items | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| +| 252 | 0.4.0 | | defect | **Have loop-inbox list a loop's question only while that loop holds a lock on it, so a killed loop's question stays gone when the system hands its process id to another process.** | 2 | 2 | 2 | 4 | 3 | 1 by 3 | 3.3 | | 226 | 0.5.0 | | question | **Answer whether rule-hook's `run-heavy` rule should also catch a mutation run or docker build behind `uv run`, `poetry run`, `python3 -m`, `sudo`, `docker image build` and `docker compose up --build`, or narrow the `machine load:` decision's wording.** | 2 | 2 | 3 | 5 | 3 | 1.2 by 2, 1.5 by 2 | 4.0 | | 248 | 0.5.0 | | question | **Answer whether the `rule-hook:` decision should name every rule that takes no override, `repeat-read`, `reviewer-report` and `reviewer-rung`, with each one's reason.** | 1 | 2 | 1 | 2 | 1 | 1.2 by 2 | 3.3 | | 250 | 0.5.0 | | | **Move the repeat-read rule's transcript, mtime and file reads from `bin/rule_hook/main.py` into `bin/rule_hook/repeat_read.py`, behind one `*_breaches` entry point like the other rules, and name the tuple `results_on` returns.** | 2 | 1 | 3 | 4 | 3 | code health by 3 | 13.5 | @@ -76,6 +77,10 @@ ## Details +### 252. Have loop-inbox list a loop's question only while that loop holds a lock on it, so a killed loop's question stays gone when the system hands its process id to another process. + +lilleman asked on 2026-10-29 to hold 0.4.0 for it. loop-inbox lists an ask while `os.kill(pid, 0)` finds the loop's pid, and the loop removes its ask in a `finally` that a SIGKILL, SIGHUP or out-of-memory kill skips. This machine's `pid_max` is 32768, and on 2026-10-29 its process ids came round again every 30 to 75 minutes, faster under load. So a killed loop's question comes back in the list whenever another process gets its id: an answer to it reaches no loop, and `/talk` on it fails after 5 s. Done when a loop killed outright drops off the list, and its ask and answer files are removed, whatever its process id names now. + ### 226. Answer whether rule-hook's `run-heavy` rule should also catch a mutation run or docker build behind `uv run`, `poetry run`, `python3 -m`, `sudo`, `docker image build` and `docker compose up --build`, or narrow the `machine load:` decision's wording. Found by review of PR #370. Today `uv run mutmut run`, `poetry run mutmut run`, `python3 -m mutmut run`, `sudo docker build .`, `docker image build .` and `docker compose up --build` pass the rule, which `docs/decisions.md` → `machine load: …` and `RULES["run-heavy"]` describe as blocking docker builds and mutation runs. The rule's own text says a gate script isn't checked since no program can tell it from a light one, so the human decides where the line sits. Say what the rule's "checked" text promises either way. Where the answer widens the rule, the change touches `heavy` in `bin/rule_hook/heavy_command.py`, which the comprehension seats found hard: make it easier to read.