feat(config,server): X02 S4 — stable server IDs - #9
Merged
Merged
Conversation
…int at add, preserved by rename/update/re-add) servers.yml records gain an id (srv-<16hex>, crypto/rand), minted once at server add for genuinely new entries only. RenameServer/UpdateServer carry the whole entry so preservation is structural. AddServer's upsert preserves the existing id — and deliberately leaves legacy id-less entries id-less: minting there would silently re-key dash's name-hash fallback identity underneath live references (X02 ADR §1.3's silent-re-key prohibition). Legacy servers keep working through dash's fallback; adoption stays the consumer's explicit decision. Pinned: mint shape + uniqueness, re-add preserves id, legacy stays id-less on upsert, rename/update preserve id byte-identical.
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.
Mirror sync of Forgejo main f15355a (X02 ADR §1.3): servers.yml records gain an additive id (srv-<16hex>), minted once at server add for new entries, preserved by rename/update/re-add; legacy id-less entries stay id-less (no silent re-key).
server list --jsonemits id. Pinned: mint shape/uniqueness, re-add + rename + update preserve id byte-identical, legacy stays id-less on upsert.