diff --git a/AUTONOMY.md b/AUTONOMY.md index dd12007c..6eeca9f5 100644 --- a/AUTONOMY.md +++ b/AUTONOMY.md @@ -539,7 +539,37 @@ tests and the targeted smoke (leg 2), and opens the PR as soon as they pass Outside a shift (an `--auto` chat) nothing changes. -Later rulings from the same review (S4, S7) are added to this section. +- **S7, `decision-taken` at PR-open** (M3.7c, PyAutoBrain#690). The + watcher refuses a `decision-taken` PR when it first sees it, from the + label alone. No close-out session starts, no merge slot is taken and CI + is not read. It reads the label once per PR per shift; a label it cannot + read is asked again next tick, never taken as absent, and after 3 misses + over 15 minutes the PR goes to the human's `/prm` and the digest counts it. The PR keeps its + place as an earlier PR in the merge order (M3.6j ruling c, unchanged), so + later unattended merges on that library wait for the human's `/prm`. The + digest names the PRs that waited behind a `/prm`-bound PR, one line per + library. The close-out's own label check stays as a second layer. + +Watcher latency (M3.7c, the human's plan decisions of 2026-11-19): + +- The watcher ticks every 60 seconds. A worker writes its `.done`, and a + close-out or branch update its `.closeout`, then appends a line to the + kick file (`$PYAUTO_SHIFT_KICK`, `~/.local/state/pyauto/orchestrator.kick`). + A systemd path unit starts a tick when it changes. The kick is best + effort. A kick that lands while a tick runs is dropped (the path unit is + edge-triggered), and the timer picks it up within 60 seconds. +- **Early close.** A shift posts its digest on the tick that leaves nothing + to do: no worker live, no re-dispatch owed, no close-out or branch update + running, every PR judged, no task that could still start, and nothing + this tick could not read (the steering comments, Mind `origin/main`). A PR waiting + behind a `/prm`-bound PR does not hold the shift open. The digest says + "closed early at