Vote for your favorite SkillMD. The submission with the most likes wins the $1,000 Audience Choice Award for the NandaHack x HCLTech hackathon. Voting is open through September 25.Vote now →
in reviewhumanPR #112Trust

Expand behavioral test coverage for the score_average trust plugin

Adds additional behavioral tests for the reference score_average trust plugin.

Author

shreyad2806 avatar

@shreyad2806

github profile →
Status
In review
Opened on
Jul 8
Branch
hackathon/shreya-score-average-tests

Description

The pitch.

## Summary

Adds additional behavioral tests for the reference `score_average` trust plugin.

These tests improve coverage of the existing implementation without changing production behavior.

## Tests Added

- running average calculation
- byzantine evidence handling
- unknown evidence fallback
- confidence progression
- confidence saturation
- placeholder attestation
- stake accumulation
- stake isolation
- score isolation between agents

## Validation

- [x] Existing plugin tests pass
- [x] New tests pass
- [x] Ruff checks pass
- [x] Pyright checks pass

Try it

Open PR on GitHubView diff

Checkout locally

git fetch origin pull/112/head:pr-112
git checkout pr-112