Repository navigation
Bind frozen evidence to stored code copies instead of live modules - #385
Merged
Merged
Conversation
…nce browser from its adapter Visual receipts store copies of the checker sources beside the receipt and verify against those copies; receipts written before resolve in the Git store of frozen sources. The visual QA browser binary comes from the reference browser adapter, emptying the instance-literal allowlist.
Collections store pipeline.py and dataset.py beside the scheduler copy and repairs store repair.py and pipeline.py. A completed cohort verifies its certificate chain and stored copies, not the live modules.
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 1 of #379: frozen evidence binds a copy of the code it ran, not the bytes of a live module. After this, Web Extract modules (
pipeline.py,dataset.py,repair.py,swde.py,self_hosted.py) and the visual checkers can be edited without invalidating completed evidence.flowchart LR subgraph Run["At run time"] C["collection / repair / visual check"] -->|copy bytes| K["copies beside the evidence<br/>execution/pipeline.py, execution/dataset.py,<br/>execution/repair.py, frozen-sources/<sha>.py.txt"] end subgraph Verify["Later verification"] V["load_run, verify_repair,<br/>receipt_is_current, web_search verify"] --> K V --> G["Git store for older evidence<br/>reporting/data/frozen-sources/"] end L["live module"] -. "only for a collection still to come<br/>(plan pins the code that will run)" .-> CSurvey: every verifier of these bindings
pipeline_sha256(run contract)execution/pipeline.py(pipeline_snapshot, existing field), checked byverify_execution_snapshot; completed cohorts check the assessment against the run's own contract (as the report build already did)dataset_registry_sha256(plans, contracts)certification.runcompared the plan to livedataset.pyeven for completed cohortsexecution/dataset.py(dataset_registry_snapshot); completed cohorts skip live code checks; a collection still to come keeps the live guardtask_adapter_sha256/task_scoring_dependencies_sha256(records.py,swde.py)certification.runpathcode_sha256(repair.py,pipeline.py)code_snapshots: false: hash only, nothing could verify it latercode_snapshots: true; copies are stored andverify_repairalready checks themimplementation_sha256(self_hosted.py)orchestrator_sha256resource_summary,resource_evidence,lexbench/verification) already read theorchestrator.pycopy stored with the evidence;execute()checks live only before callschecker_sources/producer_sources(visual receipts)receipt_is_currentand Web Searchverifycompared to live modulesfrozen-sources/beside the receipt; receipts written before resolve insrc/harness/reporting/data/frozen-sources/(bytes of all five checker modules at 8738917, listed with path and commit inindex.json)Live comparisons that remain are pre-call guards: a frozen plan must run the code it pinned, and an in-flight run resumes on its original commit (existing policy).
What changed
reporting/visual.py:checker_paths,keep_sources,sources_are_frozen; the reference browser's binary discovery (binary_env,local_executables) is declared on thechromiumadapter, sobrowser_executablehas no instance literal. Its privatefile_sha256now comes fromrecord_io.BrowserAdaptergainsbinary_envandlocal_executables.browser_use/report_visual.py,trajectory_replay/webarena_report_visual.py,web_search/visual.pykeep copies when they write a receipt.web_extract/pipeline.py,repair.py,certification.py,dataset.py(registry_source) as in the table.Allowlists
harness.reporting.visual -> chromiumremoved; file is now{}).test_shared_hash_json_helpersfrozen-copy exemptions: 3 → 2 (reporting/visual.pyno longer needs its own hash helper).Baselines
Unchanged (
tests/baselinespass without 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.uv run --frozen lexbench-webfetch version: same scoring-source hash.Breaking changes
None to commands. New Extract run contracts and repair contracts carry
pipeline_snapshot/dataset_registry_snapshotandcode_snapshots: true; an Extract run that was initialized but not yet given a contract, with a strayexecution/pipeline.pythat differs from the code, now stops instead of ignoring it.Part of #379 (step 2 follows in a separate PR). Follows up #368 (last instance-literal allowlist entry).