Read approval amounts from the question only, not the explanation
@benz16107▲ 0 net votes
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.