Python/core: make request-info approval tokens replay-safe#4620
Python/core: make request-info approval tokens replay-safe#4620davidahmann wants to merge 1 commit intomicrosoft:mainfrom
Conversation
|
This change protects HITL operator flow from replaying a previously accepted request-info token. |
|
@davidahmann please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Problem
Request-info approval request IDs are intended to be single-use. There was no direct regression test that proves a second submission for the same request ID is rejected after the first accepted response.
Why now
Human-in-the-loop retries can replay stale request IDs; without explicit regression coverage, single-use token behavior can regress silently.
What changed
Validation
uv run pytest packages/core/tests/workflow/test_request_info_event_rehydrate.py -k replay --maxfail=1Refs #4618