Commit 6b7cd3f
committed
test: cover the max_turns-enrichment wiring seam + window-steer boundary (#600 N3/N4)
Follow-up coverage from the #600 review (feature approved as-is; tests only):
- N3 (crit-8 wiring seam): the max_turns reason-enrichment was tested only at
its two pure endpoints (stuck_guard.recent_failure_summary + the classifier on
a hand-built string) — the append in _resolve_overall_task_status that joins
them was unverified. Add TestMaxTurnsStuckEnrichment (monkeypatching
hooks.last_stuck_summary): appends on error_max_turns, does NOT append on a
non-max_turns error, leaves the reason unchanged when there's no summary, and
does not double-append when the summary is already present.
- N4 (crit-6 boundary): the window-steer was tested at 6/6 (steers) and 4/6
(doesn't) but not at the exact WINDOW_FAIL_THRESHOLD `>=` edge. Add
test_window_steers_at_exactly_the_threshold (5/6 same-fingerprint fails in a
full window → steers) and test_no_steer_when_window_not_yet_full (5 fails in a
length-5 history → no steer, since _dominant_window_failure requires a full
window). Imports WINDOW/WINDOW_FAIL_THRESHOLD so the constants' boundary
semantics are now pinned.
Full agent suite green (1218); ruff format + check clean.1 parent e0efe30 commit 6b7cd3f
2 files changed
Lines changed: 84 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
222 | 224 | | |
223 | 225 | | |
224 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
0 commit comments