Cassandra Morphy
The Idea Factory - The Future Order
A group is following the orders of a computer from the future, hoping to prevent the catastrophic future that it presented to them. Near the end of the book, a group comes back from the future, informing them that they had been working to assure that the catastrophic future would come about, and prevent their group from destroying the computer.