A frontier commander’s revolt plunges the Tang into years of war, causing immense destruction and permanently weakening central authority.