docs: add Lovable sync setup + drift recovery runbook#30
Closed
adm01-debug wants to merge 1 commit into
Closed
Conversation
After the 2026-04 incident where the lovable-dev[bot] started pushing to lovable-sync-* side branches instead of main and caused 4 days of silent divergence (9 stale PRs, 2540 commits accumulated off-main, all dependabot PRs orphaned), there was no documented configuration or runbook for recovery. Future contributors hit by the same bot misconfig would have to reverse-engineer the same investigation. This adds docs/LOVABLE_SYNC_SETUP.md with: - Postmortem timeline of the 2026-04 incident - The correct Lovable target-branch configuration (Lovable Settings → GitHub integration: target=main, mode=push) - A scheduled GitHub Action stub that detects stale lovable-sync-* branches within 24 h instead of 4 days - A 6-step recovery runbook (confirm divergence → decide canonical side → force-push if abandoned → close stale PRs → fix bot → communicate)
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a runbook documenting the Lovable ↔ GitHub sync configuration and how to recover from the kind of drift that caused the 2026-04 incident.
Why
On 2026-04-23 the
lovable-dev[bot]started pushing edits tolovable-sync-*side branches instead ofmain. Over 4 days this produced:lovable-sync-*PRsRecovery required force-pushing
mainto the latestlovable-syncHEAD and closing 11 stale PRs. There was no documented config or runbook, so anyone hit by the same misconfig would have to reverse-engineer the investigation.What's in the doc
docs/LOVABLE_SYNC_SETUP.md(222 lines):main, modepush, what to avoid.github/workflows/check-lovable-drift.ymlthat fails CI if anylovable-sync-*branch is older than 24 h with unique commits (catches recurrence in 1 day instead of 4)Test plan
https://claude.ai/code/session_01KWeDG
Generated by Claude Code