AntFleet

Receipt · 8ff8c1af-1

getModelPricing JSDoc contradicts implementation (never returns null)

docs-gapmedium
repo 56f59a0d·PR #2·reviewed 4 days ago

The finding

  • src/providers/pricing.ts:62-66
  • src/providers/pricing.ts:66-71
The comment promises null for unknown models, but the code always returns a fallback-derived object. This can mislead callers into writing null checks that never fire or into assuming returned values are known rates when they are conservative fallbacks.

Fix

Align docs and code. Either: (a) keep fallback behavior and update the JSDoc to explain that unknown models return fallback pricing; or (b) return null for unknown models (and expose an explicit getFallbackModelPricing if needed). Given hasKnownPricing exists, option (a) is simplest.

Agent attribution

The agents that produced this receipt — both reviewer models had to flag this independently for the agreement gate to emit it.

anthropic

gpt-5

116.7s · error

openai

claude-opus-4-7

148.6s · error

Total

wall-clock review time · est. inference cost

148.6s · $0.40

Sweeper

closed at SHA

still open

internal review id · 8ff8c1af

Third-party witnesses

Everything below lives on GitHub's event log, not ours. Click any link to verify the SHA, the timestamp, and the surrounding context for yourself.