Skip to content

Web Search: move provider quirks into adapters and dataset rules into declarations #323

Done

Description

@lanyue-llk

Part of the convergence on the repository specification (#313). Rules: 1, 7. Size: M.

Problem

Search is close to the standard; what remains is named providers and one dataset in shared code.

  • Provider quirks: web_search/core.py:51 (browserbase), core.py:236-241 (tencent-wsa), report.py:2898 (brightdata), and the generic Adapter.account_error and cost hardcoding one vendor's envelope (adapters.py:31-52, 66-74).
  • Populations and metric sets are fixed to scenario and SimpleQA: comparison.py:163-169, report.py:4081, output_levels.py:278-285, 412.
  • The answer level requires the SimpleQA grader: answers.py:256, relevance.py:643.
  • revisions.py imports simpleqa at six sites and checks track != 'simpleqa-verified' (:636, 647).
  • Packaging uses raw zipfile (publication.py:85) instead of reporting.publication.package_archive.

Direction

Add per-adapter hooks for method validation, account errors and item normalisation. Let a dataset declare its populations, metric set, grader and revision callables, and have comparison, report and revision code read those declarations. Use the shared packaging and identity checks.

Done when

  • No provider name outside adapters.py; no dataset name in comparison, report, output-level or revision code.
  • A second answer dataset can be added by declaration.

Paths are relative to src/harness/ unless prefixed; line numbers are from main at 997a228.

Activity

  1. added
    refactor
    on Nov 24, 2026
  2. lanyue-llk commented on Nov 24, 2026

    @lanyue-llk
    ContributorAuthor

    Remaining after #346: comparison.py (factual-only charts, factual population-size note, /scenario judgment key) and report.py (SimpleQA contamination paragraph, scenario/site case-kind summaries) still name datasets. Fix through a benchmark views() hook as part of the report template work (#337).

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

    refactor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions