r1234chen commited on
Commit
4feb6ef
·
verified ·
1 Parent(s): 451b453
README.md CHANGED
@@ -17,7 +17,7 @@ configs:
17
 
18
  **PuzzleMixEscape is a benchmark of 94 interactive 3D escape rooms for multimodal models.** It tests whether a model can find clues from a first-person view, reason about spatial relationships, and act on what it discovers. In *Maintenance Store* (L2-01), for example, the model must move around to count scattered coloured balls and relate them to a note, a toolbox, and a ventilation grille. An episode succeeds only when the model opens the unlocked exit door.
19
 
20
- [Level catalogue](level/index.json) · [Setup](#setup) · [Scene assets](assets/README.md) · [Model evaluation](#model-evaluation) · [Baseline guide](evaluation/README.md) · [CoordMem](#coordmem)
21
 
22
  ## Levels and evaluation protocol
23
 
@@ -68,16 +68,6 @@ Use `--confirm-medium` after confirming that the selected model supports medium
68
  | `openrouter` | `OPENROUTER_API_KEY` | Use a `provider/model` ID with `medium` reasoning effort; set `PUZZLEMIX_OPENROUTER_PROXY` |
69
  | `dashscope` | `DASHSCOPE_API_KEY` | `qwen3.8-max` with thinking enabled and `thinking_budget=1024`; omit `--confirm-medium` |
70
 
71
- ## CoordMem
72
-
73
- CoordMem calls a memory agent before the action agent at each decision. In `selective` mode, the action agent receives only the records chosen for that step; in `full` mode, it receives all active records. Both agents use the selected provider and model. The action agent has **no independent Recall** in either mode. Action budgets, the Tip policy, and the success condition are the same as for the baseline.
74
-
75
- ```powershell
76
- python coordmem/run.py --level L2-01 --mode selective --provider openai_official --model gpt-6-astra --confirm-medium --live
77
- ```
78
-
79
- Replace `selective` with `full` to switch modes. A normal decision step makes two potentially billable requests. See the [CoordMem method notes](coordmem/README.md) for the memory record format and output files.
80
-
81
  ## License
82
 
83
  Original project software is released under the [MIT License](LICENSE). Third-party code, data, and fonts retain their respective terms and attributions; see [Third-party notices](THIRD_PARTY_NOTICES.md).
 
17
 
18
  **PuzzleMixEscape is a benchmark of 94 interactive 3D escape rooms for multimodal models.** It tests whether a model can find clues from a first-person view, reason about spatial relationships, and act on what it discovers. In *Maintenance Store* (L2-01), for example, the model must move around to count scattered coloured balls and relate them to a note, a toolbox, and a ventilation grille. An episode succeeds only when the model opens the unlocked exit door.
19
 
20
+ [Level catalogue](level/index.json) · [Setup](#setup) · [Scene assets](assets/README.md) · [Model evaluation](#model-evaluation) · [Baseline guide](evaluation/README.md)
21
 
22
  ## Levels and evaluation protocol
23
 
 
68
  | `openrouter` | `OPENROUTER_API_KEY` | Use a `provider/model` ID with `medium` reasoning effort; set `PUZZLEMIX_OPENROUTER_PROXY` |
69
  | `dashscope` | `DASHSCOPE_API_KEY` | `qwen3.8-max` with thinking enabled and `thinking_budget=1024`; omit `--confirm-medium` |
70
 
 
 
 
 
 
 
 
 
 
 
71
  ## License
72
 
73
  Original project software is released under the [MIT License](LICENSE). Third-party code, data, and fonts retain their respective terms and attributions; see [Third-party notices](THIRD_PARTY_NOTICES.md).
README.zh-CN.md CHANGED
@@ -4,7 +4,7 @@
4
 
5
  **PuzzleMixEscape 是一个包含 94 个三维密室逃脱关卡的多模态模型评测基准。** 它考察模型能否在第一人称视角下主动寻找线索、理解空间关系,并通过一系列操作解开谜题。例如,在「维修储物间」(L2-01),模型需要移动视角清点散落的彩球,把观察结果与房间中的便签、工具箱和通风格栅联系起来。只有实际打开已解锁的出口门才算通关。
6
 
7
- [关卡目录](level/index.json) · [环境安装](#环境安装) · [场景资产](assets/README.zh-CN.md) · [模型评测](#模型评测) · [基线指南](evaluation/README.zh-CN.md) · [CoordMem](#coordmem)
8
 
9
  ## 关卡与评测协议
10
 
@@ -55,16 +55,6 @@ python run.py --level L2-01 --provider openai_official --model gpt-6-astra --con
55
  | `openrouter` | `OPENROUTER_API_KEY` | 模型名使用 `provider/model`;推理强度 `medium`;需设置 `PUZZLEMIX_OPENROUTER_PROXY` |
56
  | `dashscope` | `DASHSCOPE_API_KEY` | `qwen3.8-max`;启用思考,`thinking_budget=1024`,无需 `--confirm-medium` |
57
 
58
- ## CoordMem
59
-
60
- CoordMem 每步先调用记忆代理,再调用解谜代理。`selective` 模式只把记忆代理为本步选中的记录交给解谜代理;`full` 模式提供全部未归档记录。两个代理使用相同的接口和模型,两种模式下解谜代理都**不提供独立 Recall**。动作上限、Tip 规则和通关条件与基线一致。
61
-
62
- ```powershell
63
- python coordmem/run.py --level L2-01 --mode selective --provider openai_official --model gpt-6-astra --confirm-medium --live
64
- ```
65
-
66
- 将 `selective` 换成 `full` 即可切换模式。正常情况下,每个决策步会产生两次可能计费的模型请求。记忆记录的格式与输出文件见 [CoordMem 方法说明](coordmem/README.zh-CN.md)。
67
-
68
  ## 许可证
69
 
70
  本项目的原创软件采用 [MIT 许可证](LICENSE)。第三方代码、数据和字体保留各自的许可与署名,见[第三方说明](THIRD_PARTY_NOTICES.zh-CN.md)。
 
4
 
5
  **PuzzleMixEscape 是一个包含 94 个三维密室逃脱关卡的多模态模型评测基准。** 它考察模型能否在第一人称视角下主动寻找线索、理解空间关系,并通过一系列操作解开谜题。例如,在「维修储物间」(L2-01),模型需要移动视角清点散落的彩球,把观察结果与房间中的便签、工具箱和通风格栅联系起来。只有实际打开已解锁的出口门才算通关。
6
 
7
+ [关卡目录](level/index.json) · [环境安装](#环境安装) · [场景资产](assets/README.zh-CN.md) · [模型评测](#模型评测) · [基线指南](evaluation/README.zh-CN.md)
8
 
9
  ## 关卡与评测协议
10
 
 
55
  | `openrouter` | `OPENROUTER_API_KEY` | 模型名使用 `provider/model`;推理强度 `medium`;需设置 `PUZZLEMIX_OPENROUTER_PROXY` |
56
  | `dashscope` | `DASHSCOPE_API_KEY` | `qwen3.8-max`;启用思考,`thinking_budget=1024`,无需 `--confirm-medium` |
57
 
 
 
 
 
 
 
 
 
 
 
58
  ## 许可证
59
 
60
  本项目的原创软件采用 [MIT 许可证](LICENSE)。第三方代码、数据和字体保留各自的许可与署名,见[第三方说明](THIRD_PARTY_NOTICES.zh-CN.md)。
coordmem/README.md DELETED
@@ -1,53 +0,0 @@
1
- # CoordMem
2
-
3
- **English** | [简体中文](README.zh-CN.md)
4
-
5
- Before each environment action, CoordMem calls a memory agent, then an action agent. They use the same multimodal model and API key but send separate requests. The memory agent uses the delivered first-person images, inventory, and feedback on the previous action to update four kinds of records: objects and locations, clues, pending tasks, and attempts. The action agent receives memory records, the last 10 interactions, and the current view, and returns one action.
6
-
7
- | Mode | What the action agent receives |
8
- |---|---|
9
- | `selective` (default) | Only the active records the memory agent selects for this step via `push_ids`, with the corresponding clue images. |
10
- | `full` | All records that have not been archived, with their clue images. |
11
-
12
- The [baseline](../evaluation/README.md) does not load CoordMem. In both CoordMem modes, the action agent has **no independent Recall or note-editing action**. Memory updates do not consume environment actions. Action budgets, the Tip policy, scoring, and the exit-door success condition are unchanged.
13
-
14
- ## Evaluate one level
15
-
16
- Follow the [setup instructions](../README.md#setup) to install the native environment and the assets for your level. Run all commands from the repository root. The following checks the configuration without an API key:
17
-
18
- ```powershell
19
- python coordmem/run.py --level L2-01 --mode selective
20
- ```
21
-
22
- To run the evaluation in PowerShell 7, enter your own key and use a model available to your account:
23
-
24
- ```powershell
25
- $env:OPENAI_API_KEY = Read-Host "OpenAI API key" -MaskInput
26
- python coordmem/run.py --level L2-01 --mode selective --provider openai_official --model gpt-6-astra --confirm-medium --live
27
- ```
28
-
29
- Switch to `--mode full` to pass all active records. A normal decision step makes **two potentially billable requests**, one per agent. An API error stops the run; the program does not fabricate memory or an action.
30
-
31
- | Provider | API key | Settings |
32
- |---|---|---|
33
- | `openai_official` | `OPENAI_API_KEY` | Explicit `medium` reasoning effort. |
34
- | `openrouter` | `OPENROUTER_API_KEY` | Explicit `medium`; also set `PUZZLEMIX_OPENROUTER_PROXY`. |
35
- | `dashscope` | `DASHSCOPE_API_KEY` | `qwen3.8-max`, `thinking_budget=1024`; omit `--confirm-medium`. |
36
-
37
- Neither agent reads subscription login credentials or falls back to a different authentication method.
38
-
39
- ## Output files
40
-
41
- Each run evaluates one level. Its files are stored in `runs/<run-name>/episodes/<level-id>/`.
42
-
43
- | Output | Contents |
44
- |---|---|
45
- | `RESULT.json` | Environment outcome and action count. |
46
- | `API_CALLS.json` | Action-agent responses; this is not the total for both agents. |
47
- | `MEMORY_API_CALLS.json` | Memory-agent responses. |
48
- | `COORDMEM_USAGE.json` | Completed response counts for each agent and their combined total. |
49
- | `MEMORY_STATE.json` | Memory records and their current state. |
50
- | `dual_agent/` | Per-step inputs, responses, and memory updates. |
51
- | `PUBLIC_SUMMARY.json` | Mode and independent Recall availability. Neither mode has a Recall quota or a remaining count. If present, `recalls` counts past actions, not an allowance. |
52
-
53
- These are local run records, not files distributed with the source code.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
coordmem/README.zh-CN.md DELETED
@@ -1,53 +0,0 @@
1
- # CoordMem
2
-
3
- [English](README.md) | **简体中文**
4
-
5
- 每个环境动作之前,CoordMem 先调用记忆代理,再调用解谜代理。两者使用同一个多模态模型和同一个 API key,但分别发送请求。记忆代理根据已交付的第一人称图像、物品栏和上一步反馈,更新四类记录:物体与位置、线索、待办事项和已做的尝试。解谜代理接收记忆记录、最近 10 步交互和当前画面,输出一个动作。
6
-
7
- | 模式 | 解谜代理收到什么 |
8
- |---|---|
9
- | `selective`(默认) | 仅接收记忆代理通过 `push_ids` 为本步选中的有效记录,以及对应的线索图像。 |
10
- | `full` | 接收全部未归档记录及其线索图像。 |
11
-
12
- [基线](../evaluation/README.zh-CN.md)不加载 CoordMem。两种 CoordMem 模式下,解谜代理都**没有独立的 Recall 或笔记编辑动作**。更新记忆不消耗环境动作;动作上限、Tip 规则、评分和打开出口门的通关条件均保持不变。
13
-
14
- ## 单关评测
15
-
16
- 按[安装说明](../README.zh-CN.md#环境安装)安装原生环境和所选关卡的资产。以下命令均在仓库根目录执行。只检查配置时不需要 API key:
17
-
18
- ```powershell
19
- python coordmem/run.py --level L2-01 --mode selective
20
- ```
21
-
22
- 正式评测时,在 PowerShell 7 中输入自己的 key,并使用账号实际可用的模型:
23
-
24
- ```powershell
25
- $env:OPENAI_API_KEY = Read-Host "OpenAI API key" -MaskInput
26
- python coordmem/run.py --level L2-01 --mode selective --provider openai_official --model gpt-6-astra --confirm-medium --live
27
- ```
28
-
29
- 将参数改为 `--mode full` 即可提供全部有效记录。正常每个决策步产生**两次可能计费的请求**,每个代理一次。接口错误会停止运行,不编造记忆或动作。
30
-
31
- | 接口 | 密钥环境变量 | 设置 |
32
- |---|---|---|
33
- | `openai_official` | `OPENAI_API_KEY` | 显式使用 `medium` 推理强度。 |
34
- | `openrouter` | `OPENROUTER_API_KEY` | 显式使用 `medium`;另设 `PUZZLEMIX_OPENROUTER_PROXY`。 |
35
- | `dashscope` | `DASHSCOPE_API_KEY` | `qwen3.8-max`,`thinking_budget=1024`;无需 `--confirm-medium`。 |
36
-
37
- 两个代理均不读取订阅登录凭据,也不回退到其他认证方式。
38
-
39
- ## 输出文件
40
-
41
- 每次只评测一个关卡,结果保存在 `runs/<运行名>/episodes/<关卡ID>/`。
42
-
43
- | 输出 | 内容 |
44
- |---|---|
45
- | `RESULT.json` | 环境结果与动作数。 |
46
- | `API_CALLS.json` | 解谜代理的响应记录,不是两代理的总调用量。 |
47
- | `MEMORY_API_CALLS.json` | 记忆代理的响应记录。 |
48
- | `COORDMEM_USAGE.json` | 两个代理各自已完成的响应数及合计。 |
49
- | `MEMORY_STATE.json` | 记忆记录及其当前状态。 |
50
- | `dual_agent/` | 逐步输入、响应及记忆更新。 |
51
- | `PUBLIC_SUMMARY.json` | 当前模式及独立 Recall 的可用性。两种模式均不提供独立 Recall,不列额度或剩余次数;若有 `recalls` 字段,它表示已执行的次数。 |
52
-
53
- 这些是本地实验记录,不随源码发布。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
coordmem/method.py DELETED
@@ -1,398 +0,0 @@
1
- import hashlib
2
- import copy
3
- import json
4
- import re
5
- from collections import defaultdict
6
- from pathlib import Path
7
- from api_client import redact_json
8
- PROMPTS = Path(__file__).resolve().parent / 'prompts'
9
- ACTOR_FIXED = (PROMPTS / 'actor.txt').read_text('utf8').rstrip('\n')
10
- ACTIONS = set(re.findall('(?m)^\\{"action": "([^"]+)"', ACTOR_FIXED))
11
- SYSTEM = 'Return exactly one valid JSON object and nothing else.'
12
-
13
- def save(path, value):
14
- p = Path(path)
15
- p.parent.mkdir(parents=True, exist_ok=True)
16
- q = p.with_name(p.name + '.tmp')
17
- q.write_text(redact_json(value), 'utf8')
18
- q.replace(p)
19
-
20
- def dump(value):
21
- return json.dumps(value, ensure_ascii=False, indent=2)
22
-
23
- def strict_json(s):
24
-
25
- def pairs(rows):
26
- ans = {}
27
- for key, value in rows:
28
- if key in ans:
29
- raise ValueError('duplicate field ' + key)
30
- ans[key] = value
31
- return ans
32
- return json.loads(s, object_pairs_hook=pairs, parse_constant=lambda x: (_ for _ in ()).throw(ValueError(x)))
33
-
34
- class CoordMem:
35
-
36
- def __init__(self, plan, out, transport):
37
- self.plan = plan
38
- self.model = plan['model']
39
- self.out = Path(out)
40
- self.mode = plan['coordmem']['mode']
41
- if self.mode not in ('full', 'selective'):
42
- raise ValueError('Unknown memory mode')
43
- self.instructions = (PROMPTS / (self.mode + '.txt')).read_text('utf8')
44
- self.calls = []
45
- self.memcalls = []
46
- self.records = []
47
- self.registry = {}
48
- self.by_path = {}
49
- self.pending = None
50
- self.transport = transport
51
- self.FATAL_API = RuntimeError
52
- self.rounds = self.out / 'dual_agent'
53
- self.rounds.mkdir(parents=True, exist_ok=True)
54
- save(self.out / 'MEMORY_STATE.json', {'records': []})
55
-
56
- def no_stop(self):
57
- if Path(self.plan['stop_file']).exists():
58
- raise self.FATAL_API('User stop')
59
-
60
- def request(self, role, step, contents):
61
- self.no_stop()
62
- if role == 'memory' and (not step == 1 + len(self.memcalls) == 1 + len(self.calls)):
63
- raise ValueError('Out-of-order memory request')
64
- if role == 'action' and (not step == 1 + len(self.calls) == len(self.memcalls)):
65
- raise ValueError('Out-of-order action request')
66
- self.dir = self.rounds / f'{step:03d}'
67
- system = self.instructions if role == 'memory' else SYSTEM
68
- seq=2*step-int(role=='memory')
69
- meta=[{'type':'image','path':str(x),'size':[640,360],'sha256':hashlib.sha256(x.read_bytes()).hexdigest()} if isinstance(x,Path) else {'type':'text','text':x} for x in contents]
70
- save(self.dir/(role+'_request.json'),{'model':self.model,'role':role,'sequence':seq,'system_instruction':system,'contents':meta})
71
- try:
72
- rec=self.transport.request(role,step,system,contents)
73
- except Exception as exc:
74
- save(self.dir/(role+'_error.json'),{'error_type':type(exc).__name__,'response_completed':False,'billing_unknown':True})
75
- raise self.FATAL_API(f'{role} request failed at step {step}: {type(exc).__name__}') from None
76
- save(self.dir / (role + '_response.json'), rec)
77
- calls = self.memcalls if role == 'memory' else self.calls
78
- calls.append(rec)
79
- save(self.out / ('MEMORY_API_CALLS.json' if role == 'memory' else 'API_CALLS.json'), calls)
80
- save(self.out/'COORDMEM_USAGE.json',{'mode':self.mode,'completed_memory_responses':len(self.memcalls),'completed_action_responses':len(self.calls),'completed_total':len(self.memcalls)+len(self.calls)})
81
- self.no_stop()
82
- return (rec, rec['sent'])
83
-
84
- def image_id(self, path, step):
85
- path = Path(path).resolve(strict=True)
86
- key = str(path)
87
- if key in self.by_path:
88
- return self.by_path[key]
89
- match = re.match('turn_(\\d+)_', path.name)
90
- origin = int(match[1]) if match else step
91
- assert 0 <= origin <= step
92
- label = f'img_{origin:04d}'
93
- k = 2
94
- while label in self.registry:
95
- label = f'img_{origin:04d}_{k}'
96
- k += 1
97
- self.registry[label] = path
98
- self.by_path[key] = label
99
- return label
100
-
101
- def apply_ops(self, raw, visible_sources, visible_images, public_turn=None):
102
- specs = {'object': {'location', 'state'}, 'clue': {'image_id', 'location', 'description'}, 'pending': {'objective', 'target_id', 'known', 'missing', 'idea', 'clue_ids', 'status'}, 'attempt': {'action', 'target', 'target_id', 'input', 'result'}}
103
-
104
- def require(cond, msg):
105
- if not cond:
106
- raise ValueError(msg)
107
-
108
- def str1(v):
109
- return isinstance(v, str) and bool(v.strip())
110
- rows = copy.deepcopy(self.records)
111
- byid = {x['id']: x for x in rows}
112
- initial = set(byid)
113
- attempt_log = []
114
- result = strict_json(raw)
115
- require(isinstance(result, dict) and set(result) == {'ops'} and isinstance(result['ops'], list), 'response must be an ops object')
116
-
117
- def valid(rec):
118
- kind = rec.get('type')
119
- require(kind in specs and all((k in rec for k in specs[kind])), 'invalid record fields')
120
- for k in specs[kind] - {'target_id', 'clue_ids', 'input', 'status', 'image_id', 'idea'}:
121
- require(str1(rec.get(k)), f'nonempty text required: {k}')
122
- if kind == 'pending':
123
- require(isinstance(rec['idea'], str), 'idea must be text (may be empty)')
124
- if kind == 'clue':
125
- require(str1(rec['image_id']) and rec['image_id'] in visible_images, 'clue image not in delivered or saved sources')
126
- if kind == 'attempt':
127
- require(rec['action'] in ACTIONS, 'invalid attempt action')
128
- require(rec['input'] is None or str1(rec['input']), 'invalid attempt input')
129
- rid = rec['target_id']
130
- require(rid is None or (isinstance(rid, str) and rid in initial and (byid[rid]['type'] == 'object') and (not byid[rid].get('archived'))), 'invalid attempt target_id')
131
- if kind == 'pending':
132
- require(rec['status'] in {'pending', 'ready', 'resolved'}, 'invalid pending status')
133
- a = rec['target_id']
134
- require(a is None or (isinstance(a, str) and a in initial and (byid[a]['type'] == 'object')), 'invalid target_id')
135
- c = rec['clue_ids']
136
- require(isinstance(c, list) and all((isinstance(x, str) and x in initial and (byid[x]['type'] == 'clue') for x in c)), 'invalid clue_ids')
137
- for op in result['ops']:
138
- require(isinstance(op, dict), 'operation must be an object')
139
- name = op.get('op')
140
- shape = {'add': {'op', 'record', 'source_ids'}, 'update': {'op', 'id', 'fields', 'source_ids'}, 'archive': {'op', 'id', 'reason', 'source_ids'}}
141
- require(name in shape and set(op) == shape[name], 'invalid operation fields')
142
- refs = op['source_ids']
143
- require(isinstance(refs, list) and bool(refs) and all((isinstance(x, str) and x in visible_sources for x in refs)), 'unsupported evidence reference')
144
- if name == 'add':
145
- rec = op['record']
146
- if isinstance(rec, dict) and isinstance(rec.get('type'), str):
147
- rec = dict(rec, type=rec['type'].lower())
148
- if isinstance(rec, dict) and rec.get('type') == 'attempt':
149
- rec = dict(rec)
150
- rec.setdefault('target_id', None)
151
- require(isinstance(rec, dict) and rec.get('type') in specs and (set(rec) == {'type'} | specs[rec['type']]), 'invalid new record schema')
152
- if rec['type'] == 'attempt' and rec['action'] not in {'unlock', 'use'}:
153
- attempt_log.append('skip_not_unlock_or_use')
154
- continue
155
- valid(rec)
156
- if rec['type'] == 'attempt':
157
- mode = self.merge_attempt(rows, rec, refs, public_turn)
158
- attempt_log.append(mode)
159
- if mode != 'new':
160
- continue
161
- pref = {'object': 'o', 'clue': 'c', 'pending': 'p', 'attempt': 'a'}[rec['type']]
162
- idx = max([int(key[1:]) for key in byid if re.fullmatch(pref + '\\d+', key)] or [0]) + 1
163
- rec = dict(id=f'{pref}{idx}', **rec, source_ids=list(dict.fromkeys(refs)))
164
- rows.append(rec)
165
- byid[rec['id']] = rec
166
- else:
167
- rid = op['id']
168
- require(isinstance(rid, str) and rid in initial and (not byid[rid].get('archived', False)), 'unknown or archived target')
169
- rec = byid[rid]
170
- if name == 'update':
171
- if rec['type'] == 'attempt':
172
- attempt_log.append('skip_model_attempt_update')
173
- continue
174
- fields = op['fields']
175
- require(isinstance(fields, dict) and bool(fields) and (set(fields) <= specs[rec['type']]), 'invalid changed fields')
176
- valid({**rec, **fields})
177
- rec.update(fields)
178
- else:
179
- require(str1(op['reason']), 'missing archive reason')
180
- rec.update(archived=True, archive_reason=op['reason'])
181
- rec['source_ids'] = list(dict.fromkeys(rec['source_ids'] + refs))
182
- self.records = rows
183
- self.attempt_log = attempt_log
184
- return result['ops']
185
-
186
- @staticmethod
187
- def merge_attempt(rows, rec, refs, public_turn):
188
- if not public_turn:
189
- return 'skip_no_public_transition'
190
- action = public_turn['action']
191
- fb = public_turn['feedback']
192
- if fb['id'] not in refs or rec['action'] != action.get('action'):
193
- return 'skip_unlinked_or_wrong_action'
194
- if action.get('action') in {'open', 'close', 'take', 'press'} and action.get('point') is None:
195
- return 'skip_missing_required_point'
196
- actual = fb['text'].split('Tip:', 1)[0].strip()
197
- if not actual or rec['action'] in {'walk', 'turn', 'step_back', 'side_step'}:
198
- return 'skip_routine'
199
- if re.search('too far|out of reach|too close|obstacle|wrong target|missed|already open|already closed|give .part.|missing .*parameter|not executed|no object|nothing was hit|could not identify', actual, re.I):
200
- return 'skip_noninformative_feedback'
201
- fold = lambda value: ' '.join(value.casefold().split()).rstrip('.')
202
- rejected = fold(actual) == 'wrong code'
203
- if rejected:
204
- if action.get('action') != 'unlock' or not isinstance(action.get('code'), str) or rec['input'] != action['code']:
205
- return 'skip_mismatched_code'
206
- rec['result'] = 'Wrong code.'
207
- else:
208
- if fold(rec['result']) == 'wrong code':
209
- return 'skip_unsupported_code_rejection'
210
- rec['result'] = actual
211
- entry = {'action': rec['action'], 'input': rec['input']}
212
- rec['tried'] = [entry]
213
- key = lambda r: (r['target_id'], fold(r['target']), fold(r['result']))
214
- if rec['target_id'] is None or re.search('\\b(?:unknown|unclear|unsure|uncertain|unconfirmed|unidentified)\\b', rec['target'], re.I):
215
- return 'new'
216
- matched = next((x for x in rows if x['type'] == 'attempt' and (not x.get('archived', False)) and (key(x) == key(rec))), None)
217
- if matched is None:
218
- return 'new'
219
- if entry in matched['tried']:
220
- return 'deduplicated'
221
- matched['tried'].append(entry)
222
- matched['source_ids'] = list(dict.fromkeys(matched['source_ids'] + refs))
223
- return 'merged'
224
-
225
- @staticmethod
226
- def clue_sentence(s):
227
- s = ' '.join(s.split())
228
- s = re.sub('(?i)^\\s*(?:(?:read|action|text)\\s+)?feedback(?:\\s+says)?\\s*:?\\s*', '', s)
229
- s = s.replace('...', '…')
230
- s = re.sub('(?<=[A-Za-z0-9])\\.\\s+(?=[A-Z][A-Za-z])', '; ', s)
231
- return s.rstrip('. ') + '.'
232
-
233
- def actor_contents(self, original, current, cap, push_ids):
234
- h = str(original[0])
235
- match = re.search('(?m)^You are holding: .*?\\nActions left: \\d+\\.', h)
236
- assert match and h.rstrip().endswith('Your last 10 steps:')
237
- selected = set(push_ids)
238
- rows = [r for r in self.records if r['id'] in selected and (not r.get('archived', False))]
239
- idx = {r['id']: r for r in rows}
240
- msg = [ACTOR_FIXED + f'\n\nYou have at most {cap} actions.\n' + match[0] + '\n\nUse only the final image, labeled "Your current view", for action coordinates.\n\nMap:\n']
241
- objects = defaultdict(list)
242
- for r in rows:
243
- if r['type'] == 'object':
244
- group, _, detail = r['location'].partition(',')
245
- objects[group.strip()].append((detail.strip() if detail else group.strip(), r['state']))
246
- msg += [''.join(('- ' + g + ':\n' + ''.join((' - ' + loc + ': ' + st + '\n' for loc, st in li)) for g, li in objects.items())).rstrip('\n') or ('(no saved location or object records)' if self.mode == 'full' else '(no location or object records selected this turn)')]
247
- msg += ['\n\nClues:\n']
248
- attached = set()
249
- for r in rows:
250
- if r['type'] != 'clue':
251
- continue
252
- path = self.registry[r['image_id']]
253
- tag = ' (current view)' if path in current else ' (same image as another clue)' if path in attached else ''
254
- msg += [f"- {r['id']}{tag}: {self.clue_sentence(r['description'])}\n"]
255
- if not tag:
256
- msg += [path, '\n']
257
- attached.add(path)
258
- if not any((r['type'] == 'clue' for r in rows)):
259
- msg += ['(no saved clues)\n' if self.mode == 'full' else '(no clues selected this turn)\n']
260
- msg += ['\nPending tasks:\n']
261
- for r in rows:
262
- if r['type'] != 'pending':
263
- continue
264
- msg += [f"- {r['id']} ({r['status']}): {r['objective']}\n Known: {r['known']}\n Missing: {r['missing']}\n"]
265
- if r['idea'].strip():
266
- msg += [' Idea (untested): ' + ' '.join(r['idea'].split()) + '\n']
267
- if r.get('target_id') in idx:
268
- msg += [' Target: ' + idx[r['target_id']]['location'] + '\n']
269
- rel = [x for x in r['clue_ids'] if x in idx]
270
- if rel:
271
- msg += [' Related clues: ' + ', '.join(rel) + '\n']
272
- if not any((r['type'] == 'pending' for r in rows)):
273
- msg += ['(no saved pending tasks)\n' if self.mode == 'full' else '(no pending tasks selected this turn)\n']
274
- msg += ['\nAttempts:\n']
275
- for r in rows:
276
- if r['type'] != 'attempt':
277
- continue
278
- label = r['target']
279
- if r['result'] == 'Wrong code.':
280
- values = ', '.join((x['input'] for x in r['tried']))
281
- msg += [f'- {label}: rejected codes {values}.\n']
282
- else:
283
- actions = ', '.join((x['action'] + (f" with {x['input']}" if x['input'] is not None else '') for x in r['tried']))
284
- msg += [f"- {label}: {actions} -> {r['result']}\n"]
285
- if not any((r['type'] == 'attempt' for r in rows)):
286
- msg += ['(no saved attempts)\n' if self.mode == 'full' else '(no attempts selected this turn)\n']
287
- msg += ['\nYour last 10 steps:']
288
- for x in original[1:]:
289
- assert not (isinstance(x, str) and ('Recalls so far' in x or 'Result of the recall' in x))
290
- msg.append(x)
291
- return msg
292
-
293
- def prepare_prompt(self, esc, original):
294
- self.no_stop()
295
- assert not esc.recalls
296
- step = int(esc.t)
297
- if self.pending and self.pending[0] == step:
298
- return self.pending[1]
299
- views_at = next((i for i, x in enumerate(original) if isinstance(x, str) and 'Your current view:' in x))
300
- current = [Path(x).resolve(strict=True) for x in original[views_at + 1:] if isinstance(x, Path)]
301
- assert current and esc.turns
302
- last = esc.turns[-1]
303
- prev = int(last['turn'])
304
- assert prev == step - 1
305
- visible_feedback = last.get('model_feedback')
306
- if visible_feedback is None:
307
- visible_feedback = (last.get('result') or {}).get('text', '')
308
- fb = f'fb_{prev:04d}'
309
- action = {k: v for k, v in last['action'].items() if k != 'thought'}
310
- h = str(original[0])
311
- inv = re.search('(?m)^You are holding: (.*?)\\.$', h)
312
- assert inv
313
- view_ids = [self.image_id(p, prev) for p in current]
314
- feedback = {'step': prev, 'action': action, 'reason': last['action'].get('thought'), 'feedback': {'id': fb, 'text': visible_feedback}}
315
- memory_text = 'Update the memory using the observation and feedback below.\nReturn only the JSON object containing "ops" and "push_ids".\n\nCurrent memory (complete snapshot, including archived records):\n' + dump({'records': self.records}) + f'\n\nCurrent observation step: {prev}\nCurrent inventory: ' + json.dumps([] if inv[1] == 'nothing' else inv[1].split(', '), ensure_ascii=False) + "\n\nPrevious action, the robot's reason for it (a guess, not evidence), and its feedback:\n" + ('null' if prev == 0 else dump(feedback))
316
- if self.mode == 'full':
317
- memory_text = memory_text.replace('object containing "ops" and "push_ids".', 'object containing "ops".', 1)
318
- memparts = [memory_text + '\n\nCurrent first-person view\n' + f'[image_id: {view_ids[-1]}, step: {prev}]\n', current[-1]]
319
- memparts += ['\nAdditional images returned by the previous action:\n']
320
- if len(current) == 1:
321
- memparts += ['None.']
322
- else:
323
- for ident, path in zip(view_ids[:-1], current[:-1]):
324
- memparts += [f'\n[image_id: {ident}, step: {prev}]\n', path]
325
- saved = {v for r in self.records for v in r.get('source_ids', [])}
326
- visible_images = set(view_ids) | {r['image_id'] for r in self.records if r['type'] == 'clue'}
327
- allowed = saved | visible_images | ({fb} if prev else set())
328
- (self.rounds / f'{step:03d}').mkdir(parents=True, exist_ok=True)
329
- save(self.rounds / f'{step:03d}' / 'memory_before.json', {'records': self.records})
330
- raw, _ = self.request('memory', step, memparts)
331
- pushed = []
332
- try:
333
- reply = strict_json(raw['content'])
334
- if self.mode == 'selective':
335
- if not isinstance(reply, dict) or set(reply) != {'ops', 'push_ids'}:
336
- raise ValueError('Expected ops and push_ids')
337
- ids = reply['push_ids']
338
- if not isinstance(ids, list) or not all((isinstance(i, str) for i in ids)):
339
- raise ValueError('Invalid push_ids')
340
- ops = self.apply_ops(dump({'ops': reply['ops']}), allowed, visible_images, feedback if prev else None)
341
- else:
342
- ops = self.apply_ops(raw['content'], allowed, visible_images, feedback if prev else None)
343
- ids = [r['id'] for r in self.records if not r.get('archived', False)]
344
- active = {r['id'] for r in self.records if not r.get('archived', False)}
345
- pushed = list(dict.fromkeys((i for i in ids if i in active)))
346
- state = {'status': 'applied', 'ops': ops, 'attempt_actions': self.attempt_log, 'requested_push_ids': ids, 'pushed_ids': pushed, 'dropped_push_ids': list(dict.fromkeys((i for i in ids if i not in active)))}
347
- except (ValueError, KeyError, TypeError) as ex:
348
- state = {'status': 'rejected', 'error': str(ex), 'original_memory_retained': True}
349
- save(self.dir / 'memory_apply.json', state)
350
- save(self.dir / 'memory_after.json', {'records': self.records})
351
- save(self.out / 'MEMORY_STATE.json', {'records': self.records})
352
- if self.mode == 'full':
353
- pushed = [r['id'] for r in self.records if not r.get('archived', False)]
354
- parts = self.actor_contents(original, current, int(esc.cfg['max_steps']), pushed)
355
- self.pending = (step, parts)
356
- return parts
357
-
358
- def generate(self, contents, system):
359
- step, expected = self.pending
360
- assert contents == expected and system == SYSTEM
361
- raw, meta = self.request('action', step, contents)
362
- if self.plan['levels'][self.plan['selected_level']]['kind'] == 'native_room':
363
- action = strict_json(raw['content'])
364
- if not isinstance(action, dict) or action.get('action') not in ACTIONS:
365
- raise self.FATAL_API('Invalid environment action')
366
- if 'note' in action or 'drop_notes' in action:
367
- raise self.FATAL_API('Actor cannot edit the record')
368
- return (action, raw['content'], 'stop', raw)
369
- try:
370
- action = strict_json(raw['content'])
371
- assert isinstance(action, dict) and action.get('action') in ACTIONS
372
- assert isinstance(action.get('thought'), str) and action['thought'].strip()
373
- name = action['action']
374
- schema = {'walk': {'distance'}, 'turn': {'direction', 'degrees'}, 'step_back': {'distance'}, 'side_step': {'direction', 'distance'}, 'open': {'point', 'target', 'part'}, 'close': {'point', 'target', 'part'}, 'take': {'point', 'target'}, 'read': {'point', 'target', 'item'}, 'unlock': {'point', 'target', 'code', 'part'}, 'use': {'point', 'target', 'item', 'part'}, 'press': {'point', 'target'}}[name]
375
- assert set(action) <= schema | {'thought', 'action'}
376
- if 'point' in action:
377
- p = action['point']
378
- assert isinstance(p, list) and len(p) == 2 and all((type(z) in (int, float) for z in p)) and (0 <= p[0] <= 640) and (0 <= p[1] <= 360)
379
- if name == 'walk':
380
- assert action['distance'] in (0.25, 0.5, 1.0)
381
- if name == 'turn':
382
- assert action['direction'] in ('left', 'right', 'up', 'down') and 10 <= action['degrees'] <= 120
383
- if name in ('step_back', 'side_step'):
384
- assert 0.1 <= action['distance'] <= (0.6 if name == 'step_back' else 0.5)
385
- if name == 'side_step':
386
- assert action['direction'] in ('left', 'right')
387
- if name in ('open', 'close', 'take', 'press'):
388
- assert 'point' in action
389
- if name in ('open', 'close', 'take', 'read', 'unlock', 'use', 'press'):
390
- assert isinstance(action.get('target'), str) and action['target'].strip()
391
- if name == 'unlock':
392
- assert isinstance(action.get('code'), str) and action['code']
393
- if 'part' in action:
394
- assert type(action['part']) is int and action['part'] >= 1
395
- except (AssertionError, ValueError, KeyError, TypeError) as exc:
396
- save(self.dir / 'invalid_action.json', {'raw': raw['content'], 'executed': False, 'reason': str(exc) or 'not an allowed environment action/shape'})
397
- raise self.FATAL_API('Invalid action response; raw output retained, not executed')
398
- return (action, raw['content'], 'stop', raw)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
coordmem/prompts/actor.txt DELETED
@@ -1,32 +0,0 @@
1
- You are a robot locked in a room. Your goal is to get out of the room.The door is locked. What opens it is not told in this message; you have to find out by searching the room.Papers and notes in the room may give you hints.Things can be hidden inside furniture that opens, and some things are locked themselves.To win, open the exit door.
2
- Choose exactly one action:
3
- {"action": "walk", "distance": 0.25 | 0.5 | 1.0}
4
- {"action": "turn", "direction": "left" | "right" | "up" | "down", "degrees": 10-120}
5
- (left / right turn you in place; up / down tilt your head)
6
- {"action": "step_back", "distance": 0.1-0.6}
7
- {"action": "side_step", "direction": "left" | "right", "distance": 0.1-0.5}
8
- (step back or sideways while keeping your facing direction)
9
- {"action": "open", "point": [x, y], "target": "<what>"}
10
- {"action": "close", "point": [x, y], "target": "<what>"}
11
- {"action": "take", "point": [x, y], "target": "<what>"}
12
- {"action": "read", "point": [x, y], "target": "<what>"} the item in your hand needs no point
13
- {"action": "unlock", "point": [x, y], "target": "<what>", "code": "<digits>"} a locked item in your hand needs no point
14
- {"action": "use", "point": [x, y], "target": "<what>"} uses/place the item in your hand on the thing you point at,or on another item in your hand (that one needs no point; "target" names it)
15
- (when you hold several items, add "item": "<a word for the one you mean>" to read / use)
16
- {"action": "press", "point": [x, y], "target": "<what>"}
17
- For open / close / unlock on furniture, point directly at the door, drawer, or handle you mean. A clearly hit part takes priority over "part". If your point only identifies the whole furniture and not a specific part, add "part": <number>, counting drawers and doors column by column from the top left, starting at 1. The same part-selection rule applies when using an item on a furniture door or drawer. Room doors and items in your hand need no part.
18
- "point" says which thing you mean: the position of that thing in the photo of your current view, in pixels: x from 0 (left edge) to 640 (right edge) and y from 0 (top) to 360 (bottom). "target" is one or two words naming the whole thing you point at (cabinet, door, note, ...).
19
- You can only act on things in your current view, and you must be close to them.
20
- When you look for something, scan by turning in one direction; do not spin or alternate left and right turns. If you could not move, do not repeat the same walk; turn or step back instead.
21
- Do not guess codes. Only enter a code that you have actually found written somewhere in the room;trying numbers one after another is not allowed.
22
- Every reply must include "thought": one short sentence on why you take this action.
23
- Reply with exactly one JSON object:
24
- {"thought": "<why you take this action>", "action": "<one of the actions above>", ...its parameters...}
25
-
26
- Each turn you receive your inventory, actions left, saved memory, your last 10 steps, and your current first-person view.
27
- The saved memory is written for you by a separate recorder. You cannot edit it. It has four parts:
28
- - Map: the things found so far, where they are, and what was confirmed or is still not checked. When you have no better lead, go and check one of the unchecked things.
29
- - Clues: evidence found so far, with images when available.
30
- - Pending tasks: locked or unsolved things, what is known, what is missing, and an "Idea". An idea is an untested guess; test it when you can, and do not treat it as confirmed.
31
- - Attempts: codes and items that already failed on a target. Do not repeat them.
32
- A code suggested by an idea still has to come from something written or displayed in the room.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
coordmem/prompts/full.txt DELETED
@@ -1,102 +0,0 @@
1
- You keep the only long-term memory for a robot solving an escape room.
2
- The robot sees just its current view and its last 10 steps; anything
3
- not in memory is lost. Each record should help it answer one of:
4
- - What have I learned? (clues)
5
- - Where are things, and what is still not checked? (objects)
6
- - What could open each locked thing? (pending tasks)
7
- - What did I already try that failed? (attempts)
8
-
9
- You do not choose actions. Each turn you receive the current memory,
10
- the robot's last action with its reason and feedback, its inventory,
11
- and the images it now sees. The robot's reason is its own guess, not
12
- evidence. Facts need evidence from an image or feedback. Guesses are
13
- allowed only in the "idea" field of a pending task.
14
-
15
- Return exactly one JSON object: {"ops":[...]}.
16
- Each operation in "ops" has one of these forms:
17
-
18
- {"op":"add","record":{...},"source_ids":[...]}
19
- {"op":"update","id":"<record ID>","fields":{...},"source_ids":[...]}
20
- {"op":"archive","id":"<record ID>","reason":"<why>","source_ids":[...]}
21
-
22
- - "record": A new entry with "type" and the fields listed below. The system assigns its ID.
23
- - "id": Copy an existing record ID from the supplied memory.
24
- - "fields": Only the fields to change. Omitted fields stay unchanged.
25
- - "reason": Why the record is no longer needed, such as "duplicate of o1".
26
- - "source_ids": Copy the image or feedback IDs that support the operation.
27
-
28
- Record types and fields:
29
-
30
- OBJECT — One record per physical thing the robot may need to find or
31
- check again. Keep one record however many times the thing is seen.
32
- Before adding, look for an existing record of the same thing seen
33
- from another side or distance. If you cannot tell whether it is the
34
- same, update the closest record and say so in "state" instead of
35
- adding another. Small things sitting on or inside furniture belong in
36
- that furniture's record unless they need their own task.
37
- - "location": The room or area and a fixed landmark, such as "kitchen,
38
- left of the fridge". Do not use the robot's viewpoint ("on the left
39
- of the view"). Distinguish adjacent cabinets using a fixed starting
40
- point and counting direction, such as "second handle column from the
41
- sink toward the fridge". If the exact position is uncertain, record
42
- only the known area.
43
- - "state": One short line. First what was confirmed, then what is
44
- still unchecked: "locked", "opened; empty", "top drawer opened and
45
- empty; bottom drawer not checked", "seen, not inspected". Give only
46
- enough appearance to recognise the thing. Replace outdated details
47
- instead of appending history. If the attempt was too far away or hit
48
- the wrong part, do not mark that part as checked. If the thing moves
49
- or is taken, update location and state.
50
-
51
- CLUE — Save evidence even if its purpose is not yet known.
52
- - "image_id": Use the supplied image that best shows the clue, such as a
53
- close-up or a UV-lit view. If a later image is clearer, update the same clue.
54
- - "location": Say where the clue was found, not where it might be used.
55
- - "description": Preserve readable words, exact digits, symbols, and their
56
- order. Say when a detail came from text feedback rather than the image.
57
- Describe what the clue shows, not what it might mean.
58
-
59
- PENDING — One record per locked or unsolved thing that blocks
60
- progress. Do not create one for an object that is merely unchecked.
61
- - "objective": What remains unresolved and which target, such as "open
62
- the locked top drawer in the cabinet beside the window".
63
- - "target_id": The existing object record ID, or null if there is none.
64
- - "known": The confirmed facts about this target: what kind of lock or
65
- input it has, and what its display or keypad shows.
66
- - "missing": What the evidence says is still needed. If the evidence
67
- only says the drawer is locked, write "unknown", not "needs a key".
68
- - "idea": The best current guess for how to solve it, built from saved
69
- clues, the lock's appearance, or the robot's stated reason, such as
70
- "panel shows grams; the code may be a weight from the scale (c1)".
71
- Name the clue IDs it rests on. When an idea is tested and fails, keep the failed input in the attempts.
72
- Update the idea with a supported alternative, or briefly state what
73
- remains uncertain and which related clues need checking.
74
- A failed attempt does not by itself identify which clue is wrong.
75
- Write "" only when there is no reasonable guess and no failed idea
76
- that still needs review.
77
- - "clue_ids": IDs of existing clues related to this task, or [].
78
- - "status": Use "pending" while a requirement is missing or unknown, "ready"
79
- when the known requirements are met, and "resolved" only when the result
80
- is confirmed. Finding the key does not mean the drawer has opened.
81
-
82
- ATTEMPT — A code that was entered or an item that was used on a
83
- target and did not work, so the robot does not repeat it. Results
84
- like "locked", "cannot be read", or "cannot be taken" belong in the
85
- object's "state", not here. Skip distance errors, wrong targets,
86
- missing parameters, unexecuted actions, and successes.
87
- - "action": The action actually taken: "unlock" or "use".
88
- - "target": The object and part it was aimed at. Note if the actual
89
- part hit could not be confirmed.
90
- - "target_id": The ID of an existing object record in the supplied memory,
91
- or null if you cannot identify the object from visible evidence.
92
- For a drawer, use the cabinet ID and name the drawer in "target". Never
93
- use an engine ID.
94
- - "input": The code or item used, such as "0317" or "brass key".
95
- - "result": What the feedback said. Report only the new outcome; the
96
- program merges matching outcomes for the same identified target.
97
- Different drawers and uncertain targets are not merged.
98
-
99
- Update the same record when new evidence changes it. If two records are
100
- confirmed duplicates, keep any useful details in one before archiving the
101
- other. Do not guess a location, a requirement, or a result outside the
102
- "idea" field. If nothing worth keeping changed, return {"ops":[]}.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
coordmem/prompts/selective.txt DELETED
@@ -1,103 +0,0 @@
1
- You keep the only long-term memory for a robot solving an escape room.
2
- The robot sees just its current view and its last 10 steps; anything
3
- not in memory is lost. Each record should help it answer one of:
4
- - What have I learned? (clues)
5
- - Where are things, and what is still not checked? (objects)
6
- - What could open each locked thing? (pending tasks)
7
- - What did I already try that failed? (attempts)
8
-
9
- You do not choose actions. Each turn you receive the current memory,
10
- the robot's last action with its reason and feedback, its inventory,
11
- and the images it now sees. The robot's reason is its own guess, not
12
- evidence. Facts need evidence from an image or feedback. Guesses are
13
- allowed only in the "idea" field of a pending task.
14
-
15
- Return exactly one JSON object: {"ops":[...],"push_ids":[...]}.
16
- In "push_ids", list the IDs of memory records that would help the robot explore from its current situation, for example, ["c1", "o1"]. Use [] if none are useful.
17
- Each operation in "ops" has one of these forms:
18
-
19
- {"op":"add","record":{...},"source_ids":[...]}
20
- {"op":"update","id":"<record ID>","fields":{...},"source_ids":[...]}
21
- {"op":"archive","id":"<record ID>","reason":"<why>","source_ids":[...]}
22
-
23
- - "record": A new entry with "type" and the fields listed below. The system assigns its ID.
24
- - "id": Copy an existing record ID from the supplied memory.
25
- - "fields": Only the fields to change. Omitted fields stay unchanged.
26
- - "reason": Why the record is no longer needed, such as "duplicate of o1".
27
- - "source_ids": Copy the image or feedback IDs that support the operation.
28
-
29
- Record types and fields:
30
-
31
- OBJECT — One record per physical thing the robot may need to find or
32
- check again. Keep one record however many times the thing is seen.
33
- Before adding, look for an existing record of the same thing seen
34
- from another side or distance. If you cannot tell whether it is the
35
- same, update the closest record and say so in "state" instead of
36
- adding another. Small things sitting on or inside furniture belong in
37
- that furniture's record unless they need their own task.
38
- - "location": The room or area and a fixed landmark, such as "kitchen,
39
- left of the fridge". Do not use the robot's viewpoint ("on the left
40
- of the view"). Distinguish adjacent cabinets using a fixed starting
41
- point and counting direction, such as "second handle column from the
42
- sink toward the fridge". If the exact position is uncertain, record
43
- only the known area.
44
- - "state": One short line. First what was confirmed, then what is
45
- still unchecked: "locked", "opened; empty", "top drawer opened and
46
- empty; bottom drawer not checked", "seen, not inspected". Give only
47
- enough appearance to recognise the thing. Replace outdated details
48
- instead of appending history. If the attempt was too far away or hit
49
- the wrong part, do not mark that part as checked. If the thing moves
50
- or is taken, update location and state.
51
-
52
- CLUE — Save evidence even if its purpose is not yet known.
53
- - "image_id": Use the supplied image that best shows the clue, such as a
54
- close-up or a UV-lit view. If a later image is clearer, update the same clue.
55
- - "location": Say where the clue was found, not where it might be used.
56
- - "description": Preserve readable words, exact digits, symbols, and their
57
- order. Say when a detail came from text feedback rather than the image.
58
- Describe what the clue shows, not what it might mean.
59
-
60
- PENDING — One record per locked or unsolved thing that blocks
61
- progress. Do not create one for an object that is merely unchecked.
62
- - "objective": What remains unresolved and which target, such as "open
63
- the locked top drawer in the cabinet beside the window".
64
- - "target_id": The existing object record ID, or null if there is none.
65
- - "known": The confirmed facts about this target: what kind of lock or
66
- input it has, and what its display or keypad shows.
67
- - "missing": What the evidence says is still needed. If the evidence
68
- only says the drawer is locked, write "unknown", not "needs a key".
69
- - "idea": The best current guess for how to solve it, built from saved
70
- clues, the lock's appearance, or the robot's stated reason, such as
71
- "panel shows grams; the code may be a weight from the scale (c1)".
72
- Name the clue IDs it rests on. When an idea is tested and fails, keep the failed input in the attempts.
73
- Update the idea with a supported alternative, or briefly state what
74
- remains uncertain and which related clues need checking.
75
- A failed attempt does not by itself identify which clue is wrong.
76
- Write "" only when there is no reasonable guess and no failed idea
77
- that still needs review.
78
- - "clue_ids": IDs of existing clues related to this task, or [].
79
- - "status": Use "pending" while a requirement is missing or unknown, "ready"
80
- when the known requirements are met, and "resolved" only when the result
81
- is confirmed. Finding the key does not mean the drawer has opened.
82
-
83
- ATTEMPT — A code that was entered or an item that was used on a
84
- target and did not work, so the robot does not repeat it. Results
85
- like "locked", "cannot be read", or "cannot be taken" belong in the
86
- object's "state", not here. Skip distance errors, wrong targets,
87
- missing parameters, unexecuted actions, and successes.
88
- - "action": The action actually taken: "unlock" or "use".
89
- - "target": The object and part it was aimed at. Note if the actual
90
- part hit could not be confirmed.
91
- - "target_id": The ID of an existing object record in the supplied memory,
92
- or null if you cannot identify the object from visible evidence.
93
- For a drawer, use the cabinet ID and name the drawer in "target". Never
94
- use an engine ID.
95
- - "input": The code or item used, such as "0317" or "brass key".
96
- - "result": What the feedback said. Report only the new outcome; the
97
- program merges matching outcomes for the same identified target.
98
- Different drawers and uncertain targets are not merged.
99
-
100
- Update the same record when new evidence changes it. If two records are
101
- confirmed duplicates, keep any useful details in one before archiving the
102
- other. Do not guess a location, a requirement, or a result outside the
103
- "idea" field. If nothing worth keeping changed, use an empty "ops" list. You may still push useful records.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
coordmem/run.py DELETED
@@ -1,58 +0,0 @@
1
- import argparse
2
- import datetime
3
- import json
4
- import os
5
- import subprocess
6
- import sys
7
- from pathlib import Path, PureWindowsPath
8
-
9
- HERE=Path(__file__).resolve().parent
10
- ROOT=HERE.parent
11
- RT=ROOT/"runtime"
12
- sys.path[:0]=[str(RT),str(ROOT/"evaluation")]
13
- import episode_plan as ep
14
- from api_client import PROVIDERS,validate
15
-
16
-
17
- def main(argv=None):
18
- p=argparse.ArgumentParser(description="Evaluate CoordMem on one PuzzleMixEscape level.")
19
- p.add_argument("--level",required=True)
20
- p.add_argument("--mode",choices=("selective","full"),default="selective")
21
- p.add_argument("--provider",choices=PROVIDERS,default="openai_official")
22
- p.add_argument("--model")
23
- p.add_argument("--confirm-medium",action="store_true")
24
- p.add_argument("--live",action="store_true")
25
- p.add_argument("--gpu",type=int,default=0)
26
- p.add_argument("--out")
27
- args=list(sys.argv[1:] if argv is None else argv)
28
- if sum(x=="--level" or x.startswith("--level=") for x in args)!=1:p.error("Select exactly one level")
29
- a=p.parse_args(args); rows=ep.protocol().catalogue()
30
- if a.level not in rows or a.gpu<0:p.error("Invalid level or GPU")
31
- row=rows[a.level]; name=a.out or f"coordmem-{a.mode}-{a.level}-{datetime.datetime.now():%Y%m%d-%H%M%S-%f}"
32
- out=(ROOT/"runs"/name).resolve()
33
- if PureWindowsPath(name).drive or Path(name).is_absolute() or ".." in Path(name).parts or (ROOT/"runs").resolve() not in out.parents or ROOT not in out.parents:p.error("--out must be inside runs/")
34
- proxy=os.environ.get("PUZZLEMIX_OPENROUTER_PROXY") if a.provider=="openrouter" else None
35
- if a.live:
36
- if not a.model:p.error("--model is required")
37
- validate(a.provider,a.model,a.confirm_medium,proxy)
38
- if not os.environ.get(PROVIDERS[a.provider][0]):p.error("Missing "+PROVIDERS[a.provider][0])
39
- plan=dict(benchmark_root=str(RT),material_root=str(out),report_root=str(out/"reports"),repo=str(RT/"esi"),dataset=str(ROOT/"assets/datasets"),platform_root=str(RT/"platform"),resource_lease_root=str(ROOT/"runs/.locks"),gpu=a.gpu,host="local",model=a.model or "offline",provider=a.provider,record_provider=a.provider,proxy=proxy,launch_authorized=a.live,medium_support_confirmed=a.confirm_medium,reasoning=None if a.provider=="dashscope" else {"effort":"medium"},thinking_budget=1024 if a.provider=="dashscope" else None,selected_level=a.level,levels={a.level:row},effective_runs={a.level:str(out/"episodes"/a.level)},stop_file=str(out/"control/STOP"),image_size=[640,360],recent_steps=10,action_caps={a.level:row["action_cap"]},catalogue_sha256=ep.sha(RT/"catalogue.json"),runtime_manifest_sha256=ep.sha(RT/"manifest.json"),profile_sha256=ep.sha(RT/"PROFILE.json"),frozen_code_sha256={},recording_policy={"mode":"first_person_images_only1104","required":False,"policy_sha256":ep.sha(ROOT/"evaluation/support/video_policy1104.py")})
40
- plan["coordmem"]={"mode":a.mode,"sha256":{f.relative_to(HERE).as_posix():ep.sha(f) for f in HERE.rglob("*") if f.suffix in (".py",".txt")}}
41
- ep.validate_plan(plan,a.level,require_launch=a.live,verify_sources=True)
42
- if not a.live:
43
- print(json.dumps(dict(method="CoordMem",mode=a.mode,level=a.level,actions=row["action_cap"],actor_recalls=0,tip_after=row["tip_window"],api_calls=0)));return 0
44
- from importlib.util import find_spec
45
- if not find_spec("omnigibson"):p.error("Install the native simulator first (see ../README.md)")
46
- ds=Path(plan["dataset"])
47
- if not (ds/"omnigibson-robot-assets/VERSION").is_file() or (row["kind"]=="legacy" and not (ds/"behavior-1k-assets/scenes"/ep.protocol().effective_config(row)["scene"]).is_dir()):p.error("Missing assets: python setup_assets.py --level "+a.level)
48
- out.mkdir(parents=True,exist_ok=False);path=out/"control/PLAN.json";ep.save(path,ep.portable(plan))
49
- env=ep.worker_environment(plan,a.level)
50
- env.update(OMNIGIBSON_DATA_PATH=str(ds),ESI_DATASET=str(ds/"behavior-1k-assets"),PYTHONPATH=os.pathsep.join(map(str,(RT,ROOT/"evaluation",RT/"platform",RT/"esi/src",RT/"esi/run"))))
51
- subprocess.run([sys.executable,"-X","utf8","-B",str(HERE/"worker.py"),"--plan",str(path),"--level",a.level],cwd=ROOT,env=env,check=True)
52
- resultfile=out/"episodes"/a.level/"RESULT.json";result=json.loads(resultfile.read_text("utf8"))
53
- if result.get("status")!="completed" or result.get("environment_or_api_error"):raise RuntimeError("Episode interrupted")
54
- print(json.dumps(dict(method="CoordMem",mode=a.mode,result=resultfile.relative_to(ROOT).as_posix(),success=result["success"],actions=result["actions"])))
55
- return 0
56
-
57
-
58
- if __name__=="__main__":raise SystemExit(main())
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
coordmem/transport.py DELETED
@@ -1,66 +0,0 @@
1
- import base64
2
- import hashlib
3
- import os
4
- import time
5
- from pathlib import Path
6
-
7
- import httpx
8
- from PIL import Image
9
-
10
- from api_client import PROVIDERS, validate
11
-
12
- URLS = {
13
- "openai_official": "https://api.openai.com/v1/responses",
14
- "openrouter": "https://openrouter.ai/api/v1/chat/completions",
15
- "dashscope": "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
16
- }
17
-
18
-
19
- class KeyTransport:
20
- def __init__(self, plan, http=None):
21
- self.provider = plan["provider"]
22
- self.model = plan["model"]
23
- validate(self.provider, self.model, plan["medium_support_confirmed"], plan.get("proxy"))
24
- self.key = os.environ.get(PROVIDERS[self.provider][0])
25
- if not self.key:
26
- raise ValueError("Missing " + PROVIDERS[self.provider][0])
27
- proxy = plan.get("proxy") if self.provider == "openrouter" else os.environ.get("PUZZLEMIX_OPENAI_PROXY") if self.provider == "openai_official" else None
28
- self.http = http if http is not None else httpx.Client(trust_env=False, proxy=proxy, timeout=600, follow_redirects=False)
29
-
30
- def request(self, role, step, system, contents):
31
- official = self.provider == "openai_official"
32
- parts, sent = [], []
33
- for x in contents:
34
- if isinstance(x, Path):
35
- with Image.open(x) as image:
36
- if image.format != "PNG" or image.size != (640, 360):
37
- raise ValueError("Expected an original 640x360 PNG")
38
- raw = x.read_bytes()
39
- url = "data:image/png;base64," + base64.b64encode(raw).decode("ascii")
40
- parts.append({"type":"input_image","image_url":url} if official else {"type":"image_url","image_url":{"url":url}})
41
- sent.append({"type":"image","path":str(x),"sha256":hashlib.sha256(raw).hexdigest(),"size":[640,360]})
42
- elif isinstance(x,str):
43
- parts.append({"type":"input_text" if official else "text","text":x})
44
- sent.append({"type":"text","text":x})
45
- else:
46
- raise TypeError("Unexpected observation component")
47
- if official:
48
- body={"model":self.model,"instructions":system,"input":[{"role":"user","content":parts}],"reasoning":{"effort":"medium"},"store":False}
49
- else:
50
- body={"model":self.model,"messages":[{"role":"system","content":system},{"role":"user","content":parts}]}
51
- body.update({"reasoning":{"effort":"medium"}} if self.provider=="openrouter" else {"enable_thinking":True,"thinking_budget":1024})
52
- start=time.monotonic()
53
- resp=self.http.post(URLS[self.provider],json=body,headers={"Authorization":"Bearer "+self.key})
54
- if resp.status_code!=200:
55
- raise RuntimeError(f"{self.provider} HTTP {resp.status_code} on {role} request; no fallback or action executed")
56
- data=resp.json()
57
- if official:
58
- if data.get("status")!="completed":raise ValueError("Incomplete response")
59
- text="".join(c.get("text","") for m in data.get("output",[]) if m.get("type")=="message" for c in m.get("content",[]) if c.get("type")=="output_text")
60
- else:
61
- choice=data["choices"][0]
62
- if choice.get("finish_reason")!="stop":raise ValueError("Incomplete response")
63
- text=choice["message"]["content"]
64
- if not isinstance(text,str) or not text.strip():raise ValueError("Empty response")
65
- usage=data.get("usage") or {}
66
- return {"provider":self.provider,"access_method":"api_key","model":self.model,"returned_model":data.get("model"),"agent_role":role,"api_sequence":2*step-(role=="memory"),"system_instruction":system,"sent":sent,"content":text,"prompt_tokens":usage.get("input_tokens",usage.get("prompt_tokens")),"completion_tokens":usage.get("output_tokens",usage.get("completion_tokens")),"reasoning_effort":None if self.provider=="dashscope" else "medium","thinking_budget":1024 if self.provider=="dashscope" else None,"seconds":time.monotonic()-start,"finish_reason":"stop","response_id":data.get("id")}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
coordmem/worker.py DELETED
@@ -1,130 +0,0 @@
1
- import argparse
2
- import hashlib
3
- import inspect
4
- import json
5
- import os
6
- import runpy
7
- import subprocess
8
- import sys
9
- from pathlib import Path
10
- from types import SimpleNamespace
11
-
12
- HERE=Path(__file__).resolve().parent
13
- PROJECT=HERE.parent
14
- RT=PROJECT/"runtime"
15
- sys.path[:0]=[str(RT),str(PROJECT/"evaluation/support"),str(PROJECT/"evaluation")]
16
- from api_client import install as install_key_model
17
- from api_client import module
18
- from method import CoordMem,ACTOR_FIXED
19
- from transport import KeyTransport
20
-
21
-
22
- def replace_one(source,old,new):
23
- if source.count(old)!=1:raise RuntimeError("Incompatible benchmark decision hook")
24
- return source.replace(old,new,1)
25
-
26
-
27
- def native_packet(client,driver,session,ledger,data,original):
28
- if session.recalls or ledger[-1]["turn"]!=driver.step:raise ValueError("Inconsistent public history")
29
- esc=SimpleNamespace(t=driver.step+1,cfg={"max_steps":session.action_cap},recalls=0,turns=ledger)
30
- parts=client.prepare_prompt(esc,original)
31
- return dict(data,model_input_contents=[{"type":"image","path":str(x)} if isinstance(x,Path) else {"type":"text","text":x} for x in parts],prompt_text="".join("[photo: "+x.name+"]" if isinstance(x,Path) else x for x in parts),recall_limit=0)
32
-
33
-
34
- def bind_native(n):
35
- src=inspect.getsource(n.run_loop)
36
- old=" data = data or packet_now()"
37
- src=replace_one(src,old," if data is None:\n data = packet_now()\n if not smoke: data = _coord_packet(client,driver,session,ledger,data,explicit_contents(data)[0])")
38
- src=replace_one(src,"texts[0].startswith(U.rules(driver.public_id))","texts[0].startswith(U.rules(driver.public_id) if smoke else _coord_actor)")
39
- n._coord_packet=native_packet;n._coord_actor=ACTOR_FIXED
40
- exec(compile(src,n.__file__,"exec"),n.__dict__)
41
-
42
-
43
- def public_summary_writer(save, out, mode):
44
- target = out / "PUBLIC_SUMMARY.json"
45
-
46
- def write(path, value):
47
- if Path(path) == target:
48
- value = dict(value)
49
- for field in ("recall_limit", "recall_budget", "recall_cap", "recalls_left"):
50
- value.pop(field, None)
51
- value.update(method="CoordMem", mode=mode, independent_recall=False, recall_note="不提供独立 Recall")
52
- return save(path, value)
53
-
54
- return write
55
-
56
-
57
- def legacy_prompt(E,c):
58
- old=E.Escape.prompt
59
- def prompt(esc,*args,**kwargs):
60
- text=old(esc,*args,**kwargs)
61
- if not esc.turns or esc.turns[-1]["turn"]!=esc.t-1:return text
62
- parts=c.prepare_prompt(esc,list(esc._claw_contents));esc._claw_contents=parts
63
- return "".join("[photo: "+v.name+"]" if isinstance(v,Path) else v for v in parts)
64
- E.Escape.prompt=prompt
65
-
66
-
67
- def legacy_source(file):
68
- s=file.read_text("utf8")
69
- s=replace_one(s,"legacy_resume.install_prompt(E)","legacy_resume.install_prompt(E)\n_coord_prompt(E,client)")
70
- s=replace_one(s,"prompt.startswith(U.rules(level))","prompt.startswith(_coord_actor)")
71
- s=replace_one(s,"hashlib.sha256(U.rules(level).encode())","hashlib.sha256(_coord_actor.encode())")
72
- s=replace_one(s,"'recall_cap':C.recall_limit(esc)","'recall_cap':0")
73
- s=replace_one(s,"limit=C.recall_limit(esc);summary['recall_limit']=limit","limit=0;summary['recall_limit']=limit")
74
- s=replace_one(s,"ESI_ESCAPE_VIDEO='1'","ESI_ESCAPE_VIDEO='0'")
75
- lines=s.splitlines(True);hits=[i for i,x in enumerate(lines) if x.lstrip().startswith("videos_ok=")]
76
- if len(hits)!=1:raise RuntimeError("Incompatible recording policy")
77
- i=hits[0];lines[i]=" videos_ok=bool(_coord_media(out))\n"
78
- return compile("".join(lines),str(file),"exec")
79
-
80
-
81
- def main():
82
- p=argparse.ArgumentParser();p.add_argument("--plan",type=Path,required=True);p.add_argument("--level",required=True);p.add_argument("--native-child",action="store_true");a=p.parse_args()
83
- import episode_plan as ep
84
- import model_worker as w
85
- import native_model_episode as n
86
- import native_process as sup
87
- import video_policy1104 as vp
88
- plan=ep.read_plan(a.plan);mode=plan["coordmem"]["mode"]
89
- if mode not in ("full","selective") or not vp.enabled(plan):raise ValueError("Invalid method plan")
90
- ep.validate_plan(plan,a.level,require_launch=True,verify_sources=True)
91
- for name,digest in plan["coordmem"]["sha256"].items():
92
- f=(HERE/name).resolve()
93
- if HERE not in f.parents or ep.sha(f)!=digest:raise ValueError("Method source changed")
94
- ep.ensure_startup_environment(plan,a.level)
95
- out=Path(plan["effective_runs"][a.level])
96
- def installer(plan,out):
97
- install_key_model(plan["provider"],plan["model"],out,medium=plan["medium_support_confirmed"],proxy=plan.get("proxy"),stop=plan["stop_file"])
98
- c=CoordMem(plan,out,KeyTransport(plan));c.FATAL_API=module(plan["provider"]).FatalAPI
99
- from models import qwen
100
- def generate_json(instance,contents,system_instruction,**kwargs):
101
- action,text,finish,record=c.generate(contents,system_instruction)
102
- qwen.THINKING.append(record)
103
- return action,text,finish
104
- qwen.QwenModel.generate_json=generate_json
105
- return c
106
- w.install_transport=installer
107
- popen=subprocess.Popen
108
- class ChildProcess:
109
- def __getattr__(self,key):
110
- if key!="Popen":return getattr(subprocess,key)
111
- def child(cmd,*args,**kwargs):
112
- cmd=list(cmd);engine=str(RT/"model_worker.py")
113
- if "--native-child" in cmd and engine in cmd:cmd[cmd.index(engine)]=str(HERE/"worker.py")
114
- return popen(cmd,*args,**kwargs)
115
- return child
116
- sup.subprocess=ChildProcess();vp.install_worker(plan,a.level,out)
117
- ep.save=n.save=public_summary_writer(ep.save,out,mode)
118
- if plan["levels"][a.level]["kind"]=="legacy":
119
- old=runpy.run_path
120
- target=RT/"model_clients/legacy_worker_verified.py"
121
- def run(path,init_globals=None,run_name=None):
122
- if Path(path).resolve()!=target:return old(path,init_globals,run_name)
123
- scope=dict(init_globals or {},__name__=run_name or "<run_path>",__file__=str(target),_coord_prompt=legacy_prompt,_coord_actor=ACTOR_FIXED,_coord_media=vp.verify_disabled)
124
- exec(legacy_source(target),scope);return scope
125
- runpy.run_path=run
126
- else:bind_native(n)
127
- return w.main(sys.argv[1:])
128
-
129
-
130
- if __name__=="__main__":raise SystemExit(main())
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
evaluation/README.md CHANGED
@@ -9,5 +9,3 @@ python run.py --level L2-01
9
  ```
10
 
11
  For an actual evaluation, follow the [API-key example](../README.md#model-evaluation). Specify one level and a model available to your account. Only `--live` sends requests to the provider. The baseline does not use a subscription login, a background queue, or a batch scheduler.
12
-
13
- For the memory-agent method, use the separate [CoordMem entry point](../coordmem/README.md). For the baseline outcome and action count, see [Results](../README.md#results).
 
9
  ```
10
 
11
  For an actual evaluation, follow the [API-key example](../README.md#model-evaluation). Specify one level and a model available to your account. Only `--live` sends requests to the provider. The baseline does not use a subscription login, a background queue, or a batch scheduler.
 
 
evaluation/README.zh-CN.md CHANGED
@@ -9,5 +9,3 @@ python run.py --level L2-01
9
  ```
10
 
11
  这条命令不启动模拟器,也不调用模型。正式评测请参考 [API key 使用示例](../README.zh-CN.md#模型评测),指定一个关卡和自己账号可用的模型。只有加上 `--live` 才会向供应商发送请求。基线不使用订阅登录、后台队列或批量派单。
12
-
13
- 要评测记忆代理方法,请使用单独的 [CoordMem 入口](../coordmem/README.zh-CN.md)。基线的通关结果与动作数见[评测结果说明](../README.zh-CN.md#评测结果)。
 
9
  ```
10
 
11
  这条命令不启动模拟器,也不调用模型。正式评测请参考 [API key 使用示例](../README.zh-CN.md#模型评测),指定一个关卡和自己账号可用的模型。只有加上 `--live` 才会向供应商发送请求。基线不使用订阅登录、后台队列或批量派单。