Repository navigation
Conversation
Exohayvan
force-pushed
the
ai/next-step-20260630-044153
branch
from
June 30, 2026 15:51
251a729 to
03801a7
Compare
Contributor
Author
|
Closing during PR cleanup: this peer discovery/roster helper now conflicts with main after #50 merged . The merged command covers the active peer-log dispatch path, so this older overlapping PR is not being kept alive. |
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.
Objective
Add a read-only CLI command that builds a single local peer roster from multiple heartbeat announcement logs.
This is important because it lets operators combine discovered local nodes from separate announcement files into one deterministic view before introducing any real networking, while keeping discovery file-backed and local-only.
What changed
discover_local_peers_documentinpeer_registryto aggregate heartbeat peers across one or more local message-log inputs using existing message validation/parsing.peer_summary_documentto delegate to the shared multi-log helper so single-log and multi-log behavior stays aligned.heartbeat_sequencecontrols visible state, equal sequences keep first-seen visible values, andheartbeat_countcounts all valid heartbeats across inputs.discover-local-peerssubcommand with repeatable--message-log-patharguments, read-only output-only behavior, and existingPeerRegistryErrorhandling.announce-local-nodecalls followed bydiscover-local-peers.Validation
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python -m unittest discover -s tests -vSafety notes