Files
hermes-agent/tests/agent
teknium1 ebd106f3ec fix(codex): floor every effort >= high and keep the run-budget cap over it
Two gaps in the high-effort silence floor (#112909):

- The floor matched only {'high','xhigh'}. 'max' is a real Codex wire level
  (CODEX_GPT56_EFFORTS / CODEX_ASTRA_EFFORTS) and 'ultra' is the Hermes-internal
  Codex tier, so the tiers that think LONGEST still got the 12s/120s/90s
  small-prompt fuses. Match by EFFORT_LADDER position >= 'high' instead.

- The stale floor was applied in _resolve_nonstream_watchdogs AFTER
  AIAgent._compute_non_stream_stale_timeout, undoing its run-budget cap: a
  100s cron/kanban budget capped stale at 60s but the watchdog got 300s, so one
  hung call could outlive the whole run. The floor now lives inside
  _compute_non_stream_stale_timeout before the cap; the helper keeps flooring
  only the TTFB/idle implicit defaults.

Tests: max/ultra params + a run-budget invariant, both red without this commit.
2026-09-16 17:45:01 -07:00
..