A closure for the master equation starting from the dynamic cavity method. (28th April 2023)