Repository navigation
Pin @policyengine/calibration-tree 0.1.6 - #328
Merged
Merged
Conversation
@policyengine/calibration-tree 0.1.6 lists artifacts/reform_validation.json among a staging run's copied files (STAGING_RUN_FILE_NAMES). The dashboard still pins 0.1.5, which doesn't, so the test fails on its assertion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0.1.6 names artifacts/reform_validation.json among a staging run's copied files and reads a structured run's declared reform validation from artifacts/, as the collector now copies it. The stored staging reader and the fake collector store drop their local stand-in types for that name, the reader's comments no longer describe a difference from the package's Hugging Face reader, and the version 2 run tests drop their casts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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 #327. Tracker task 5a · 7a of "1. Collector/Emitter", which depends on 5a · 7 (#326, merged).
Why
#326 merged with
@policyengine/calibration-treestill pinned at 0.1.5. To read a version 2 run'sartifacts/reform_validation.jsoncopy, it added local stand-in types for that file name. 0.1.6 is on npm, released by PolicyEngine/microcosm-collector#84 (5a · 6), and names the file among a run's copied files.What changes
frontend/package.jsonpins 0.1.6, andfrontend/bun.lockfollows.frontend/lib/microcosm/stored-staging.tsdropsCopiedFileNameand itscopiedFilecast. It readsrecord.filesby the package'sStagingRunFileName, which now namesartifacts/reform_validation.json. Its comments no longer describe a difference from the package's Hugging Face reader: 0.1.6's reader also reads a structured run's declared reform validation fromartifacts/, with the same digest check.frontend/lib/microcosm/test-support/fake-collector-store.tsdropsFakeStagingRunFileName.What the Staging page shows doesn't change. Under 0.1.5, the reader already read the new copy through its local type. 0.1.6 keeps the copied-files index at schema version 1.
What else 0.1.6 changes, and whether the dashboard uses it
Changed or added in the package between 0.1.5 and 0.1.6:
staging-run-files.ts: the new file name,stagingReformValidationFileName, andloadCopiedStagingRun's reform validation choice. The dashboard uses only the type and the file-name list.staging-artifact.ts: the Hugging Face reader reads declared build and release manifests and reform validation. The dashboard doesn't call these readers; it reads only the collector's copies.calibration-tree-source-files.tsaddsstoreCalibrationTreeSourceFile, which stores a build's source-file copies, and now importsputfrom@vercel/blob.readCalibrationTreeSourceJson,calibrationTreeSourceFilePathand theCalibrationTreeSourceFiletype from this module, in the collector store reader and the fake collector store. These exports are unchanged.put.calibration-tree-publication.tsand the newcalibration-tree-source-copies.ts, which use it. The dashboard imports neither.staging-run-files-command.ts, which only the collector runs.Tests
Red-green:
c3c3c4aadds a test that the pinned package listsartifacts/reform_validation.jsonamong a run's copied files (STAGING_RUN_FILE_NAMES,isStagingRunFileName). Run by name on 0.1.5, it failed on its assertion.4da995apins 0.1.6 and removes the stand-in types.tsc --noEmitpasses. The tests were not re-run locally after it; CI runs them.Review
calibration-diagnostics-328-review-round1-2026-11-27.md, at4da995a): 0 high, 0 medium, 1 low.calibration-tree-source-files.ts. Corrected above; no code change.c3c3c4aand green at4da995a, and the package pin tests.stagingReformValidationFileName). The two differ only for a run with version 2 or 3 events but no readable run manifest or progress. Adopting the package's rule changes reader behavior, which is beyond this task.Bugs left: none.
What the merge waits for
Nothing else: 5a · 7 is merged and 0.1.6 is on npm. It waits only for review and for Anthony marking it ready and merging it.
🤖 Generated with Claude Code