Skip to content

refactor(scoring): reuse the shared measurement mean - #189

Merged
drewstone merged 1 commit into
mainfrom
refactor/knowledge-simplify
Sep 5, 2026
Merged

refactor(scoring): reuse the shared measurement mean#189
drewstone merged 1 commit into
mainfrom
refactor/knowledge-simplify

Conversation

@drewstone

@drewstone drewstone commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

RAG scoring and KB evaluation maintained copies of measurement averaging already defined in src/statistics.ts.
Use the existing mean in six callers and delete both copies and one redundant filter.
Empty inputs remain zero, and non-finite measurements remain excluded.
The published API does not change.

Validation:

  • Lint, source and contract typechecks, build, and packed-package checks pass.
  • The API record remains current: 995 exports across six entry points.
  • Hosted Linux CI: 855 tests pass and 7 optional tests skip; network tests are enabled.
  • Official GEPA and SkillOpt integrations pass both tests against the packed package.
  • The local Linux activation suite passes all 9 tests with one worker and unchanged deadlines.
  • All 55 claim-evidence tests pass in Docker with --init, which reaps orphaned processes.

@drewstone
drewstone merged commit 390f2da into main Sep 5, 2026
2 checks passed
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.

1 participant