Charles Stross's Accelerando. Manfred's cat was behind everything. First contact with aliens is made by digital communist space lobsters. Earth ends up taken apart for its base materials by sentient corporations running alien-derived "Economics 2.0" protocols. The election is won by the AIs who are flooding the country with technologically resurrected copies of everyone from history.