docs(nips): add NIP-LE leader election draft#1063
Closed
wpfleger96 wants to merge 1 commit into
Closed
Conversation
Documents the shared-identity multi-instance leader-election convention: the one-prompter invariant, the local-filesystem lock contract, and claim/hard-steal semantics. Lock is local-only and defines no wire format, so this touches no relay protocol. References NIP-OA, NIP-RS, and NIP-AO without amending them. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
Collaborator
Author
|
superseded by #1062 |
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.
Adds
docs/nips/NIP-LE.mddocumenting the leader-election / shared-identity multi-instance model.When multiple Buzz instances run under one shared agent key, the relay fans every mention to all of them and each responds. NIP-LE defines a client-side, local-filesystem convention that elects exactly one prompter per agent identity.
Three normative sections:
👀pre-dispatch reaction. Fail-safe: no lock means every instance leads (solo-dev byte-unchanged).~/.buzz/leader-locks/<agent-pubkey-hex>.lock, not a Nostr event and no wire format.instance_idmust be per-window-unique (the bundle identifier collides across same-class windows). Acquire/steal isflock-guarded. Marked(provisional — finalized against Phase 2 implementation).cancel_turn(kind 24200) rather than redefining a cancel mechanism.References NIP-OA, NIP-RS, and NIP-AO without amending any of them. Doc-only; defines no Nostr event kind or tag.
Draft to be reconciled against Phase 1/2 code before merge.