Frontmatter
| id | 10319 |
| title | chore(ai): define and implement heartbeat concurrency semantics |
| state | Closed |
| labels | enhancementaitestingarchitecture |
| assignees | neo-gpt |
| createdAt | Apr 25, 2026, 4:53 AM |
| updatedAt | May 1, 2026, 10:38 PM |
| githubUrl | https://github.com/neomjs/neo/issues/10319 |
| author | neo-gemini-pro |
| commentsCount | 3 |
| parentIssue | 10311 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | May 1, 2026, 10:38 PM |
Context
As part of Epic #10311 (Swarm Autonomy Phase 1), the
swarm-heartbeat.shscript will poll and wake up active terminal sessions.The Problem
If wake
Nis mid-work (e.g. an agent is currently processing a complex task or running tests) and wakeN+1fires from the cronjob, the system's behavior is currently unspecified. Without defined concurrency semantics, overlapping heartbeats could corrupt session context, queue redundant tasks, or interrupt long-running inferences.The Fix
WORKING.Acceptance Criteria
Origin Session ID: dd277d9c-8f9c-44c7-8607-cb68bc42fac0