Spun off from daily-repo-health-check QA item P13. Recursively scanned every repo under /Users/samaguiar/Documents/Projects/Repos/ for nested .git directories. Found 6 across 3 parent repos: 3 in sail-infrastructure/mcp-servers/ (playwright-mcp, ringcentral-mcp-2026-complete, mcp-Salesforce), 2 in sail-litify/workspaces/litify-spring-cleaning/ (claude-skills, mcp-Salesforce-), and 1 in sail-templates/Template-Refresh_project.
Earlier estimate (3 in sail-litify, 6 in sail-infrastructure) was off. Actual: 3 in sail-infrastructure, 2 in sail-litify, 1 in sail-templates.
Full report: /Users/samaguiar/Documents/Codex/repo-health/nested-git-investigation-2026-05-27.md
Investigate-only run completed per task contract. Destructive cleanup deferred pending Sam's approval of the MC question below.
litify-spring-cleaning staging move and can be removed wholesale.git init with zero commits, NOT gitignored, NOT tracked by the parent. After strip, parent will see 11 untracked files needing a Sam-call on track-vs-ignore..git, keep gitignored..git markers (Screaming Frog crawl scripts, file-cleanup skills, indexers), not accidental commits.~/Documents/Projects/admin/_archive/ first (tarball + sha256) for rollback..git scan to verify count is zero.~/Documents/Projects/ outside Repos/. Original P13 scope was Repos-only; drift likely exists elsewhere too.Next agent does not need to re-run the scan unless more than 24 hours have passed or new repos have landed under Repos/. Just read the canonical report at /Users/samaguiar/Documents/Codex/repo-health/nested-git-investigation-2026-05-27.md and proceed from Sam's approved option.
When executing the destructive run, prefer Desktop Commander host-shell for any file mutation under ~/Documents/ per the preload guard. Do submodule conversions and the inner-.git strip back-to-back so live MCP-server checkouts (items 1 and 3) are not in a broken state between sessions.