<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Reuben Alex</title>
    <description>The latest articles on DEV Community by Reuben Alex (@tarnished).</description>
    <link>https://dev.to/tarnished</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4256297%2F1cf4e0ac-242f-4e7c-bfd3-c8acdb06a237.png</url>
      <title>DEV Community: Reuben Alex</title>
      <link>https://dev.to/tarnished</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tarnished"/>
    <language>en</language>
    <item>
      <title>I tested Google ADK's breaking changes against real releases.</title>
      <dc:creator>Reuben Alex</dc:creator>
      <pubDate>Wed, 25 Nov 2026 10:17:14 +0000</pubDate>
      <link>https://dev.to/tarnished/i-tested-google-adks-breaking-changes-against-real-releases-4fc5</link>
      <guid>https://dev.to/tarnished/i-tested-google-adks-breaking-changes-against-real-releases-4fc5</guid>
      <description>&lt;p&gt;Google's &lt;a href="https://github.com/google/adk-python" rel="noopener noreferrer"&gt;Agent Development Kit&lt;/a&gt; moves fast. Since 2.0 went GA in&lt;br&gt;
May 2026, the changelog has had a "Breaking changes" section in &lt;strong&gt;2.6, 2.7, 2.13, 2.14 and 2.15&lt;/strong&gt;: minor releases. So every ADK upgrade means someone reading release notes and searching their own code by hand.&lt;/p&gt;

&lt;p&gt;I saw this most clearly in a well-run template repo's upgrade PR. The maintainer had checked by hand that the template &lt;a href="https://github.com/doughayden/agent-foundation/pull/363" rel="noopener noreferrer"&gt;"has no enum-typed tool arguments, and it runs no SQL of its own against the session tables"&lt;/a&gt;, and told forks to review the release notes themselves. That's careful engineering, and it's also a job a tool should do.&lt;/p&gt;

&lt;p&gt;So I built one: &lt;strong&gt;&lt;a href="https://github.com/Reuben-Alex/adk-upgrade-check" rel="noopener noreferrer"&gt;adk-upgrade-check&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pipx install adk-upgrade-check
adk-upgrade-check path/to/your/agent --to 2.15.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;It reads your current version from &lt;code&gt;uv.lock&lt;/code&gt;, &lt;code&gt;poetry.lock&lt;/code&gt;, &lt;code&gt;requirements.txt&lt;/code&gt; or &lt;code&gt;pyproject.toml&lt;/code&gt;,
and runs only the rules for the releases you're crossing.&lt;/li&gt;
&lt;li&gt;It parses your code with &lt;a href="https://github.com/Instagram/LibCST" rel="noopener noreferrer"&gt;LibCST&lt;/a&gt; and &lt;strong&gt;never imports or runs
it&lt;/strong&gt;. There are no API keys, and it doesn't call an LLM.&lt;/li&gt;
&lt;li&gt;Each finding names the release that caused it, links the upstream commit and says how to fix it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--fix&lt;/code&gt; rewrites the mechanical cases after showing you the diff, for example &lt;code&gt;plan == "pro"&lt;/code&gt; to
&lt;code&gt;plan == Plan.PRO&lt;/code&gt;, or &lt;code&gt;sqlite:///&lt;/code&gt; to &lt;code&gt;sqlite+aiosqlite:///&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;It outputs JSON and SARIF, and ships with a GitHub Action and a pre-commit hook, so it can run on
the Dependabot PR that bumps &lt;code&gt;google-adk&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  The rule: no rule without a reproduction
&lt;/h2&gt;

&lt;p&gt;Changelogs are written by people in a hurry, and docs drift. A checker built from the wording would&lt;br&gt;
report confident nonsense. So for every rule that can fail a build, I installed the &lt;code&gt;google-adk&lt;/code&gt;&lt;br&gt;
releases on either side of the change and reproduced the break, with small scripts that now live in the repo's&lt;br&gt;
&lt;code&gt;tests/ground_truth/&lt;/code&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Enum tool arguments (2.14)&lt;/td&gt;
&lt;td&gt;2.13.0: the tool gets &lt;code&gt;"pro"&lt;/code&gt;, and &lt;code&gt;plan == "pro"&lt;/code&gt; is &lt;code&gt;True&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;2.14.0: the tool gets &lt;code&gt;Plan.PRO&lt;/code&gt;, and &lt;code&gt;plan == "pro"&lt;/code&gt; is &lt;code&gt;False&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vertex &lt;code&gt;create_session(session_state=…)&lt;/code&gt; (2.14)&lt;/td&gt;
&lt;td&gt;2.13.0: accepted&lt;/td&gt;
&lt;td&gt;2.14.0: &lt;code&gt;ValueError&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BigQuery plugin with &lt;code&gt;google-adk[gcp]&lt;/code&gt; (2.7)&lt;/td&gt;
&lt;td&gt;2.6.3: imports&lt;/td&gt;
&lt;td&gt;2.7.0: &lt;code&gt;ImportError: pyarrow is required&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;google.adk.cli.built_in_agents&lt;/code&gt; (2.15)&lt;/td&gt;
&lt;td&gt;2.14.1: imports&lt;/td&gt;
&lt;td&gt;2.15.0: &lt;code&gt;ModuleNotFoundError&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Doing this changed the rule set in three ways.&lt;/p&gt;
&lt;h3&gt;
  
  
  1. A breaking change that isn't in the changelog
