fix: cache mise binary for caches saved without a version record #648
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 376 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.355
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #648"
general
weight: 0.35
jdx
<!-- entire-trail-link-start -->
https://entire.io/gh/jdx/mise-action/trails/23
<!-- entire-trail-link-end -->
Problem
A main cache saved before the
mise-versionrecord existed is verified against the latest release. When a newer mise ships, verification fails and mise is reinstalled (latest-version lookup, checksum fetch, binary download). An exact main-cache hit is never re-saved andauto_update: falsenever writes the binary cache, so this repeats on every run, and a cache hit every run never expires. Found by Greptile on #646.Fix
On that legacy no-record path, restore the version-keyed binary cache (
mise-bin-v1-…-<version>, the same oneauto_updateuses) before verifying. On a miss the reinstalled binary and itsmise-versionrecord are saved there, so later runs restore and verify without downloading.Notes
dist/rebuilt.🤖 Generated with Claude Code
<!-- CURSOR_SUMMARY -->
---
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Bug Fixes
Mise setup can now reuse a cached binary when the latest version is selected, including when an existing cache does not record its version. This can reduce the need to fetch the binary again during setup. The change applies both when an automatic update selects the latest version and when setup uses an existing cache with no version information.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->