Repository navigation
fix: stop spawning testing agents after project completion - #99
Conversation
…AI#66) When all features pass, the orchestrator continued spawning testing agents for 10+ minutes, wasting tokens on unnecessary regression tests. Added a check for get_all_complete() to prevent this. Fixes: AutoForgeAI#66 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe PR adds a guard condition in the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks |
…geAI#99 Adds repair_self_references(session) function to api/dependency_resolver.py that: - Queries all features from the database - Identifies features with self-referencing dependencies - Removes self-references while preserving valid dependencies - Commits all changes in a single database transaction - Returns list of repaired feature IDs for logging Includes comprehensive test suite (19 tests) covering: - Function existence and signature - Query all features functionality - Self-reference removal (preserving other deps) - Single transaction behavior - Return value correctness - Edge cases (NULL deps, empty deps, duplicates, large datasets) - Logging verification Tested with existing dependency graph tests (67 tests passing, no regressions) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…on-completion fix: stop spawning testing agents after project completion
Summary
Problem
When all features pass, the orchestrator continued spawning testing agents for 10+ minutes, wasting tokens on regression tests that weren't needed.
Root Cause
_maintain_testing_agents()at line 380 had no check for project completion. It only checked:if self.yolo_mode or self.testing_agent_ratio == 0: returnif passing_count == 0: returnWhen all features pass,
passing_count > 0, so it kept spawning testing agents even afterget_all_complete()returns True.Fix
Added completion check after line 401:
Testing
Fixes #66
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.