Commit e933f13
authored
fix(test-classifier): raise turn budget + treat max-turns overflow as soft outcome (#79)
* fix(test-classifier): raise turn budget + treat max-turns overflow as soft outcome
Cold-runner suite bootstrap (Ruby+bundle, Postgres, asset precompile) could
consume the whole agentic turn budget before the agent emitted a verdict,
tripping "Reached max turns" and failing the job red.
- Raise AI_SUITE_MAX_TURNS default 40 -> 80 for bootstrap headroom.
- Grant Grep,Glob,Task,Agent so read-only search batches in parallel and
large-diff discovery can be delegated to a subagent (one parent turn).
- Enable codex network access in workspace-write so bundle/npm/pip installs
work in suite mode (read-only triage keeps the no-network default).
- Detect turn-budget overflow (ai_review::is_max_turns) and degrade to a
non-blocking soft outcome (exit 0) instead of failing the build.
- Document budget discipline in SKILL.md / dispatcher: reuse the repo's own
bootstrap entry point or CI recipe, batch lookups, run the suite once
blocking, and emit a best-effort verdict before overflowing.
* docs(test-classifier): trim overlong inline comments and prompt prose1 parent 45cad6b commit e933f13
3 files changed
Lines changed: 83 additions & 7 deletions
File tree
- testing/classifier/.skills
- _lib
- test-classifier
- scripts
Lines changed: 40 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | | - | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
494 | 496 | | |
495 | 497 | | |
496 | 498 | | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
497 | 503 | | |
498 | 504 | | |
499 | 505 | | |
| |||
503 | 509 | | |
504 | 510 | | |
505 | 511 | | |
506 | | - | |
| 512 | + | |
507 | 513 | | |
508 | 514 | | |
509 | 515 | | |
510 | 516 | | |
511 | 517 | | |
512 | 518 | | |
513 | | - | |
| 519 | + | |
514 | 520 | | |
515 | 521 | | |
516 | 522 | | |
| |||
541 | 547 | | |
542 | 548 | | |
543 | 549 | | |
544 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
545 | 558 | | |
546 | 559 | | |
547 | 560 | | |
548 | 561 | | |
| 562 | + | |
549 | 563 | | |
550 | 564 | | |
551 | 565 | | |
552 | 566 | | |
| 567 | + | |
553 | 568 | | |
554 | 569 | | |
555 | 570 | | |
| |||
674 | 689 | | |
675 | 690 | | |
676 | 691 | | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
677 | 703 | | |
678 | 704 | | |
679 | 705 | | |
| |||
752 | 778 | | |
753 | 779 | | |
754 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
755 | 788 | | |
756 | 789 | | |
757 | 790 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
132 | 156 | | |
133 | 157 | | |
134 | 158 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
403 | 414 | | |
404 | 415 | | |
405 | 416 | | |
| |||
1048 | 1059 | | |
1049 | 1060 | | |
1050 | 1061 | | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
1051 | 1070 | | |
1052 | 1071 | | |
1053 | 1072 | | |
| |||
0 commit comments