Conversation
ctawiah
force-pushed
the
ctawiah/AIC-3485/prompt-fingerprint-round-trips
branch
2 times, most recently
from
October 1, 2026 01:04
9f27137 to
0f595e5
Compare
ctawiah
force-pushed
the
ctawiah/AIC-3485/prompt-fingerprint-round-trips
branch
from
October 1, 2026 03:50
0f595e5 to
b72f419
Compare
ctawiah
marked this pull request as ready for review
October 1, 2026 03:53
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 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 b72f419. Configure here.
Co-authored-by: Cliff Tawiah <ctawiah@users.noreply.github.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
Prompt sync uses fingerprints to decide whether local and LaunchDarkly variations still represent the same state. Equivalent API defaults could produce different fingerprints, and an omitted custom model version previously could not converge with the concrete version stored by LaunchDarkly.
What changes
parametersandcustommaps.For example, this authored intent remains unchanged:
If the current version is
4, sync plans and applies the effective variation withmodelConfigVersion: 4. A later model-config release is picked up by the next sync.Verification
go test ./internal/sync/...go test ./...go vet ./internal/sync/... ./cmd/syncgit diff --checkNote
Overview
Fixes prompt sync so equivalent LaunchDarkly API shapes and “follow latest” model configs no longer cause endless drift between local files, fingerprints, and server state.
Fingerprint normalization strips only no-op defaults on variation
modelmaps—emptyparametersandcustomare treated like absent—while still fingerprinting meaningful empties such asmetadata.Follow-latest model configs: when a variation has
modelConfigKeybut omitsmodelConfigVersion, planning resolves the latest config via a newModelConfigGET (by key, not catalog list), merges it into the in-memory payload for comparison, and tracksLocalFollowsLatestModelConfig. Server writes use the resolved version; local pulls keepmodelConfigVersion: 0on disk so the next sync can pick up newer model-config releases.Execution/revalidation drops per-resource pre-write fingerprint checks in favor of a full plan re-read after confirmation (still re-reading server state only for ambiguous writes). Local apply/verify paths account for follow-latest when checking post-pull fingerprints.
Reviewed by Cursor Bugbot for commit a3cefe4. Bugbot is set up for automated code reviews on this repo. Configure here.