As I said, the travel agency needs to know the company guidelines or have ready access to them and know how to interpret them.
Since the traveler also has those rules available, they can "work" the system if they choose to. Hopefully they do not do so just to get miles.