Skip to content

🐞 Reuse Lindsey App credentials for sync conflict repair - #754

Merged
JFWooten4 merged 6 commits into
mainfrom
party-favor
Nov 25, 2026
Merged

JFWooten4 merged 6 commits into
mainfrom
party-favor

Conversation

@kefania-pony

@kefania-pony kefania-pony Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Sync with main can already publish through the saved Lindsey GitHub App, but its automatic conflict preview previously depended on separate LINDSEY_RESOLVE_URL and LINDSEY_RESOLVE_SECRET settings. This branch adds the Sweetiebot side of an App-authenticated resolver connection so selecting Resolve and sync with Lindsey can use the existing Magic Settings identity rather than a second shared secret.

  • Retrieve the Lindsey App private key from its existing configured source and discover the resolver through GitHub's App webhook configuration API when no explicit resolver URL is set. Restrict discovered endpoints to HTTPS /webhook, convert them to /resolve-conflicts, and allow explicit loopback HTTP only for local development. This extends the distinct-App setup introduced in 🔩 Route Kefania and Lindsey through separate GitHub Apps #412

  • Sign each resolver request with the App key using a versioned proof over the HTTP method, App ID, publishing repository, timestamp, nonce, and SHA-256 body digest. Require a successful lindsey-app-v1 GET preflight before sending conflict contents by POST, with specific failures for rejected identities, unreachable services, or unexpected responses.

  • Carry the actual publishing repository into sync conflict review, check the local Lindsey adapter and resolver when the user chooses automatic repair, and pass the authenticated callback into preview generation. The proposal diffs and explicit approval flow established in 🔩 Integrate Lindsey conflict proposals into Git recovery #235 and connected to Sync with main in 🕷️ Route syncs, repairs, and merges through Lindsey App #690 remain in place. Resolver setup failures continue to surface instead of falling back to a misleading generic conflict picker, as addressed in 🐜 Restore Lindsey conflict previews and keep Sync failures visible #725

  • Add mocked checks for App-signed request proofs, webhook discovery, preflight-before-payload ordering, rejection of unauthorized requests, passing the publishing repository to the resolver, and leaving the checkout unchanged when setup fails.

  • Companion dependency: The resolver introduced in 🔩 Provide Lindsey conflict-resolution interface for Sweetiebot lindsey-sync#4 currently accepts shared-secret POST /resolve-conflicts, while its main-branch local adapter does not export the new prepareConflictPreview interface. Matching server-side App-proof verification, GET preflight support, and adapter changes are still required. This PR changes Sweetiebot only; it does not establish that automatic repair now succeeds against the deployed service or that the previously blocked branch has synced.

The supplied evidence and the independent GitHub comparison both show eight changed files across three branch-only commits, with no reported omitted files or truncated patches. The added tests exercise mocked paths; a live end-to-end Lindsey resolver check is not established.

🔗 Source

Online · Local · Desktop

JFWooten4 and others added 6 commits November 24, 2026 20:49
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Assign the new resolver authentication test to the Lindsey test group and include its implementation in syntax checks. Preserve the dedicated GitHub App identity checks so the inventory gate and grouped local verification both cover the new test.

Co-authored-by: ChatGPT 6.2 <noreply@openai.com>
Assert the publishing repository instead of the removed App identity flag and return the authenticated preview callback in the new review result shape. Verify that the exact approved callback reaches conflict resolution while preserving the existing merge, cancellation, stale proposal, and attribution assertions.

Co-authored-by: ChatGPT 6.2 <noreply@openai.com>
@JFWooten4
JFWooten4 merged commit 7d20639 into main Nov 25, 2026
24 checks passed
@JFWooten4
JFWooten4 deleted the party-favor branch November 25, 2026 02:39
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.

1 participant