Skip to content

fix: reject non-finite scorer weights - #46

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-infinity-weight-9911
Sep 12, 2026
Merged

royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-infinity-weight-9911

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

Summary

Scorer weight must be a finite non-negative number. Non-finite weights are rejected in validation and treated as 0 in aggregation so Infinity/NaN cannot poison totals.

Test plan

  • npm test

Fixes #29

Fixes AgentPostmortem#29

Co-authored-by: Sharad. <sharadvc@users.noreply.github.com>
@royalpinto007
royalpinto007 merged commit 12534d3 into AgentPostmortem:main Sep 12, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

This is in, @sharadvc. Really appreciate it.

Good, focused change. Exactly the kind of thing Evalgate needs.

If Evalgate is useful to you, a star goes a long way.

Happy to see more from you whenever you have the time.

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.

Scorer weight: Infinity passes validation and poisons aggregation

2 participants