Commit Graph

2 Commits

Author SHA1 Message Date
Teknium
3a1e9ef50a fix(bot-mode): a running request is not "busy with an earlier turn"; trim the message_agent schema
Live: the deliver answer reads target_state "working" for the turn this same request just started, so
the ack no longer claims an earlier turn. The schema drops prose the protocol section and the ack
already carry (main 921 -> 982 schema+protocol tokens, cl100k).
2026-11-04 08:01:12 -08:00
Teknium
160339e0dd feat(bot-mode): typed request envelope, a forgotten reply relayed once, and one "never answered" sentence per dead request
- message_agent takes optional `constraints` and `expecting`; the teammate reads them as labelled
  "Constraints:" / "Reply needed:" lines under the message.
- A teammate that ends a request turn silent or empty after writing its answer elsewhere (beside a
  tool call, or in a message_agent back to the sender) has those last words relayed once, marked
  "[no final reply; their last message this turn:]". Notify-only and non-bot deliveries keep silence.
- A turn its own gateway's stop/restart interrupted is a failed receipt ("its gateway stopped or
  restarted mid-turn ... not run again"), not `cancelled`: nobody cancelled it.
- Every live-lane completion and the fan-out join lead with `outcome`: "@beta answered." or
  "@gamma never answered: <why>" plus whether resending is safe; a wait that lapses on an unreachable
  owner says so (target_state "unreachable"); a busy teammate's ack says it takes the request next.
2026-11-04 08:01:12 -08:00