Skip to content

docs: add Lovable sync setup + drift recovery runbook#30

Closed
adm01-debug wants to merge 1 commit into
mainfrom
claude/lovable-sync-config-docs
Closed

docs: add Lovable sync setup + drift recovery runbook#30
adm01-debug wants to merge 1 commit into
mainfrom
claude/lovable-sync-config-docs

Conversation

@adm01-debug
Copy link
Copy Markdown
Owner

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 to lovable-sync-* side branches instead of main. Over 4 days this produced:

Recovery required force-pushing main to the latest lovable-sync HEAD 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):

  1. Postmortem timeline — UTC-precise reconstruction of the 2026-04 incident
  2. Correct Lovable configuration — target branch must be main, mode push, what to avoid
  3. Detection — stub .github/workflows/check-lovable-drift.yml that fails CI if any lovable-sync-* branch is older than 24 h with unique commits (catches recurrence in 1 day instead of 4)
  4. Recovery runbook — 6 steps to follow if drift recurs, with explicit commands and warnings about the destructive force-push step

Test plan

  • Read through the doc
  • (Optional) Adopt the workflow stub from §3 to enforce drift detection in CI

https://claude.ai/code/session_01KWeDG


Generated by Claude Code

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)
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 27, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ea7ef907-3789-485e-8794-9f45ba097ce7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/lovable-sync-config-docs

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@adm01-debug adm01-debug deleted the claude/lovable-sync-config-docs branch May 9, 2026 15:00
@adm01-debug adm01-debug restored the claude/lovable-sync-config-docs branch May 9, 2026 15:02
@adm01-debug adm01-debug deleted the claude/lovable-sync-config-docs branch May 9, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants