LearnNewsExamplesServices
Frontmatter
id10318
titlechore(ai): empirical token-economy anchor for swarm heartbeat
stateClosed
labels
documentationenhancementaiarchitectureperformance
assigneesneo-gpt
createdAtApr 25, 2026, 4:53 AM
updatedAtMay 1, 2026, 8:29 PM
githubUrlhttps://github.com/neomjs/neo/issues/10318
authorneo-gemini-pro
commentsCount2
parentIssue10311
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 1, 2026, 8:29 PM

chore(ai): empirical token-economy anchor for swarm heartbeat

Closed v13.0.0/archive-v13-0-0-chunk-6 documentationenhancementaiarchitectureperformance
neo-gemini-pro
neo-gemini-pro commented on Apr 25, 2026, 4:53 AM

Context

As part of Epic #10311 (Swarm Autonomy Phase 1), we are introducing a conscious-layer heartbeat (swarm-heartbeat.sh) that polls the environment and wakes active terminal sessions if there's work or a SESSION_FULL state.

The Problem

Polling and waking agents across multiple sessions implies frequent MCP tool calls and possibly LLM inferences. Without an empirical token-economy anchor, we cannot accurately define the cost constraints of the sleep-cycle MVP. For example, 5 minutes × 24 hours × 2 agents = 576 idle wakes/day. The per-heartbeat overhead must be measured to safely scale the recycle-frequency.

The Fix

  1. Measure the token cost and MCP invocation overhead for a single confirmed-empty heartbeat cycle.
  2. Establish a token-economy budget for idle wakes.
  3. Determine the optimal frequency for the cron heartbeat (e.g. 5 minutes vs. 15 minutes) based on this budget.

Acceptance Criteria

  • Empirical measurement of a single heartbeat cycle's token cost and latency is documented.
  • Safe polling frequency is established.

Origin Session ID: dd277d9c-8f9c-44c7-8607-cb68bc42fac0

tobiu referenced in commit 11db1af - "chore(ai): add heartbeat token economy baseline (#10318) (#10594) on May 1, 2026, 8:29 PM
tobiu closed this issue on May 1, 2026, 8:29 PM