Repository navigation
Reject derived evidence built from an older headline result - #517
Merged
Merged
Conversation
Every artifact joined against headline_result_v2.json now records the sha256 of the result it was built from and that result's environment_id. check_evidence_drift.py fails when a derived artifact disagrees with the committed result: stale digest or environment, recomputed architecture map rows and substrate means, the rendered map table, the headline rows embedded in whole_estimator_experiments.json, the disparity report environment, and Pages copies that differ from their source. refresh_derived_evidence.py rebuilds the roadmap, hotspot audit, architecture map and embedded rows together and stages them before moving them into place. The freeze job runs it right after the canonical result is promoted, which was the cause of the drift: the architecture job joined against the previous freeze's result. Pages shows the environment, digest and commit.
This was referenced Nov 19, 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.
Part of #493. Part of #478.
Cause
The
architecture-mapjob inremaining-issues.ymlbuilds the roadmap, hotspot audit and architecture map from theheadline_result_v2.jsoncommitted on main. Thefreeze-resultsjob then promotes the new canonical result over it. So every freeze commit pairs a new headline result with derived files built from the previous one.Reproduced on main at f1ed528:
python benchmarks/rank_optimization_opportunities.py && python benchmarks/architecture_performance_report.pychanges 22 of 23flow_speedupvalues in the architecture map (LogisticRegression iris 20.14 committed, 18.33 in the result) and the roadmap.Change
benchmarks/evidence_provenance.py: the roadmap, hotspot audit, architecture map and whole-estimator file now carryprovenancewith the sha256 of the exactheadline_result_v2.jsonbytes, itsenvironment_id, and the commit the generator ran at.benchmarks/check_evidence_drift.py(stdlib only) fails on: a stale digest or environment id; architecture map rows or substrate means that differ from values recomputed from the result; a rendered map table that differs from the JSON; headline rows embedded inwhole_estimator_experiments.jsonthat differ from the result; a disparity report from another environment; adocs/*.jsonPages copy that differs from its source.benchmarks/refresh_derived_evidence.py: one command that rebuilds those artifacts in a staging directory, moves them into place together, then runs the check.flow.ymlvalidate step runs the test and the check;remaining-issues.ymlpromote step runs the refresh right aftercp, which removes the cause;pages.ymlpublish step runs the check before publishing. No new workflow.docs/architecture.htmlanddocs/benchmarks.htmlshow environment, short digest and commit.Not covered
disparity_history.jsonsnapshots are appended per freeze and are not recomputed by the check. Only the disparity report environment id is compared.source_commitis recorded but not compared. The canonical result does not record its own commit.validate_published_claims.py.Tests
Before, on main:
python benchmarks/check_evidence_drift.pyexits 1 with 29 findings (no provenance, 22 stale speedups, stale embedded rows).After:
python benchmarks/check_evidence_drift.pyexits 0.python benchmarks/test_check_evidence_drift.pyexits 0. It refreshes a scratch copy, then requires a rejection for each of 8 mutations and requires a refresh to repair a changed result.python tools/run_all.py(pinned Flow 88aac509, macOS, FLOW_OPT_LEVEL=0): passed 119/119.