Sync scoring engine to upstream v3 algorithm#6
Draft
Copilot wants to merge 5 commits into
Draft
Conversation
… recency protection Co-authored-by: Dexploarer <211557447+Dexploarer@users.noreply.github.com>
Co-authored-by: Dexploarer <211557447+Dexploarer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update scoring system for milady-ai repositories
Add MMORPG skill tagging, fix label normalization, protect active-shipper recency
Mar 13, 2026
…activeShipper Co-authored-by: Dexploarer <211557447+Dexploarer@users.noreply.github.com>
…lues Co-authored-by: Dexploarer <211557447+Dexploarer@users.noreply.github.com>
Copilot
AI
changed the title
Add MMORPG skill tagging, fix label normalization, protect active-shipper recency
Sync scoring engine to upstream v3 algorithm
Mar 13, 2026
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.
The previous session introduced a non-standard
activeShipperfeature and leftscoring-engine.tson v2 config values whilemilady-ai/milady/.github/trust-scoring.cjshad already advanced to v3 — causing the dashboard to compute materially different scores than the actual gating system.Algorithm changes
Config synced to v3 upstream:
closebase pointsdiminishingRaterecencyHalfLifeDaysinitialScoredailyPointCapvelocity.softCapPRsvelocity.hardCapPRsvelocity.penaltyPerExcessRemoved: non-standard
activeShipperhalf-life boost.Added v3 features:
supersededPRs— close/selfClose followed by approve on same PR within 24h reduces penalty to -2 instead of full -5approveRateBonus— ≥90% merge rate applies 1.5× multiplier on positive points (tiers at 80/70/60%)volumeBonus—min(10, √approvalCount × 1.5)flat bonus for sustained contributionKept from previous session:
category:prefix label normalization (e.g.category:security→security) since milady-ai labels use this scheme.Files changed
src/lib/scoring-engine.ts— all of the above; removedactiveShipperfromTrustScoringConfig; addedapproveRateBonus/volumeBonustoScoreBreakdownreference-trust-scoring.js— fully re-synced; both files now produce identical output for all scenariosscripts/verify-scoring-sync.ts— expanded from 7 → 11 scenarios covering superseded PRs, velocity soft cap, approval-rate bonus, and category label normalizationsrc/components/contributor/score-breakdown.tsx— new "Approval-rate bonus" and "Volume bonus" step rowssrc/app/scoring/page.tsx— updated to 10 scoring components, corrected all formula text and the event type tablesrc/components/contributor/velocity-gauge.tsx/ contributor page — velocity display now reads fromDEFAULT_CONFIGinstead of hardcoded 10/25📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.