Repository navigation
Route Extract scoring through benchmark hooks, validate call reads, derive Lexbench resource engine - #386
Merged
Conversation
…call read score_run reads references and score_rows scores every method through the benchmark adapter's hooks, which select the pinned upstream scorer or the record adapter. pipeline.load_run and repair call reads validate the versioned call record.
The resource matrix and Linux profile orchestrators take the measured engine from the frozen protocol's registered engine name instead of naming one.
This was referenced Nov 25, 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
Step 2 of #379: with frozen evidence bound to stored copies (#385), finish the refactors that were blocked by live-module hash bindings.
flowchart LR SR["pipeline.score_run"] -->|truth()| H["benchmark_adapter.adapter(home)<br/>ExtractBenchmarkAdapter"] RR["pipeline.score_rows<br/>(original and repaired views)"] -->|score(truth, predictions)| H H -->|record benchmark| A["registered record adapter.score"] H -->|product benchmark| U["pinned upstream scorer<br/>(official_scorer + evaluate_predictions)"] LR["pipeline.load_run"] --> V["call_records.validate_calls<br/>webextract.call_record/1"] RA["repair.artifact"] --> V P["frozen resource protocol<br/>engine: registered browser"] --> M["lexbench resource_matrix / resource_profiles"]What changed
score_runreads references throughadapter(home).truth();score_rowsscores every method throughadapter(home).score(...). The hook selects the record adapter's scorer or the pinned upstream scorer (with the same non-decimal price fallback, loaded once per adapter). The product/record branch inscore_rowsis gone;benchmark_adapter.pyno longer routes scoring back into the pipeline.pipeline.load_runvalidates every call record, soscore_run, repair, certification, report and export all read validated calls;repair.artifactvalidates each repair and physical call.call_records.load_run(a wrapper that existed only becausepipeline.pywas hash-bound) is removed; callers usepipeline.load_run.resource_matrix.pyandresource_profiles.pyread the measured engine from the frozen protocol'senginefield, which must be a registered browser (BROWSERS); runner engine key, layout flag, binary path and active-set name derive from it. Historical evidence verifies against theorchestrator.pystored with it, so existing receipts are unaffected; receipt schema identifiers are unchanged.statenow write it, as real collections do.Not done here
analysis.check_record_auditrecomputes record audits with the current adapter (adapter_sha256against liverecords.py). It reruns adapter checks by design, so it stays live.Allowlists
Instance literals: 0 → 0. Layering: unchanged.
Baselines
Unchanged (no refresh). Scorer hash unchanged:
0fe8931734e1ba7282e1e9c8303eea958d20fdcee83d84e87cdc7e08cd08169e.Verification
uv run --frozen --all-extras python -m pytest -n 8 --dist worksteal tests: 21644 passed, 78 skipped, 2 xfailed.make lint-check: passed.Breaking changes
resource-matrixandresource-profilesprotocols require anenginefield naming a registered browser (for example"engine": "moli"). Protocols frozen without it must run with the orchestrator copy they bind.harness.web_extract.call_records.load_runremoved; useharness.web_extract.pipeline.load_run(now validates call records).Closes #379. Part of #338, #327, #321, #324.