ruvnet / ruvnet/ruflo

sessions and swarms not aligned

Open
#684 1 comment 0 reactions 0 assignees View on GitHub
already-fixed
Dominant language
TypeScript
Stars
72.7k
Forks
8.6k
Avg merge
3d 3h
Merged PRs (30d)
85

Description

Seems like a session should be aligned to a swarm. Can we challenge this and look at this closely?

I have a swarm that is said to be active, but I only have 1 session available.
It seems like a previously running session did not disable the running swarm.

the swarm I am speaking of has 0 agents. I assume this means that it should not exist or be deactivated now.

The one below has no agents

```
════════════════════════════════════════════════════════════
Swarm: analyzing_this
ID: swarm-1755696432672-t175l61qp
Objective: Review the code and the code base, analyze it, and make suggestions on how to make the UI better create a documentation for the user on resources that could be utilized to automate and to end UI controls and testing such as playwright or puppeteer
Queen Type: strategic
Status: active
Created: 8/20/2025, 1:27:12 PM

Agents:
🐝 Workers:

Tasks:
Total: 0
Completed: null
In Progress: null
Pending: null

Collective Memory:
Entries: 0

Consensus Decisions:
Total: 0
════════════════════════════════════════════════════════════
```

Here is the status and the sessions
```
➜ mind_house git:(main) ✗ claude-flow hive-mind status

🐝 Active Hive Mind Swarms

════════════════════════════════════════════════════════════
Swarm: hive-1755697320796
ID: swarm-1755697320799-0rsux59us
Objective: objective
Queen Type: strategic
Status: active
Created: 8/20/2025, 1:42:00 PM

Agents:
👑 Queen: Queen Coordinator (active)
🐝 Workers:
- Researcher Worker 1 (researcher) idle
- Coder Worker 2 (coder) idle
- Analyst Worker 3 (analyst) idle
- Tester Worker 4 (tester) idle

Tasks:
Total: 0
Completed: null
In Progress: null
Pending: null

Collective Memory:
Entries: 4

Consensus Decisions:
Total: 0
════════════════════════════════════════════════════════════
Swarm: analyzing_this
ID: swarm-1755696432672-t175l61qp
Objective: Review the code and the code base, analyze it, and make suggestions on how to make the UI better create a documentation for the user on resources that could be utilized to automate and to end UI controls and testing such as playwright or puppeteer
Queen Type: strategic
Status: active
Created: 8/20/2025, 1:27:12 PM

Agents:
🐝 Workers:

Tasks:
Total: 0
Completed: null
In Progress: null
Pending: null

Collective Memory:
Entries: 0

Consensus Decisions:
Total: 0
════════════════════════════════════════════════════════════

➜ mind_house git:(main) ✗ claude-flow hive-mind sessions

🗂️ Hive Mind Sessions

════════════════════════════════════════════════════════════
🟢 hive-1755697320796
Session ID: session-1755697320799-kdi9mt05u
Status: active
Objective: objective
Progress: 0%
Created: Invalid Date
Last Updated: 8/21/2025, 1:17:43 PM

Progress:
Agents: 5
Tasks: 0/0

Last Checkpoint:
{
"timestamp": "2025-08-20T13:42:30.800Z",
"changeCount": 5,
"changesByType": {
"swarm_created": [
{
"type": "swarm_created",
"data": {
"swarmId": "swarm-1755...
════════════════════════════════════════════════════════════

💡 Tips:
• Resume a session: claude-flow hive-mind resume
• View session details: claude-flow hive-mind status
```

Contributor guide

Open the contributing guide

Research direction

Start with the `claude-flow hive-mind status` and `claude-flow hive-mind sessions` entry points, then trace how sessions and swarms are created, updated, and deactivated. Reproduce the reported active swarm with zero agents and compare it with the active session; done means their lifecycle and displayed status remain aligned, including cleanup of inactive swarms.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.