Skip to content

feat(sync): derive automatic local source identity - #797

Merged
ctawiah merged 1 commit into
ctawiah/AIC-3336/git-repo-identityfrom
ctawiah/AIC-3336/local-source-identity
Sep 11, 2026
Merged

feat(sync): derive automatic local source identity#797
ctawiah merged 1 commit into
ctawiah/AIC-3336/git-repo-identityfrom
ctawiah/AIC-3336/local-source-identity

Conversation

@ctawiah

@ctawiah ctawiah commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds automatic source selection for workspaces that do not have a usable Git origin. This layer combines Git discovery with the persisted installation identity.

  • Prefers normalized Git source identity when it is available.
  • Falls back to sha256(installation ID + canonical workspace path) without exposing the local path.
  • Uses the nearest .launchdarkly parent as the workspace root, or the current directory before bootstrap.
  • Normalizes symlinks, adds no source metadata file, and exposes no source-selection flag.

Moving a non-Git workspace intentionally creates a new local source identity.

Verification

  • go test ./internal/sync/... -count=1
  • Focused lint for ./internal/sync/source

@ctawiah
ctawiah added this pull request to stack #795 September 11, 2026 23:04
Base automatically changed from ctawiah/AIC-3336/installation-identity to ctawiah/AIC-3336/git-repo-identity September 11, 2026 23:50
@ctawiah
ctawiah merged commit fcd6a43 into main Sep 11, 2026
6 checks passed
@ctawiah
ctawiah deleted the ctawiah/AIC-3336/local-source-identity branch September 11, 2026 23:50
@ctawiah

ctawiah commented Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

Consolidated with Git detection and installation identity in #789.

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