Repository navigation
Description
Summary
rubric_based_final_response_quality_v1 sometimes returns NOT_EVALUATED (eval_status: 3) with score: null and details.rubric_scores: null, even though the ADK eval result contains a non-empty actual_invocation.final_response.parts[0].text.
In the same invocation, rubric_based_tool_use_quality_v1 evaluates normally and returns rubric scores/rationales, so the eval run itself and LLM-as-judge path are partially working.
Environment
google-adk:1.32.0litellm:1.82.6google-genai:1.73.1- Python:
3.13.5 - Eval command shape:
adk eval src tests/eval/evalsets/job_scraper_core.json:itviec_immediate_goal_before_producer_scripting \
--config_file_path tests/eval/eval_config_goal_contract.json \
--log_level ERRORObserved result excerpt
The eval case final status was passed:
{
"eval_set_result_id": "src_job_scraper_core_1778989037.305544",
"final_eval_status": 1
}The actual invocation has a final response:
{
"actual_invocation": {
"final_response": {
"role": "model",
"parts": [
{
"text": "Extracted job count: 20\n\nArtifacts:\n- page workspace fixture: `page_2554f031654b` / `pages__page_2554f031654b__page.html`\n- sandbox audit: `sandbox_run_20260517_033632_dfda78d0`\n\nWhat happened:\n- Loaded the fixed ITviec AI Engineer Hanoi fixture.\n- Established the repeated job-card boundary with a bounded probe.\n- Confirmed 20 repeated listing cards and canonical job URL data in the fixture.\n- I have not yet written the required output files or finalized persistence.\n\nBlocker:\n- Extraction output generation is still pending."
}
]
}
}
}The tool-use rubric evaluated successfully:
{
"metric_name": "rubric_based_tool_use_quality_v1",
"score": 1.0,
"eval_status": 1,
"details": {
"rubric_scores": [
{
"rubric_id": "uses_fixture_artifact",
"score": 1.0,
"rationale": "... Trace anchors: invocation_events[5], invocation_events[13], final_response."
}
]
}
}But the final-response rubric did not evaluate:
{
"metric_name": "rubric_based_final_response_quality_v1",
"threshold": 0.85,
"score": null,
"eval_status": 3,
"details": {
"rubric_scores": null
}
}Expected behavior
If actual_invocation.final_response contains text, rubric_based_final_response_quality_v1 should either:
- evaluate and return per-rubric scores/rationales, or
- include diagnostic detail explaining why it was not evaluated.
Actual behavior
The metric returns NOT_EVALUATED with no explanation in details, making it difficult to distinguish between:
- final response extraction issue,
- judge invocation/parsing issue,
- unsupported invocation shape,
- timeout/provider issue,
- or intentional evaluator skip.
Why this matters
For agent workflow evals, the final response quality metric is useful as an LLM-as-judge layer, but NOT_EVALUATED without diagnostic detail makes it hard to use as a reliable CI/development signal. The trace contains enough final response text for a judge pass, so the skip is surprising.
Request
Could ADK either:
- make
rubric_based_final_response_quality_v1evaluate wheneveractual_invocation.final_responsehas text, or - add diagnostic detail to the eval result explaining why the final-response judge returned
NOT_EVALUATED?
A debug field such as not_evaluated_reason or judge parsing/provider error details would be very helpful.
Activity
llalitkumarrr commentedon May 18, 2026
Hello @txnguyen292 ,
Could you please confirm if this issue is reproducible 100% of the time? If not what is the frequency? Additionally, we would like to know your observations if you remove
rubric_based_tool_use_quality_v1and only evaluate the final response usingrubric_based_final_response_quality_v1.Furthermore, sharing your eval_config_goal_contract.json (test cases) would greatly help us analyze this issue. Lastly, please test using our latest version (google-adk==1.33.0) and share your results with us.
txnguyen292 commentedon May 20, 2026
Thanks, I tested the isolation cases you asked for and prepared a small share-safe repro package:
adk-final-response-not-evaluated-share.tar.gz.Repro frequency
With the deterministic repro package, this reproduces 100% of the time.
google-adk==1.32.x: reproduced 5/5google-adk==1.33.0: reproduced 3/3In every run:
Final-response-only test
I removed
rubric_based_tool_use_quality_v1from the repro. The package evaluates only:"rubric_based_final_response_quality_v1"So the issue is not caused by interaction with the tool-use rubric metric.
Minimal repro package
The package contains:
Run:
To test the requested release exactly:
python -m pip install --upgrade 'google-adk[eval]==1.33.0' ./run_adk_eval_repro.shThe repro uses a deterministic no-model ADK agent plus a deterministic fake judge response via
sitecustomize.py. The fake judge returns valid-lookingProperty:/Evidence:/Rationale:/Verdict:blocks, but intentionally shortens eachProperty:line. This isolates the parser/matching behavior from provider randomness.Concrete example
One configured rubric in the repro uses this full
text_property:The deterministic judge returns this shortened property:
That is the same scoring criterion, but it omits the evaluator-instruction suffix. ADK parses the block, but does not match it to the configured rubric because the configured key is the full normalized
text_property.A paraphrased judge property would have the same problem, for example:
Diagnosis
The failure appears to be in rubric response matching, not in agent execution.
In
google/adk/evaluation/rubric_based_evaluator.py,convert_auto_rater_response_to_score()builds a map keyed by normalized full rubric text:Then it parses the judge response and looks up each returned:
If the judge shortens or paraphrases the
Property:text, ADK parses the response successfully but cannot match the returned property to the configured rubric. It logs that the rubric was not found, drops the rubric score, and the aggregate score becomesNone, yieldingNOT_EVALUATED.So the issue is reproducible whenever the judge does not echo the full
text_propertyexactly enough after normalization. A more robust approach might be to have the judge return and the parser match on stablerubric_id, while preserving unmatched raw judge output in diagnostics.adk-final-response-not-evaluated-share.tar.gz
llalitkumarrr commentedon May 20, 2026
Hello @txnguyen292 ,
We were unable to reproduce the issue; the process worked as expected during our testing. Instead of using your exact code, we ran a test using an agent with a tool and 'gemini-2.5-flash' as the judge model. Everything functioned as intended.
Could you please refer to samples below and let us know if these are of any help?
Agent:
test file:
Config file:
Final observations:
txnguyen292 commentedon May 20, 2026
Thanks for checking this. I think your fruit example is a useful sanity check for the happy path, but I do not think it exercises the failure mode in this issue.
The issue I am reporting is not that
rubric_based_final_response_quality_v1always fails. It works when the judge echoes the configuredtext_propertyclosely enough.The reproducible failure is more specific:
Property:,Evidence:,Rationale:, andVerdict:blocks.Property:line is shortened or paraphrased rather than echoing the full configuredtext_property.text_propertytext.None, so the result isNOT_EVALUATED.So a simple example with short rubric properties can pass, especially if the judge echoes the properties closely. That is consistent with your result. In larger trace-heavy evals, the rubric properties are often longer and may include evaluator-only instructions or evidence-anchor requirements. That makes it much more likely that the judge will shorten the
Property:line while still returning a valid judgment.The attached package isolates that exact parser/matching condition deterministically. It does not depend on provider randomness:
sitecustomize.pymakes the judge return valid-looking rubric blocks while intentionally shortening eachProperty:line.Minor correction to my previous command: I had a typo. It should be:
Could you please run the attached package exactly as-is? The expected behavior is that ADK returns
NOT_EVALUATEDeven though the fake judge response contains parseable verdicts, because the returnedProperty:text does not exactly match the configured fulltext_property.The behavior I would hope for is either:
rubric_idinstead of free-textProperty:, orllalitkumarrr commentedon Jun 11, 2026
We apologize for the misunderstanding and the delayed response. Have you tried using
google-adk==1.35.0, and did you observe the same behavior?fix: log diagnostics for empty or unparseable rubric auto-rater output
fix: log diagnostics for empty or unparseable rubric auto-rater output