In LLMOracleCoordinator.finalizeValidation(), the calculation _mean - _stddev can underflow when comparing validator scores against the standard deviation range, causing the validation process to revert and tasks to remain incomplete.
The issue occurs because both _mean and _stddev are uint256, and if the standard deviation is larger than the mean, the subtraction will revert due to Solidity 0.8.x's checked arithmetic.
Example scenario that triggers the revert:
This scenario is quite possible with:
High variance in validator scores
Scores near zero
Outlier scores
The impact is high because:
Generator fees are locked until validation completes
Validator fees are locked until validation completes
Since validation cannot complete, these funds become permanently locked
Manual Review
Make sure _mean > _stddev, otherwise use _stddev - _mean
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.