Clarify Prompt Turn failure semantics for safe retry #1000
thezzisu
started this conversation in
Protocol Suggestions
Replies: 1 comment
-
|
This will be solved I think in #954 where we will replay prompts after they are accepted |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I think ACP should clarify the recovery semantics of
session/prompt, specifically around whether a failed or uncertain prompt submission is safe to retry. From a client point of view, the key question after asession/promptfailure is:This matters in cases like:
session/promptis unclearIn these situations, the client does not necessarily need visibility into agent-internal stages or implementation details. What it needs is a protocol-level answer to one recovery question, Is resending the same prompt safe?
That seems to divide failures into two categories:
Right now, I do not think Prompt Turn makes this distinction clear enough.
I think ACP would benefit from clarifying
session/promptso that, after a failure or uncertain outcome, a client can determine whether the original prompt may be retried safely.Without this distinction, clients are forced to invent heuristics, and those heuristics can lead to either unintended re-submission of the same user input or failure to recover a prompt that never actually became part of the turn.
Questions:
session/promptfailures in terms of retry safety?Motivation: I am currently implementing a client that's used in automation pipeline, and in my situiation I need to ensure at-least-once inbox delivery gurantee while avoiding send duplicate messages to the agent to prevent it act twice for some non-idempotent operation. Currently, the only way to determine whether a prompt is considered "need to be resend" is to wait for complete agent idle and replay a session.
Beta Was this translation helpful? Give feedback.
All reactions