feat: Scan Ledger — versioned scan history + trajectory UI#25
Open
New1Direction wants to merge 10 commits into
Open
feat: Scan Ledger — versioned scan history + trajectory UI#25New1Direction wants to merge 10 commits into
New1Direction wants to merge 10 commits into
Conversation
…otTrend/sparkline)
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.
Summary
Adds Scan Ledger — a versioned history of every repo scan that surfaces each repo's trajectory, making the product's "evaluations compound" thesis real (previously
saveRepooverwrote history on every re-scan).snapshotsIndexedDB store — one record per repo, additive v3→v4 migration (existing data untouched). A trimmed snapshot (health,fit,stars, flag titles,version,ts) is appended on everysaveRepo, ring-buffer capped at 30/repo. An existing repo's first re-scan seeds the prior scan so its history isn't lost.snapshots.js—toSnapshot/appendSnapshot/snapshotTrend/sparkline.FIT_ORDERis now exported fromdiff-analysis.js(instead of a 4th copy).prefers-reduced-motion.BACKUP_VERSION→ 2, each row clamped to 30 on import). Also fixes a pre-existing bug wheredecisionswere silently omitted from backups.Built subagent-driven from a committed spec + plan (
docs/superpowers/specs|plans/2026-06-15-scan-ledger.*), each task TDD-gated. Two independent reviewers (spec-compliance + code-quality) ran over the diff; all flagged items fixed.Test plan
npm test— 752 passing (new snapshots / store / backup cases)npm run lint— 0 errors