bbsbot
2026-03-20
Align with undef-terminal bot-to-agent rename, add memray stress tests, and extract decay strategy streaks
117 files · 4,698+ · 3,517-
Align with undef-terminal bot-to-agent rename
13 files changed
ops.pySwarm bot ops updated for agent renameupdate.pyBot update endpoint renamedspawn.pySpawn endpoint updatedstatus.pyStatus endpoint updatedhub.pyTerminal hub updatedsetup.pyTerminal setup updatedcli.pyCLI updated for agent renamecli_swarm.pySwarm CLI updatedsession.pySession module updatedsession_manager.pySession manager updatedswarm_manager.pySwarm manager updatedmodels.pyManager models updatedterm_bridge.pyTerminal bridge updated
Backward compatibility bot_id alias
1 file changed
models.pyBotStatusTradeWars adds bot_id property aliasing agent_id
- Bbsbot’s own domain classes (BotStatus, SwarmManager) retain their existing names — only the undef-terminal API layer is renamed
decouple
behavioral
1 file
models.py
- BotStatusTradeWars adds a bot_id property that aliases agent_id
instantiate
internal
1 file
models.py
- model_dump() injects bot_id alongside agent_id for clients that still use the old field name
decouple
internal
1 file
models.py
- model_dump_json() uses Pydantic’s Rust fast path (zero overhead)
streamline
internal
1 file
models.py
Extract _decay_strategy_streaks helper
1 file changed
game_loop.pyExtracted _decay_strategy_streaks into standalone function
Memray stress tests
9 files changed
__init__.pyMemray test packagebaselines.jsonStress test baselinesconftest.pyMemray test fixturestest_broadcast_stress.pyBroadcast cycle stress testtest_status_serialization_stress.pyStatus serialization stress testtest_strategy_stress.pyStrategy dict growth stress testmemray_broadcast_stress.pyBroadcast stress scriptmemray_status_serialization_stress.pyStatus serialization stress scriptmemray_strategy_stress.pyStrategy stress script
- Added memray stress tests and baselines for three paths: broadcast cycle, status serialization, and strategy dict growth
qualify
internal
3 files
test_broadcast_stress.pytest_status_serialization_stress.pytest_strategy_stress.py
- Tests live in tests/memray/ with baselines in tests/memray/baselines.json
qualify
internal
1 file
baselines.json
- Added scripts/memray/ with stress scripts for each path
instantiate
internal
2 files
memray_broadcast_stress.pymemray_status_serialization_stress.py
Profitable pairs tracking improvements
2 files changed
failure_tracking.pyFailure tracking additionsstate_persistence.pyState persistence with bot_id backward compat
- Added failure_tracking.py and state_persistence.py to the profitable pairs strategy
instantiate
internal
2 files
failure_tracking.pystate_persistence.py
- Added bot_id property to state_persistence for backward compat
instantiate
internal
1 file
state_persistence.py