Repository navigation
[google-adk-python] breaking: remove the activity_as_tool *args gate before 1.0 - #585
Merged
Merged
Conversation
Replay is promised only within a major, and the next Google ADK Python release is 1.0. The google_adk.activity-as-tool-var-args patch (#486) only kept runs from before that fix passing an empty *args as one extra argument, so it goes: activity_as_tool always spreads *args now.
campoy
force-pushed
the
breaking/google-adk-remove-var-args-gate
branch
from
November 16, 2026 18:23
b2ff4f9 to
e59b1f4
Compare
campoy
marked this pull request as ready for review
November 16, 2026 18:39
patbeqo
approved these changes
Nov 16, 2026
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.
What was changed
Google ADK Python ships 1.0 next, so its current major is 1, and replay is promised only within a major (the rule #565 adds to AGENTS.md). The
google_adk.activity-as-tool-var-argspatch from #486 only keeps runs from before that fix passing an Activity's empty*argsas one extra argument, so let's remove it before 1.0.activity_as_toolnow always spreads an Activity's*args. The tests stop checking the old path and the patch marker.This PR doesn't need #565: no committed history reaches this gate.
What will you notice? (Breaking)
Not much. A run that started before #486 now passes
*argsthe new way at its next such tool call, so its Activity gets no extra empty-tuple argument. Its history still replays: replay doesn't compare Activity arguments.A run on a
mainbuild since #486 that called such a tool recorded the marker, so it doesn't replay on this build. Its next Workflow Task fails with[TMPRL1100] Non-deprecated patch marker encountered, and the run stops making progress. No release wrote that marker.What should you do?
Never ran a
mainbuild of Google ADK Python since #486? Then nothing.If you did, find the open runs that recorded the marker first. The Python SDK adds every patch it records to the
TemporalChangeVersionsearch attribute, so this lists them:No results? You're done. Otherwise, pick one:
Let them finish, before you deploy. Keep your current Workers until those runs close, or pin them to the old Worker Deployment Version with Worker Versioning. Then send new runs to this build.
Reset them, after you deploy. In each run's history, find the first
MarkerRecordedevent forgoogle_adk.activity-as-tool-var-argsand theWorkflowTaskCompletedevent just before it. Reset to that event:The new run keeps everything before that point and runs the rest again on this build. So the
*argstool Activity that recorded the marker runs again, and so does every Activity after it, model calls included. Signals that arrived after that point are reapplied by default. Only reset when those Activities are safe to run twice.Reset only once this build is deployed: an older Worker would record the marker again.
Why?
We decided that replay is promised only within a major, and that a gate that only protects an older major's runs is removed before the next major ships. Google ADK Python's next release is 1.0, so this gate goes before it.
Checklist
No issue.
How was this tested:
make format,make lintandmake testforpython/google_adkon Python 3.12: 324 passed, 6 skipped.*argsand one to an Activity without, onmainand on this PR. OnmainI also recorded the*argscall withworkflow.patched()returningFalsefor this gate, which is what a run from before Fix activity_as_tool for an Activity with *args in Deep Agents and Google ADK #486 does. Then I replayed every one on both builds, along with a history with a renamed Activity.*argsrun frommain, which has the marker, fails, with[TMPRL1100] Non-deprecated patch marker encountered, and so does the renamed Activity. The old-path run replays.main: everything recorded on this PR replays.activity_as_tool). A Worker that callsworkflow.patched()for this gate before its second Activity, likemain, recorded the marker. Then a Worker without that call, like this PR, failed with TMPRL1100. TheTemporalChangeVersionquery found the run.temporal workflow resetto theWorkflowTaskCompletedbefore the marker finished it on the new Worker with no marker, and ran exactly one Activity again: the one after the marker. After that, the query found nothing. I didn't try the Worker Versioning option.Any docs updates needed? No. The README doesn't mention the patch.