Graeber & Wengrow's "The Dawn of Everything" shows in passing that the transition from foraging to agriculture isn't/wasn't at all simple. Coincidentally my spouse shared this with me: the Kwakwaka’wakw (Kwakiutl) people turned an entire island into a farm, which European settlers completely missed and called "untamed wilderness"--somehow not asking how it happened that nearly every plant on that island was edible.
https://crmuseum.ca/2023/09/28/how-does-your-garden-grow/