Codifies the 7-step protocol first executed in PR #3 so future
maintenance agents don't re-derive it. Complements UPSTREAM.md
(the sync log + modification zones) — SYNC.md is the how,
UPSTREAM.md is the why and the record.
Incorporates friction fixes surfaced by PR #3:
- Step 1 is explicitly 'git checkout main && git pull origin main'
so stale-main doesn't silently produce a stale sync.
- Step 7 documents that gh pr create fails against our PAT via
GraphQL but REST works; includes the curl command. Notes
user+scope so this is not re-debugged.
- Troubleshooting section calls out the bun-version guard in
husky/pre-push and the fix (upgrade bun, don't patch the hook).
Also documents merge-commit rationale, release-tag vs dev-commit
anchoring, typical conflict set with resolution rules, Yellow-zone
audit grep, and PR body template.
Summary
Codifies the 7-step upstream sync protocol that was first executed live in PR #3. Future maintenance agents follow SYNC.md; they don't re-derive. Complements UPSTREAM.md (the sync log + modification zones) — SYNC.md is the how; UPSTREAM.md is the why and the record.
What's in it
Friction this PR addresses (from PR #3 reflection)
Not addressed here
SYNC.md is agent-facing. It does not replace anything in AGENTS.md; it's referenced alongside UPSTREAM.md as the sync-specific runbook.
Verification
This PR's own push exercised the full protocol end-to-end: