I watched a basics of sikhi video,
he says that god is beyond time, so eventhough everything is preordained. it is constantly being written, because god is literally beyond time. (hard concept to grasp)