Conversation
Walk .launchdarkly and compile prompt variations and versioned tools into a common resource with a stable fingerprint. Top-level system, user, and assistant tags become messages; nested tags stay in the prompt body.
ctawiah
removed this pull request from stack #790
September 11, 2026 23:01
ctawiah
added this pull request to stack #795
September 11, 2026 23:01
ctawiah
removed this pull request from stack #795
September 11, 2026 23:51
ctawiah
added this pull request to stack #799
September 11, 2026 23:51
ctawiah
force-pushed
the
ctawiah/AIC-3335/parse-local-synced-resources
branch
from
September 14, 2026 21:14
2e0e6cd to
faf6f4b
Compare
…e-local-synced-resources
ctawiah
marked this pull request as ready for review
September 16, 2026 21:55
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 910e2dc. Configure here.
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
This is the foundation for Phase 1 of code canonical sync for AI Config prompt variations. The CLI needs a stable local format that people can edit and that later planning requests can send to Gonfalon without recreating or interpreting server-owned fields.
This PR is intentionally local-only. It defines how prompt files are discovered, parsed, validated, and converted into sync resources. It does not call Gonfalon, calculate fingerprints, create plans, or apply changes.
Summary
.prompt.mdformat.Verification
go test ./internal/sync/... -count=1Note
Overview
Introduces Phase 1 local loading for AI Config prompt variations: the CLI can scan a
.launchdarklyworkspace and turn on-disk.prompt.mdfiles into sortedSyncedResourcevalues with JSON payloads, without talking to Gonfalon yet.Adds the
internal/syncdomain model (SyncedResource,Variation, completionMessages, agent vs completion modes) andinternal/sync/local.Compile, which walks.launchdarkly/<project>/configs/<config-key>/*.prompt.md, skips unrelated files, and fails with path-bearingParseErrors when validation breaks.File format: YAML front matter (
formatVersion: 1, strict known fields viayamldecoder) carries identity,upsert, model config, andoutputFormat; the markdown body becomes either trimmed agent instructions or completion messages parsed from<system>,<user>, and<assistant>tags (including nested tags), with untagged completion bodies treated as a single system message. Front matter cannot includeinstructions/messages; filename stem must matchkey.Deps:
github.com/adrg/frontmatter(and indirect TOML/yaml.v2 entries in the module graph). Covered by broad unit tests for compile, sort order, edge cases, and parse validation.Reviewed by Cursor Bugbot for commit d295e82. Bugbot is set up for automated code reviews on this repo. Configure here.