The described situation for human-written code isn't much better. What actually works is putting a ticket (or project) number in the commit message, and making sure everything relevant gets written up and saved to that centralized repository.
And once you have that, the level of detail you'd get from saving agent chats won't add much. Maybe unless you're doing deliberate study of how to prompt more effectively (but even then, the next iteration of models is just a couple months away)?
I think "provenance gap" or temporal history can be helped by understanding what you have asked agentic systems to write, understand things written, and verified them.
We aren't yet at a point where something large or extended is easily pushed to agentic coding management - your point of provenance and memory is key here.