Commit b1e7842
docs(os-dev): a turn ends only at a report — add the narrow-and-declare exit (#9858)
Four same-shape stalls in one day across two seats: a contended or long check,
the agent backgrounds the wait and yields believing a monitor will wake it. In
this harness a stopped subagent with no live children is DONE.
The prohibition already existed three times (resource rules 6/7, clean-close
#4) and predated all four stalls, so a fourth copy would not have prevented
them. What was missing is the third rung: when a check is queued or over
budget, narrow its scope and DECLARE the narrowing in the report — an accepted
deviation, since CI runs the full farm regardless. Without it the ladder ran
wait-forever or `blocked`, and agents invented background-and-yield instead.
Consolidates the posture rule into one home (clean-close #4) as the two-report
turn-end contract, dedups the mechanism out of resource rule 6, and routes
rule 7's queue ladder through the narrowing exit before `blocked`.
Claude-Session: https://claude.ai/code/session_01AeA3nU1B5Q2pgxqxgUrexd
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5af0685 commit b1e7842
1 file changed
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
| 87 | + | |
| 88 | + | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
94 | | - | |
| 92 | + | |
| 93 | + | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| |||
273 | 272 | | |
274 | 273 | | |
275 | 274 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
281 | 287 | | |
282 | 288 | | |
283 | 289 | | |
| |||
0 commit comments