Skip to content

Model failed-turn recovery as continuation turns - #391

Draft
roblourens wants to merge 2 commits into
mainfrom
roblou/agents/error-continuation-turns
Draft

Model failed-turn recovery as continuation turns#391
roblourens wants to merge 2 commits into
mainfrom
roblou/agents/error-continuation-turns

Conversation

@roblourens

@roblourens roblourens commented Aug 11, 2026

Copy link
Copy Markdown
Member

Summary

  • represent recovery as a new continuation turn adjacent to the failed turn, rather than reopening the failed turn
  • mark continuation eligibility on the failed turn and introduce a continuation message that carries no new user input
  • preserve the failed turn unchanged while the continuation turn records the resumed execution, response, usage, duration, and outcome
  • reject continuations when another turn is active, the latest turn is not eligible, or the continuation supplies new input
  • add reducer fixtures covering successful continuation, adjacency, eligibility, and invalid continuation attempts

Design tradeoff

This is the multi-turn alternative to #390. It keeps execution history append-only and makes each resumed attempt explicit in AHP state. Clients that want to present the failure and continuation as one logical interaction would need to coalesce adjacent continuation turns in their presentation model.

Scope

This is a design prototype for comparison. It updates the canonical TypeScript state, actions, reducer, and shared reducer fixtures. Generated clients, schemas, and complete specification documentation are intentionally deferred until the protocol shape is selected.

(Written by Copilot)

Model recovery as a new turn whose continuation message references the latest failed turn. Preserve the failed turn unchanged and add no new user input. This types-only prototype intentionally omits generated clients and schemas.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Mark continuable turn errors explicitly and make continuation turns implicitly follow the immediately preceding failed turn.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@roblourens roblourens changed the title roblou/agents/error continuation turns Model failed-turn recovery as continuation turns Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant