Skip to content

feat(conformance): implement live mode for conformance testing - #7297

Open
joshi-07 wants to merge 1 commit into
google:mainfrom
joshi-07:conformance-live-mode
Open

joshi-07 wants to merge 1 commit into
google:mainfrom
joshi-07:conformance-live-mode

Conversation

@joshi-07

Copy link
Copy Markdown

Summary

  • Implement adk conformance test --mode=live to run agent with live model calls
  • Compare live execution results against existing recorded baselines
  • Enable regression detection when model behavior changes
  • Update CLI documentation to clarify replay vs live mode usage

Changes

  • Added _run_user_messages_live() method to run agent without replay config
  • Added _run_test_case_live() method for complete live mode test execution
  • Updated test discovery to require recordings for both replay and live modes
  • Updated CLI help text to clarify mode differences and recording requirements
  • Added unit tests for live mode functionality

Testing Plan

  • Added pytest tests for live mode user message execution
  • Added pytest tests for complete live mode test case execution
  • Tests verify that live mode runs without replay config
  • Tests verify proper error handling when recordings are missing

Fixes #7290

Enable `adk conformance test --mode=live` to run agent with live model
calls and compare against recorded baselines. This catches regressions when
model behavior changes while maintaining the same comparison logic as replay
mode.

Live mode runs actual model calls (no replay config) but still validates
against existing recordings, making it suitable for regression detection when
model behavior may have changed.

Fixes google#7290
@joshi-07
joshi-07 force-pushed the conformance-live-mode branch from 8620b27 to 5fc98a1 Compare September 26, 2026 14:03
@joshi-07

Copy link
Copy Markdown
Author

This PR implements the requested adk conformance test --mode=live functionality from issue #7290.

Key Changes:

✅ Implemented live mode that runs agent with live model calls
✅ Compares live execution against existing recorded baselines for regression detection
✅ Updated CLI documentation to clarify replay vs live mode usage
✅ Added comprehensive unit tests for the new functionality
✅ Fixed import issues in test file (added from future import annotations)
Mode Clarification:

Replay mode (--mode=replay): Fast, deterministic verification against recorded interactions using replay config (no actual model calls). Ideal for CI/CD.
Live mode (--mode=live): Runs actual model calls and compares against recordings to catch regressions when model behavior changes.
Both modes require existing recordings - use adk conformance record to generate baselines first.

Testing:

Added unit tests for live mode user message execution
Added unit tests for complete live mode test case execution
Tests verify that live mode runs without replay config and handles missing recordings properly
The implementation follows existing code patterns and maintains backward compatibility. The changes address the specific issue raised in #7290 about enabling live model response verification.

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.

Please implement adk conformance test --mode live

2 participants