&lt;/h3&gt;

&lt;p&gt;In 1.19.0, &lt;code&gt;DatabaseSessionService&lt;/code&gt; became fully async. The changelog files it under &lt;strong&gt;features&lt;/strong&gt;&lt;br&gt;
("Full async implementation of DatabaseSessionService"). But any synchronous URL, including the&lt;br&gt;
&lt;code&gt;sqlite:///&lt;/code&gt; URL from many tutorials, now fails at startup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1.18.0  DatabaseSessionService("sqlite:///./sessions.db")  -&amp;gt; works
1.19.0  DatabaseSessionService("sqlite:///./sessions.db")  -&amp;gt; ValueError
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Following that thread turned up a second one. In the same release, the CLI started sending&lt;br&gt;
&lt;code&gt;--session_service_uri sqlite:///...&lt;/code&gt; to a &lt;em&gt;different&lt;/em&gt; service, &lt;code&gt;SqliteSessionService&lt;/code&gt;, with a new&lt;br&gt;
schema. If you run &lt;code&gt;adk web&lt;/code&gt; or &lt;code&gt;adk api_server&lt;/code&gt; against a SQLite file that 1.18 wrote, 1.19 (and&lt;br&gt;
2.15.1) refuse to start:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;RuntimeError: Database sessions.db seems to use an old schema.
Please run the migration command to migrate it to the new schema.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's a migration script. But nothing in the breaking-changes list tells you to look for it.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A documented break that I couldn't reproduce
&lt;/h3&gt;

&lt;p&gt;The ADK 2.0 upgrade notes say overridden &lt;code&gt;_run_async_impl&lt;/code&gt; methods are now "bypassed by the graph&lt;br&gt;
engine". That would be a great rule: easy to detect, and severe. But on the normal &lt;code&gt;Runner&lt;/code&gt; path,&lt;br&gt;
the override still runs in 1.39.1, 2.0.0 and 2.15.1, for both &lt;code&gt;BaseAgent&lt;/code&gt; and &lt;code&gt;LlmAgent&lt;/code&gt; subclasses.&lt;/p&gt;

&lt;p&gt;The note may describe agents run as nodes inside a &lt;code&gt;Workflow&lt;/code&gt;. Either way, a rule based on the docs&lt;br&gt;
would have flagged working code in most projects, so I didn't ship it.&lt;/p&gt;
&lt;h2&gt;
  
  
  Results on 23 real projects
&lt;/h2&gt;

&lt;p&gt;I ran every rule on &lt;a href="https://github.com/google/adk-samples" rel="noopener noreferrer"&gt;google/adk-samples&lt;/a&gt; (1,956 Python files,&lt;br&gt;
about 13 seconds) and on 22 public ADK projects found through GitHub code search. Then I labelled&lt;br&gt;
every finding by hand:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rule&lt;/th&gt;
&lt;th&gt;Findings&lt;/th&gt;
&lt;th&gt;Real breaks&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Sync database URL (1.19)&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CLI SQLite service switch (1.19)&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;call_llm&lt;/code&gt; telemetry span removed (2.13, "likely")&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP prompt arguments (2.15, "likely")&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The other seven rules&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two of those projects are pinned to exactly &lt;code&gt;google-adk==1.18.0&lt;/code&gt;, one release before their session&lt;br&gt;
setup stops working.&lt;/p&gt;

&lt;p&gt;Every finding marked &lt;strong&gt;certain&lt;/strong&gt; was a real break. The two wrong ones are both marked &lt;strong&gt;likely&lt;/strong&gt;,&lt;br&gt;
which is why only &lt;code&gt;certain&lt;/code&gt; findings fail CI by default. When static analysis can't be sure, for&lt;br&gt;
example whether an MCP prompt actually takes arguments, the tool says so instead of failing your&lt;br&gt;
build.&lt;/p&gt;
&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;More rules as ADK ships.&lt;/strong&gt; The aim is to cover each new release within days, so that "what breaks
in 2.16?" has an answer you can run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A semi-automated rule pipeline.&lt;/strong&gt; Watch PyPI, diff the tagged sources, draft a rule and fixtures,
then gate it on a reproduction and the corpus, with a human reviewing every rule.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Upstream.&lt;/strong&gt; I'd like this to become part of the official upgrade path, the way Pydantic's
migration guide points to &lt;code&gt;bump-pydantic&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you maintain an ADK project, try it on your next upgrade PR:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uvx adk-upgrade-check . --to latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If it misses something that broke for you, &lt;a href="https://github.com/Reuben-Alex/adk-upgrade-check/issues" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt;.&lt;br&gt;
A failing example is the most useful thing you can send. Rules are small, and&lt;br&gt;
&lt;a href="https://github.com/Reuben-Alex/adk-upgrade-check/blob/main/CONTRIBUTING.md" rel="noopener noreferrer"&gt;CONTRIBUTING.md&lt;/a&gt;&lt;br&gt;
explains how to add one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;adk-upgrade-check is an independent open-source project, not affiliated with or endorsed by Google.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>ai</category>
      <category>opensource</category>
      <category>googlecloud</category>
    </item>
  </channel>
</rss>
