Source ownership and licensing are written into the agreement before work starts.
Project-specific deliverables, handoff, and any buyout terms are spelled out in the SOW. PrimeCode may retain reusable internal tooling and components under a license so your project keeps running.
Repositories and stack documentation are handed over as agreed at delivery.