diff --git a/AUTONOMY.md b/AUTONOMY.md index 6eeca9f5..21c14eb1 100644 --- a/AUTONOMY.md +++ b/AUTONOMY.md @@ -342,7 +342,8 @@ never an assumption: speed — 2026-11-19" below; M3.7b, PyAutoBrain#688). The pre-merge smoke is the worker's targeted smoke, and PR CI must be green. The full sweep runs in the cloud after the merge: the Workspace Smoke workflow, nightly - (M3.7d) and at shift end (M3.7e). Until S2 the close-out ran + (M3.7d), and at the close of every shift that merged a library or + workspace PR (M3.7e, live; S4 below). Until S2 the close-out ran `pyauto-heart smoke --affected-by --jobs 3` on the PR head; S2's revert condition brings that back. - *PRs bound for the human's `/prm`* (`decision-taken`, `judge`, a @@ -569,7 +570,43 @@ Watcher latency (M3.7c, the human's plan decisions of 2026-11-19): close resumes it in a later shift. A shift that never started anything, or a shadow shift, stays open to `review-at:`. -A later ruling from the same review (S4) is added to this section. +- **S4, the shift-end sweep** (M3.7e, PyAutoBrain#692). A shift that + merged at least one library or workspace PR dispatches the Workspace + Smoke workflow once at its close: after the last merge, before the digest. + The dispatch has no inputs, so the workflow's own SHA gate decides whether + to sweep; it is never forced. A shift with no such merge, or a shadow + shift, dispatches nothing. A close-out that merges after the close, in + the late window, makes the shift's one dispatch if none was made. A + failed dispatch is not retried: the digest says "sweep not dispatched", + and the human runs it from chat. The sweep + takes about 30 minutes. The digest is not held for it: it says "sweep + running" or "not yet listed", and the next shift's ticks read the result. + Each tick of a shift reads the workflow's latest runs on `main`. The + digest names, per library, the SHA the latest green sweep verified. +- **Red handling** (M3.7e). When the latest completed sweep on `main` is red + (failure or timed out), no unattended close-out starts on a + repo in a failing workspace's install chain (Heart `config/repos.yaml` + `smoke:`) or on that workspace's own repo. The PR is refused for `/prm` + as `workspace sweep red: `. PRs on other repos still close out. + A cancelled run is no verdict: the run before it on `main` counts. A + failing workspace the watcher cannot map, or a report it cannot read, + blocks every library, chain and workspace repo. A run list that has + failed on every read for 30 minutes (from the first failure; any good + read resets it) holds those repos' PRs instead: a wait, not a refusal, + as `workspace sweep unknown: run list unreadable since