How about the simple idea of cash on delivery or stage payments ?
If a company is so under funded that it can't finance a project itself,then stage payments,if larger firm then nothing until you deliver a tested working system that does what it's meant to in the real world used by the people it's meant to be used by..
Are there any claw back clauses in the gov contracts ?