Model failed-turn recovery as continuation turns - #391
Draft
roblourens wants to merge 2 commits into
Draft
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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)