Skip to content

Add golden route-hash snapshots for every report track #88

Closed

Description

@lanyue-llk

Problem

No test proves that a refactor leaves rendered reports unchanged. Several roadmap items (catalog migration, renderer splits, helper consolidation) touch report output across Web Fetch, WCXB, WebMainBench, Browser Use, Trajectory Replay, Web Search and LexBench.

Proposal

  • For each track's runnable synthetic example (scripts/report_template.py <track>), build every generated language and commit a compact tests/golden/<track>.json that maps each route to its sha256. This is a hash binding, not a generated report.
  • On a mismatch, print a unified diff of the changed route. UPDATE_GOLDEN=1 rewrites the file.
  • Optionally record which translation TEXT / REGEX / PHRASES entries were hit during golden builds. This feeds dead-key pruning (Make English the source language of all report renderers, with Chinese as a catalog #99).

Acceptance

  • make test fails on any unintended byte change in any track.
  • A PR that changes output must update the golden file, which makes the change visible in review.

Risk: low. Depends on: nothing. Prerequisite for most refactor PRs.


Part of the refactor roadmap: #87

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

    enhancementrefactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions