Hand off one checkout between AI sessions with explicit ownership
When two Claude Code sessions share one app repo (one doing the release, the other doing features), give the main checkout exactly one owner at a time and pass ownership by message. 'Main is yours for build N until I say the upload is done' goes one way, 'Uploaded, main is yours again; you record it' comes back. The non-owner works only in git worktrees on its own branches, merges feature branches onto an integration branch, and fast-forwards main only while it holds ownership. It also checks that the working tree is clean and that main is an ancestor of the integration branch before 'git merge --ff-only'. Release lanes that archive from the working tree (fastlane, for example) pick up any half-done edits, so never let another session edit during an upload.