fix: v4.1.1 - Windows symlink fix and layout-based agent optimization

## Fixes
- Fix Windows symlink creation using mklink /D instead of ln -s
- Resolve duplicate directory issue (latest/ vs runs/run-xxx/)

## Optimizations
- Redesign agent allocation from style-based to layout-based
- Add batch processing (max 8 styles per agent)
- Reduce agent count by 60%+ for high variant scenarios (32 styles: 32→12 agents)

## Files Changed
- auto.md: Phase 0b symlink creation (Windows-compatible)
- generate.md: Phase 2 agent allocation strategy (layout-based)
- CHANGELOG-v4.1.1.md: Complete documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-10-09 11:27:23 +08:00
parent b27708a7da
commit 184fd1475b
3 changed files with 304 additions and 72 deletions

View File

@@ -145,14 +145,12 @@ Write({base_path}/.run-metadata.json):
"status": "in_progress"
}
# Update "latest" symlink
# Update "latest" symlink (Windows-compatible)
IF --session:
Bash(rm -f ".workflow/WFS-{session_id}/latest")
Bash(ln -s "runs/${run_id}" ".workflow/WFS-{session_id}/latest")
Bash(cd ".workflow/WFS-{session_id}" && rm -rf latest && mklink /D latest "runs/${run_id}")
ELSE:
# Standalone mode: create symlink in scratchpad session dir
Bash(rm -f ".workflow/.scratchpad/${session_id}/latest")
Bash(ln -s "runs/${run_id}" ".workflow/.scratchpad/${session_id}/latest")
Bash(cd ".workflow/.scratchpad/${session_id}" && rm -rf latest && mklink /D latest "runs/${run_id}")
STORE: run_id, base_path # Use throughout workflow
```