feat: update .gitignore to include flows directory and adjust clawteam templates exclusion; enhance LEARNINGS.md and RULES.md with critical spawn method guidelines; revise TOOLS.md to emphasize tmux usage; modify SKILL.md files to prohibit subprocess backend; increase memory limit in docker-compose.yml
This commit is contained in:
@@ -294,3 +294,40 @@ User explicitly required: khi review code thì phải cực kỳ khắt khe, ph
|
||||
- First-Seen: 2026-04-06
|
||||
- Last-Seen: 2026-04-06
|
||||
---
|
||||
|
||||
---
|
||||
|
||||
## [LRN-20260406-001] clawteam_spawn_method
|
||||
|
||||
**Logged**: 2026-04-06T10:10:00Z
|
||||
**Priority**: critical
|
||||
**Status**: resolved
|
||||
**Area**: orchestration
|
||||
|
||||
### Summary
|
||||
**Never use subprocess for spawning agents.** Always use `clawteam spawn tmux openclaw --team <team> --agent-name <name> --agent-type <type> --task "<task>"`.
|
||||
|
||||
### Details
|
||||
When spawning ClawTeam agents, using `clawteam spawn subprocess openclaw` causes agents to die immediately after the subprocess shell exits. This resulted in:
|
||||
- All 12 agents spawning but dying instantly
|
||||
- 75 tasks all remaining `pending` with 0 `in_progress` because no one was alive to work
|
||||
- Tasks falsely marked `completed` (only directory copying happened, not actual development)
|
||||
- Zero dependency tracking (all tasks independent despite clear ordering requirements)
|
||||
- Complete project management failure
|
||||
|
||||
### Suggested Action
|
||||
- **ALWAYS** use `clawteam spawn tmux openclaw --team <team> --agent-name <name> ...` for persistent agent sessions
|
||||
- **NEVER** use `clawteam spawn subprocess` — it exits immediately after the shell terminates
|
||||
- Verify agents are alive: `tmux list-sessions | grep clawteam`
|
||||
- Check task progress: `clawteam task list <team> --status in_progress`
|
||||
- Set task dependencies with `clawteam task update <team> <id> --add-blocked-by <dep-id>`
|
||||
- Monitor progress: `clawteam board attach <team>`
|
||||
|
||||
### Metadata
|
||||
- Source: error
|
||||
- Tags: clawteam, spawn, subprocess, orchestration, critical
|
||||
- Pattern-Key: clawteam.spawn_method
|
||||
- Recurrence-Count: 1
|
||||
- First-Seen: 2026-04-06
|
||||
- Last-Seen: 2026-04-06
|
||||
|
||||
|
||||
Reference in New Issue
Block a user