Repo Identity Check¶
Run before editing any project repo. Verifies the working tree matches the repo: block in projects/<slug>.yaml. If anything disagrees, STOP and ask Devin.
Commands¶
git -C <root> rev-parse --show-toplevel # must equal repo.root
git -C <root> remote -v # must include every entry in repo.remotes
git -C <root> branch --show-current # see "branch rule" below
Branch rule¶
- Branch must be one of
repo.protected_branchesOR a feature branch off one of them. - If on a protected branch, double-check intent before any commit (esp. KP
production= deploy target).
On mismatch¶
- Wrong root → wrong clone. Stop.
- Missing remote → YAML may be stale, or the clone is partial. Ask Devin.
- Unexpected branch → ask Devin, especially if it's protected.
When to run¶
- First code-touching action of any session for StampReady or KindredPics
- After any
git remote/git checkoutyou didn't run yourself - Before any
git push
Promotion ladder¶
Today: manual. After 2nd repeat of the same check pattern → add to project-specific QA playbook. After 3rd repeat → script as scripts/verify-repo.ps1 (P3).