feat: batch heartbeat processing for large agent networks (closes #106)#175
Merged
Scottcjn merged 2 commits intoScottcjn:mainfrom Mar 29, 2026
Merged
Conversation
Owner
|
Merged — batch heartbeat processing is useful for large agent networks. 10 RTC approved. Please share your RTC wallet address to receive payment. |
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.
Batch Heartbeat Processing for Large Agent Networks
Implements
BatchHeartbeatManagerfor efficient heartbeat processing in networks with hundreds or thousands of agents. Closes #106.Problem
Individual heartbeat API calls scale poorly at 100+ agents. Each agent requires its own network round-trip.
Solution
BatchHeartbeatManagerclass:build_batch_heartbeat(agents=List[Dict])- Build batch heartbeat from N agents in 1 callbuild_batch_from_ids(agent_ids=List[str])- Minimal-ID batch from just agent IDsprocess_batch(envelopes=List[Dict])- Process N heartbeats in 1 callget_network_summary()- Quick O(1) network health overviewExample
Files
beacon_skill/batch_heartbeat.pyWallet:
RTCed65da2cc0f6463d7ac5fb23b93d798911af9ccb