You own them. IP passes to you on payment, and the code usually lives in your own repositories. We sign an NDA before the start, and a data processing agreement where we handle your data or your customers' data. A fixed-price build can stop at the end of any milestone, and a time-and-materials one at the end of any two-week demo. You pay for the work done to that point, and we hand over the code, the documentation and the discovery outputs. On a time-and-materials build, if the work looks set to pass the estimate, we say so at a demo, with a revised estimate, and don't continue without your approval. On a fixed-price build a change in scope goes through a change request.