There are many movies/books which have an ending that is the foundation for the beginning of the story, an example is Terry Pratchett's book Pyramids. In a way these stories become trapped in a repeating circular process.
How can these types of stories be classified? What term is used for this type of dependency?