Publish per-target final loss attribution - #716
Merged
Conversation
anth-volk
marked this pull request as ready for review
August 18, 2026 19:52
MaxGhenis
added a commit
that referenced
this pull request
Aug 19, 2026
Root cause of the wheels-gate divergence, closed: CI tests the PR merge ref (branch + live main), and main's #716 changed microcosm.calibrate.solve, which the seed protocol's kernel source inventory attests. Every country's spec_sha256 therefore moved on CI but not on the pre-merge branch — the diagnostic step's per-module hash diff named the module and a byte diff of the installed file confirmed it. Merged main, then recomputed and re-pinned: be, uk, US spec shas; seed protocol implementation + compiled seed-map digests; the loader golden vector; and regenerated the F0 coverage evidence (41,380/41,380 fields, 40/40 inventory checks). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Fixes #715
Summary
Contract
Each valid target row adds
target_loss_weight,target_loss_weight_share,target_loss_scale,final_capped_scaled_error, andfinal_loss_contribution. The top-leveltarget_loss_basisrecords the formula, cap, target count, total weight, kinds, hash algorithm, and ordered-basis digest. Contributions reproducefinal_lossat1e-12relative or absolute tolerance.Consumer
Dashboard implementation: PolicyEngine/calibration-diagnostics#160.
The consumer mirrors Microcosm's schema-version-6 fixtures, hash algorithm, warning codes, and tolerance behavior. It prefers valid reported attribution, fails closed on partial or producer-withheld attribution, and reconstructs only version-pinned historical releases without backfilling artifacts.
Validation
packages/microcosm-calibratetests: passed before the schema contract updatemicrocosm-datacontract/release tests: passed after the v6 updateuv run ruff check .: passedgit diff --check: passed