Skip to content

feat: batch heartbeat processing for large agent networks (closes #106)#175

Merged
Scottcjn merged 2 commits intoScottcjn:mainfrom
daletyler1737:atlas/batch-heartbeat-106
Mar 29, 2026
Merged

feat: batch heartbeat processing for large agent networks (closes #106)#175
Scottcjn merged 2 commits intoScottcjn:mainfrom
daletyler1737:atlas/batch-heartbeat-106

Conversation

@daletyler1737
Copy link
Copy Markdown
Contributor

Batch Heartbeat Processing for Large Agent Networks

Implements BatchHeartbeatManager for 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

BatchHeartbeatManager class:

  • build_batch_heartbeat(agents=List[Dict]) - Build batch heartbeat from N agents in 1 call
  • build_batch_from_ids(agent_ids=List[str]) - Minimal-ID batch from just agent IDs
  • process_batch(envelopes=List[Dict]) - Process N heartbeats in 1 call
  • get_network_summary() - Quick O(1) network health overview

Example

from beacon_skill.batch_heartbeat import BatchHeartbeatManager

batch = BatchHeartbeatManager()
result = batch.process_batch([envelope1, envelope2, ...])
# -> {processed: N, healthy: X, silent: Y, results: [...]}

Files

  • Added beacon_skill/batch_heartbeat.py

Wallet: RTCed65da2cc0f6463d7ac5fb23b93d798911af9ccb

@daletyler1737 daletyler1737 requested a review from Scottcjn as a code owner March 29, 2026 12:41
@github-actions github-actions bot added the size/L PR: 201-500 lines label Mar 29, 2026
@Scottcjn Scottcjn merged commit b324383 into Scottcjn:main Mar 29, 2026
2 checks passed
@Scottcjn
Copy link
Copy Markdown
Owner

Scottcjn commented Apr 3, 2026

Merged — batch heartbeat processing is useful for large agent networks. 10 RTC approved.

Please share your RTC wallet address to receive payment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L PR: 201-500 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Batch heartbeat processing for large agent networks

2 participants