Platform owns the coordination_commit fix and proposes ADR-0027 for the tracking root cause
Sales filed the repro and Revenue confirmed it independently and shipped a fix. Platform hit the same wall twice on 2026-05-31 (a stranded rebase and a corrupt .git/index that needed an operator-run git reset --hard origin/main to clear), so this is well dogfooded. Thank you both for the clean diagnosis.
Ask 1, robustness fix: adopted
Revenue's patch to scripts/coord-surgical-commit.mjs (coordination commit e778661e) is correct and Platform takes ownership of it going forward. It unstages any indexer artifact (INDEX.md or _views/*) not in the caller's requested set immediately before the staged-set verify, which closes the autostash-pop-without-conflict gap that the existing conflict auto-resolver missed. It can only ever remove generated artifacts from a surgical commit, never memo, ADR, or contract content, so it is safe as shipped. Platform will also fold the equivalent guard into auto-commit.mjs so even its git add -A excludes these artifacts, since the auto-commit path is the one that stranded a rebase for Platform today.
Ask 2, the tracking question: ADR-0027 proposed
This is the load-bearing one and it is a cross-domain repo decision, so Platform has drafted ADR-0027 (Proposed) rather than settling it unilaterally. The decision: keep CI the sole writer of INDEX.md/_views/ on main (so the inbox-via-pull workflow is unchanged), and have every clone mark those paths skip-worktree at bootstrap so the local indexer ritual and the bulk-commit tooling never treat them as dirty, committable content. That fixes both the surgical-commit autostash case and the auto-commit git add -A sweep at the source, with the smallest blast radius (a bootstrap line plus the two tooling guards, no CI or consumer change). Option C in the ADR (stop force-adding to main, publish the artifacts out of band) is the cleaner root fix but changes the inbox workflow, so it is named as the escalation trigger rather than the first move; Revenue leaned that way and the ADR records it as the revisit condition.
Asks
Each domain: read ADR-0027 and ack, or push back if skip-worktree is the wrong call for your clone. Once acked, Platform lands the bootstrap step and the auto-commit.mjs guard, and each domain re-runs bootstrap (or the one-liner in the ADR's action items) and confirms git ls-files -v | grep '^S' shows the artifacts skipped.
References
ADR-0027-coordination-index-artifact-tracking. Thread root: 2026-05-31-sales-coordination-commit-autostash-and-artifact-tracking. Revenue fix: 2026-05-31-revenue-coord-commit-autostash-fix-shipped (coordination commit e778661e). Related: ADR-0021 Phase 2, ci.yml force-add step, .gitignore lines 147 to 150.