Repository navigation
feat(gooddata-eval): add agentic_summary and agentic_describe_object - #1980
Draft
myduong243 wants to merge 1 commit into
Draft
myduong243 wants to merge 1 commit into
myduong243 wants to merge 1 commit into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1980 +/- ##
==========================================
+ Coverage 88.57% 88.63% +0.06%
==========================================
Files 365 370 +5
Lines 31571 32902 +1331
==========================================
+ Hits 27964 29163 +1199
- Misses 3607 3739 +132 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
myduong243
force-pushed
the
myd/QA-30179
branch
9 times, most recently
from
November 27, 2026 16:37
18e2879 to
e72a12f
Compare
agentic_summary evaluates the chat summary of a widget or a dashboard the way the UI asks for it. An item stores the UI's userContext without result ids and one execution (AFM + result spec, filters included) per widget; every run re-executes them, because result ids expire, and puts the fresh ids back. Follow-up questions run in the same conversation. - Data baseline: an execution may store has_data, row_count and the sum of its values; when the fresh result differs, the item is an error (data_baseline_changed) and no chat runs. - Code checks: shape by scope (chart, KPI, dashboard, no data, or the user's own format), no ids on the summary turn, no figures on no data, no tool calls on a follow-up that should answer from the conversation, and figures_grounded: every figure must match a value of the data the agent read (cells, totals, shares, differences, ...) within the precision it was written with, and a figure next to a row's name must be a value of that row. - Judge criteria are graded one by one with summary-specific steps; a follow-up's judge also reads the conversation before it. agentic_describe_object asks to describe or explain an analytics object with no context; the answer must rest on a workspace lookup unless the item expects the agent to ask back. Both kinds only read, so they run in parallel. jira: QA-30179 risk: low
myduong243
force-pushed
the
myd/QA-30179
branch
from
November 29, 2026 13:41
e72a12f to
cb36845
Compare
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.
Summary
agentic_summary: the chat summary of a widget or a dashboard, sent the way the UI's "Summarize" items send it.userContextwithout result ids, plus one execution per widget (agentic_summary_input.executions: AFM + result spec, filters included). Result ids expire, so each run re-executes the stored executions (a 429/5xx is retried) and puts the fresh ids back.baseline(has data, row count, sum of values). When the fresh result differs, the item ends as an ERROR (data_baseline_changed) before any chat: the run would say nothing about the agent. An execution that fails, or whose result cannot be read, ends the item as an ERRORwidget_execution_failed, not as a data change. Both causes are onSETUP_ERRORSincore/outcome.py, the one place that says what makes an ERROR.no_tool_calls;figures_grounded(core/evaluators/chat_summary_figures.py): every figure of every turn must match a value of the tables the agent read in the conversation (cells, totals, shares, differences, ratios, sums of rows, ...) within the precision it was written with. A figure next to a row's name (or a day, "October 7") must be a value of that row; a summary turn that read no table may state no figure, whatever tools it ran (a workspace search reads no table). Labels, dates and bounds ("above $900 K") are not figures. The reason lists each failing figure, its sentence and the nearest values.expected_output(item or follow-up) or in itsformatis rejected before any execution, so a misspelt key cannot switch a check off.label_runs,raise_agentic_failure,agentic_success,agentic_detail): a run the judge could not grade is an ERROR (unscored in Langfuse), an item where no run got a verdict raisesJudgeResponseError, andbest_run_latency_s/tool_callsare set.agentic_describe_object: "describe / explain " with no context. The answer must rest on a workspace lookup (search_objects/get_object_with_children) unless the item expects the agent to ask back.PARALLEL_SAFE_TEST_KINDS;agentic_summaryis multi-turn,agentic_describe_objectsingle-turn. Anagentic_summaryitem with aquestionof its own or withfollow_ups(free text) runs serially, likeagentic_searchwithsetup_turns.agentic_dashboard_summarybuilds the context itself from a dashboard id and grades a rubric.agentic_summarysends the context the UI sent (any widget, tab and filter state), re-executes the stored executions, asks follow-ups and checks the figures.agentic_dashboard_summaryanddashboard_summaryare not changed.Test Plan
test_agentic_chat_summary.py(22): stored context + fresh result ids, missing executions, UI default question, execute errors, conversation stops on a failed turn, Langfuse item mapping, data baseline → ERROR and no conversation is opened, an item with follow-ups or a question of its own runs serially, the item's gate (pass, an invented figure fails, no verdict →JudgeResponseErrorwithharness_error). Also: a failed execution →widget_execution_failedand no conversation; a misspeltformator follow-up key fails before any execution.test_chat_summary_evaluator.py(26): every shape rule, ids, figures on no data, figures without any data tool, follow-up grading with the earlier turns, scope facts. Also: known and unknown expectation keys. The no-data check andfigures_groundedread figures the same way; sentences are counted with the shared_text_utils.count_sentences.test_chat_summary_figures.py(28): real answers pass; one changed figure fails and is named; labels, dates, ranges, Czech scale words, rounded and derived values; a value named with the wrong row or day fails (xtab and rows format, a 60-row series). Also: "with a total of" keeps a figure tied to its row; a one-digit amount ($1 M) is at most 10% wide.test_agentic_describe_object.py(4): the lookup rule; the item passes, fails, or errors with the judge.test_agentic_runner.py,test_trace_linker.py: the two kinds in the dispatch and trace-link registries.eval-lab --sdk-src) on a staging workspace, every item K=8 at reasoning effort medium and low: describe items 27–28 of 28 at 8/8 per effort. Every figure the check flagged was read by hand: the flagged ones are wrong in the answer (miscomputed sums/shares, values named with a neighbouring row); items that hit them often are tracked under LX-3357 / LX-3358.agentic_summary_input) each fail a unit test.chat_summary(45 items),chat_summary_known_bugs(18) anddescribe_objects(28) load withload_langfuse_datasetfrom this branch; gdc-nas wiring: gooddata/gdc-nas#30783 (draft until this is released).Risk Assessment
low — two new kinds in the eval package; existing kinds unchanged. Revert: full.
jira: QA-30179
risk: low
🤖 Generated with Claude Code