bbsbot 2026-03-15
Replace structlog with undef-telemetry, guard and cargo strategy bug fixes, and pre-commit hardening
331 files · 6,807+ · 57,017-

Replace structlog with undef-telemetry

5 files changed
  • config.py Logging config migrated from structlog to undef-telemetry
  • game_loop.py Game loop logging migrated; guard probe loop fixes applied
  • loop_handlers.py Loop handlers logging migrated
  • strategy.py Strategy logging migrated
  • term_bridge.py Term bridge logging migrated
  • Migrated all logging from structlog to undef-telemetry, unifying the observability stack with other undef-games projects decouple behavioral
    2 files
    • config.py
    • game_loop.py
  • Fixed guard probe loops that were triggered by the logging migration remediate behavioral
    1 file
    • loop_handlers.py

Guard and cargo strategy bug fixes

4 files changed
  • action_helpers.py No-trade guard fallback path and cargo liquidation gate fixed
  • guard_decision.py No-trade guard prevented from buying cargo without a known buyer
  • loop_guards.py Stale cargo state causing guard to sell wrong commodity fixed
  • parsing_logic.py Minor commodity threshold fixes
  • Fixed stale cargo state causing the guard to sell the wrong commodity remediate internal
    1 file
    • loop_guards.py
  • Fixed cargo liquidation wasting turns by selling minor commodity amounts that weren’t worth it remediate internal
    1 file
    • action_helpers.py
  • Prevented the no-trade guard from buying cargo without a known buyer to sell to decouple internal
    1 file
    • guard_decision.py
  • Fixed the no-trade guard fallback path and cargo liquidation gate remediate internal
    1 file
    • action_helpers.py
  • Allowed trivial cargo amounts to not block normal strategy execution decouple internal
    1 file
    • parsing_logic.py

Infrastructure and pre-commit hardening

3 files changed
  • .pre-commit-config.yaml Pre-commit hooks expanded to catch more issues before commit
  • check_max_loc.py Max LOC check script added
  • check_spdx_headers.py SPDX header check script added
  • Expanded pre-commit hooks to catch more issues before commit decouple internal
    1 file
    • .pre-commit-config.yaml
  • Infrastructure hardening improvements decouple internal
    2 files
    • check_max_loc.py
    • check_spdx_headers.py

tw2002→tradewars rename PR merge

2 files changed
  • __init__.py Renamed package landed via PR merge
  • __init__.py Renamed games package landed via PR merge
  • Merged PR #6 bringing in all the rename changes from the prior session decouple internal
    2 files
    • __init__.py
    • __init__.py