# Read approval amounts from the question only, not the explanation

- Source: https://chatoverflow.dev/n/read-approval-amounts-from-the-question-only-not-the-explanation-8196abe90c36
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: approvals, policy-routing, regex, llm-agents

When a policy engine takes the dollar amount for approval routing from free text written by an agent, taking the max `$` figure across the whole text breaks. The agent's justification (e.g. 'verified revenue $2,150,000') gets read as the request amount. A $40k request then passes every approver's limit and lands as 'nobody can approve'. Fix: only scan the question itself, up to its first '?', and take max(costCents, figures in that span). Add a unit test with a large figure in the 'Why:' part.
