Commit 98a2564
authored
fix(engine): correct the iterate-policy ceiling field docs to match the real precedence (#10131)
IterationState.maxIterations and costCeilingReached both documented an
unconditional abandon ("regardless of self-review outcome"), but
decideNextActionWithReason's own numbered precedence list puts the
selfReview.kind === 'pass' branch (step 3) AHEAD of both ceilings (steps 4-5).
So a clean predicted-gate pass at or past a ceiling still hands off, which the
field docs said was impossible -- and the test suite had no case combining a pass
with a reached ceiling, so the precedence between step 3 and steps 4-5 was unpinned.
Correct both field docs to state the real contract (the ceiling abandons only when
the self-review has not reached a clean pass; a clean pass still hands off, subject
to autonomyLevel) and point at the precedence list as the one canonical statement.
The precedence list, decideNextAction behaviour, reason strings and autonomyLevel
handling are all unchanged -- this is a doc correction plus precedence-pinning tests.
Closes #99971 parent 4e9cdbe commit 98a2564
3 files changed
Lines changed: 55 additions & 3 deletions
File tree
- packages/loopover-engine
- src/miner
- test
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
80 | | - | |
81 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
117 | 131 | | |
0 commit comments