Skip to content

feat(gooddata-eval): add agentic_summary and agentic_describe_object - #1980

Draft
myduong243 wants to merge 2 commits into
masterfrom
myd/QA-30179
Draft

myduong243 wants to merge 2 commits into
masterfrom
myd/QA-30179

Conversation

@myduong243

@myduong243 myduong243 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • New agentic kind agentic_summary: the chat summary of a widget or a dashboard, sent the way the UI's "Summarize" items send it.
    • An item stores the UI's userContext without 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 and puts the fresh ids back. Nothing resolves filters at run time; the stored execution is what the widget rendered with.
    • Follow-up questions run in the same conversation, each with its own expected output.
    • Code checks gate the verdict: shape by scope (chart: 4 headings, KPI: no headings and few sentences, dashboard: 3 headings, dashboard without data: one paragraph, or the user's own format), no reference tags or raw ids, no figures when every widget in scope returned no data, no tool calls on a follow-up marked no_tool_calls. Judge criteria are graded one by one with summary-specific steps.
  • New agentic kind 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.
  • Both kinds only read, so they are in PARALLEL_SAFE_TEST_KINDS; agentic_summary is multi-turn, agentic_describe_object single-turn.
  • Not changed: agentic_dashboard_summary and dashboard_summary keep their own builder and rubric.
  • Test Plan

    • Unit tests: test_agentic_chat_summary.py (stored context + fresh result ids, missing executions, UI default question, execute errors, conversation stops on a failed turn, Langfuse item mapping) and test_chat_summary_evaluator.py (every shape rule, ids, figures on no data, follow-up grading, scope facts, describe lookup).
    • Live check on a staging workspace: replaying 4 captured UI states (dashboard, widget, tab, two date filters) through the stored executions gives the same result data as the UI for every widget; one item with a follow-up runs end to end.
    • Type check and the tox matrix run in CI only.

    Risk Assessment

    low — two new kinds in the eval package; existing kinds unchanged. Revert: full.

    jira: QA-30179
    risk: low

    🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.67480% with 225 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.62%. Comparing base (84f9c55) to head (c77e995).

Files with missing lines Patch % Lines
...val/src/gooddata_eval/core/agentic/chat_summary.py 63.12% 125 Missing ⚠️
.../src/gooddata_eval/core/agentic/describe_object.py 29.29% 70 Missing ⚠️
...ddata_eval/core/evaluators/chat_summary_figures.py 95.36% 23 Missing ⚠️
.../src/gooddata_eval/core/evaluators/chat_summary.py 95.53% 5 Missing ⚠️
...c/gooddata_eval/core/evaluators/describe_object.py 92.59% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1980      +/-   ##
==========================================
- Coverage   87.91%   87.62%   -0.30%     
==========================================
  Files         361      366       +5     
  Lines       29868    30974    +1106     
==========================================
+ Hits        26259    27140     +881     
- Misses       3609     3834     +225     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

1 participant