AntFleet

Disagreement · 6e0f16bf-anthropic-4

preprocess_signals catches ValueError but not TypeError on numeric coercion

solo Opus
repo 703f69ec·PR #2·reviewed 5 days ago

Opus finding

preprocess_signals catches ValueError but not TypeError on numeric coercion

lowbugmedium
  • agent/signals.py:148-153
row.get returns the string from CSV (or None, coerced to 0 by `or 0`), so in normal CSV ingestion only ValueError is realistic. However, if upstream ever passes a dict with non-string/non-numeric values (e.g. lists from a different ingestion path), float() raises TypeError, which is uncaught. Minor robustness gap.

Recommendation

Catch `(TypeError, ValueError)` for symmetry with settlement.py's coercion in redemption_price_per_share.

Other reviewer

The other reviewer flagged nothing in this file/line range.

Why this didn't post

This finding didn't meet AntFleet's unanimous agreement threshold. Both frontier models review every PR independently; only findings they both flag with the same severity and category are posted to the PR. This one fell through.

read the methodology →

From the same review

These findings passed the unanimous gate on the same PR review. The disagreement above was filtered out; the findings below were posted.