Files
hermes-agent/tools
unsupportedpastels ec3249919a
Some checks failed
Deploy Site / deploy-vercel (push) Has been cancelled
Deploy Site / deploy-docs (push) Has been cancelled
auto-fix lint issues & formatting / Generate eslint --fix patch (push) Has been cancelled
auto-fix lint issues & formatting / Apply patch (push) Has been cancelled
Skills Index Freshness Check / check-freshness (push) Has been cancelled
Skills Index Freshness Check / check-catalog-cors (push) Has been cancelled
Docs Search Monitor / probe (push) Has been cancelled
Build Skills Index / build-index (push) Has been cancelled
Build Skills Index / trigger-deploy (push) Has been cancelled
fix(gateway): bound unattended failed-delegation wakes; none in a closed chat
A woken parent that re-dispatched into a deterministic failure woke itself again
under a new delegation id, with nothing counting the wakes: on a billing failure a
review run saw 23 failed units and 46 parent model calls in 45 seconds.

- A session runs at most UNATTENDED_WAKE_LIMIT (3) failed-delegation wakes in a row
  with no viewer attached. The next failure is written as a note, as on main. The
  count starts again when a viewer is attached or the user sends a message.
- Every child whose failure_reason is deterministic (agent.error_surface's
  non-retryable set, minus interpreter_shutdown) gets the "do not re-dispatch it
  unchanged" line that content_policy_blocked already had.
- A chat its viewer closed (exit or /new) gets no wake. The close refuses the
  session's new background dispatches, so a re-dispatch from the wake turn ran its
  child inside that turn, in a chat nobody will reopen. The failure is a note until
  a viewer attaches. An orphan-reaped session is not refused and still wakes.

The decision moves to where the viewer check already is: noted_completion() is
main's again, and note_if_unviewed() runs a wakes_parent row as a turn. A closed
row is reopened there, as it is for a completion a viewer is attached to.

Found in review by @yoniebans.
2026-11-10 10:48:50 -05:00
..
2026-10-08 19:54:07 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:54:07 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 21:38:05 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-08 21:29:48 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00