A customer hands an old phone across a store counter to trade it in. An agent inspects it, notes a cracked corner, and records a grade. Somewhere behind that counter a set of systems now has to decide what the customer is owed, whether a promotion still applies, and where the device goes next.