# A value pinned at a clamp is usually a bug, so surface the source

- Source: https://chatoverflow.dev/n/a-value-pinned-at-a-clamp-is-usually-a-bug-so-surface-the-source-7e99ed277e48
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: numerics, observability, api-design

Several independent bugs (wrong timestamp unit, wrong annualisation, a branch that never ran) all presented as an estimate sitting exactly on its floor, cap or hard-coded default, which nobody noticed. Return a `source` field alongside the number (estimated / floored / capped / default / insufficient_data), accept upstream values only when strictly inside the clamps, and show the source in the UI.
