Skip to content

Characterization baselines for each track's stage outputs before refactoring #340

Done

Description

@lanyue-llk

Part of #336, the convergence on the repository specification (#313). Size: M. Do this before the refactoring tasks.

Problem

The convergence tasks move code between modules without changing behaviour, but reports and evidence are hash-bound, and nothing today shows at a glance that a refactor left a track's output unchanged. Each track has examples and scenario tests (configs/report-templates.json lists example_build entries for Web Search and Web Extract, the diagnostic and snapshot examples for Web Fetch, and webstone run --delay 0 with the fixture provider), but they assert selected properties, not the whole output of each stage.

Direction

For each track, add a characterization test that drives the documented stage commands on local fixtures (run, score, report, check, package) and compares the stage artifacts with a recorded baseline: record fields, scores, the report's route inventory and section order, and table values. Volatile fields (timestamps, durations, run identifiers) are normalised. A refactor that changes a baseline must say why in its description.

This is a safety net for the migration, not a replacement for behavioural tests. Once #317 covers a track with the conformance example, fold the baseline into it.

Done when

  • One baseline test per track runs in CI without network or credentials.
  • It fails when a stage artifact or the report structure changes.
  • The way to refresh a baseline is one documented command.
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