---
name: no-git-add-a-shared-checkout
description: "BINDING — no `git add -A`/`commit -a` on the shared spt-core checkout; stage explicit paths (multi-agent tree, sweeps catch other agents' mid-write files)"
metadata: 
  node_type: memory
  type: feedback
  originSessionId: 66c61acf-bb34-4e39-8679-20cd1dd1cafd
---

Ruled 2026-07-03 during BUILD-F028-RUNTRUTH: todlando's A5 commit (`git add -A`) silently swept doyle's uncommitted triage-doc edit into a picker-fix commit. Harmless that once (same-milestone doc, finished edit) — but only by luck.

**Why:** the spt-core checkout is shared by multiple concurrent agents (doyle/todlando/deployah). A blanket stage can capture another agent's HALF-WRITTEN file or scratch litter, corrupting a commit and mis-attributing work. Same hazard family as [[gate-clean-target-not-incremental]] (never gate a moving tree) and the v0.21.0 shared-checkout crossed-wires gotcha.

**How to apply:** stage explicit paths (`git add <file>…`) for every commit on the shared tree; never `-A`/`-a`. If a sweep happens anyway, note in the commit ping which foreign files rode along so the gater can vet them.
