'well-flagged' is a colloquialism meaning that people were aware that this was going to happen before it actually did. It can be known through the Taiwanese government regularly announcing that it was going to buy more defensive weapons, or it might have been reported openly in the newspapers and on television. The term itself comes from the historic act of using flags to send messages between ships.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.