Repository navigation
feat(sync): persist manifests in LaunchDarkly - #852
Merged
Merged
Conversation
This was referenced Oct 6, 2026
ctawiah
added this pull request to stack #844
October 6, 2026 14:29
ctawiah
marked this pull request as ready for review
October 7, 2026 14:56
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d2de224. Configure here.
ld-ahartmann
approved these changes
Oct 7, 2026
ctawiah
force-pushed
the
ctawiah/sync-remote-manifests
branch
2 times, most recently
from
October 7, 2026 15:44
f7134df to
ee34f22
Compare
Base automatically changed from
ctawiah/sync-attachment-cleanup-safety
to
main
October 8, 2026 00:44
ctawiah
force-pushed
the
ctawiah/sync-remote-manifests
branch
from
October 8, 2026 00:48
ee34f22 to
086ee1a
Compare
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.

Context
Prompt sync currently stores its reconciliation baseline in a committed
.launchdarkly/manifest.yamlfile. That keeps each checkout isolated, but separate branches and clones do not share the latest synchronized state. Gonfalon now provides source-scoped, project-scoped manifest endpoints with resource versions for optimistic concurrency.This layer replaces local manifest persistence with those endpoints. Local prompt, tool, and skill files remain unchanged, and sync continues to use the manifest as the common ancestor when comparing local and LaunchDarkly state.
What changes
The command still requires a Git repository and origin. It does not add source or project flags to the normal sync workflow.
Review focus
Verification
go test ./cmd/sync ./internal/sync/source ./internal/sync/repository ./internal/sync/manifest ./internal/sync/prompt ./internal/sync/bootstrap ./internal/sync/detach ./internal/sync/apigo test ./...go vet ./internal/sync/... ./cmd/syncgit diff --checkRelated changes
Review the stack in this order:
Note
Overview
Moves the prompt sync reconciliation baseline from committed
.launchdarkly/manifest.yamlto LaunchDarkly’s source-scoped sync manifest API, so clones and branches share versioned state.Adds GET/PATCH clients and a remote
manifest.Storethat merges per-project manifests, diffs fingerprints into versioned upserts/deletions, batches patches, treats 409 as “run sync again,” and re-reads after ambiguous writes. Manifest entries now carry remoteVersion; local YAML/format-version persistence is removed.Sync requires a configured Git
originand derives a canonicalgit:host/reposource (SSH/HTTPS). Bootstrap, normal sync, watch, and detach useLoad/Updatewith optimistic concurrency; project keys are discovered from managed files plus Git-deleted.launchdarklypaths. Minor UX/docs tweaks and tolerance when.launchdarklyis missing during orphan cleanup.Reviewed by Cursor Bugbot for commit 086ee1a. Bugbot is set up for automated code reviews on this repo. Configure here.