test(slop): fix #3939 golden-fixture and rubric-doc drift breaking main - #3975
Conversation
#3939 raised the elevated-band floor from 25 to 31, so two stacked weak signals (30) now land in low, not elevated. Five fixtures still asserted the pre-recalibration boundary; adjust the genuine multi- signal cases to a real 3-signal stack (45) and the single-signal cases to their now-correct low band, per the recalibration's own stated design (elevated requires >=45 or 3x weak).
…ments The #3939 recalibration updated slopBandFor and SLOP_RUBRIC_MARKDOWN but left ISSUE_SLOP_RUBRIC_MARKDOWN (which renders through the same banding function) and two comments still documenting the old 1-24/25-59 split.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-07 08:33:00 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 5 non-blocking
Concerns raised — review before merging
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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3975 +/- ##
=======================================
Coverage ? 93.69%
=======================================
Files ? 373
Lines ? 34952
Branches ? 12796
=======================================
Hits ? 32748
Misses ? 1584
Partials ? 620
🚀 New features to boost your workflow:
|
Summary
#3939(c760477, b8607bd) recalibrated the deterministic slop-band thresholds insrc/signals/slop.ts(low1-24→1-30,elevated25-59→31-59) but the matching golden-fixture update totest/unit/slop.test.tsnever landed onmain—mainhas been failingvalidate-code(5 tests intest/unit/slop.test.ts) since#3939merged, blocking every PR built on top of it.buildSlopAssessment/buildNonSubstantivePaddingFinding/golden-fixture cases updated to the post-recalibration bands, per the recalibration's own documented design:elevatednow needs ≥45 or a genuine 3-signal stack, not two weak signals at 30).slopBandForbehavior:ISSUE_SLOP_RUBRIC_MARKDOWN(issues route through the sameslopBandFor) and the header comment directly aboveslopBandFor.Scope
main).src/signals/slop.ts,test/unit/slop.test.ts.Validation
npx vitest run test/unit/slop.test.ts— 63/63 pass.npx tsc --noEmit— clean.1-24/25-59confirms no remaining stale threshold references.Safety
site//CNAME/lovablechanges.