[GH-ISSUE #111] In production builds Git AI should refuse to overwrite any existing note #48

Closed
opened 2026-03-02 04:11:28 +03:00 by kerem · 1 comment
Owner

Originally created by @acunniffe on GitHub (Oct 16, 2025).
Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/111

@svarlamov and I realized

  • that if a remote process wanted to update notes (to add more information or remove a prompt), it could contend with clones. Each cloned version would try to overwrite the cloud changes -- last would win, but there's more of them.
  • two clones could disagree about authorship log if there were bugs or new features added. We don't want them in contention. Last can win now

Solution

  • First check for a note with the same name, if empty write.
Originally created by @acunniffe on GitHub (Oct 16, 2025). Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/111 @svarlamov and I realized - that if a remote process wanted to update notes (to add more information or remove a prompt), it could contend with clones. Each cloned version would try to overwrite the cloud changes -- last would win, but there's more of them. - two clones could disagree about authorship log if there were bugs or new features added. We don't want them in contention. Last can win now Solution - First check for a note with the same name, if empty write.
kerem closed this issue 2026-03-02 04:11:29 +03:00
Author
Owner

@svarlamov commented on GitHub (Nov 3, 2025):

Actually, since we moved to the git notes-based approach from the earlier refs-based approach, this question around remote changes being overwritten by outdated clones is no longer an issue. Tested to ensure that clones will pick up the changes and merge them into their own trees before pushing again, so the changes are preserved without issue.

<!-- gh-comment-id:3478955005 --> @svarlamov commented on GitHub (Nov 3, 2025): Actually, since we moved to the git notes-based approach from the earlier refs-based approach, this question around remote changes being overwritten by outdated clones is no longer an issue. Tested to ensure that clones will pick up the changes and merge them into their own trees before pushing again, so the changes are preserved without issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#48
No description provided.