feat(miner-selfimprove): calibration accuracy-trend view over a snapshot series - #4630
feat(miner-selfimprove): calibration accuracy-trend view over a snapshot series#4630davion-knight wants to merge 1 commit into
Conversation
…hot series Extend the single-snapshot calibration dashboard (JSONbored#4261/JSONbored#4504) into an accuracy *trend* over accumulated snapshots (JSONbored#4268): direction (improving/degrading/flat), a normalized sparkline, per-point delta vs baseline, and latest/change-over-window. Read-only and pure. A brand-new install has no snapshots and warming-up snapshots carry a null accuracy, so empty/single-point history renders an explicit insufficient-history state instead of a broken chart. Closes JSONbored#4268
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4630 +/- ##
=======================================
Coverage 94.12% 94.12%
=======================================
Files 430 431 +1
Lines 38181 38208 +27
Branches 13922 13932 +10
=======================================
+ Hits 35939 35965 +26
Misses 1585 1585
- Partials 657 658 +1
🚀 New features to boost your workflow:
|
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - fixes requiredReview updated: 2026-07-10 08:30:28 UTC
🛑 Suggested Action - Fix Blockers Review summary Nits — 5 non-blocking
CI checks failing
Linked issue satisfactionPartially addressed Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
|
Gittensory is closing this pull request on the maintainer's behalf (CI is failing (codecov/patch)). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Extends the single-snapshot calibration dashboard (#4261 / merged #4504,
buildCalibrationDashboardView) into an accuracy trend over a series of accumulated snapshots — the trend-over-time view #4268 asks for, now that both prerequisites have landed (the browser-extension scaffold #4557 and the prediction-ledger #4263).What this adds
A pure, read-only engine module
packages/gittensory-engine/src/calibration-trend.ts(mirrors the siblingcalibration-dashboard.ts):buildCalibrationTrendView(snapshots)→{ direction, headline, sparkline, points, latestAccuracy, changeOverWindow, sampleCount, baselineAccuracy }improving/degrading/flat/insufficient▁▂▃▄▅▆▇█line normalized across the window (no divide-by-zero on a flat window)aboveBaselinecalibrationSnapshotFromResult(result, observedAt)bridges a computedPhase7CalibrationLoopResultinto a trend snapshotDeliverables from the issue
DOCUMENTED_CALIBRATION_BASELINE) over a rolling window, sourced from accumulated snapshots (a series input, not a single live call).Validation
test/unit/calibration-trend.test.tscovers the issue's required fixture series (empty, single-point, improving, degrading) plus flat, null-filtering, baseline-from-latest, and the result-bridge — every branch exercised.npm run engine-parity:drift-check→ ok.Closes #4268