Commit Graph
4 Commits
Author SHA1 Message Date
rUvandReuven c3ab5ef240 fix(swarm): scaleAgents targets total, executeTask catches throws (#1872) (#2000)
Two of the five integration tests skipped under #1872 fix real
production bugs in SwarmCoordinator.

1. scaleAgents({type, count}) treated `count` as a delta added to
   the existing count. Calling scaleAgents({count:3}) then
   scaleAgents({count:2}) ended up at 1+3+2=6 instead of the
   intuitive target of 2. Fixed: count now means TARGET TOTAL of
   the given type; spawn or terminate to reach it. Scale-down
   terminates the oldest first so the operation is deterministic.

2. executeTask(agentId, task) did `await agent.executeTask(task)`
   without a try/catch. A thrown error propagated up to the
   caller, defeating the documented `TaskResult{status:'failed',
   error}` contract callers rely on for graceful degradation.
   Fixed: wrap the call, convert a throw into a structured failed
   result with the error message preserved.

Both tests now run (was `it.skip`, now `it`), with the skip-banner
comments replaced by "fixed" notes that point back to this issue.
Pure source-side fixes — no API surface change, callers that were
already using the documented contract keep working.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-05-14 21:33:44 -04:00
Ryanba 5fdd8e19e3 Fix PluginManager priority and version checks (#1336)
Reviewed in ADR-065. ACCEPT — plugin priority and version check correctness.
2026-03-17 13:24:23 -04:00
rUvandClaude Opus 4.5 6ad7a378d0 fix(hooks): Fix checkpoint hooks to handle plain file paths
- Updated standard-checkpoint-hooks.sh to accept both JSON and plain paths
- Fixed pre-edit and post-edit functions to detect input format
- Fixed v3 CLI hook flags (-f -> --file, -c -> --command, etc.)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 02:54:48 +00:00
rUvandClaude Sonnet 4 ff7c35be6f checkpoint: session completed - V3 development session completed
🚀 Generated with [Claude Code](https://claude.com/claude-code)
📊 V3 Development Progress Checkpoint

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-01-05 13:19:18 +00:00