fix(engine): warn on out-of-range self-plagiarism similarityThreshold - #8939
fix(engine): warn on out-of-range self-plagiarism similarityThreshold#8939galuis116 wants to merge 1 commit into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
normalizeSelfPlagiarismPolicy only warned for non-number thresholds and let resolveSelfPlagiarismConfig silently clamp values like 5 or -1. Reject non-finite and out-of-[0,1] numbers with a warning and the default. Closes JSONbored#8862
5e9eaf9 to
86160e6
Compare
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-26 14:49:14 UTC
Review summary Nits — 4 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 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 LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
normalizeSelfPlagiarismPolicynow warns and falls back to the default threshold whensimilarityThresholdis non-finite or outside[0,1], matching sibling normalizers instead of silently clamping viaresolveSelfPlagiarismConfig.5,-1,NaN, and a valid0.9threshold.Closes #8862
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm --workspace @loopover/engine run buildnode --test dist-test/miner-goal-spec-parser.test.js(18 passed)If any required check was skipped, explain why:
Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — engine MinerGoalSpec normalizer only; no UI surface change.
Notes