Skip to content

[Verifier v2] Phase 3: Multi-Model Comparison Mode #581

Description

@stranske

Why

Different LLM providers may have different strengths in code evaluation. Running the same evaluation through multiple models and comparing results provides:

  • Higher confidence when models agree
  • Unique insights from different perspectives
  • Ability to identify model-specific blind spots

Scope

Implement verify:compare mode that runs evaluation across multiple LLM providers and generates a comparison report.

Non-Goals

  • Adding new LLM providers (use existing provider chain)
  • Weighted voting or automatic verdict resolution
  • Real-time streaming comparison

Tasks

  • Create comparison runner in scripts/langchain/pr_verifier.py or separate module
  • Implement sequential provider execution with result collection
  • Build comparison report formatter (agreements, disagreements, unique insights)
  • Update workflow to handle mode=compare with multi-provider execution
  • Create comparison comment template (Markdown table format)
  • Add tests for comparison logic

Acceptance Criteria

  • Adding verify:compare label to merged PR triggers multi-model evaluation
  • Runs evaluation through at least 2 providers (GitHub Models + OpenAI)
  • Comparison report shows:
    • Areas of agreement between models
    • Areas of disagreement with each model's position
    • Unique insights from each model
    • Confidence levels per model
  • Report posted as PR comment
  • Graceful degradation if only one provider available

Implementation Notes

Depends on Phase 2 (#580) being complete.

Example comparison output:

## Provider Comparison Report

### Agreement (Both providers)
- ✅ Correctness: Implementation correctly addresses requirements
- ✅ Tests: Adequate coverage for core functionality

### Disagreement
| Dimension | GitHub Models | OpenAI |
|-----------|--------------|--------|
| Quality | 4/5 | 3/5 - "Could use more comments" |
| Risks | Low | Medium - "Edge case in line 42" |

### Unique Insights
- **GitHub Models**: Noted potential performance issue
- **OpenAI**: Suggested alternative algorithm

See design doc: docs/plans/agent-verifier-v2.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions