New internal documents provide a rare glimpse into how the tech giant appears to have stumbled into the Jan. 6 riot.