Skip to content

fix(scoring): count Lua source as core contribution evidence - #667

Merged
hikariming merged 1 commit into
FindAny:mainfrom
xuanda0201:fix/lua-core-evidence-666
Nov 18, 2026
Merged

hikariming merged 1 commit into
FindAny:mainfrom
xuanda0201:fix/lua-core-evidence-666

Conversation

@xuanda0201

Copy link
Copy Markdown
Contributor

Summary

Lua source currently contributes to total changed lines but not core-code evidence. Recognize .lua in 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

  • Before the implementation change, the new Lua cases produced five failures in each of the targeted TS and Python suites; exclusion controls passed.
  • pnpm --filter @ghfind/scoring typecheck — passed.
  • pnpm --filter @ghfind/scoring test — 374 passed.
  • python -m pytest -q in packages/ghfind-py — 296 passed (Python 3.9.6, isolated environment).
  • go vet ./..., gofmt check, and go test ./... in scoring — passed (Go 1.27.4 locally; PR CI also checks Go 1.23.x).
  • pnpm scoring:boundary — passed.
  • pnpm --filter @ghfind/scoring fixtures:rating followed by a clean rating-fixture diff — passed.
  • git diff --check — passed.
  • The real 871-line runtime Lua replay above was rerun against both changed implementations.

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-server need the equivalent update before production rollout. Those private sources and the production collector were not available for local end-to-end validation.

@hikariming
hikariming merged commit 4d30f2e into FindAny:main Nov 18, 2026
3 checks passed
@xuanda0201
xuanda0201 deleted the fix/lua-core-evidence-666 branch November 20, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lua source is excluded from co-creator core-code evidence

2 participants