Skip to content

[google-adk-python] breaking: remove the activity_as_tool *args gate before 1.0 - #585

Merged
campoy merged 1 commit into
mainfrom
breaking/google-adk-remove-var-args-gate
Nov 16, 2026
Merged

campoy merged 1 commit into
mainfrom
breaking/google-adk-remove-var-args-gate

Conversation

@campoy

@campoy campoy commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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-args patch from #486 only keeps runs from before that fix passing an Activity's empty *args as one extra argument, so let's remove it before 1.0.

activity_as_tool now 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 *args the 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 main build 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 main build 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 TemporalChangeVersion search attribute, so this lists them:

temporal workflow list --query "TemporalChangeVersion = 'google_adk.activity-as-tool-var-args' AND ExecutionStatus = 'Running'"

No results? You're done. Otherwise, pick one:

  1. 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.

  2. Reset them, after you deploy. In each run's history, find the first MarkerRecorded event for google_adk.activity-as-tool-var-args and the WorkflowTaskCompleted event just before it. Reset to that event:

    temporal workflow reset --workflow-id <id> --event-id <that WorkflowTaskCompleted event ID> --reason "drop google_adk var-args marker"
    

    The new run keeps everything before that point and runs the rest again on this build. So the *args tool 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

  1. No issue.

  2. How was this tested:

    • make format, make lint and make test for python/google_adk on Python 3.12: 324 passed, 6 skipped.
    • Replay, across builds. On Workers with no Workflow cache, I recorded a tool call to an Activity with *args and one to an Activity without, on main and on this PR. On main I also recorded the *args call with workflow.patched() returning False for 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.
    • On this PR, only the *args run from main, which has the marker, fails, with [TMPRL1100] Non-deprecated patch marker encountered, and so does the renamed Activity. The old-path run replays.
    • Rollback to main: everything recorded on this PR replays.
    • The reset steps above, on a local dev server with a small stand-in Workflow (not activity_as_tool). A Worker that calls workflow.patched() for this gate before its second Activity, like main, recorded the marker. Then a Worker without that call, like this PR, failed with TMPRL1100. The TemporalChangeVersion query found the run. temporal workflow reset to the WorkflowTaskCompleted before 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.
  3. Any docs updates needed? No. The README doesn't mention the patch.

@campoy campoy changed the title Breaking: google_adk: remove the activity_as_tool *args gate before 1.0 [google-adk-python] breaking: remove the activity_as_tool *args gate before 1.0 Nov 16, 2026
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
campoy force-pushed the breaking/google-adk-remove-var-args-gate branch from b2ff4f9 to e59b1f4 Compare November 16, 2026 18:23
@campoy
campoy marked this pull request as ready for review November 16, 2026 18:39
@campoy
campoy requested a review from a team as a code owner November 16, 2026 18:39
@campoy
campoy merged commit 4703871 into main Nov 16, 2026
16 checks passed
@campoy
campoy deleted the breaking/google-adk-remove-var-args-gate branch November 16, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants