Repository navigation
🐞 Reuse Lindsey App credentials for sync conflict repair - #754
Merged
Merged
Conversation
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>
This was referenced Nov 25, 2026
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.
Sync with main can already publish through the saved Lindsey GitHub App, but its automatic conflict preview previously depended on separate
LINDSEY_RESOLVE_URLandLINDSEY_RESOLVE_SECRETsettings. 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 #412Sign 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-v1GET 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 itsmain-branch local adapter does not export the newprepareConflictPreviewinterface. 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