diff options
| author | Agando <roduccomm@gmail.com> | 2026-10-27 16:32:21 +0100 |
|---|---|---|
| committer | Agando <roduccomm@gmail.com> | 2026-10-27 16:32:21 +0100 |
| commit | b7b0c3481760315ba49f5db1a7e61079b316f8af (patch) | |
| tree | 02145d1bd8363eb30b5a8d20db32286d83b7bc21 /modules/core/module-loader.js | |
| parent | fd24b52c87d53bad5bd9c81d8e008511f160eda5 (diff) | |
test(newos4): prove the mixed-batch loop ceiling stops an agent at 9 identical calls
MAINT-006 was the last open board item and it needed a live run, not another code argument.
The fix landed in 5058d3b (the hard stop was only reachable when EVERY call in a batch was blocked,
so one repeated call + one novel call per turn ran to maxTurns).
- Live probe on v4.6.116 with the deployed class and a deterministic model stub (repeat read_file
+ a fresh list_files each turn): the loop stopped at turn 9 with
"⛔ main: no progress after 9 identical calls — ending loop with partial result" and returned
{finalAnswer, toolTurns} with a 400-char partial answer.
- test-agent-loop-ceiling.js (9 asserts, real module via its constructor): A mixed batch stops before
maxTurns / B all-blocked batch still stops / C a productive loop that never repeats is NOT stopped.
- RED on 52d188a (pre-fix): 8 passed, 1 FAILED — the mixed batch ran to "AI reached the 12/12 tool
limit" with no ceiling line. Suite in that checkout: 19 files, this one failing.
- Suite now 19/19 files; maintain OK.
No bundle change: the shipped code already contains the ceiling.
Diffstat (limited to 'modules/core/module-loader.js')
0 files changed, 0 insertions, 0 deletions