Spaces:
Paused
Paused
rb125 commited on
Commit ·
9021e44
1
Parent(s): d212e65
add debug prints to _run_round to trace why 0 trades
Browse files- server/live_runner.py +6 -0
server/live_runner.py
CHANGED
|
@@ -1035,6 +1035,8 @@ class LiveSimulationRunner:
|
|
| 1035 |
# Build agent state and use planning layer to select a task
|
| 1036 |
available_tasks = get_tasks_for_tier(tier)
|
| 1037 |
if not available_tasks:
|
|
|
|
|
|
|
| 1038 |
continue
|
| 1039 |
|
| 1040 |
if autonomous is not None:
|
|
@@ -1055,6 +1057,8 @@ class LiveSimulationRunner:
|
|
| 1055 |
task = random.choice(available_tasks)
|
| 1056 |
logger.debug(f"{model_name}: forcing visible task {task.task_id} after idle plan")
|
| 1057 |
else:
|
|
|
|
|
|
|
| 1058 |
logger.debug(f"{model_name}: planning layer chose idle this round")
|
| 1059 |
continue
|
| 1060 |
|
|
@@ -1076,6 +1080,8 @@ class LiveSimulationRunner:
|
|
| 1076 |
# Accept contract
|
| 1077 |
accepted = self.economy.accept_contract(contract.contract_id, agent.agent_id)
|
| 1078 |
if not accepted:
|
|
|
|
|
|
|
| 1079 |
logger.debug(f"{model_name}: Could not accept {task.task_id} (tier/budget)")
|
| 1080 |
continue
|
| 1081 |
|
|
|
|
| 1035 |
# Build agent state and use planning layer to select a task
|
| 1036 |
available_tasks = get_tasks_for_tier(tier)
|
| 1037 |
if not available_tasks:
|
| 1038 |
+
if round_num < 3:
|
| 1039 |
+
print(f"[CGAE] {model_name}: tier={tier.name} -> no tasks available", flush=True)
|
| 1040 |
continue
|
| 1041 |
|
| 1042 |
if autonomous is not 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 |
|
|
|
|
| 1080 |
# Accept contract
|
| 1081 |
accepted = self.economy.accept_contract(contract.contract_id, agent.agent_id)
|
| 1082 |
if not accepted:
|
| 1083 |
+
if round_num < 3:
|
| 1084 |
+
print(f"[CGAE] {model_name}: accept_contract REJECTED (tier={tier.name}, task={task.task_id})", flush=True)
|
| 1085 |
logger.debug(f"{model_name}: Could not accept {task.task_id} (tier/budget)")
|
| 1086 |
continue
|
| 1087 |
|