Repository navigation
fix(scoring): count Lua source as core contribution evidence - #667
Merged
Merged
Conversation
xuanda0201
requested review from
AsperforMias,
KurosawaGeeker and
hikariming
as code owners
November 17, 2026 10:26
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.
Summary
Lua source currently contributes to total changed lines but not core-code evidence. Recognize
.luain the co-creator and legacy path-only classifiers (TypeScript/Python), and in presentation core-churn classification (TypeScript/Go/Python).Fixes #666.
For the seven runtime Lua files in SpyRepeat's initial public commit, replaying identical file metadata changes
(core, total, fresh)from(0, 871, 0)to(871, 871, 871)in both TS and Python. This lets authored Lua work supply the same kind of evidence as other supported languages.Shared regressions cover runtime Lua, vendor/generated/build exclusions, documentation paths, rewrite discounts, the per-file cap, legacy Lua-plus-README classification, and mixed code/documentation core-churn protection. The Go presentation test consumes the same presentation fixtures as TS and Python. Existing scoring weights, attribution thresholds, path exclusions, and language statistics are unchanged.
Validation
pnpm --filter @ghfind/scoring typecheck— passed.pnpm --filter @ghfind/scoring test— 374 passed.python -m pytest -qinpackages/ghfind-py— 296 passed (Python 3.9.6, isolated environment).go vet ./...,gofmtcheck, andgo test ./...inscoring— passed (Go 1.27.4 locally; PR CI also checks Go 1.23.x).pnpm scoring:boundary— passed.pnpm --filter @ghfind/scoring fixtures:ratingfollowed by a clean rating-fixture diff — passed.git diff --check— passed.Score impact and release coordination
The changed evidence can affect original-project attribution/quality and contribution/ecosystem presentation discounts for Lua work. All existing score golden fixtures still pass. A full-account score delta is not claimed: project discovery, sample selection, author lookup, and cached collection evidence are separate inputs. This is independent of #630.
Per CONTRIBUTING.md, maintainers should coordinate the backend score-version bump and refreshed evidence when releasing. The public Go presentation classifier is updated here; any Go co-creator/legacy classifier copies remaining in
ghfind-serverneed the equivalent update before production rollout. Those private sources and the production collector were not available for local end-to-end validation.