The film is loosely based on the Philip K. Dick short story "We Can Remember It for You Wholesale". The film tells the story of a construction worker who suddenly finds himself embroiled in espionage on Mars and unable to determine if the experiences are real or the result of memory implants.