Intent-Code Divergence
Medium
- Confidence
- 98% confidence
- Finding
- The `_score_to_level` function inverts the expected mapping by labeling higher numeric scores as lower risk and lower scores as more severe risk. In a contract-review tool, this can misclassify dangerous contracts as safe and drive incorrect downstream decisions, which is a genuine integrity and decision-support vulnerability even though it is not code-execution related.
