bbsbot
2026-03-08
Ship upgrades with stardock detection, anti-collapse state persistence, intervention system wired, and broad test expansion
222 files · 13,376+ · 771-
Ship upgrades with stardock detection
3 files changed
upgrades.pyStardock detection added; UPGRADE loop sector bounce fixed; BANK loop navigation and failure cooldowns addedloop_action_selection.pyAction selection updated for upgrade/bank loop fixesloop_guards.pyNo-trade guard UPGRADE loop fixes
- Added stardock sector detection to enable automatic ship upgrades when near a stardock
instantiate
behavioral
1 file
upgrades.py
- Temporarily disabled upgrade execution, then re-enabled once detection was confirmed working
baseline
internal
1 file
upgrades.py
- Fixed UPGRADE loop sector bounce in no-trade guard
remediate
internal
1 file
loop_guards.py
- Fixed BANK loop to add proper navigation and failure cooldowns
remediate
internal
1 file
upgrades.py
- Fixed BANK/UPGRADE cooldown for stardock-unknown case (don’t retry without position info)
remediate
internal
1 file
upgrades.py
Anti-collapse state persistence
3 files changed
state_persistence.pyAnti-collapse state now persists to disk across manager restarts; scoped by game_keystrategy.pyStrategy updated to use persistent anti-collapse statestatus.pygame_key and anti-collapse state age exposed in status/dashboard endpoints
state/directory: anti-collapse state now persists to disk across manager restarts decouple internal1 file
state_persistence.py
- State file defaults to
default_data_dir()/statewhen nodata_dirconfigured decouple internal1 file
state_persistence.py
- Anti-collapse state scoped by
game_keyto prevent cross-game contamination decouple internal1 file
state_persistence.py
- Exposed game_key and anti-collapse state age in status/dashboard endpoints
decouple
behavioral
1 file
status.py
Intervention system wired in
4 files changed
advisor.pyIntervention system connected to navigator and profitable_pairs strategy modulestrigger.pyIntervention trigger modulemcp_tools_intervention.pyIntervention MCP toolssettings.pydesired_bots/swarm_paused/bust_respawn settings persisted across manager restarts
- Intervention system connected to navigator and profitable_pairs strategy modules
decouple
internal
2 files
advisor.pytrigger.py
desired_bots/swarm_paused/bust_respawnsettings now persisted across manager restarts baseline internal1 file
settings.py
desired_botsauto-set when spawning a batch; synced to dashboard display streamline behavioral1 file
swarm_manager.py
Trading and navigation bug fixes
9 files changed
game_loop.pyDepleted-port flapping fixed; login-prompt recovery loop fixed; crash on mid-orientation disconnect fixedguard_decision.pyNo_interaction failures now feed market-intel reset detectorguard_logic.pyAnti-collapse response silently skipping when bot holds cargo — fixedguard_routing.pyGuard routing updatesanti_collapse.pyAnti-collapse strategy fixescommodity_helpers.pyPort price capture and LLM JSON parsing fixessequence.pyLogin retry timing fixedphases.pyLogin phase fixes; rules.json validation error fixedmodels.pyDashboard active count and state breakdown display fixed
- Fixed depleted-port flapping and login-prompt recovery loop
remediate
behavioral
1 file
game_loop.py
- Fixed anti-collapse responses silently skipping when bot holds cargo
remediate
internal
1 file
anti_collapse.py
- Fixed no_interaction failures not feeding market-intel reset detector
remediate
internal
1 file
guard_decision.py
- Fixed port price capture, LLM JSON parsing, and no_interaction backoff
remediate
internal
1 file
commodity_helpers.py
- Fixed crash when session disconnects mid-orientation
remediate
internal
1 file
game_loop.py
- Fixed dashboard active count and state breakdown display (recovering+blocked bots counted as active)
remediate
behavioral
1 file
models.py
- Fixed login retry timing and dashboard desired count
remediate
behavioral
1 file
sequence.py
- Fixed rules.json validation error and bootstrap login race condition
remediate
internal
1 file
phases.py
Security and code quality
5 files changed
ops.pySecurity hardening across account pool filtering; _get_active_bot wrapper removedmcp_context.pyMCP context updatesparsing.pyWARP game menu input fixed; duplicate prompt entry removedsession.pySession guard hardenedTW2002_MCP_OPERATIONS.mdStale snapshot claim removed; obsolete tw2002_assume_bot removed
- Security hardening and bug fixes across account pool filtering
remediate
internal
1 file
ops.py
- Concurrency fixes and code quality improvements
remediate
internal
1 file
session.py
- Fixed WARP game menu input, removed duplicate prompt entry, hardened session guard
remediate
behavioral
2 files
parsing.pysession.py
- Removed
_get_active_botwrapper; uselist_accounts_safein API interface behavioral1 file
ops.py
- Updated docs: removed stale snapshot claim, removed obsolete
tw2002_assume_botspecify internal1 file
TW2002_MCP_OPERATIONS.md
Inspector and dashboard redesign
2 files changed
dashboard.htmlInspector metrics panel redesigned with grouped sections and 2-column layout; intervention controls exposeddashboard.jsDashboard JS for redesigned inspector
- Redesigned inspector metrics panel with grouped sections and 2-column layout
decouple
architectural
1 file
dashboard.html
- Bumped to 0.2.2; exposed intervention controls in dashboard
decouple
behavioral
2 files
dashboard.htmlpyproject.toml
Test additions
8 files changed
test_executor_trade.pyExecutor trade tests addedtest_loop_guards.pyLoop guard tests addedtest_action_helpers.pyAction helper tests addedtest_anti_collapse_state.pyAnti-collapse state tests addedtest_pair_discovery.pyPair discovery tests addedtest_trade_phases.pyTrade phase tests addedtest_guard_decision.pyGuard decision tests addedtest_guard_logic.pyGuard logic tests added
tests/: added tests forstrategy_manager,banking,upgrades,colonization,action_helpers,loop_guards,trade_phases,executor_trade,guard_decision,pair_discovery,token_auth_middleware,knowledge_path_validationqualify internal8 files
test_executor_trade.pytest_loop_guards.pytest_action_helpers.pytest_anti_collapse_state.pytest_pair_discovery.pytest_trade_phases.pytest_guard_decision.pytest_guard_logic.py