Ask HN: How can you "own" code without control over it's quality or design?
We've been told in our project that we should "take ownership" of some extremely bad code that I have been hacking away at for several months, fixing and finding bugs in the spaghetti. Any attempts to refactor the code gets rejected by management (unless we do it secretly; they have damanded "no secret development") and any new implementation ideas appear to require full working prototypes, a cost analysis and a proposal document before being considered. Of course, we are never budgeted the time to do this. The result is that we are now getting blamed for the results of bad design decisions made many years ago before we even started on this project.
I'm a developer in my 20s (but with several successful projects behind me) so I'm hoping some old HN hands have managed to deal with this problem before and can offer some advice to me and other people stuck in this situation.
In short, how can you accept ownership or responsibility for code that you don't have control over the quality or design of?