Skip to content

🐝 Detect semantic configuration migrations during Lindsey sync - #857

Merged
JFWooten4 merged 2 commits into
mainfrom
silver-spoon
Dec 4, 2026
Merged

JFWooten4 merged 2 commits into
mainfrom
silver-spoon

Conversation

@starlight-pony

Copy link
Copy Markdown
Contributor

A successful Git merge does not necessarily preserve the topic branch's behavior. When upstream changes which configuration file is authoritative, topic edits can survive in the old file without taking effect in the integrated application.

  • The ledger-page split in 📂 Separate ledgers page into entries and headers stellar/stellar-docs#2398 exposed this problem: the corrected ledger-header destinations remained in the root redirects.json while Mintlify loaded config/redirects.json. Detect changed local JSON $ref targets against both branch tips and their common ancestor, including independently introduced configurations.
  • Extend the three-way browser review introduced in 🐞 Restore contextual ChatGPT fallback and file-level Lindsey sync commits #759 to include related, cleanly merged configuration files. Review the active reference, migrate relevant topic edits, and assess whether the superseded file can be removed without affecting other consumers.
  • Build on the supporting-file decisions and substantive repair commits established in 🦗 Enable full-context Lindsey branch-sync repairs #761 so explicit PR synchronization cannot dismiss a detected migration as a routine no-op. Validate the active reference and compatible record changes before publication, retaining the existing reviewed-commit workflow.
  • For arrays keyed by source, present differing records rather than duplicating entire JSON files in the browser prompt. Apply scoped additions, replacements, and removals locally against the merged destination, preserving other records and rejecting duplicate or inconsistent edit identities.

Regression coverage exercises a clean textual merge that loses a redirect change, preservation of unrelated upstream records, independently added configurations, and malformed record edits. Focused simulations and a replay of the two historical ledger-header corrections passed; the full repository test suite has not been run. Automatic compatibility verification requires a comparable JSON baseline and supported record structure; otherwise the migration needs contextual review.

🔗 Source

Web

cc author @JFWooten4

JFWooten4 and others added 2 commits December 3, 2026 18:37
Detect relocated local JSON configuration references against both branch tips and their common ancestor, include related clean files in the reviewed integration, and prevent publication when compatible changes disappear from the active target. Require explicit decisions for superseded paths, preserve unrelated incoming entries, and add regression coverage for clean merges and independently introduced configurations.

Co-authored-by: ChatGPT 6.2 <noreply@openai.com>
Provide source-keyed differences rather than duplicating large JSON snapshots in the browser prompt. Apply scoped row edits to the verified merged destination locally, preserving unchanged rows and enforcing stable identity. Cover the compact representation and malformed edits in regression tests.

Co-authored-by: ChatGPT 6.2 <noreply@openai.com>
@JFWooten4
JFWooten4 merged commit 56ab43b into main Dec 4, 2026
24 checks passed
@JFWooten4
JFWooten4 deleted the silver-spoon branch December 4, 2026 01:31
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.

2 participants