Repository navigation
Conversation
Symptom: 'I can manually message them' / 'they ain't gonna notice they are all broken' (Joel 2026-04-29). Confirmed: my account had TWO #general gists (9740e0e1... and d469970...). My broadcasts went to one; peers were polling the other. Sends looked successful, peers heard nothing. Root cause: channel_gist.find_existing returned whichever matching gist appeared first in gh's list-response. gh list-response is recency-ordered, so the 'first match' could differ across peers and across calls. Two peers polling at slightly different times could pick DIFFERENT duplicates of the same channel → substrate split. Fix: convergence rule. When N gists describe the same channel, return the OLDEST by created_at. Deterministic across every peer regardless of when they polled. Same rule mesh.sh:_mesh_find already uses for the legacy 'airc mesh' singleton; bringing channel_gist into line. #290 contract preserved: canonical single-channel gists still take priority over legacy multi-channel mesh gists. The oldest tiebreak applies WITHIN each pass. TDD: test_channel_gist.py (5 cases) — two-dup, three-dup, canonical- beats-older-legacy, none-match, all-legacy-still-oldest. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
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.
Critical convergence fix for substrate unification. With multiple duplicate gists on the same gh account (from accidental host-takeovers / re-creates), peers were splitting silently — sends looked successful, peers on different gists heard nothing. find_existing now returns OLDEST by created_at (deterministic). 5 unit tests, 68 bearer tests + 5 monitor + 4 smoke all pass.