bbsbot 2026-04-04
Planet harvest pipeline, ship purchasing, upgrade handlers, and uwarp-explorer delegation
71 files · 1,156+ · 934-

Planet harvest pipeline

3 files changed
  • executor_planet.py New planet harvest executor (84 lines)
  • industrialist.py Industrialist archetype wired to harvest executor
  • loop_archetype_dispatch.py Dispatch loop updated for planet harvest
  • executor_planet.py implements a full planet harvest pipeline: land, harvest colonists/fuel/organics, handle capacity checks, and return to orbit. Industrialist archetype updated to call the harvest executor. Loop dispatch updated to route planet-related actions. instantiate behavioral
    2 files
    • executor_planet.py
    • industrialist.py

Automated ship purchasing at Stardock

2 files changed
  • ship_buyer.py New ship purchasing logic (189 lines): Stardock menu navigation, model selection
  • loop_handlers.py Loop handler wires ship_buyer into the upgrade decision path
  • ship_buyer.py handles automated ship purchasing at the Stardock Shipyard: navigates the ship purchase menu, selects the best available model within budget, and confirms the purchase. Integrated into the loop handlers for the upgrade decision path. instantiate behavioral
    2 files
    • ship_buyer.py
    • loop_handlers.py

Upgrade handlers with bank withdrawal before purchase

3 files changed
  • upgrade_handlers.py New upgrade handlers (212 lines): withdraw bank funds before upgrade purchase
  • upgrades.py Upgrade logic updated for new handler flow
  • gameplay.py Trading capital thresholds raised; upgrade ROI gate lowered
  • upgrade_handlers.py: before any upgrade purchase, withdraws sufficient funds from the bank to cover the shortfall rather than failing the purchase. Capital thresholds and ROI gate reconfigured in gameplay.py for more aggressive upgrade behavior. instantiate behavioral
    2 files
    • upgrade_handlers.py
    • gameplay.py

Delegate executors to uwarp-explorer mechanics

5 files changed
  • banking.py Bank deposit/withdraw delegated to uwarp-explorer mechanics
  • executor_colonize.py Colonize executor delegated to uwarp-explorer planet mechanics
  • executor_combat.py Combat executor delegated to uwarp-explorer mechanics
  • executor_corp.py Corp executor delegated to uwarp-explorer mechanics
  • executor_fighters.py Fighters executor delegated to uwarp-explorer mechanics
  • Five executors (banking, colonize, combat, corp, fighters) refactored to delegate their core game interactions to uwarp-explorer mechanics modules rather than duplicating TW2002 protocol logic. Significant line reduction in each: executor_combat.py shrinks from ~200 to ~90 lines, executor_corp.py from ~230 to ~120 lines. Follows the shared-library pattern established when uwarp-explorer was extracted in W13. decouple architectural
    5 files
    • banking.py
    • executor_colonize.py
    • executor_combat.py
    • executor_corp.py
    • executor_fighters.py

Fix 'i' spam stall loop and port menu detection

3 files changed
  • loop_menu_recovery.py Stall detection added; port menu T-trigger broadened
  • guard_logic.py Guard logic updated
  • detection.py Screen detection patterns updated for port menu recognition
  • The ‘i’ command was spamming in a stall loop when the port menu didn’t respond as expected. Fixed by adding stall detection and broadening the T-trigger regex for port menu recognition in loop_menu_recovery.py and detection.py. remediate behavioral
    2 files
    • loop_menu_recovery.py
    • detection.py

Migrate from undef-terminal to provide-terminal

5 files changed
  • term_bridge.py Import updated from undef-terminal to provide-terminal
  • control_channel.py Import updated
  • render.py Import updated
  • __init__.py Import updated
  • pyproject.toml Dependency updated to provide-terminal
  • All imports and dependencies updated from undef-terminal to provide-terminal following the ecosystem rename. Affects api/term, terminal/, swarm/, and manager/ subsystems. pyproject.toml dependency updated accordingly. baseline internal
    3 files
    • term_bridge.py
    • control_channel.py
    • pyproject.toml

Test fixes and reliability

4 files changed
  • test_runtime_reliability_fixes.py 64-line expansion: structlog patching, pirate state, guard logic fixes
  • test_executor_colonize.py Updated for uwarp-explorer delegation
  • test_executor_combat.py Updated for uwarp-explorer delegation
  • test_executor_fighters.py Updated for uwarp-explorer delegation
  • Resolved all test failures caused by the uwarp-explorer delegation refactor: structlog patching updated, pirate state assertions corrected, guard logic test expectations aligned. Executor tests updated to mock uwarp-explorer mechanics instead of internal implementation. qualify internal
    2 files
    • test_runtime_reliability_fixes.py
    • test_executor_colonize.py