bbsbot
2026-02-07
Swarm manager, intervention system, and 90-bot stress testing infrastructure added with login reliability improvements
289 files · 14,235+ · 1,539-
Swarm manager
4 files changed
cli_swarm.pySwarm CLI with commands for spawn, status, kill, and batch operationsswarm_routes.pyAPI routes for swarm managementmcp_swarm_tools.pyMCP tools for remote swarm controldefaults.pyDefaults module for centralized configuration
- Implemented central swarm manager (
manager.py) with worker spawning, lifecycle management, and state persistence instantiate behavioral1 file
cli_swarm.py
- Added swarm CLI (
cli_swarm.py) with commands for spawn, status, kill, and batch operations instantiate behavioral1 file
cli_swarm.py
- Created swarm shell for interactive swarm management
instantiate
internal
1 file
cli_swarm.py
- Added 82+ bot configs (bot_01 through bot_82) for stress testing
qualify
internal
1 file
defaults.py
- Added API routes for swarm management (
api/swarm_routes.py) interface behavioral1 file
swarm_routes.py
- Created swarm MCP tools for remote swarm control
interface
internal
1 file
mcp_swarm_tools.py
Intervention system
7 files changed
detector.pyIntervention detector with anomaly detection patternsanomaly_detectors.pyStagnation, loop, and error pattern detectorsopportunity_detectors.pyProactive opportunity detection for strategy adjustmentsadvisor.pyIntervention advisor for suggesting corrective actionstrigger.pyAutomatic recovery trigger systemtypes.pyIntervention types with severity levelsmcp_tools_intervention.pyMCP tools for intervention system control
- Built intervention detector with anomaly detection (stagnation, loop, error patterns)
instantiate
internal
2 files
detector.pyanomaly_detectors.py
- Added opportunity detectors for proactive strategy adjustments
instantiate
internal
1 file
opportunity_detectors.py
- Implemented intervention advisor for suggesting corrective actions
instantiate
internal
1 file
advisor.py
- Created intervention trigger system for automatic recovery
instantiate
internal
1 file
trigger.py
- Added intervention types module with severity levels
instantiate
internal
1 file
types.py
- Created MCP tools for intervention system control
interface
internal
1 file
mcp_tools_intervention.py
- Added comprehensive documentation (INTERVENTION_SYSTEM.md, TESTING_GUIDE.md, SWARM_ARCHITECTURE.md)
specify
internal
1 file
mcp_tools_intervention.py
Login reliability
3 files changed
login.pyCritical login fixes: credit tracking, prompt detection fallbacksconnection.pyConnection-level login improvementsio.pyKeepalive and semantic data preservation through login phases
- Fixed critical credit tracking bug - use semantic data when D command fails
remediate
behavioral
1 file
io.py
- Added content-based prompt detection fallbacks for login
harden
behavioral
1 file
login.py
- Fixed login prompt detection with content-based fallback
remediate
behavioral
1 file
login.py
- Preserve kv_data through all login phases
harden
internal
1 file
login.py
- Added immediate escape from home planet for opportunistic strategy
instantiate
internal
1 file
opportunistic.py
- Use semantic fallback when credits=0 (not just None)
harden
internal
1 file
connection.py
Stress testing infrastructure
4 files changed
generate_test_matrix.pyTest matrix generator script for 108 config combinationslaunch_stress_test.pyStress test launcherlaunch_stress_test_waves.pyWave-based stress test launchermonitor_completion.pyStress test completion monitor
- Generated 108 test matrix configs varying game, strategy, turns, and intervention parameters
qualify
internal
1 file
generate_test_matrix.py
- Added launch_stress_test.py and wave-based stress test launcher
qualify
internal
2 files
launch_stress_test.pylaunch_stress_test_waves.py
- Created monitor scripts (monitor_completion.py, monitor_stress_test.sh, quick_status.sh)
qualify
internal
1 file
monitor_completion.py
- Generated test matrix generator script
qualify
internal
1 file
generate_test_matrix.py
Login improvements
2 files changed
config.pyConfig-based username and character_password supportlogin.pyLogin sequence updated for first-login new-character flow
- Added config-based username and character_password support
instantiate
internal
1 file
config.py
- Updated login sequence to attempt ’new’ on first login prompt
instantiate
behavioral
1 file
login.py
- Improved login timing with configurable spawn intervals
harden
internal
1 file
login.py
- Increased loop detection threshold and menu retry tolerance for multi-bot
harden
internal
1 file
login.py
Web dashboard and TUI
2 files changed
log_routes.pyLog service for centralized log management__init__.pyDashboard and API initialization
- Added initial web dashboard (
web/dashboard.html,web/static/dashboard.js) instantiate behavioral1 file
__init__.py
- Created TUI log viewer and swarm monitor
instantiate
behavioral
1 file
__init__.py
- Added log service for centralized log management
instantiate
behavioral
1 file
log_routes.py
Code quality
3 files changed
mcp_tools.pymcp_tools.py split to meet 500 LOC limitdetector.pyIntervention detector split to meet 500 LOC limittypes.pyIntervention types extracted into separate module
Infrastructure
2 files changed
defaults.pyDefaults module for centralized configurationbase.pyUpdated addon base with test configs