Skip to content

feat(music-data): reuse cached chart statistics of unchanged model sources - #29

Merged
nichinichisou0609 merged 2 commits into
mainfrom
feat/music-data-stats-cache
Oct 6, 2026
Merged

nichinichisou0609 merged 2 commits into
mainfrom
feat/music-data-stats-cache

Conversation

@nichinichisou0609

Copy link
Copy Markdown
Collaborator
  • Pins ournotes-deck v0.0.3, whose ournotes_sim::SOURCE_SHA256 is the SHA-256 of the deck model's sources.
  • nnnotes._deck.info() and provenance.deck name it as sourceSha256 (schema and docs updated).
  • music-data --stats-cache DIR keeps each chart's deck statistics in DIR under the SHA-256 of what they are a function of: the model's sources, --seeds and 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. DIR then holds this export's charts only.
  • The summary counts cached and measured charts (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

nichinichisou0609 and others added 2 commits October 6, 2026 12:03
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>
@nichinichisou0609
nichinichisou0609 merged commit 1bdbd64 into main Oct 6, 2026
7 checks passed
@nichinichisou0609
nichinichisou0609 deleted the feat/music-data-stats-cache branch October 6, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant