Skip to content

[improve][docs] Clarify SetLinkOp side flip - #101

Merged
TheP2P (thep2p) merged 3 commits into
mainfrom
thep2p/docs-setlink-side-flip
Jul 29, 2026
Merged

[improve][docs] Clarify SetLinkOp side flip#101
TheP2P (thep2p) merged 3 commits into
mainfrom
thep2p/docs-setlink-side-flip

Conversation

@thep2p

Copy link
Copy Markdown
Collaborator

Spec-only: make the receiver-owned side flip on SetLinkOp link confirmations explicit in §3.2 step 8 and §4's change_neighbor reply, matching the opposite(side) §6.2 already writes. Lands ahead of the handler issues (#91, #94, #95) reading these sections.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the concurrent-insert protocol spec to explicitly state that SetLinkOp.side flips to the receiver-owned mirror slot when confirming a GetLinkOp, aligning Stage 1 and change_neighbor with the existing Algorithm 8 (check_neighbor) correction behavior.

Changes:

  • Clarifies in §3.2 step 8 that SetLinkOp.side is opposite(request.side) so the reply targets the receiver-owned slot in u’s table.
  • Updates §4.1 change_neighbor pseudocode to use SetLinkOp{ side: opposite(side), ... } and adds an explanatory note referencing receiver-owned semantics and §6.2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/protocol/concurrent-insert.md Outdated
Comment on lines +165 to +166
node replies `SetLinkOp{ nonce, side: opposite(request.side), level: 0, linked:
Some(accepting_node's Identity) }` directly to `u`. `side` is receiver-owned (Section 2), so the

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair on the notation — request was an undefined referent; switched to opposite(side) matching §4.1/§6.2's binding convention. Kept the flip itself, though: plain side is the ambiguity this PR exists to remove (it reads as echoing the request's side, which installs the reciprocal pointer in the wrong slot under receiver-owned semantics). The following sentence carries the definition.

@thep2p
TheP2P (thep2p) merged commit f11cce2 into main Jul 29, 2026
5 checks passed
@thep2p
TheP2P (thep2p) deleted the thep2p/docs-setlink-side-flip branch July 29, 2026 22:58
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.

3 participants