Action formalism for geometric phases from self-closing quantum trajectories | Synapse