Maybe it requires a diplomatic transition, from peace/allied/neutral to war, to register as an attack, thus fulfilling the agreement.