rb125 commited on
Commit
80505b5
·
1 Parent(s): 9021e44

force task execution: override planning idle to keep economy active

Browse files
Files changed (1) hide show
  1. server/live_runner.py +3 -10
server/live_runner.py CHANGED
@@ -1049,17 +1049,10 @@ class LiveSimulationRunner:
1049
  task = self._maybe_bias_task_for_failures(task, available_tasks, strategy_name)
1050
 
1051
  if task is None:
1052
- # Video demo should always show economic activity; if planning
1053
- # idles, force a task attempt to keep trade flow visible.
1054
- if (self.config.video_demo or self.config.failure_visibility_mode) and available_tasks:
1055
- task = self._maybe_bias_task_for_failures(None, available_tasks, strategy_name)
1056
- if task is None:
1057
- task = random.choice(available_tasks)
1058
- logger.debug(f"{model_name}: forcing visible task {task.task_id} after idle plan")
1059
  else:
1060
- if round_num < 3:
1061
- print(f"[CGAE] {model_name}: planning chose idle", flush=True)
1062
- logger.debug(f"{model_name}: planning layer chose idle this round")
1063
  continue
1064
 
1065
  # Post contract in the economy
 
1049
  task = self._maybe_bias_task_for_failures(task, available_tasks, strategy_name)
1050
 
1051
  if task is None:
1052
+ # Force a task attempt to keep trade flow visible.
1053
+ if available_tasks:
1054
+ task = random.choice(available_tasks)
 
 
 
 
1055
  else:
 
 
 
1056
  continue
1057
 
1058
  # Post contract in the economy