It's just lie. If, for example, NATO gives clear guarantees to join in for Ukraine in the case of next attack(if any agreement on ending the war is reached), then there will definitely not be a next attack.
According to your theoretical, Russia could attack and immediately invalidate Ukraine's ability to join NATO by re-triggering a conflict.
Come on is this stuff really that hard?