bbsbot 2026-03-30
Archetype system, roster loading, tradewars_spawn_roster MCP tool, 194 new tests
103 files · 13,195+ · 127-

Archetype strategy system with 8 strategies

9 files changed
  • base.py ArchetypeStrategy base class
  • merchant.py MerchantStrategy archetype
  • scout.py ScoutStrategy archetype
  • banker.py BankerStrategy and DiplomatStrategy
  • pirate.py PirateStrategy with combat/fighter executors
  • warlord.py WarlordStrategy with combat executors
  • industrialist.py IndustrialistStrategy with executor_colonize
  • swarchestrator.py SwarchestratorStrategy: orchestrates SwarchDirective assignments
  • archetype-system-design.md Archetype system design spec
  • Full archetype strategy system added: ArchetypeStrategy base class with 8 concrete strategies. MerchantStrategy and ScoutStrategy for trading/exploration. BankerStrategy and DiplomatStrategy for economy management. PirateStrategy and WarlordStrategy with combat/fighter executor integration. IndustrialistStrategy with colonize executor. SwarchestratorStrategy distributes SwarchDirective assignments to roster bots. All strategies registered in StrategyManager. instantiate behavioral
    3 files
    • base.py
    • pirate.py
    • swarchestrator.py

Roster loading and spawn-roster infrastructure

3 files changed
  • roster.py RosterLoader data models and roster.yaml; AccountPoolStore gains register_account and acquire_by_username
  • settings.py roster_id, archetype, roster_file added to Settings
  • swarm.py POST /swarm/spawn-roster endpoint
  • RosterLoader loads bot roster definitions from roster.yaml with per-bot archetype and credential mappings. AccountPoolStore gains register_account and acquire_by_username for roster-based account management. base_roster.yaml defines the default bot roster. POST /swarm/spawn-roster endpoint triggers roster spawn. instantiate behavioral
    2 files
    • roster.py
    • swarm.py

tradewars_spawn_roster MCP tool and dashboard archetype chips

2 files changed
  • control_roster.py tradewars_spawn_roster MCP tool for AI-driven roster spawning
  • components.py Archetype chips with configurable color map displayed per bot in the dashboard
  • tradewars_spawn_roster MCP tool allows AI agents to trigger roster spawning via MCP. Dashboard shows per-bot archetype chips with a configurable color map. Worker reports archetype in status updates. roster_id and archetype fields added to BotStatusTradeWars. instantiate behavioral
    2 files
    • control_roster.py
    • components.py

Corporation formation and 194 new tests

3 files changed
  • corporation.py Corporation formation with 70% test coverage
  • test_warp_executor.py 39 tests for warp/move executor
  • test_exploration.py 116 tests for exploration mixin, route management, and worker identity
  • Corporation formation added with 70% test coverage. 194 new tests: 39 for warp/move executor (screen detection, preflight, path navigation, verification), 116 for exploration mixin/route management/worker identity. text_only mode added to bbs_read to strip CP437 art for text processing. qualify internal
    2 files
    • test_warp_executor.py
    • test_exploration.py