feat(scoring): act on unmodeled-constant drift (Fixes #811) - #832
Conversation
Persist a stable upstream drift report when gittensor defines scoring constants gittensory does not model, so scheduled issue filing and operator status can act on the signal instead of burying it in snapshot warnings alone. Fixes JSONbored#811 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 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. |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
gittensory · advisory review Reviewed 6 changed file(s) — two independent AI reviewers. Changed files: Suggested action: ✅ Safe to merge — both reviewers found no blocking issues. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Suggestions
Worth double-checking
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #832 +/- ##
=======================================
Coverage 96.71% 96.71%
=======================================
Files 108 109 +1
Lines 14641 14674 +33
Branches 5298 5314 +16
=======================================
+ Hits 14160 14192 +32
Misses 102 102
- Partials 379 380 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Exercise env fallbacks, resolve/no-op paths, error-source skip, and long constant summaries so changed lines meet the 97% patch coverage requirement. Co-authored-by: Cursor <cursoragent@cursor.com>
|
|
JSONbored
left a comment
There was a problem hiding this comment.
Good:
- Cleanly adds unmodeled upstream scoring-constant drift detection.
- Integrates with scoring refresh and upstream drift refresh.
- Tests cover create/resolve/severity behavior.
- CI, Codecov, Superagent, and Gittensory gate are passing.
Bad:
- Minor metadata nit: scoring-model refresh hardcodes entrius/gittensor:test in one source path.
Change requests:
- Fix the metadata nit.
Stop hardcoding entrius/gittensor:test in refreshScoringModelSnapshot; let syncUnmodeledScoringConstantDrift resolve repo/ref from env defaults. Addresses review on JSONbored#832. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@JSONbored |
JSONbored
left a comment
There was a problem hiding this comment.
PR #832 — feat(scoring): act on unmodeled-constant drift (Fixes #811) [kiannidev]
Action: APPROVE
Issue #811: FULLY CI: pass
Good:
- syncUnmodeledScoringConstantDrift opens/updates/resolves a stable-fingerprint upstream drift report
from both refreshScoringModelSnapshot and refreshUpstreamDrift; severity scales with count. - The maintainer's only nit (hardcoded entrius/gittensor:test) is resolved — source is now env-driven
(GITTENSOR_UPSTREAM_REPO/REF) with a fallback, and a test asserts the override. - 9-case unit suite + integration coverage. On-direction backend work.
Summary
findUnmodeledUpstreamConstantsoutput into the existing Pipeline-B upstream drift surface via a stable-fingerprint report (scoring_model/unmodeled_scoring_constants).refreshScoringModelSnapshotandrefreshUpstreamDrift, resolving the report when all upstream constants are modeled.fileUpstreamDriftIssues+GITTENSORY_AUTO_FILE_DRIFT_ISSUEScan now auto-file GitHub issues for this signal.Test plan
npx vitest run test/unit/unmodeled-scoring-drift.test.tsnpx vitest run test/unit/scoring.test.ts test/unit/upstream-ruleset.test.tsGITTENSORY_AUTO_FILE_DRIFT_ISSUES=true, confirm scheduledfile-upstream-drift-issuescreates/updates an issue when upstream adds an unmodeled constantFixes #811