Actually, encountering this I think I suddenly understand why people get upset about Kickstarter projects not delivering. It is a misunderstanding of a probabilistic situation.
There is a fundamental issue here that is not being discussed is that is the science funding system incentivises people rushing results out and not check if they are real. If Julia had been more careful she would have found the results were false, not published, and not received a grant. So much of the problems with a lack of reproducibility in science is the direct result of people rushing to get out “novel” data and not checking if it is real because if they do they don’t get funded.
Yes, someone whose conclusion was not due to error in programming may have gone without a grant. That's perfectly all right. We optimize policy in the aggregate.
You can make an argument that says that we're not correctly placed on the manifold but no single situation will be convincing for that and you'll need to make some case that a policy change to move to some other point in this space will yield a positive total improvement.
What you are asking for is the equivalent of saying "firing programmers when a bug is found will result in better software"
In science it will result in much less interesting science being done, because this will desincentivize risk.
The big problem in science funding is that it already incentivizes low risk projects (you should have preliminary results that proof it works...) so let's not make it worse
From a software perspective it is like paying developers by the number of lines of code delivered and telling them to not worry about bugs. Not an approach that is likely to deliver quality software.
What we need in science is to find a way that people have the time and incentives to publish results that are as accurate as possible.
Somewhat off topic I do wonder if we would get better software if we fired programmers if bugs were found. I suspect we would not get much code written, but the code that was written would be very high quality.
I would hand back a grant that was given due to a false result that occurred because of my error. Julia should be praised for doing the right thing with the paper, I just think she should think about going further.
It would be more like losing the remaining payments of a multi-year contract because it gets broken. Or in your analogy, like losing your job.
Sometimes there are going to be mistakes.
But if you sold me software to solve a problem and I paid you for it. You wouldn't refund me if the software didn't solve my original problem? I feel like that's scam but I could be wrong. I didn't get what I was promised and hence I am entitled to a refund.
If you got a laptop with broken keyboard or the privacy friendly app that you paid extra for turned out to be facebook, would you not want your money back?
You can't just use mistake as an excuse if you promise "specific" things like written in your implicit/explicit contract.
Many countries have pro-consumer laws which protect them from exactly this.
That this researcher was honest makes their future research twice as productive in my eyes. Not only are they less likely to make that kind of mistake again, you can probably trust them to not lie about their research.
I think you are correct to want remedy. A big fix, a refund, a workaround, an apology, a million dollars, or a withdrawal of the study. Depending on circumstances.
In my world, most of the implicit contracts are. Shit happens and try to fix it. Yours might be refund me.
Apart from that many great discoveries were made based on initial mistakes.