Repository navigation
Done
Labels
refactorCodebase quality roadmap
Description
Part of #336. Size: M.
Problem
Several live modules have their source bytes bound by frozen execution evidence, so any edit to them invalidates historical plans, certificates or receipts. The convergence work repeatedly stopped at these files:
src/harness/web_extract/pipeline.pyandself_hosted.py: frozen execution snapshots andimplementation_sha256bind them, so Extract method and engine registrations stay there andscore_runcannot route throughbenchmark_adapter.py(Define one method adapter protocol and a self-registering registry #318, Define the benchmark adapter interface and the pipeline skeleton each track follows #338).src/harness/web_extract/dataset.py:dataset_registry_sha256in frozen cohort plans binds it, so benchmark hooks live in a separate module (Web Extract report variants on the shared report template #370, Conformance examples for every track, versioned native record schemas and Extract benchmark hooks #378).src/harness/web_extract/swde.pyandrepair.py: hash-bound, soanalysis.pykeeps importingswde.record_value_keyand repair reads stay unvalidated (Web Extract: benchmark-declared fields and one renderer #324, Versioned schemas for the artifacts stages exchange #327).src/harness/lexbench/resource_matrix.pyandresource_profiles.py:orchestrator_sha256in frozen protocols binds them, so they still name one browser (One browser adapter and participant registry for the browser tracks #321).src/harness/reporting/visual.py: visual receipts bind its current hash, so the last instance-literal allowlist entry stays (refactor: one track registry, generic stage make targets, instance hooks and Yours docs #368).
Direction
Frozen evidence should bind a copy of the code it ran, stored with the evidence (as data/latency-certifiers/*.py.txt already does for latency certifiers), not the bytes of a module that current code keeps evolving. Migrate each binding to a frozen copy plus its hash, verify historical evidence against the copy, then finish the blocked refactors listed above.
Done when
- No current module's bytes are a verification input for historical evidence; historical evidence verifies against stored copies.
- The blocked items above are done: Extract runner calls benchmark hooks, product and record-cohort reports share one evidence model, the remaining instance literals are gone.
Metadata
Metadata
Assignees
Labels
refactorCodebase quality roadmap
Activity