Practical technical guides / Recent development: ADK Python commit dd7161f (2026-11-07, unreleased on 2026-11-08)

ADK Eval Judges Were Reading the Model Thoughts: The 7 November Fix and How to Re-Baseline Scores

An ADK commit on 7 November 2026 stops eval judges reading thought parts. Recorded on 2.14.0 and the fix; four of five stored scores moved while the mean stayed 0.6.

By Sandeep Belgavi · Published 2026-11-08

An ADK commit on 7 November 2026 stops eval judges reading thought parts. Recorded on 2.14.0 and the fix; four of five stored scores moved while the mean stayed 0.6.

What changed on 7 November

On 7 November 2026 at 08:57 UTC, a commit to the main branch of Google's Agent Development Kit for Python (dd7161f, "fix(eval): stop judge and Vertex metrics from scoring model thoughts") changed what several evaluation metrics read. Before it, those metrics built the response text by joining every text part of the model's reply, including parts marked thought=True. With include_thoughts enabled, or with PlanReActPlanner, which marks its planning text as thoughts, in the commit's words "the model's internal reasoning was scored as if the user had seen it".

As of 8 November the commit was on main only; ADK Python 2.14.0, tagged on 7 November at 00:58 UTC from a release branch, does not contain it. This guide explains which metrics were affected, records the difference on 2.14.0 and on the commit, and shows how to re-baseline stored eval results so that a score change after upgrading is understood rather than mistaken for a regression.

Which metrics read the thoughts

Google's Gemini models can return thought summaries as separate parts of a response, each marked with the thought flag, when thinking output is requested. They are part of the response object, not of the answer the user sees. ADK's response_match_score already skipped them. According to the commit message, the following did not, and now do:

  • every metric that builds text through get_text_from_content: final_response_match_v2, rubric_based_final_response_quality_v1, rubric_based_tool_use_quality_v1, hallucinations_v1 and per_turn_user_simulator_quality_v1, plus any custom metric that calls it;
  • response_evaluation_score and safety_v1, for the prompt, response and reference sent to Vertex AI;
  • hallucinations_v1 intermediate responses and the context built from them;
  • the dialogue shown to the rubric_based_multi_turn_trajectory_quality_v1 judge.

The multi-turn Vertex AI metrics are unchanged, because they receive structured content in which each part keeps its thought flag. The commit also reads judge replies through the same helper, so a verdict that a thinking judge drafted in its own thoughts no longer overrides the verdict in its answer.

What the helper returns, recorded

The companion probe calls ADK's own get_text_from_content offline, with no model or Vertex call, on three synthetic responses. One run with google-adk 2.14.0 and one with the commit installed from Git, both with google-genai 2.34.0:

Response parts2.14.0 returnsdd7161f returns
a thought, then an answerthe thought text, a newline, then the answerthe answer only
a thought onlythe thought textan empty string
an answer onlythe answerthe answer

The first row is the problem in one line. The thought in the fixture says "the order is outside the 30-day window, so I could refuse. Maybe offer store credit instead", and the answer says the order is eligible for a full refund. A judge reading the 2.14.0 text sees a response that both refuses and accepts, and a rubric that penalises any mention of store credit scores it zero, although the customer never saw those words.

from google.genai import types
from google.adk.evaluation import llm_as_judge_utils as u

thought = types.Part(text='Plan: the order is outside the 30-day window ...', thought=True)
answer = types.Part(text='Your order CASE-4127 is eligible for a refund of the full amount ...')
print(u.get_text_from_content(types.Content(role='model', parts=[thought, answer])))

Scores move in both directions

The fix does not make scores uniformly better or worse. It makes them about the visible answer. The commit message lists the effects: a response made only of thought parts now scores as an empty answer (which PlanReActPlanner produces when a reply has a planning tag but no final-answer tag); remote A2A agents' in-progress messages, which RemoteA2aAgent marks as thoughts by default, are no longer scored; and hallucinations_v1 no longer treats the model's own thoughts as supporting context, so a claim supported only by its reasoning becomes unsupported and the score can fall.

The companion example re-scores five stored responses with a simple rubric check both ways. Four of the five change score: two rise (the thoughts contained forbidden phrases the answer did not), two fall (the thoughts contained the required facts, or were the only content). The fifth, which has no thought parts, does not move. The mean is 0.6 before and after.

That last number is the practical warning. An aggregate that stays flat across an upgrade can hide a set of cases whose verdicts flipped in opposite directions. Compare per case, not per run.

Why the fix had to be in ADK

The commit explains why ADK drops the thoughts itself for some metrics and not others. The single-turn metrics receive the response as plain text, and plain text cannot carry a per-part thought flag, so once the parts are joined nobody downstream can tell reasoning from answer. The multi-turn Vertex AI metrics receive structured content, where each part keeps its flag, so Vertex AI decides what its judge sees. The general lesson applies to any evaluation pipeline you build yourself: keep the structure of a response until the last moment, and decide explicitly which parts each metric reads, rather than flattening early and hoping the judge ignores the parts it should not see.

Re-baselining stored results

If you keep eval results over time and use thinking output or a planner that marks thoughts, do this before comparing any run made after upgrading with one made before:

  1. Find cases whose stored responses contain thought parts. Only those can move; the example's test asserts that responses without thoughts never do.
  2. Recompute the affected metrics on the stored responses with thoughts removed, without calling the agent again, so that the comparison isolates the metric change from any model change.
  3. Store the old and new score side by side, flag every case that moved, and review the cases that moved by more than your usual noise.
  4. Record the ADK version, or the commit, used to compute each baseline, next to the scores.
  5. Treat thought-only responses as failures to answer, which is what they are, and check why the agent produced them.
def visible_text(content):
    return '\n'.join(p['text'] for p in content.get('parts', []) if p.get('text') and not p.get('thought'))

Keep a separate metric for the reasoning

Removing thoughts from response metrics does not mean the reasoning does not matter. The commit message says it directly: safety_v1 now checks the visible response only, and monitoring the reasoning should be done with a separate metric; a metric that needs the reasoning should read thought parts explicitly. If your rubric asked "did the agent consider the return window?", that is a question about the reasoning, and it should be a metric over thought parts that says so in its name, not an accidental side effect of joining all text.

What to do before the fix is released

  • If you run ADK evals from 2.14.0 with thinking output enabled, scores from the affected metrics include thought text. You can pin to the commit for evaluation only, or strip thought parts in a custom metric, but do not mix scores computed both ways in one trend line.
  • If you do not enable thinking output and do not use PlanReActPlanner or RemoteA2aAgent, the change should not affect you; confirm by checking stored responses for thought parts.
  • Watch the ADK release notes for the first tagged release that includes the change. This guide does not say which release that will be.

Verifying it

The companion tests check that visible_text drops thoughts and the old joined text keeps them, that a thought-only response becomes empty, that four cases move (two up, two down) while the mean stays at 0.6, that responses without thoughts never move, and that the two recorded ADK probes show the same split. Run the probe against the ADK version you use for evaluation; it needs no credentials and makes no network calls.

Primary references and authorship

Sources dated on or before 8 November 2026. Original explanation and synthetic examples by Sandeep Belgavi. Companion code: Sandeep-BA/agent-decision-lab/examples/python/eval_thought_parts. Views are my own and do not represent any employer, past or present.