Skip to content

feat(sync): plan prompt variation changes - #791

Draft
ctawiah wants to merge 11 commits into
ctawiah/AIC-3336/git-repo-identityfrom
ctawiah/AIC-3340/sync-prompt-status
Draft

ctawiah wants to merge 11 commits into
ctawiah/AIC-3336/git-repo-identityfrom
ctawiah/AIC-3340/sync-prompt-status

Conversation

@ctawiah

@ctawiah ctawiah commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Context

This PR connects the local prompt representation to Gonfalon's planning endpoint. Planning is the first server interaction in the sync flow: the CLI sends complete local resources, and Gonfalon owns canonicalization, fingerprinting, manifest lookup, server comparison, conflict detection, and durable plan creation.

Requests are grouped by project because planning is project scoped. A normal run creates a durable plan that a later apply flow can execute. --dry-run performs the same comparison without persisting a plan. This PR does not apply changes to LaunchDarkly.

Summary

  • Adds prompt variation planning to ldcli sync prompt.
  • Groups local variations by project and sends complete resource payloads with the automatically resolved source identity.
  • Displays plan IDs and expiration times for durable plans, followed by each resource status and diff.
  • Returns the same comparison details without creating a plan when --dry-run is provided.
  • Groups JSON resources under their project plan so plan identity appears once.
  • Sends no repository identifier, requested action, or CLI-generated fingerprint.

Verification

  • go test ./internal/sync/api ./cmd/sync -count=1

Validate the repository, compile local resources, and check their status per
project through a typed sync API client. Keep request debugging isolated behind
a temporary flag.
@ctawiah
ctawiah added this pull request to stack #790 September 10, 2026 00:08
@ctawiah
ctawiah removed this pull request from stack #790 September 11, 2026 23:01
@ctawiah ctawiah changed the title feat(sync): add prompt status command feat(sync): add prompt variation planning client Sep 11, 2026
@ctawiah
ctawiah changed the base branch from ctawiah/AIC-3336/git-repo-identity to ctawiah/AIC-3336/local-source-identity September 11, 2026 23:14
@ctawiah
ctawiah added this pull request to stack #795 September 11, 2026 23:15
Base automatically changed from ctawiah/AIC-3336/local-source-identity to ctawiah/AIC-3336/git-repo-identity September 11, 2026 23:50
@ctawiah
ctawiah removed this pull request from stack #795 September 11, 2026 23:51
@ctawiah ctawiah changed the title feat(sync): add prompt variation planning client feat(sync): preview prompt variation plans Sep 11, 2026
@ctawiah
ctawiah added this pull request to stack #799 September 11, 2026 23:51
@ctawiah
ctawiah force-pushed the ctawiah/AIC-3340/sync-prompt-status branch from 3179f78 to a73abf6 Compare September 14, 2026 21:14
@ctawiah ctawiah changed the title feat(sync): preview prompt variation plans feat(sync): plan prompt variation changes Sep 15, 2026
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