AntFleet

Disagreement · 70b30f32-anthropic-4

formatPRComment cost rounding can display '$0.00' for sub-cent reviews

solo Opus
repo e24ef98c·PR #8·reviewed 1 week ago

Opus finding

formatPRComment cost rounding can display '$0.00' for sub-cent reviews

lowmaintainabilityhigh
  • apps/web/lib/pr-comment.ts:35-38
estimatedCostUsd is rendered with toFixed(2). If the actual cost is, e.g., $0.004, the footer will print '~$0.00' which is misleading and arguably a docs/observability bug since AGENTS-style direct/technical voice should not show cost as zero. Same concern for totalMs: Math.round(500/1000) = 0s.

Recommendation

Use a small-number-aware formatter (e.g., '< $0.01' when cost < 0.005), and similarly for sub-second timings.

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 →