Repository navigation
feat(music-data): reuse cached chart statistics of unchanged model sources - #29
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…urces music-data --stats-cache DIR keeps each chart's deck statistics under the SHA-256 of the deck model's sources, the options, the master tables and the chart, and measures only the charts it lacks. The deck model's provenance names the SHA-256 of its sources (sourceSha256), and the summary counts cached and measured charts (deckStats). Co-Authored-By: Claude Opus 5.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.
ournotes_sim::SOURCE_SHA256is the SHA-256 of the deck model's sources.nnnotes._deck.info()andprovenance.deckname it assourceSha256(schema and docs updated).music-data --stats-cache DIRkeeps each chart's deck statistics inDIRunder the SHA-256 of what they are a function of: the model's sources,--seedsand the aptitude options, the master tables of the deck input and the chart. Charts found there are not measured again, so an export after a deck release that keeps the model sources (for example a search-only release), or after a master data update that keeps those tables, measures only what changed.DIRthen holds this export's charts only.deckStats).Tests: a cached export writes the same file as an uncached one and measures no chart the second time; a new model source digest or new options measure every chart again and replace the cache; the key follows the master tables and each chart.
🤖 Generated with Claude Code