Repository navigation
Conformance examples for every track, versioned native record schemas and Extract benchmark hooks - #378
Merged
Conversation
… validated on read record_schema roles may be unbound when a record kind does not carry them; the case role accepts numbered tasks and the evidence role accepts binding objects.
… where the report and exporter read results
…port, export and certification read a run
…ection The replay renderer and its check emitted data-metric-direction="higher", which the shared presentation check rejects, so every replay report failed the package release gate. Baselines change only in the route digests of the pages carrying the core-pass table.
…rt, check and export A case may name its registered benchmark; Search export reads each benchmark's declared submission instead of a dataset table.
…y stage Provider registrations may name a module outside the providers package.
…ery stage Extract result submissions register per benchmark, and the exporter tells record benchmarks from the fixed-field one by their task adapter, not by name.
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Add one conformance example per track (#317). Each example registers a synthetic method and a synthetic benchmark through the public extension points and then drives the track's declared stages through
webstone <track> <stage>in-process. The PR also adds versioned record schemas that each track validates when it reads its native call and result files (#327), gives Web Extract benchmarks theBenchmarkAdapterhooks (#338), and removes the shared-code couplings that the examples exposed.flowchart LR T["tests/conformance/test_<track>.py"] -- "registered(registry, name, item)" --> R["Track registries<br/>methods · benchmarks · submissions"] T -- "webstone <track> <stage>" --> S["TrackStages<br/>run · score · report · check · package · export"] S --> RS["record_schema.RecordSchema<br/>webfetch / websearch / webextract /<br/>lex_browser_use_attempt / trajectoryreplay"] RS --> B["Report builders and exporters<br/>read through the schema"] S -. "a coupling that still needs shared code" .-> X["strict xfail that names it"]What changed
tests/conformance/(helpers.pyplus one test per track).Registry.unregisterlets a test remove its temporary registrations. Every example asserts that the stages it drives equalSTAGES.supported()minus publish, so a stage added to a track without coverage fails the example.PROVIDERSnow accepts a dotted module outside the package) and aLiveSuitebenchmark, then drives run, score, report, package (which refuses diagnostic evidence by contract) and export.checkis a strict xfail; see below.SearchBenchmark, then drives run, report, check and export with--benchmark.BENCHMARK_RUNSentry, then drives run, report, check, package and export.SearchBenchmark.includesreplaces the overlappingmemberpartition inbenchmark_of,casesand export.submissioninstead of theSUBMISSIONSdataset table.Registry. The exporter'sname != "zyte"check is replaced by "has a task adapter".data-metric-direction="higher", which the shared presentation gate rejects, so the replay package stage failed for every report. It now emitsmax.record_schema.pycan bind a role toNonewhen a record kind does not carry it. The evidence role also accepts a binding object, and the case role accepts integer task IDs.websearch.call_record/1(read inreport.load_run),webextract.call_record/1(in the newweb_extract/call_records.py, used by report, export and certification),lex_browser_use_attempt/1(publication.read_attempts, used by report, export and review) andtrajectoryreplay.attempt/1(report_inputs.validated_results).schemafield read as version 1. Each track has a test that rejects a malformed row.web_extract/benchmark_adapter.pyaddsExtractBenchmarkAdapter, which providescases,inputs,score,populationsandviewsover a prepared home and delegates to the existing owners.dataset.pyandpipeline.pyare unchanged because their bytes are bound into cohort plans and run contracts (dataset_registry_sha256,pipeline_sha256). A contract test iterates the registered benchmarks.docs/spec.md"Enforcement" names the examples.Couplings still open (strict xfails or notes)
report_check.check_revisionandreport_methodsrecognize a synthetic report only byprovider_type == 'fixture'(strict xfail). These files belong to the Web Fetch report lane.webarena-verifiedandlexbench-webfetch.score_runandrepair.pyread call rows without schema validation, becausepipeline.pyandrepair.pyare hash-bound.#324
#324 is not done here. These items block unifying the product and record-cohort data assembly:
_build_productreadshistorical-reproduction.json,historical_f1and an optionalcohort_plan, and validates the dataset against the single-schema profile.build_record_cohortreads segments, review and adjudication authorities, and live-reference policy throughrecord_cohort_inputs.files,preview_snapshot,public_evidence_views)._check_productand_check_record_cohortverify those manifests, and published reports carry them.analysis.pystill importsswde.record_value_key, andswde.pyis hash-bound asadapter_sha256.Allowlists
Instance-literal: 1 → 1. Layering: 0 → 0.
Baselines
The
trajectory-replay,trajectory-replay-passandtrajectory-replay-step-durationsroute digests change only on pages with the core-pass table (higherbecomesmax). All other baselines are unchanged. The scoring-source hash is unchanged (0fe89317…).Breaking changes
harness.web_search.export.SUBMISSIONSandBENCHMARK_IDSare removed. EachSearchBenchmarknow declares its ownsubmission.harness.web_extract.export.SUBMISSIONSis now aRegistry: use.get(name)instead of indexing.Verification
uv run --frozen --all-extras python -m pytest tests -n 8 --dist worksteal: 21186 passed. One failure,test_model_comparison::test_unreachable_connection…, passes when run alone and is timing-sensitive. One more failure, the encoding check, was fixed.tests/conformance,tests/baselines, the architecture tests, record schema,tests/resultsandtests/web_searchgive 932 passed and 2 xfailed.make lint-checkpassed.uv run --frozen lexbench-webfetch versiongives scoring hash0fe8931734e1…, unchanged.Closes #317
Part of #338 (the Extract runner still calls
pipelinedirectly; routing it through the hooks changes the hash-boundpipeline.py)Part of #327
Part of #324