What you are describing happens in an ideal world of software development. It exists but it's rare.
When it wasn't, I shopped my resume around.