One-way water sponge

No.13606429 ViewReplyOriginalReport
Scientifically speaking how would you design a soil that can soak and retain all rainwater in wet seasons and wont let the sun bake it dry in dry season?
I believe a top layer of coarse gravel would be essential, as it easily allows water to percolate down but blocks sunlight from hitting the wet layers underneath