Repository navigation
Done
Labels
refactorCodebase quality roadmap
Milestone
Description
Part of the convergence on the repository specification (#313). Rules: 3, 8, 10. Size: L.
Problem
"Template" today means a registry of pointers plus a reference report to imitate. No base template defines the pages, section order or slots of a report, so each track, and several variants within a track, decide their own shape.
configs/report-templates.jsonrecords, per track, a renderer path, command strings, tests and a pinned example report (example_version);reporting/templates.py:39-61validates five keys and supplies a shared metric contract (:12-31). The presentation contract is prose in.agents/skills/benchmark-report/references/report-and-release.md:95-113, enforced on markup attributes byreporting/presentation.py.- Page sets differ per track. Web Fetch renders home, datasets, methodology, analysis, review, guide, reproduce, changes and accounts (
web_fetch/report.py); Browser Use renders a similar set with its own code; Web Search, Web Extract, Trajectory Replay, the public WebArena replay and the headless report each define their own routes. - Variants are separate generators or modes, not selections over one template: Web Fetch registers six (
certified,wcxb,local-audit,diagnostic-cohorts,published-snapshot-audit,saved-matrix), Web Extract five, Web Search three. WCXB, WebMainBench, the public WebArena replay and the headless report have no template entry of their own. - A default build is not always possible from data alone. Web Extract's
reportrequires an authored--contentfile (web_extract/cli.py:118, 137, 156); WCXB requires a boundreport-content.jsonand has no generated fallback (docs/architecture.md, "Restore report content"); Trajectory Replay's build takes a review input. - The result is that a new report tends to add a renderer mode or a variant, and two reports of the same track can differ in structure.
Direction
- Define the base template in
src/harness/reporting/: the page roles (home, datasets, methodology, results, interpretation, review, reproduce, changes), the section order on each, the slots, and the generated default for every slot. - Express each track's report as a track template that fills those slots and declares its metric set, comparison columns and result-detail layout. Benchmark-specific views become section hooks.
- Express each existing variant as registered data: a selection of slots and labels over the track template, with its runnable example. Remove the variant-specific generators as they are replaced.
- Make every track build a complete report from scored results and a profile with no authored content. Authored interpretation fills content slots when bound.
- Record base template, track template, variant and versions in the report manifest, and have the release gate verify the page roles and section order against the template.
This task defines the template contract and the defaults; #328 supplies the Web Fetch report model, #331 the shared shell and components, and #330 moves instance prose into content slots.
Done when
- Every track's default
reportcommand produces the same page roles and section order from data alone, with no authored input required. - Every registered variant is a data entry over a track template, with an example and tests; no variant has its own generator.
- The release gate fails a report whose pages or section order differ from its recorded template.
- A new report instance needs no new template, renderer mode or generator.
Paths are relative to src/harness/ unless prefixed; line numbers are from main at 997a228.
Metadata
Metadata
Assignees
Labels
refactorCodebase quality roadmap
Activity
lanyue-llk commentedon Nov 24, 2026
Done: the base template with eight page roles and slots (#366), track templates for Web Search, Web Extract, Browser Use, Trajectory Replay and Web Fetch, variants as registered data, default reports built from data alone, manifests recording template/variant, and release checks verifying page roles and section order (#366, #370, #373, #375, #376, #377).