[Bug][2.5.0 Regression] Workflow replay mixes events across invocation_ids and breaks consecutive HITL runs #6464
jordi-ydteam
started this conversation in
General
Replies: 0 comments
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.
ADK 2.5.0 regression: workflow replay mixes events across invocations
I am reporting a reproducible workflow replay regression introduced in Google ADK 2.5.0.
Summary
The first execution of a human-in-the-loop workflow can pause, resume and complete successfully. Starting the same workflow again in the same ADK session can fail with:
Version comparison
Suspected regression
The behavior appears to have been introduced by commit:
This commit optimized workflow rehydration by building event indexes.
In ADK 2.4.0, replay sequence scanning explicitly ignored events whose
invocation_iddiffered from the current invocation.In ADK 2.5.0:
invocation_id;_build_event_index()receivesinvocation_id, but does not appear to use it;fake_planner@1are reused by subsequent invocations.As a result, events from an earlier invocation may be included in the replay sequence barrier for the current invocation, causing the reused sequence key to remain blocked until the replay timeout.
Expected behavior
Each workflow invocation should reconstruct and scan its replay sequence using only events belonging to its own
invocation_id.Starting the same HITL workflow twice in one session should work.
Actual behavior
The second HITL execution in the same session can fail with replay divergence.
Suggested fix
Either:
invocation_idwhen building the event index;_scan_sequence()as in ADK 2.4.0; orinvocation_idand workflow path.A regression test should execute the same interruptible workflow twice using the same session and assert that both invocations complete successfully.
I have temporarily pinned the application to
google-adk==2.4.0, where the reproduction passes.Could a maintainer confirm whether this is a known regression and convert this discussion into an issue?
All reactions