Repository navigation
feat(sync): prepare repository source links - #997
Merged
Merged
Conversation
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
October 31, 2026 00:06
78b0f58 to
9230dea
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 2, 2026 02:26
9230dea to
cdcb879
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 2, 2026 02:50
cdcb879 to
ee718fe
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 3, 2026 00:29
ee718fe to
cfda53b
Compare
This was referenced Nov 3, 2026
ctawiah
changed the base branch from
main
to
ctawiah/sync-descriptor-detach-3bbf
November 3, 2026 00:33
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 4, 2026 19:46
cfda53b to
96dc97f
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
2 times, most recently
from
November 4, 2026 22:26
61e1d38 to
d7fc6f9
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 6, 2026 14:46
76bcff6 to
a7757b8
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 6, 2026 15:19
a7757b8 to
aaab795
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 6, 2026 15:48
aaab795 to
5e1b35e
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 6, 2026 16:15
5e1b35e to
9ecf927
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 6, 2026 16:47
9ecf927 to
91222c5
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 6, 2026 17:13
91222c5 to
a0f9e3d
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 6, 2026 17:39
a0f9e3d to
35b148d
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 6, 2026 18:02
35b148d to
6b088f4
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 6, 2026 18:30
6b088f4 to
ee08810
Compare
ctawiah
force-pushed
the
ctawiah/sync-link-preparation-3bbf
branch
from
November 6, 2026 19:09
ee08810 to
0e8bf55
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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 64ba2d4. Configure here.
nkester-ld
approved these changes
Nov 9, 2026
Add the link package. Prepare validates the target, the source path, the format, the mapping, and the compiled projection without a write. Write publishes the descriptor after the review. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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
Link needs a step that validates everything and writes nothing, so that the command can show a preview first.
What changes
Preparevalidates the target, the source path, the format, the mapping, and the compiled projection.Writepublishes the descriptor only after the review.Design notes
Preparereads only the named file and its static dependencies.Review focus
Preparewrite any file?Verification
make buildgo test ./...golangci-lint run ./...Related changes
🤖 Generated with Claude Code
Note
Overview
Adds
internal/sync/link, a two-phase workflow for linking repository source files to LaunchDarkly descriptor refs:Preparevalidates the target, builds the reference, compiles the source, and renders descriptor bytes without writing, andWrite/Rollbackhandle publish and undo after review.Preparesnapshots any existing descriptor and, on relink, carries forwardtoolsandskillsfrom the current file so relinking file/select/map does not drop attachments.Writepublishes viaWriteDescriptorFromonly if on-disk state still matches the snapshot (ErrorStateChangedwhen another writer wins).Rollbackrestores the prior descriptor or removes a new one only when this process actually wrote, so refused or skipped writes do not clobber a concurrent link.Tests cover preview-without-write, concurrent-write refusal, rollback semantics, and tools/skills preservation.
Reviewed by Cursor Bugbot for commit 44c39e4. Bugbot is set up for automated code reviews on this repo. Configure here.