simver commited on
Commit
767545e
·
verified ·
1 Parent(s): 246a372

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. cube1/data/C485.json +316 -0
  2. cube1/data/C486.json +316 -0
  3. cube1/data/C487.json +315 -0
  4. cube1/data/C488.json +315 -0
  5. cube1/data/C489.json +315 -0
  6. cube1/data/C490.json +316 -0
  7. cube1/data/C491.json +315 -0
  8. cube1/data/C492.json +315 -0
  9. cube1/data/C493.json +315 -0
  10. cube1/data/C494.json +314 -0
  11. cube1/data/C495.json +316 -0
  12. cube1/data/C496.json +316 -0
  13. cube1/data/C497.json +316 -0
  14. cube1/data/C498.json +316 -0
  15. cube1/data/C499.json +315 -0
  16. cube1/data/C500.json +314 -0
  17. cube1/data/C501.json +316 -0
  18. cube1/data/C502.json +316 -0
  19. cube1/images/blank_nets/.gitkeep +1 -0
  20. cube1/images/path_sequences/.gitkeep +1 -0
  21. cube2/data/C425.json +246 -0
  22. cube2/data/C426.json +246 -0
  23. cube2/data/C427.json +246 -0
  24. cube2/data/C428.json +246 -0
  25. cube2/data/C429.json +246 -0
  26. cube2/data/C430.json +246 -0
  27. cube2/data/C431.json +246 -0
  28. cube2/data/C432.json +246 -0
  29. cube2/data/C433.json +246 -0
  30. cube2/data/C434.json +246 -0
  31. cube2/data/C435.json +246 -0
  32. cube2/data/C436.json +246 -0
  33. cube2/data/C437.json +246 -0
  34. cube2/data/C438.json +246 -0
  35. cube2/data/C439.json +246 -0
  36. cube2/data/C440.json +246 -0
  37. cube2/data/C441.json +246 -0
  38. cube2/data/C442.json +246 -0
  39. cube2/data/C443.json +246 -0
  40. cube2/data/C444.json +246 -0
  41. cube2/data/C445.json +246 -0
  42. cube2/data/C446.json +246 -0
  43. cube2/data/C447.json +246 -0
  44. cube2/data/C448.json +246 -0
  45. cube2/data/C449.json +246 -0
  46. cube2/data/C450.json +246 -0
  47. cube2/data/C451.json +246 -0
  48. cube2/data/C452.json +246 -0
  49. cube2/data/C453.json +246 -0
  50. cube2/data/C454.json +246 -0
cube1/data/C485.json ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C485",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> E -> E -> S -> W -> S -> W -> N -> N -> N\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "S",
7
+ "E",
8
+ "E",
9
+ "S",
10
+ "W",
11
+ "S",
12
+ "W",
13
+ "N",
14
+ "N",
15
+ "N"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "P",
20
+ "rotation": 90,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "D",
26
+ "rotation": 180,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "K",
32
+ "rotation": 90,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "B",
38
+ "rotation": 0,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "D",
44
+ "rotation": 270,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "P",
50
+ "rotation": 180,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "arrow_left",
56
+ "rotation": 0,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "D",
62
+ "rotation": 0,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "B",
68
+ "rotation": 90,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "heart",
74
+ "rotation": 270,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C485_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 485,
85
+ "name": "Reconstruct 485",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-485.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "B",
96
+ "rotation": 180,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "P",
102
+ "rotation": 90,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "D",
108
+ "rotation": 90,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "K",
114
+ "rotation": 270,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "heart",
120
+ "rotation": 0,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "arrow_left",
126
+ "rotation": 270,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "B",
133
+ "P",
134
+ "D",
135
+ "K",
136
+ "heart",
137
+ "arrow_left"
138
+ ],
139
+ "start_x": 1,
140
+ "start_y": 1,
141
+ "grid_width": 5,
142
+ "grid_height": 6,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "B",
146
+ "rotation": 180
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "arrow_left",
150
+ "rotation": 270
151
+ },
152
+ "FRONT": {
153
+ "patternId": "P",
154
+ "rotation": 90
155
+ },
156
+ "BACK": {
157
+ "patternId": "K",
158
+ "rotation": 90
159
+ },
160
+ "LEFT": {
161
+ "patternId": "heart",
162
+ "rotation": 270
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "D",
166
+ "rotation": 180
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "arrow_left",
172
+ "rotation": 270,
173
+ "x": 1,
174
+ "y": 1
175
+ },
176
+ {
177
+ "patternId": "P",
178
+ "rotation": 90,
179
+ "x": 1,
180
+ "y": 2
181
+ },
182
+ {
183
+ "patternId": "D",
184
+ "rotation": 180,
185
+ "x": 2,
186
+ "y": 2
187
+ },
188
+ {
189
+ "patternId": "K",
190
+ "rotation": 90,
191
+ "x": 3,
192
+ "y": 2
193
+ },
194
+ {
195
+ "patternId": "B",
196
+ "rotation": 0,
197
+ "x": 3,
198
+ "y": 3
199
+ },
200
+ {
201
+ "patternId": "D",
202
+ "rotation": 270,
203
+ "x": 2,
204
+ "y": 3
205
+ },
206
+ {
207
+ "patternId": "P",
208
+ "rotation": 180,
209
+ "x": 2,
210
+ "y": 4
211
+ },
212
+ {
213
+ "patternId": "arrow_left",
214
+ "rotation": 0,
215
+ "x": 1,
216
+ "y": 4
217
+ },
218
+ {
219
+ "patternId": "D",
220
+ "rotation": 0,
221
+ "x": 1,
222
+ "y": 3
223
+ },
224
+ {
225
+ "patternId": "B",
226
+ "rotation": 90,
227
+ "x": 1,
228
+ "y": 2
229
+ },
230
+ {
231
+ "patternId": "heart",
232
+ "rotation": 270,
233
+ "x": 1,
234
+ "y": 1
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "FRONT",
239
+ "RIGHT",
240
+ "BACK",
241
+ "TOP",
242
+ "RIGHT",
243
+ "FRONT",
244
+ "BOTTOM",
245
+ "RIGHT",
246
+ "TOP",
247
+ "LEFT"
248
+ ],
249
+ "required_slots": [
250
+ "FRONT",
251
+ "RIGHT",
252
+ "BACK",
253
+ "TOP",
254
+ "BOTTOM",
255
+ "LEFT"
256
+ ],
257
+ "required_count": 6,
258
+ "answer": {
259
+ "faces": {
260
+ "TOP": {
261
+ "patternId": "B",
262
+ "rotation": 180
263
+ },
264
+ "BOTTOM": {
265
+ "patternId": "arrow_left",
266
+ "rotation": 270
267
+ },
268
+ "FRONT": {
269
+ "patternId": "P",
270
+ "rotation": 90
271
+ },
272
+ "BACK": {
273
+ "patternId": "K",
274
+ "rotation": 270
275
+ },
276
+ "LEFT": {
277
+ "patternId": "heart",
278
+ "rotation": 0
279
+ },
280
+ "RIGHT": {
281
+ "patternId": "D",
282
+ "rotation": 90
283
+ }
284
+ }
285
+ },
286
+ "legacy_answer": {
287
+ "TOP": {
288
+ "patternId": "B",
289
+ "rotation": 180
290
+ },
291
+ "BOTTOM": {
292
+ "patternId": "arrow_left",
293
+ "rotation": 270
294
+ },
295
+ "FRONT": {
296
+ "patternId": "P",
297
+ "rotation": 90
298
+ },
299
+ "BACK": {
300
+ "patternId": "K",
301
+ "rotation": 270
302
+ },
303
+ "LEFT": {
304
+ "patternId": "heart",
305
+ "rotation": 0
306
+ },
307
+ "RIGHT": {
308
+ "patternId": "D",
309
+ "rotation": 90
310
+ }
311
+ },
312
+ "prompt": {
313
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
314
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C485\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> E -> S -> W -> S -> W -> N -> N -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=P, rotation=90, flipVertical=true\n- step 2: patternId=D, rotation=180, flipVertical=true\n- step 3: patternId=K, rotation=90, flipVertical=true\n- step 4: patternId=B, rotation=0, flipVertical=true\n- step 5: patternId=D, rotation=270, flipVertical=true\n- step 6: patternId=P, rotation=180, flipVertical=true\n- step 7: patternId=arrow_left, rotation=0, flipVertical=true\n- step 8: patternId=D, rotation=0, flipVertical=true\n- step 9: patternId=B, rotation=90, flipVertical=true\n- step 10: patternId=heart, rotation=270, flipVertical=true\n- allowed patternId values for this task: P, D, K, B, arrow_left, heart, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
315
+ }
316
+ }
cube1/data/C486.json ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C486",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> W -> S -> E -> W -> S -> W -> N -> W -> W\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "S",
7
+ "W",
8
+ "S",
9
+ "E",
10
+ "W",
11
+ "S",
12
+ "W",
13
+ "N",
14
+ "W",
15
+ "W"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "H",
20
+ "rotation": 270,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "K",
26
+ "rotation": 180,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "circle",
32
+ "rotation": 180,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "H",
38
+ "rotation": 180,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "circle",
44
+ "rotation": 180,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "W",
50
+ "rotation": 180,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "2",
56
+ "rotation": 270,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "circle",
62
+ "rotation": 270,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "K",
68
+ "rotation": 270,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "arrow_left",
74
+ "rotation": 90,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C486_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 486,
85
+ "name": "Reconstruct 486",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-486.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "circle",
96
+ "rotation": 270,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "H",
102
+ "rotation": 270,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "W",
108
+ "rotation": 270,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "2",
114
+ "rotation": 270,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "K",
120
+ "rotation": 270,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "arrow_left",
126
+ "rotation": 270,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "circle",
133
+ "H",
134
+ "W",
135
+ "2",
136
+ "K",
137
+ "arrow_left"
138
+ ],
139
+ "start_x": 5,
140
+ "start_y": 1,
141
+ "grid_width": 7,
142
+ "grid_height": 6,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "circle",
146
+ "rotation": 270
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "arrow_left",
150
+ "rotation": 270
151
+ },
152
+ "FRONT": {
153
+ "patternId": "H",
154
+ "rotation": 270
155
+ },
156
+ "BACK": {
157
+ "patternId": "2",
158
+ "rotation": 90
159
+ },
160
+ "LEFT": {
161
+ "patternId": "K",
162
+ "rotation": 180
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "W",
166
+ "rotation": 0
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "arrow_left",
172
+ "rotation": 270,
173
+ "x": 5,
174
+ "y": 1
175
+ },
176
+ {
177
+ "patternId": "H",
178
+ "rotation": 270,
179
+ "x": 5,
180
+ "y": 2
181
+ },
182
+ {
183
+ "patternId": "K",
184
+ "rotation": 180,
185
+ "x": 4,
186
+ "y": 2
187
+ },
188
+ {
189
+ "patternId": "circle",
190
+ "rotation": 180,
191
+ "x": 4,
192
+ "y": 3
193
+ },
194
+ {
195
+ "patternId": "H",
196
+ "rotation": 180,
197
+ "x": 5,
198
+ "y": 3
199
+ },
200
+ {
201
+ "patternId": "circle",
202
+ "rotation": 180,
203
+ "x": 4,
204
+ "y": 3
205
+ },
206
+ {
207
+ "patternId": "W",
208
+ "rotation": 180,
209
+ "x": 4,
210
+ "y": 4
211
+ },
212
+ {
213
+ "patternId": "2",
214
+ "rotation": 270,
215
+ "x": 3,
216
+ "y": 4
217
+ },
218
+ {
219
+ "patternId": "circle",
220
+ "rotation": 270,
221
+ "x": 3,
222
+ "y": 3
223
+ },
224
+ {
225
+ "patternId": "K",
226
+ "rotation": 270,
227
+ "x": 2,
228
+ "y": 3
229
+ },
230
+ {
231
+ "patternId": "arrow_left",
232
+ "rotation": 90,
233
+ "x": 1,
234
+ "y": 3
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "FRONT",
239
+ "LEFT",
240
+ "TOP",
241
+ "FRONT",
242
+ "TOP",
243
+ "RIGHT",
244
+ "BACK",
245
+ "TOP",
246
+ "LEFT",
247
+ "BOTTOM"
248
+ ],
249
+ "required_slots": [
250
+ "FRONT",
251
+ "LEFT",
252
+ "TOP",
253
+ "RIGHT",
254
+ "BACK",
255
+ "BOTTOM"
256
+ ],
257
+ "required_count": 6,
258
+ "answer": {
259
+ "faces": {
260
+ "TOP": {
261
+ "patternId": "circle",
262
+ "rotation": 270
263
+ },
264
+ "BOTTOM": {
265
+ "patternId": "arrow_left",
266
+ "rotation": 270
267
+ },
268
+ "FRONT": {
269
+ "patternId": "H",
270
+ "rotation": 270
271
+ },
272
+ "BACK": {
273
+ "patternId": "2",
274
+ "rotation": 270
275
+ },
276
+ "LEFT": {
277
+ "patternId": "K",
278
+ "rotation": 270
279
+ },
280
+ "RIGHT": {
281
+ "patternId": "W",
282
+ "rotation": 270
283
+ }
284
+ }
285
+ },
286
+ "legacy_answer": {
287
+ "TOP": {
288
+ "patternId": "circle",
289
+ "rotation": 270
290
+ },
291
+ "BOTTOM": {
292
+ "patternId": "arrow_left",
293
+ "rotation": 270
294
+ },
295
+ "FRONT": {
296
+ "patternId": "H",
297
+ "rotation": 270
298
+ },
299
+ "BACK": {
300
+ "patternId": "2",
301
+ "rotation": 270
302
+ },
303
+ "LEFT": {
304
+ "patternId": "K",
305
+ "rotation": 270
306
+ },
307
+ "RIGHT": {
308
+ "patternId": "W",
309
+ "rotation": 270
310
+ }
311
+ },
312
+ "prompt": {
313
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
314
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C486\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): S -> W -> S -> E -> W -> S -> W -> N -> W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=H, rotation=270, flipVertical=true\n- step 2: patternId=K, rotation=180, flipVertical=true\n- step 3: patternId=circle, rotation=180, flipVertical=true\n- step 4: patternId=H, rotation=180, flipVertical=true\n- step 5: patternId=circle, rotation=180, flipVertical=true\n- step 6: patternId=W, rotation=180, flipVertical=true\n- step 7: patternId=2, rotation=270, flipVertical=true\n- step 8: patternId=circle, rotation=270, flipVertical=true\n- step 9: patternId=K, rotation=270, flipVertical=true\n- step 10: patternId=arrow_left, rotation=90, flipVertical=true\n- allowed patternId values for this task: H, K, circle, W, 2, arrow_left, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
315
+ }
316
+ }
cube1/data/C487.json ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C487",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> E -> S -> E -> N -> N -> N -> S -> N -> N\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "S",
7
+ "E",
8
+ "S",
9
+ "E",
10
+ "N",
11
+ "N",
12
+ "N",
13
+ "S",
14
+ "N",
15
+ "N"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "E",
20
+ "rotation": 90,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "D",
26
+ "rotation": 270,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "arrow_right",
32
+ "rotation": 180,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "arrow_up",
38
+ "rotation": 90,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "D",
44
+ "rotation": 180,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "E",
50
+ "rotation": 0,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "D",
56
+ "rotation": 180,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "E",
62
+ "rotation": 0,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "D",
68
+ "rotation": 180,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "arrow_up",
74
+ "rotation": 90,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C487_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 487,
85
+ "name": "Reconstruct 487",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-487.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "arrow_right",
96
+ "rotation": 90,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "E",
102
+ "rotation": 90,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "D",
108
+ "rotation": 180,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "arrow_up",
114
+ "rotation": 0,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "D",
120
+ "rotation": 0,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "6",
126
+ "rotation": 270,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "arrow_right",
133
+ "E",
134
+ "D",
135
+ "arrow_up",
136
+ "D",
137
+ "6"
138
+ ],
139
+ "start_x": 1,
140
+ "start_y": 3,
141
+ "grid_width": 5,
142
+ "grid_height": 7,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "arrow_right",
146
+ "rotation": 90
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "6",
150
+ "rotation": 270
151
+ },
152
+ "FRONT": {
153
+ "patternId": "E",
154
+ "rotation": 90
155
+ },
156
+ "BACK": {
157
+ "patternId": "arrow_up",
158
+ "rotation": 180
159
+ },
160
+ "LEFT": {
161
+ "patternId": "D",
162
+ "rotation": 270
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "D",
166
+ "rotation": 270
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "6",
172
+ "rotation": 270,
173
+ "x": 1,
174
+ "y": 3
175
+ },
176
+ {
177
+ "patternId": "E",
178
+ "rotation": 90,
179
+ "x": 1,
180
+ "y": 4
181
+ },
182
+ {
183
+ "patternId": "D",
184
+ "rotation": 270,
185
+ "x": 2,
186
+ "y": 4
187
+ },
188
+ {
189
+ "patternId": "arrow_right",
190
+ "rotation": 180,
191
+ "x": 2,
192
+ "y": 5
193
+ },
194
+ {
195
+ "patternId": "arrow_up",
196
+ "rotation": 90,
197
+ "x": 3,
198
+ "y": 5
199
+ },
200
+ {
201
+ "patternId": "D",
202
+ "rotation": 180,
203
+ "x": 3,
204
+ "y": 4
205
+ },
206
+ {
207
+ "patternId": "E",
208
+ "rotation": 0,
209
+ "x": 3,
210
+ "y": 3
211
+ },
212
+ {
213
+ "patternId": "D",
214
+ "rotation": 180,
215
+ "x": 3,
216
+ "y": 2
217
+ },
218
+ {
219
+ "patternId": "E",
220
+ "rotation": 0,
221
+ "x": 3,
222
+ "y": 3
223
+ },
224
+ {
225
+ "patternId": "D",
226
+ "rotation": 180,
227
+ "x": 3,
228
+ "y": 2
229
+ },
230
+ {
231
+ "patternId": "arrow_up",
232
+ "rotation": 90,
233
+ "x": 3,
234
+ "y": 1
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "FRONT",
239
+ "RIGHT",
240
+ "TOP",
241
+ "BACK",
242
+ "RIGHT",
243
+ "FRONT",
244
+ "LEFT",
245
+ "FRONT",
246
+ "LEFT",
247
+ "BACK"
248
+ ],
249
+ "required_slots": [
250
+ "FRONT",
251
+ "RIGHT",
252
+ "TOP",
253
+ "BACK",
254
+ "LEFT"
255
+ ],
256
+ "required_count": 5,
257
+ "answer": {
258
+ "faces": {
259
+ "TOP": {
260
+ "patternId": "arrow_right",
261
+ "rotation": 90
262
+ },
263
+ "BOTTOM": {
264
+ "patternId": "?",
265
+ "rotation": 0
266
+ },
267
+ "FRONT": {
268
+ "patternId": "E",
269
+ "rotation": 90
270
+ },
271
+ "BACK": {
272
+ "patternId": "arrow_up",
273
+ "rotation": 0
274
+ },
275
+ "LEFT": {
276
+ "patternId": "D",
277
+ "rotation": 0
278
+ },
279
+ "RIGHT": {
280
+ "patternId": "D",
281
+ "rotation": 180
282
+ }
283
+ }
284
+ },
285
+ "legacy_answer": {
286
+ "TOP": {
287
+ "patternId": "arrow_right",
288
+ "rotation": 90
289
+ },
290
+ "BOTTOM": {
291
+ "patternId": "?",
292
+ "rotation": 0
293
+ },
294
+ "FRONT": {
295
+ "patternId": "E",
296
+ "rotation": 90
297
+ },
298
+ "BACK": {
299
+ "patternId": "arrow_up",
300
+ "rotation": 0
301
+ },
302
+ "LEFT": {
303
+ "patternId": "D",
304
+ "rotation": 0
305
+ },
306
+ "RIGHT": {
307
+ "patternId": "D",
308
+ "rotation": 180
309
+ }
310
+ },
311
+ "prompt": {
312
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
313
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C487\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> S -> E -> N -> N -> N -> S -> N -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=E, rotation=90, flipVertical=true\n- step 2: patternId=D, rotation=270, flipVertical=true\n- step 3: patternId=arrow_right, rotation=180, flipVertical=true\n- step 4: patternId=arrow_up, rotation=90, flipVertical=true\n- step 5: patternId=D, rotation=180, flipVertical=true\n- step 6: patternId=E, rotation=0, flipVertical=true\n- step 7: patternId=D, rotation=180, flipVertical=true\n- step 8: patternId=E, rotation=0, flipVertical=true\n- step 9: patternId=D, rotation=180, flipVertical=true\n- step 10: patternId=arrow_up, rotation=90, flipVertical=true\n- allowed patternId values for this task: E, D, arrow_right, arrow_up, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
314
+ }
315
+ }
cube1/data/C488.json ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C488",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> W -> S -> S -> S -> E -> S -> E -> N -> N\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "N",
7
+ "W",
8
+ "S",
9
+ "S",
10
+ "S",
11
+ "E",
12
+ "S",
13
+ "E",
14
+ "N",
15
+ "N"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "M",
20
+ "rotation": 0,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "Q",
26
+ "rotation": 180,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "X",
32
+ "rotation": 270,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "M",
38
+ "rotation": 270,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "Y",
44
+ "rotation": 90,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "M",
50
+ "rotation": 90,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "Q",
56
+ "rotation": 270,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "X",
62
+ "rotation": 0,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "M",
68
+ "rotation": 0,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "Y",
74
+ "rotation": 0,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C488_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 488,
85
+ "name": "Reconstruct 488",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-488.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "Y",
96
+ "rotation": 0,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "arrow_down",
102
+ "rotation": 0,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "M",
108
+ "rotation": 180,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "M",
114
+ "rotation": 0,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "Q",
120
+ "rotation": 90,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "X",
126
+ "rotation": 0,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "Y",
133
+ "arrow_down",
134
+ "M",
135
+ "M",
136
+ "Q",
137
+ "X"
138
+ ],
139
+ "start_x": 2,
140
+ "start_y": 2,
141
+ "grid_width": 5,
142
+ "grid_height": 7,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "Y",
146
+ "rotation": 0
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "X",
150
+ "rotation": 0
151
+ },
152
+ "FRONT": {
153
+ "patternId": "arrow_down",
154
+ "rotation": 0
155
+ },
156
+ "BACK": {
157
+ "patternId": "M",
158
+ "rotation": 180
159
+ },
160
+ "LEFT": {
161
+ "patternId": "Q",
162
+ "rotation": 0
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "M",
166
+ "rotation": 270
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "X",
172
+ "rotation": 0,
173
+ "x": 2,
174
+ "y": 2
175
+ },
176
+ {
177
+ "patternId": "M",
178
+ "rotation": 0,
179
+ "x": 2,
180
+ "y": 1
181
+ },
182
+ {
183
+ "patternId": "Q",
184
+ "rotation": 180,
185
+ "x": 1,
186
+ "y": 1
187
+ },
188
+ {
189
+ "patternId": "X",
190
+ "rotation": 270,
191
+ "x": 1,
192
+ "y": 2
193
+ },
194
+ {
195
+ "patternId": "M",
196
+ "rotation": 270,
197
+ "x": 1,
198
+ "y": 3
199
+ },
200
+ {
201
+ "patternId": "Y",
202
+ "rotation": 90,
203
+ "x": 1,
204
+ "y": 4
205
+ },
206
+ {
207
+ "patternId": "M",
208
+ "rotation": 90,
209
+ "x": 2,
210
+ "y": 4
211
+ },
212
+ {
213
+ "patternId": "Q",
214
+ "rotation": 270,
215
+ "x": 2,
216
+ "y": 5
217
+ },
218
+ {
219
+ "patternId": "X",
220
+ "rotation": 0,
221
+ "x": 3,
222
+ "y": 5
223
+ },
224
+ {
225
+ "patternId": "M",
226
+ "rotation": 0,
227
+ "x": 3,
228
+ "y": 4
229
+ },
230
+ {
231
+ "patternId": "Y",
232
+ "rotation": 0,
233
+ "x": 3,
234
+ "y": 3
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "BACK",
239
+ "LEFT",
240
+ "BOTTOM",
241
+ "RIGHT",
242
+ "TOP",
243
+ "BACK",
244
+ "LEFT",
245
+ "BOTTOM",
246
+ "BACK",
247
+ "TOP"
248
+ ],
249
+ "required_slots": [
250
+ "BACK",
251
+ "LEFT",
252
+ "BOTTOM",
253
+ "RIGHT",
254
+ "TOP"
255
+ ],
256
+ "required_count": 5,
257
+ "answer": {
258
+ "faces": {
259
+ "TOP": {
260
+ "patternId": "Y",
261
+ "rotation": 0
262
+ },
263
+ "BOTTOM": {
264
+ "patternId": "X",
265
+ "rotation": 0
266
+ },
267
+ "FRONT": {
268
+ "patternId": "?",
269
+ "rotation": 0
270
+ },
271
+ "BACK": {
272
+ "patternId": "M",
273
+ "rotation": 0
274
+ },
275
+ "LEFT": {
276
+ "patternId": "Q",
277
+ "rotation": 90
278
+ },
279
+ "RIGHT": {
280
+ "patternId": "M",
281
+ "rotation": 180
282
+ }
283
+ }
284
+ },
285
+ "legacy_answer": {
286
+ "TOP": {
287
+ "patternId": "Y",
288
+ "rotation": 0
289
+ },
290
+ "BOTTOM": {
291
+ "patternId": "X",
292
+ "rotation": 0
293
+ },
294
+ "FRONT": {
295
+ "patternId": "?",
296
+ "rotation": 0
297
+ },
298
+ "BACK": {
299
+ "patternId": "M",
300
+ "rotation": 0
301
+ },
302
+ "LEFT": {
303
+ "patternId": "Q",
304
+ "rotation": 90
305
+ },
306
+ "RIGHT": {
307
+ "patternId": "M",
308
+ "rotation": 180
309
+ }
310
+ },
311
+ "prompt": {
312
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
313
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C488\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W -> S -> S -> S -> E -> S -> E -> N -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=M, rotation=0, flipVertical=true\n- step 2: patternId=Q, rotation=180, flipVertical=true\n- step 3: patternId=X, rotation=270, flipVertical=true\n- step 4: patternId=M, rotation=270, flipVertical=true\n- step 5: patternId=Y, rotation=90, flipVertical=true\n- step 6: patternId=M, rotation=90, flipVertical=true\n- step 7: patternId=Q, rotation=270, flipVertical=true\n- step 8: patternId=X, rotation=0, flipVertical=true\n- step 9: patternId=M, rotation=0, flipVertical=true\n- step 10: patternId=Y, rotation=0, flipVertical=true\n- allowed patternId values for this task: M, Q, X, Y, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
314
+ }
315
+ }
cube1/data/C489.json ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C489",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> N -> E -> S -> E -> N -> W -> W -> S -> S\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "N",
7
+ "N",
8
+ "E",
9
+ "S",
10
+ "E",
11
+ "N",
12
+ "W",
13
+ "W",
14
+ "S",
15
+ "S"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "diamond",
20
+ "rotation": 0,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "smile",
26
+ "rotation": 0,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "M",
32
+ "rotation": 90,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "diamond",
38
+ "rotation": 90,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "6",
44
+ "rotation": 0,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "M",
50
+ "rotation": 0,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "diamond",
56
+ "rotation": 0,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "X",
62
+ "rotation": 90,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "6",
68
+ "rotation": 180,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "M",
74
+ "rotation": 180,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C489_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 489,
85
+ "name": "Reconstruct 489",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-489.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "smile",
96
+ "rotation": 0,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "diamond",
102
+ "rotation": 270,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "M",
108
+ "rotation": 90,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "diamond",
114
+ "rotation": 0,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "X",
120
+ "rotation": 0,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "6",
126
+ "rotation": 270,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "smile",
133
+ "diamond",
134
+ "M",
135
+ "diamond",
136
+ "X",
137
+ "6"
138
+ ],
139
+ "start_x": 1,
140
+ "start_y": 3,
141
+ "grid_width": 5,
142
+ "grid_height": 5,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "smile",
146
+ "rotation": 0
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "6",
150
+ "rotation": 270
151
+ },
152
+ "FRONT": {
153
+ "patternId": "diamond",
154
+ "rotation": 270
155
+ },
156
+ "BACK": {
157
+ "patternId": "diamond",
158
+ "rotation": 180
159
+ },
160
+ "LEFT": {
161
+ "patternId": "X",
162
+ "rotation": 270
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "M",
166
+ "rotation": 180
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "6",
172
+ "rotation": 270,
173
+ "x": 1,
174
+ "y": 3
175
+ },
176
+ {
177
+ "patternId": "diamond",
178
+ "rotation": 0,
179
+ "x": 1,
180
+ "y": 2
181
+ },
182
+ {
183
+ "patternId": "smile",
184
+ "rotation": 0,
185
+ "x": 1,
186
+ "y": 1
187
+ },
188
+ {
189
+ "patternId": "M",
190
+ "rotation": 90,
191
+ "x": 2,
192
+ "y": 1
193
+ },
194
+ {
195
+ "patternId": "diamond",
196
+ "rotation": 90,
197
+ "x": 2,
198
+ "y": 2
199
+ },
200
+ {
201
+ "patternId": "6",
202
+ "rotation": 0,
203
+ "x": 3,
204
+ "y": 2
205
+ },
206
+ {
207
+ "patternId": "M",
208
+ "rotation": 0,
209
+ "x": 3,
210
+ "y": 1
211
+ },
212
+ {
213
+ "patternId": "diamond",
214
+ "rotation": 0,
215
+ "x": 2,
216
+ "y": 1
217
+ },
218
+ {
219
+ "patternId": "X",
220
+ "rotation": 90,
221
+ "x": 1,
222
+ "y": 1
223
+ },
224
+ {
225
+ "patternId": "6",
226
+ "rotation": 180,
227
+ "x": 1,
228
+ "y": 2
229
+ },
230
+ {
231
+ "patternId": "M",
232
+ "rotation": 180,
233
+ "x": 1,
234
+ "y": 3
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "BACK",
239
+ "TOP",
240
+ "RIGHT",
241
+ "BACK",
242
+ "BOTTOM",
243
+ "RIGHT",
244
+ "BACK",
245
+ "LEFT",
246
+ "BOTTOM",
247
+ "RIGHT"
248
+ ],
249
+ "required_slots": [
250
+ "BACK",
251
+ "TOP",
252
+ "RIGHT",
253
+ "BOTTOM",
254
+ "LEFT"
255
+ ],
256
+ "required_count": 5,
257
+ "answer": {
258
+ "faces": {
259
+ "TOP": {
260
+ "patternId": "smile",
261
+ "rotation": 0
262
+ },
263
+ "BOTTOM": {
264
+ "patternId": "6",
265
+ "rotation": 270
266
+ },
267
+ "FRONT": {
268
+ "patternId": "?",
269
+ "rotation": 0
270
+ },
271
+ "BACK": {
272
+ "patternId": "diamond",
273
+ "rotation": 0
274
+ },
275
+ "LEFT": {
276
+ "patternId": "X",
277
+ "rotation": 0
278
+ },
279
+ "RIGHT": {
280
+ "patternId": "M",
281
+ "rotation": 90
282
+ }
283
+ }
284
+ },
285
+ "legacy_answer": {
286
+ "TOP": {
287
+ "patternId": "smile",
288
+ "rotation": 0
289
+ },
290
+ "BOTTOM": {
291
+ "patternId": "6",
292
+ "rotation": 270
293
+ },
294
+ "FRONT": {
295
+ "patternId": "?",
296
+ "rotation": 0
297
+ },
298
+ "BACK": {
299
+ "patternId": "diamond",
300
+ "rotation": 0
301
+ },
302
+ "LEFT": {
303
+ "patternId": "X",
304
+ "rotation": 0
305
+ },
306
+ "RIGHT": {
307
+ "patternId": "M",
308
+ "rotation": 90
309
+ }
310
+ },
311
+ "prompt": {
312
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
313
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C489\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): N -> N -> E -> S -> E -> N -> W -> W -> S -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=diamond, rotation=0, flipVertical=true\n- step 2: patternId=smile, rotation=0, flipVertical=true\n- step 3: patternId=M, rotation=90, flipVertical=true\n- step 4: patternId=diamond, rotation=90, flipVertical=true\n- step 5: patternId=6, rotation=0, flipVertical=true\n- step 6: patternId=M, rotation=0, flipVertical=true\n- step 7: patternId=diamond, rotation=0, flipVertical=true\n- step 8: patternId=X, rotation=90, flipVertical=true\n- step 9: patternId=6, rotation=180, flipVertical=true\n- step 10: patternId=M, rotation=180, flipVertical=true\n- allowed patternId values for this task: diamond, smile, M, 6, X, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
314
+ }
315
+ }
cube1/data/C490.json ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C490",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> E -> W -> S -> W -> N -> W -> N -> W -> S\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "N",
7
+ "E",
8
+ "W",
9
+ "S",
10
+ "W",
11
+ "N",
12
+ "W",
13
+ "N",
14
+ "W",
15
+ "S"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "Z",
20
+ "rotation": 90,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "S",
26
+ "rotation": 0,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "Z",
32
+ "rotation": 90,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "5",
38
+ "rotation": 90,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "N",
44
+ "rotation": 0,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "Z",
50
+ "rotation": 180,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "2",
56
+ "rotation": 0,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "S",
62
+ "rotation": 180,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "E",
68
+ "rotation": 0,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "2",
74
+ "rotation": 270,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C490_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 490,
85
+ "name": "Reconstruct 490",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-490.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "2",
96
+ "rotation": 270,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "E",
102
+ "rotation": 0,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "S",
108
+ "rotation": 90,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "Z",
114
+ "rotation": 90,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "N",
120
+ "rotation": 180,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "5",
126
+ "rotation": 90,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "2",
133
+ "E",
134
+ "S",
135
+ "Z",
136
+ "N",
137
+ "5"
138
+ ],
139
+ "start_x": 4,
140
+ "start_y": 3,
141
+ "grid_width": 7,
142
+ "grid_height": 5,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "2",
146
+ "rotation": 270
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "5",
150
+ "rotation": 90
151
+ },
152
+ "FRONT": {
153
+ "patternId": "E",
154
+ "rotation": 0
155
+ },
156
+ "BACK": {
157
+ "patternId": "Z",
158
+ "rotation": 270
159
+ },
160
+ "LEFT": {
161
+ "patternId": "N",
162
+ "rotation": 90
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "S",
166
+ "rotation": 180
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "5",
172
+ "rotation": 90,
173
+ "x": 4,
174
+ "y": 3
175
+ },
176
+ {
177
+ "patternId": "Z",
178
+ "rotation": 90,
179
+ "x": 4,
180
+ "y": 2
181
+ },
182
+ {
183
+ "patternId": "S",
184
+ "rotation": 0,
185
+ "x": 5,
186
+ "y": 2
187
+ },
188
+ {
189
+ "patternId": "Z",
190
+ "rotation": 90,
191
+ "x": 4,
192
+ "y": 2
193
+ },
194
+ {
195
+ "patternId": "5",
196
+ "rotation": 90,
197
+ "x": 4,
198
+ "y": 3
199
+ },
200
+ {
201
+ "patternId": "N",
202
+ "rotation": 0,
203
+ "x": 3,
204
+ "y": 3
205
+ },
206
+ {
207
+ "patternId": "Z",
208
+ "rotation": 180,
209
+ "x": 3,
210
+ "y": 2
211
+ },
212
+ {
213
+ "patternId": "2",
214
+ "rotation": 0,
215
+ "x": 2,
216
+ "y": 2
217
+ },
218
+ {
219
+ "patternId": "S",
220
+ "rotation": 180,
221
+ "x": 2,
222
+ "y": 1
223
+ },
224
+ {
225
+ "patternId": "E",
226
+ "rotation": 0,
227
+ "x": 1,
228
+ "y": 1
229
+ },
230
+ {
231
+ "patternId": "2",
232
+ "rotation": 270,
233
+ "x": 1,
234
+ "y": 2
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "BACK",
239
+ "RIGHT",
240
+ "BACK",
241
+ "BOTTOM",
242
+ "LEFT",
243
+ "BACK",
244
+ "TOP",
245
+ "RIGHT",
246
+ "FRONT",
247
+ "TOP"
248
+ ],
249
+ "required_slots": [
250
+ "BACK",
251
+ "RIGHT",
252
+ "BOTTOM",
253
+ "LEFT",
254
+ "TOP",
255
+ "FRONT"
256
+ ],
257
+ "required_count": 6,
258
+ "answer": {
259
+ "faces": {
260
+ "TOP": {
261
+ "patternId": "2",
262
+ "rotation": 270
263
+ },
264
+ "BOTTOM": {
265
+ "patternId": "5",
266
+ "rotation": 90
267
+ },
268
+ "FRONT": {
269
+ "patternId": "E",
270
+ "rotation": 0
271
+ },
272
+ "BACK": {
273
+ "patternId": "Z",
274
+ "rotation": 90
275
+ },
276
+ "LEFT": {
277
+ "patternId": "N",
278
+ "rotation": 180
279
+ },
280
+ "RIGHT": {
281
+ "patternId": "S",
282
+ "rotation": 90
283
+ }
284
+ }
285
+ },
286
+ "legacy_answer": {
287
+ "TOP": {
288
+ "patternId": "2",
289
+ "rotation": 270
290
+ },
291
+ "BOTTOM": {
292
+ "patternId": "5",
293
+ "rotation": 90
294
+ },
295
+ "FRONT": {
296
+ "patternId": "E",
297
+ "rotation": 0
298
+ },
299
+ "BACK": {
300
+ "patternId": "Z",
301
+ "rotation": 90
302
+ },
303
+ "LEFT": {
304
+ "patternId": "N",
305
+ "rotation": 180
306
+ },
307
+ "RIGHT": {
308
+ "patternId": "S",
309
+ "rotation": 90
310
+ }
311
+ },
312
+ "prompt": {
313
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
314
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C490\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): N -> E -> W -> S -> W -> N -> W -> N -> W -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=Z, rotation=90, flipVertical=true\n- step 2: patternId=S, rotation=0, flipVertical=true\n- step 3: patternId=Z, rotation=90, flipVertical=true\n- step 4: patternId=5, rotation=90, flipVertical=true\n- step 5: patternId=N, rotation=0, flipVertical=true\n- step 6: patternId=Z, rotation=180, flipVertical=true\n- step 7: patternId=2, rotation=0, flipVertical=true\n- step 8: patternId=S, rotation=180, flipVertical=true\n- step 9: patternId=E, rotation=0, flipVertical=true\n- step 10: patternId=2, rotation=270, flipVertical=true\n- allowed patternId values for this task: Z, S, 5, N, 2, E, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
315
+ }
316
+ }
cube1/data/C491.json ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C491",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> E -> W -> W -> N -> W -> N -> E -> E -> S\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "E",
7
+ "E",
8
+ "W",
9
+ "W",
10
+ "N",
11
+ "W",
12
+ "N",
13
+ "E",
14
+ "E",
15
+ "S"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "X",
20
+ "rotation": 180,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "4",
26
+ "rotation": 90,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "X",
32
+ "rotation": 180,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "arrow_left",
38
+ "rotation": 180,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "B",
44
+ "rotation": 0,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "Z",
50
+ "rotation": 0,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "4",
56
+ "rotation": 0,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "B",
62
+ "rotation": 90,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "arrow_left",
68
+ "rotation": 270,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "Z",
74
+ "rotation": 180,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C491_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 491,
85
+ "name": "Reconstruct 491",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-491.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "4",
96
+ "rotation": 270,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "U",
102
+ "rotation": 0,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "X",
108
+ "rotation": 0,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "B",
114
+ "rotation": 0,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "Z",
120
+ "rotation": 270,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "arrow_left",
126
+ "rotation": 180,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "4",
133
+ "U",
134
+ "X",
135
+ "B",
136
+ "Z",
137
+ "arrow_left"
138
+ ],
139
+ "start_x": 2,
140
+ "start_y": 3,
141
+ "grid_width": 6,
142
+ "grid_height": 5,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "4",
146
+ "rotation": 270
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "arrow_left",
150
+ "rotation": 180
151
+ },
152
+ "FRONT": {
153
+ "patternId": "U",
154
+ "rotation": 0
155
+ },
156
+ "BACK": {
157
+ "patternId": "B",
158
+ "rotation": 180
159
+ },
160
+ "LEFT": {
161
+ "patternId": "Z",
162
+ "rotation": 180
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "X",
166
+ "rotation": 90
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "arrow_left",
172
+ "rotation": 180,
173
+ "x": 2,
174
+ "y": 3
175
+ },
176
+ {
177
+ "patternId": "X",
178
+ "rotation": 180,
179
+ "x": 3,
180
+ "y": 3
181
+ },
182
+ {
183
+ "patternId": "4",
184
+ "rotation": 90,
185
+ "x": 4,
186
+ "y": 3
187
+ },
188
+ {
189
+ "patternId": "X",
190
+ "rotation": 180,
191
+ "x": 3,
192
+ "y": 3
193
+ },
194
+ {
195
+ "patternId": "arrow_left",
196
+ "rotation": 180,
197
+ "x": 2,
198
+ "y": 3
199
+ },
200
+ {
201
+ "patternId": "B",
202
+ "rotation": 0,
203
+ "x": 2,
204
+ "y": 2
205
+ },
206
+ {
207
+ "patternId": "Z",
208
+ "rotation": 0,
209
+ "x": 1,
210
+ "y": 2
211
+ },
212
+ {
213
+ "patternId": "4",
214
+ "rotation": 0,
215
+ "x": 1,
216
+ "y": 1
217
+ },
218
+ {
219
+ "patternId": "B",
220
+ "rotation": 90,
221
+ "x": 2,
222
+ "y": 1
223
+ },
224
+ {
225
+ "patternId": "arrow_left",
226
+ "rotation": 270,
227
+ "x": 3,
228
+ "y": 1
229
+ },
230
+ {
231
+ "patternId": "Z",
232
+ "rotation": 180,
233
+ "x": 3,
234
+ "y": 2
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "RIGHT",
239
+ "TOP",
240
+ "RIGHT",
241
+ "BOTTOM",
242
+ "BACK",
243
+ "LEFT",
244
+ "TOP",
245
+ "BACK",
246
+ "BOTTOM",
247
+ "LEFT"
248
+ ],
249
+ "required_slots": [
250
+ "RIGHT",
251
+ "TOP",
252
+ "BOTTOM",
253
+ "BACK",
254
+ "LEFT"
255
+ ],
256
+ "required_count": 5,
257
+ "answer": {
258
+ "faces": {
259
+ "TOP": {
260
+ "patternId": "4",
261
+ "rotation": 270
262
+ },
263
+ "BOTTOM": {
264
+ "patternId": "arrow_left",
265
+ "rotation": 180
266
+ },
267
+ "FRONT": {
268
+ "patternId": "?",
269
+ "rotation": 0
270
+ },
271
+ "BACK": {
272
+ "patternId": "B",
273
+ "rotation": 0
274
+ },
275
+ "LEFT": {
276
+ "patternId": "Z",
277
+ "rotation": 270
278
+ },
279
+ "RIGHT": {
280
+ "patternId": "X",
281
+ "rotation": 0
282
+ }
283
+ }
284
+ },
285
+ "legacy_answer": {
286
+ "TOP": {
287
+ "patternId": "4",
288
+ "rotation": 270
289
+ },
290
+ "BOTTOM": {
291
+ "patternId": "arrow_left",
292
+ "rotation": 180
293
+ },
294
+ "FRONT": {
295
+ "patternId": "?",
296
+ "rotation": 0
297
+ },
298
+ "BACK": {
299
+ "patternId": "B",
300
+ "rotation": 0
301
+ },
302
+ "LEFT": {
303
+ "patternId": "Z",
304
+ "rotation": 270
305
+ },
306
+ "RIGHT": {
307
+ "patternId": "X",
308
+ "rotation": 0
309
+ }
310
+ },
311
+ "prompt": {
312
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
313
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C491\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): E -> E -> W -> W -> N -> W -> N -> E -> E -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=X, rotation=180, flipVertical=true\n- step 2: patternId=4, rotation=90, flipVertical=true\n- step 3: patternId=X, rotation=180, flipVertical=true\n- step 4: patternId=arrow_left, rotation=180, flipVertical=true\n- step 5: patternId=B, rotation=0, flipVertical=true\n- step 6: patternId=Z, rotation=0, flipVertical=true\n- step 7: patternId=4, rotation=0, flipVertical=true\n- step 8: patternId=B, rotation=90, flipVertical=true\n- step 9: patternId=arrow_left, rotation=270, flipVertical=true\n- step 10: patternId=Z, rotation=180, flipVertical=true\n- allowed patternId values for this task: X, 4, arrow_left, B, Z, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
314
+ }
315
+ }
cube1/data/C492.json ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C492",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> W -> N -> N -> E -> E -> S -> E -> N -> N\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "N",
7
+ "W",
8
+ "N",
9
+ "N",
10
+ "E",
11
+ "E",
12
+ "S",
13
+ "E",
14
+ "N",
15
+ "N"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "F",
20
+ "rotation": 0,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "F",
26
+ "rotation": 270,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "K",
32
+ "rotation": 0,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "X",
38
+ "rotation": 0,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "F",
44
+ "rotation": 180,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "F",
50
+ "rotation": 90,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "K",
56
+ "rotation": 180,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "star",
62
+ "rotation": 180,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "F",
68
+ "rotation": 0,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "F",
74
+ "rotation": 90,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C492_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 492,
85
+ "name": "Reconstruct 492",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-492.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "K",
96
+ "rotation": 270,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "star",
102
+ "rotation": 270,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "X",
108
+ "rotation": 270,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "F",
114
+ "rotation": 0,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "F",
120
+ "rotation": 180,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "S",
126
+ "rotation": 270,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "K",
133
+ "star",
134
+ "X",
135
+ "F",
136
+ "F",
137
+ "S"
138
+ ],
139
+ "start_x": 2,
140
+ "start_y": 5,
141
+ "grid_width": 6,
142
+ "grid_height": 7,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "K",
146
+ "rotation": 270
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "S",
150
+ "rotation": 270
151
+ },
152
+ "FRONT": {
153
+ "patternId": "star",
154
+ "rotation": 270
155
+ },
156
+ "BACK": {
157
+ "patternId": "F",
158
+ "rotation": 180
159
+ },
160
+ "LEFT": {
161
+ "patternId": "F",
162
+ "rotation": 90
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "X",
166
+ "rotation": 0
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "S",
172
+ "rotation": 270,
173
+ "x": 2,
174
+ "y": 5
175
+ },
176
+ {
177
+ "patternId": "F",
178
+ "rotation": 0,
179
+ "x": 2,
180
+ "y": 4
181
+ },
182
+ {
183
+ "patternId": "F",
184
+ "rotation": 270,
185
+ "x": 1,
186
+ "y": 4
187
+ },
188
+ {
189
+ "patternId": "K",
190
+ "rotation": 0,
191
+ "x": 1,
192
+ "y": 3
193
+ },
194
+ {
195
+ "patternId": "X",
196
+ "rotation": 0,
197
+ "x": 1,
198
+ "y": 2
199
+ },
200
+ {
201
+ "patternId": "F",
202
+ "rotation": 180,
203
+ "x": 2,
204
+ "y": 2
205
+ },
206
+ {
207
+ "patternId": "F",
208
+ "rotation": 90,
209
+ "x": 3,
210
+ "y": 2
211
+ },
212
+ {
213
+ "patternId": "K",
214
+ "rotation": 180,
215
+ "x": 3,
216
+ "y": 3
217
+ },
218
+ {
219
+ "patternId": "star",
220
+ "rotation": 180,
221
+ "x": 4,
222
+ "y": 3
223
+ },
224
+ {
225
+ "patternId": "F",
226
+ "rotation": 0,
227
+ "x": 4,
228
+ "y": 2
229
+ },
230
+ {
231
+ "patternId": "F",
232
+ "rotation": 90,
233
+ "x": 4,
234
+ "y": 1
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "BACK",
239
+ "LEFT",
240
+ "TOP",
241
+ "RIGHT",
242
+ "BACK",
243
+ "LEFT",
244
+ "TOP",
245
+ "FRONT",
246
+ "LEFT",
247
+ "BACK"
248
+ ],
249
+ "required_slots": [
250
+ "BACK",
251
+ "LEFT",
252
+ "TOP",
253
+ "RIGHT",
254
+ "FRONT"
255
+ ],
256
+ "required_count": 5,
257
+ "answer": {
258
+ "faces": {
259
+ "TOP": {
260
+ "patternId": "K",
261
+ "rotation": 270
262
+ },
263
+ "BOTTOM": {
264
+ "patternId": "?",
265
+ "rotation": 0
266
+ },
267
+ "FRONT": {
268
+ "patternId": "star",
269
+ "rotation": 270
270
+ },
271
+ "BACK": {
272
+ "patternId": "F",
273
+ "rotation": 0
274
+ },
275
+ "LEFT": {
276
+ "patternId": "F",
277
+ "rotation": 180
278
+ },
279
+ "RIGHT": {
280
+ "patternId": "X",
281
+ "rotation": 270
282
+ }
283
+ }
284
+ },
285
+ "legacy_answer": {
286
+ "TOP": {
287
+ "patternId": "K",
288
+ "rotation": 270
289
+ },
290
+ "BOTTOM": {
291
+ "patternId": "?",
292
+ "rotation": 0
293
+ },
294
+ "FRONT": {
295
+ "patternId": "star",
296
+ "rotation": 270
297
+ },
298
+ "BACK": {
299
+ "patternId": "F",
300
+ "rotation": 0
301
+ },
302
+ "LEFT": {
303
+ "patternId": "F",
304
+ "rotation": 180
305
+ },
306
+ "RIGHT": {
307
+ "patternId": "X",
308
+ "rotation": 270
309
+ }
310
+ },
311
+ "prompt": {
312
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
313
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C492\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): N -> W -> N -> N -> E -> E -> S -> E -> N -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=F, rotation=0, flipVertical=true\n- step 2: patternId=F, rotation=270, flipVertical=true\n- step 3: patternId=K, rotation=0, flipVertical=true\n- step 4: patternId=X, rotation=0, flipVertical=true\n- step 5: patternId=F, rotation=180, flipVertical=true\n- step 6: patternId=F, rotation=90, flipVertical=true\n- step 7: patternId=K, rotation=180, flipVertical=true\n- step 8: patternId=star, rotation=180, flipVertical=true\n- step 9: patternId=F, rotation=0, flipVertical=true\n- step 10: patternId=F, rotation=90, flipVertical=true\n- allowed patternId values for this task: F, K, X, star, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
314
+ }
315
+ }
cube1/data/C493.json ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C493",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> N -> N -> N -> S -> E -> S -> W -> W -> N\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "E",
7
+ "N",
8
+ "N",
9
+ "N",
10
+ "S",
11
+ "E",
12
+ "S",
13
+ "W",
14
+ "W",
15
+ "N"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "arrow_up",
20
+ "rotation": 180,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "W",
26
+ "rotation": 90,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "star",
32
+ "rotation": 90,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "B",
38
+ "rotation": 0,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "star",
44
+ "rotation": 90,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "5",
50
+ "rotation": 90,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "W",
56
+ "rotation": 180,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "star",
62
+ "rotation": 180,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "B",
68
+ "rotation": 90,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "5",
74
+ "rotation": 270,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C493_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 493,
85
+ "name": "Reconstruct 493",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-493.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "5",
96
+ "rotation": 90,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "B",
102
+ "rotation": 270,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "arrow_up",
108
+ "rotation": 0,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "W",
114
+ "rotation": 180,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "star",
120
+ "rotation": 90,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "X",
126
+ "rotation": 0,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "5",
133
+ "B",
134
+ "arrow_up",
135
+ "W",
136
+ "star",
137
+ "X"
138
+ ],
139
+ "start_x": 1,
140
+ "start_y": 4,
141
+ "grid_width": 5,
142
+ "grid_height": 6,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "5",
146
+ "rotation": 90
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "X",
150
+ "rotation": 0
151
+ },
152
+ "FRONT": {
153
+ "patternId": "B",
154
+ "rotation": 270
155
+ },
156
+ "BACK": {
157
+ "patternId": "W",
158
+ "rotation": 0
159
+ },
160
+ "LEFT": {
161
+ "patternId": "star",
162
+ "rotation": 0
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "arrow_up",
166
+ "rotation": 90
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "X",
172
+ "rotation": 0,
173
+ "x": 1,
174
+ "y": 4
175
+ },
176
+ {
177
+ "patternId": "arrow_up",
178
+ "rotation": 180,
179
+ "x": 2,
180
+ "y": 4
181
+ },
182
+ {
183
+ "patternId": "W",
184
+ "rotation": 90,
185
+ "x": 2,
186
+ "y": 3
187
+ },
188
+ {
189
+ "patternId": "star",
190
+ "rotation": 90,
191
+ "x": 2,
192
+ "y": 2
193
+ },
194
+ {
195
+ "patternId": "B",
196
+ "rotation": 0,
197
+ "x": 2,
198
+ "y": 1
199
+ },
200
+ {
201
+ "patternId": "star",
202
+ "rotation": 90,
203
+ "x": 2,
204
+ "y": 2
205
+ },
206
+ {
207
+ "patternId": "5",
208
+ "rotation": 90,
209
+ "x": 3,
210
+ "y": 2
211
+ },
212
+ {
213
+ "patternId": "W",
214
+ "rotation": 180,
215
+ "x": 3,
216
+ "y": 3
217
+ },
218
+ {
219
+ "patternId": "star",
220
+ "rotation": 180,
221
+ "x": 2,
222
+ "y": 3
223
+ },
224
+ {
225
+ "patternId": "B",
226
+ "rotation": 90,
227
+ "x": 1,
228
+ "y": 3
229
+ },
230
+ {
231
+ "patternId": "5",
232
+ "rotation": 270,
233
+ "x": 1,
234
+ "y": 2
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "RIGHT",
239
+ "BACK",
240
+ "LEFT",
241
+ "FRONT",
242
+ "LEFT",
243
+ "TOP",
244
+ "BACK",
245
+ "LEFT",
246
+ "FRONT",
247
+ "TOP"
248
+ ],
249
+ "required_slots": [
250
+ "RIGHT",
251
+ "BACK",
252
+ "LEFT",
253
+ "FRONT",
254
+ "TOP"
255
+ ],
256
+ "required_count": 5,
257
+ "answer": {
258
+ "faces": {
259
+ "TOP": {
260
+ "patternId": "5",
261
+ "rotation": 90
262
+ },
263
+ "BOTTOM": {
264
+ "patternId": "?",
265
+ "rotation": 0
266
+ },
267
+ "FRONT": {
268
+ "patternId": "B",
269
+ "rotation": 270
270
+ },
271
+ "BACK": {
272
+ "patternId": "W",
273
+ "rotation": 180
274
+ },
275
+ "LEFT": {
276
+ "patternId": "star",
277
+ "rotation": 90
278
+ },
279
+ "RIGHT": {
280
+ "patternId": "arrow_up",
281
+ "rotation": 0
282
+ }
283
+ }
284
+ },
285
+ "legacy_answer": {
286
+ "TOP": {
287
+ "patternId": "5",
288
+ "rotation": 90
289
+ },
290
+ "BOTTOM": {
291
+ "patternId": "?",
292
+ "rotation": 0
293
+ },
294
+ "FRONT": {
295
+ "patternId": "B",
296
+ "rotation": 270
297
+ },
298
+ "BACK": {
299
+ "patternId": "W",
300
+ "rotation": 180
301
+ },
302
+ "LEFT": {
303
+ "patternId": "star",
304
+ "rotation": 90
305
+ },
306
+ "RIGHT": {
307
+ "patternId": "arrow_up",
308
+ "rotation": 0
309
+ }
310
+ },
311
+ "prompt": {
312
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
313
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C493\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): E -> N -> N -> N -> S -> E -> S -> W -> W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=arrow_up, rotation=180, flipVertical=true\n- step 2: patternId=W, rotation=90, flipVertical=true\n- step 3: patternId=star, rotation=90, flipVertical=true\n- step 4: patternId=B, rotation=0, flipVertical=true\n- step 5: patternId=star, rotation=90, flipVertical=true\n- step 6: patternId=5, rotation=90, flipVertical=true\n- step 7: patternId=W, rotation=180, flipVertical=true\n- step 8: patternId=star, rotation=180, flipVertical=true\n- step 9: patternId=B, rotation=90, flipVertical=true\n- step 10: patternId=5, rotation=270, flipVertical=true\n- allowed patternId values for this task: arrow_up, W, star, B, 5, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
314
+ }
315
+ }
cube1/data/C494.json ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C494",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> S -> S -> N -> N -> E -> S -> E -> W -> N\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "W",
7
+ "S",
8
+ "S",
9
+ "N",
10
+ "N",
11
+ "E",
12
+ "S",
13
+ "E",
14
+ "W",
15
+ "N"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "T",
20
+ "rotation": 180,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "S",
26
+ "rotation": 90,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "plus",
32
+ "rotation": 270,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "S",
38
+ "rotation": 90,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "T",
44
+ "rotation": 180,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "smile",
50
+ "rotation": 180,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "S",
56
+ "rotation": 180,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "plus",
62
+ "rotation": 0,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "S",
68
+ "rotation": 180,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "smile",
74
+ "rotation": 180,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C494_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 494,
85
+ "name": "Reconstruct 494",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-494.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "C",
96
+ "rotation": 0,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "S",
102
+ "rotation": 180,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "plus",
108
+ "rotation": 270,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "W",
114
+ "rotation": 270,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "T",
120
+ "rotation": 0,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "smile",
126
+ "rotation": 180,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "C",
133
+ "S",
134
+ "plus",
135
+ "W",
136
+ "T",
137
+ "smile"
138
+ ],
139
+ "start_x": 2,
140
+ "start_y": 1,
141
+ "grid_width": 5,
142
+ "grid_height": 5,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "C",
146
+ "rotation": 0
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "smile",
150
+ "rotation": 180
151
+ },
152
+ "FRONT": {
153
+ "patternId": "S",
154
+ "rotation": 180
155
+ },
156
+ "BACK": {
157
+ "patternId": "W",
158
+ "rotation": 90
159
+ },
160
+ "LEFT": {
161
+ "patternId": "T",
162
+ "rotation": 270
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "plus",
166
+ "rotation": 0
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "smile",
172
+ "rotation": 180,
173
+ "x": 2,
174
+ "y": 1
175
+ },
176
+ {
177
+ "patternId": "T",
178
+ "rotation": 180,
179
+ "x": 1,
180
+ "y": 1
181
+ },
182
+ {
183
+ "patternId": "S",
184
+ "rotation": 90,
185
+ "x": 1,
186
+ "y": 2
187
+ },
188
+ {
189
+ "patternId": "plus",
190
+ "rotation": 270,
191
+ "x": 1,
192
+ "y": 3
193
+ },
194
+ {
195
+ "patternId": "S",
196
+ "rotation": 90,
197
+ "x": 1,
198
+ "y": 2
199
+ },
200
+ {
201
+ "patternId": "T",
202
+ "rotation": 180,
203
+ "x": 1,
204
+ "y": 1
205
+ },
206
+ {
207
+ "patternId": "smile",
208
+ "rotation": 180,
209
+ "x": 2,
210
+ "y": 1
211
+ },
212
+ {
213
+ "patternId": "S",
214
+ "rotation": 180,
215
+ "x": 2,
216
+ "y": 2
217
+ },
218
+ {
219
+ "patternId": "plus",
220
+ "rotation": 0,
221
+ "x": 3,
222
+ "y": 2
223
+ },
224
+ {
225
+ "patternId": "S",
226
+ "rotation": 180,
227
+ "x": 2,
228
+ "y": 2
229
+ },
230
+ {
231
+ "patternId": "smile",
232
+ "rotation": 180,
233
+ "x": 2,
234
+ "y": 1
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "LEFT",
239
+ "FRONT",
240
+ "RIGHT",
241
+ "FRONT",
242
+ "LEFT",
243
+ "BOTTOM",
244
+ "FRONT",
245
+ "RIGHT",
246
+ "FRONT",
247
+ "BOTTOM"
248
+ ],
249
+ "required_slots": [
250
+ "LEFT",
251
+ "FRONT",
252
+ "RIGHT",
253
+ "BOTTOM"
254
+ ],
255
+ "required_count": 4,
256
+ "answer": {
257
+ "faces": {
258
+ "TOP": {
259
+ "patternId": "?",
260
+ "rotation": 0
261
+ },
262
+ "BOTTOM": {
263
+ "patternId": "smile",
264
+ "rotation": 180
265
+ },
266
+ "FRONT": {
267
+ "patternId": "S",
268
+ "rotation": 180
269
+ },
270
+ "BACK": {
271
+ "patternId": "?",
272
+ "rotation": 0
273
+ },
274
+ "LEFT": {
275
+ "patternId": "T",
276
+ "rotation": 0
277
+ },
278
+ "RIGHT": {
279
+ "patternId": "plus",
280
+ "rotation": 270
281
+ }
282
+ }
283
+ },
284
+ "legacy_answer": {
285
+ "TOP": {
286
+ "patternId": "?",
287
+ "rotation": 0
288
+ },
289
+ "BOTTOM": {
290
+ "patternId": "smile",
291
+ "rotation": 180
292
+ },
293
+ "FRONT": {
294
+ "patternId": "S",
295
+ "rotation": 180
296
+ },
297
+ "BACK": {
298
+ "patternId": "?",
299
+ "rotation": 0
300
+ },
301
+ "LEFT": {
302
+ "patternId": "T",
303
+ "rotation": 0
304
+ },
305
+ "RIGHT": {
306
+ "patternId": "plus",
307
+ "rotation": 270
308
+ }
309
+ },
310
+ "prompt": {
311
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
312
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C494\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): W -> S -> S -> N -> N -> E -> S -> E -> W -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=T, rotation=180, flipVertical=true\n- step 2: patternId=S, rotation=90, flipVertical=true\n- step 3: patternId=plus, rotation=270, flipVertical=true\n- step 4: patternId=S, rotation=90, flipVertical=true\n- step 5: patternId=T, rotation=180, flipVertical=true\n- step 6: patternId=smile, rotation=180, flipVertical=true\n- step 7: patternId=S, rotation=180, flipVertical=true\n- step 8: patternId=plus, rotation=0, flipVertical=true\n- step 9: patternId=S, rotation=180, flipVertical=true\n- step 10: patternId=smile, rotation=180, flipVertical=true\n- allowed patternId values for this task: T, S, plus, smile, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
313
+ }
314
+ }
cube1/data/C495.json ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C495",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> N -> S -> W -> S -> S -> N -> W -> N -> W\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "N",
7
+ "N",
8
+ "S",
9
+ "W",
10
+ "S",
11
+ "S",
12
+ "N",
13
+ "W",
14
+ "N",
15
+ "W"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "X",
20
+ "rotation": 0,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "K",
26
+ "rotation": 270,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "X",
32
+ "rotation": 0,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "circle",
38
+ "rotation": 90,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "R",
44
+ "rotation": 180,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "heart",
50
+ "rotation": 270,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "R",
56
+ "rotation": 180,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "S",
62
+ "rotation": 0,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "circle",
68
+ "rotation": 180,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "K",
74
+ "rotation": 90,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C495_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 495,
85
+ "name": "Reconstruct 495",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-495.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "K",
96
+ "rotation": 270,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "S",
102
+ "rotation": 90,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "heart",
108
+ "rotation": 180,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "X",
114
+ "rotation": 0,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "circle",
120
+ "rotation": 0,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "R",
126
+ "rotation": 270,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "K",
133
+ "S",
134
+ "heart",
135
+ "X",
136
+ "circle",
137
+ "R"
138
+ ],
139
+ "start_x": 4,
140
+ "start_y": 3,
141
+ "grid_width": 6,
142
+ "grid_height": 6,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "K",
146
+ "rotation": 270
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "R",
150
+ "rotation": 270
151
+ },
152
+ "FRONT": {
153
+ "patternId": "S",
154
+ "rotation": 90
155
+ },
156
+ "BACK": {
157
+ "patternId": "X",
158
+ "rotation": 180
159
+ },
160
+ "LEFT": {
161
+ "patternId": "circle",
162
+ "rotation": 270
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "heart",
166
+ "rotation": 270
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "R",
172
+ "rotation": 270,
173
+ "x": 4,
174
+ "y": 3
175
+ },
176
+ {
177
+ "patternId": "X",
178
+ "rotation": 0,
179
+ "x": 4,
180
+ "y": 2
181
+ },
182
+ {
183
+ "patternId": "K",
184
+ "rotation": 270,
185
+ "x": 4,
186
+ "y": 1
187
+ },
188
+ {
189
+ "patternId": "X",
190
+ "rotation": 0,
191
+ "x": 4,
192
+ "y": 2
193
+ },
194
+ {
195
+ "patternId": "circle",
196
+ "rotation": 90,
197
+ "x": 3,
198
+ "y": 2
199
+ },
200
+ {
201
+ "patternId": "R",
202
+ "rotation": 180,
203
+ "x": 3,
204
+ "y": 3
205
+ },
206
+ {
207
+ "patternId": "heart",
208
+ "rotation": 270,
209
+ "x": 3,
210
+ "y": 4
211
+ },
212
+ {
213
+ "patternId": "R",
214
+ "rotation": 180,
215
+ "x": 3,
216
+ "y": 3
217
+ },
218
+ {
219
+ "patternId": "S",
220
+ "rotation": 0,
221
+ "x": 2,
222
+ "y": 3
223
+ },
224
+ {
225
+ "patternId": "circle",
226
+ "rotation": 180,
227
+ "x": 2,
228
+ "y": 2
229
+ },
230
+ {
231
+ "patternId": "K",
232
+ "rotation": 90,
233
+ "x": 1,
234
+ "y": 2
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "BACK",
239
+ "TOP",
240
+ "BACK",
241
+ "LEFT",
242
+ "BOTTOM",
243
+ "RIGHT",
244
+ "BOTTOM",
245
+ "FRONT",
246
+ "LEFT",
247
+ "TOP"
248
+ ],
249
+ "required_slots": [
250
+ "BACK",
251
+ "TOP",
252
+ "LEFT",
253
+ "BOTTOM",
254
+ "RIGHT",
255
+ "FRONT"
256
+ ],
257
+ "required_count": 6,
258
+ "answer": {
259
+ "faces": {
260
+ "TOP": {
261
+ "patternId": "K",
262
+ "rotation": 270
263
+ },
264
+ "BOTTOM": {
265
+ "patternId": "R",
266
+ "rotation": 270
267
+ },
268
+ "FRONT": {
269
+ "patternId": "S",
270
+ "rotation": 90
271
+ },
272
+ "BACK": {
273
+ "patternId": "X",
274
+ "rotation": 0
275
+ },
276
+ "LEFT": {
277
+ "patternId": "circle",
278
+ "rotation": 0
279
+ },
280
+ "RIGHT": {
281
+ "patternId": "heart",
282
+ "rotation": 180
283
+ }
284
+ }
285
+ },
286
+ "legacy_answer": {
287
+ "TOP": {
288
+ "patternId": "K",
289
+ "rotation": 270
290
+ },
291
+ "BOTTOM": {
292
+ "patternId": "R",
293
+ "rotation": 270
294
+ },
295
+ "FRONT": {
296
+ "patternId": "S",
297
+ "rotation": 90
298
+ },
299
+ "BACK": {
300
+ "patternId": "X",
301
+ "rotation": 0
302
+ },
303
+ "LEFT": {
304
+ "patternId": "circle",
305
+ "rotation": 0
306
+ },
307
+ "RIGHT": {
308
+ "patternId": "heart",
309
+ "rotation": 180
310
+ }
311
+ },
312
+ "prompt": {
313
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
314
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C495\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): N -> N -> S -> W -> S -> S -> N -> W -> N -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=X, rotation=0, flipVertical=true\n- step 2: patternId=K, rotation=270, flipVertical=true\n- step 3: patternId=X, rotation=0, flipVertical=true\n- step 4: patternId=circle, rotation=90, flipVertical=true\n- step 5: patternId=R, rotation=180, flipVertical=true\n- step 6: patternId=heart, rotation=270, flipVertical=true\n- step 7: patternId=R, rotation=180, flipVertical=true\n- step 8: patternId=S, rotation=0, flipVertical=true\n- step 9: patternId=circle, rotation=180, flipVertical=true\n- step 10: patternId=K, rotation=90, flipVertical=true\n- allowed patternId values for this task: X, K, circle, R, heart, S, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
315
+ }
316
+ }
cube1/data/C496.json ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C496",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> S -> S -> N -> N -> E -> N -> E -> N -> N\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "E",
7
+ "S",
8
+ "S",
9
+ "N",
10
+ "N",
11
+ "E",
12
+ "N",
13
+ "E",
14
+ "N",
15
+ "N"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "Z",
20
+ "rotation": 180,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "6",
26
+ "rotation": 270,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "1",
32
+ "rotation": 0,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "6",
38
+ "rotation": 270,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "Z",
44
+ "rotation": 180,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "Z",
50
+ "rotation": 180,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "2",
56
+ "rotation": 270,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "1",
62
+ "rotation": 270,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "G",
68
+ "rotation": 0,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "Z",
74
+ "rotation": 270,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C496_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 496,
85
+ "name": "Reconstruct 496",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-496.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "Z",
96
+ "rotation": 0,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "6",
102
+ "rotation": 180,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "Z",
108
+ "rotation": 0,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "2",
114
+ "rotation": 90,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "1",
120
+ "rotation": 0,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "G",
126
+ "rotation": 270,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "Z",
133
+ "6",
134
+ "Z",
135
+ "2",
136
+ "1",
137
+ "G"
138
+ ],
139
+ "start_x": 1,
140
+ "start_y": 4,
141
+ "grid_width": 6,
142
+ "grid_height": 8,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "Z",
146
+ "rotation": 0
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "G",
150
+ "rotation": 270
151
+ },
152
+ "FRONT": {
153
+ "patternId": "6",
154
+ "rotation": 180
155
+ },
156
+ "BACK": {
157
+ "patternId": "2",
158
+ "rotation": 270
159
+ },
160
+ "LEFT": {
161
+ "patternId": "1",
162
+ "rotation": 270
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "Z",
166
+ "rotation": 90
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "G",
172
+ "rotation": 270,
173
+ "x": 1,
174
+ "y": 4
175
+ },
176
+ {
177
+ "patternId": "Z",
178
+ "rotation": 180,
179
+ "x": 2,
180
+ "y": 4
181
+ },
182
+ {
183
+ "patternId": "6",
184
+ "rotation": 270,
185
+ "x": 2,
186
+ "y": 5
187
+ },
188
+ {
189
+ "patternId": "1",
190
+ "rotation": 0,
191
+ "x": 2,
192
+ "y": 6
193
+ },
194
+ {
195
+ "patternId": "6",
196
+ "rotation": 270,
197
+ "x": 2,
198
+ "y": 5
199
+ },
200
+ {
201
+ "patternId": "Z",
202
+ "rotation": 180,
203
+ "x": 2,
204
+ "y": 4
205
+ },
206
+ {
207
+ "patternId": "Z",
208
+ "rotation": 180,
209
+ "x": 3,
210
+ "y": 4
211
+ },
212
+ {
213
+ "patternId": "2",
214
+ "rotation": 270,
215
+ "x": 3,
216
+ "y": 3
217
+ },
218
+ {
219
+ "patternId": "1",
220
+ "rotation": 270,
221
+ "x": 4,
222
+ "y": 3
223
+ },
224
+ {
225
+ "patternId": "G",
226
+ "rotation": 0,
227
+ "x": 4,
228
+ "y": 2
229
+ },
230
+ {
231
+ "patternId": "Z",
232
+ "rotation": 270,
233
+ "x": 4,
234
+ "y": 1
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "RIGHT",
239
+ "FRONT",
240
+ "LEFT",
241
+ "FRONT",
242
+ "RIGHT",
243
+ "TOP",
244
+ "BACK",
245
+ "LEFT",
246
+ "BOTTOM",
247
+ "RIGHT"
248
+ ],
249
+ "required_slots": [
250
+ "RIGHT",
251
+ "FRONT",
252
+ "LEFT",
253
+ "TOP",
254
+ "BACK",
255
+ "BOTTOM"
256
+ ],
257
+ "required_count": 6,
258
+ "answer": {
259
+ "faces": {
260
+ "TOP": {
261
+ "patternId": "Z",
262
+ "rotation": 0
263
+ },
264
+ "BOTTOM": {
265
+ "patternId": "G",
266
+ "rotation": 270
267
+ },
268
+ "FRONT": {
269
+ "patternId": "6",
270
+ "rotation": 180
271
+ },
272
+ "BACK": {
273
+ "patternId": "2",
274
+ "rotation": 90
275
+ },
276
+ "LEFT": {
277
+ "patternId": "1",
278
+ "rotation": 0
279
+ },
280
+ "RIGHT": {
281
+ "patternId": "Z",
282
+ "rotation": 0
283
+ }
284
+ }
285
+ },
286
+ "legacy_answer": {
287
+ "TOP": {
288
+ "patternId": "Z",
289
+ "rotation": 0
290
+ },
291
+ "BOTTOM": {
292
+ "patternId": "G",
293
+ "rotation": 270
294
+ },
295
+ "FRONT": {
296
+ "patternId": "6",
297
+ "rotation": 180
298
+ },
299
+ "BACK": {
300
+ "patternId": "2",
301
+ "rotation": 90
302
+ },
303
+ "LEFT": {
304
+ "patternId": "1",
305
+ "rotation": 0
306
+ },
307
+ "RIGHT": {
308
+ "patternId": "Z",
309
+ "rotation": 0
310
+ }
311
+ },
312
+ "prompt": {
313
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
314
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C496\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> S -> N -> N -> E -> N -> E -> N -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=Z, rotation=180, flipVertical=true\n- step 2: patternId=6, rotation=270, flipVertical=true\n- step 3: patternId=1, rotation=0, flipVertical=true\n- step 4: patternId=6, rotation=270, flipVertical=true\n- step 5: patternId=Z, rotation=180, flipVertical=true\n- step 6: patternId=Z, rotation=180, flipVertical=true\n- step 7: patternId=2, rotation=270, flipVertical=true\n- step 8: patternId=1, rotation=270, flipVertical=true\n- step 9: patternId=G, rotation=0, flipVertical=true\n- step 10: patternId=Z, rotation=270, flipVertical=true\n- allowed patternId values for this task: Z, 6, 1, 2, G, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
315
+ }
316
+ }
cube1/data/C497.json ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C497",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: S -> E -> N -> N -> W -> S -> W -> S -> W -> W\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "S",
7
+ "E",
8
+ "N",
9
+ "N",
10
+ "W",
11
+ "S",
12
+ "W",
13
+ "S",
14
+ "W",
15
+ "W"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "Z",
20
+ "rotation": 0,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "2",
26
+ "rotation": 180,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "2",
32
+ "rotation": 270,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "4",
38
+ "rotation": 0,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "Z",
44
+ "rotation": 180,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "2",
50
+ "rotation": 180,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "2",
56
+ "rotation": 90,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "F",
62
+ "rotation": 270,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "3",
68
+ "rotation": 0,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "Z",
74
+ "rotation": 90,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C497_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 497,
85
+ "name": "Reconstruct 497",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-497.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "3",
96
+ "rotation": 270,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "Z",
102
+ "rotation": 0,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "2",
108
+ "rotation": 90,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "F",
114
+ "rotation": 180,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "4",
120
+ "rotation": 270,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "2",
126
+ "rotation": 0,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "3",
133
+ "Z",
134
+ "2",
135
+ "F",
136
+ "4",
137
+ "2"
138
+ ],
139
+ "start_x": 4,
140
+ "start_y": 2,
141
+ "grid_width": 7,
142
+ "grid_height": 5,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "3",
146
+ "rotation": 270
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "2",
150
+ "rotation": 0
151
+ },
152
+ "FRONT": {
153
+ "patternId": "Z",
154
+ "rotation": 0
155
+ },
156
+ "BACK": {
157
+ "patternId": "F",
158
+ "rotation": 0
159
+ },
160
+ "LEFT": {
161
+ "patternId": "4",
162
+ "rotation": 180
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "2",
166
+ "rotation": 180
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "2",
172
+ "rotation": 0,
173
+ "x": 4,
174
+ "y": 2
175
+ },
176
+ {
177
+ "patternId": "Z",
178
+ "rotation": 0,
179
+ "x": 4,
180
+ "y": 3
181
+ },
182
+ {
183
+ "patternId": "2",
184
+ "rotation": 180,
185
+ "x": 5,
186
+ "y": 3
187
+ },
188
+ {
189
+ "patternId": "2",
190
+ "rotation": 270,
191
+ "x": 5,
192
+ "y": 2
193
+ },
194
+ {
195
+ "patternId": "4",
196
+ "rotation": 0,
197
+ "x": 5,
198
+ "y": 1
199
+ },
200
+ {
201
+ "patternId": "Z",
202
+ "rotation": 180,
203
+ "x": 4,
204
+ "y": 1
205
+ },
206
+ {
207
+ "patternId": "2",
208
+ "rotation": 180,
209
+ "x": 4,
210
+ "y": 2
211
+ },
212
+ {
213
+ "patternId": "2",
214
+ "rotation": 90,
215
+ "x": 3,
216
+ "y": 2
217
+ },
218
+ {
219
+ "patternId": "F",
220
+ "rotation": 270,
221
+ "x": 3,
222
+ "y": 3
223
+ },
224
+ {
225
+ "patternId": "3",
226
+ "rotation": 0,
227
+ "x": 2,
228
+ "y": 3
229
+ },
230
+ {
231
+ "patternId": "Z",
232
+ "rotation": 90,
233
+ "x": 1,
234
+ "y": 3
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "FRONT",
239
+ "RIGHT",
240
+ "BOTTOM",
241
+ "LEFT",
242
+ "FRONT",
243
+ "BOTTOM",
244
+ "RIGHT",
245
+ "BACK",
246
+ "TOP",
247
+ "FRONT"
248
+ ],
249
+ "required_slots": [
250
+ "FRONT",
251
+ "RIGHT",
252
+ "BOTTOM",
253
+ "LEFT",
254
+ "BACK",
255
+ "TOP"
256
+ ],
257
+ "required_count": 6,
258
+ "answer": {
259
+ "faces": {
260
+ "TOP": {
261
+ "patternId": "3",
262
+ "rotation": 270
263
+ },
264
+ "BOTTOM": {
265
+ "patternId": "2",
266
+ "rotation": 0
267
+ },
268
+ "FRONT": {
269
+ "patternId": "Z",
270
+ "rotation": 0
271
+ },
272
+ "BACK": {
273
+ "patternId": "F",
274
+ "rotation": 180
275
+ },
276
+ "LEFT": {
277
+ "patternId": "4",
278
+ "rotation": 270
279
+ },
280
+ "RIGHT": {
281
+ "patternId": "2",
282
+ "rotation": 90
283
+ }
284
+ }
285
+ },
286
+ "legacy_answer": {
287
+ "TOP": {
288
+ "patternId": "3",
289
+ "rotation": 270
290
+ },
291
+ "BOTTOM": {
292
+ "patternId": "2",
293
+ "rotation": 0
294
+ },
295
+ "FRONT": {
296
+ "patternId": "Z",
297
+ "rotation": 0
298
+ },
299
+ "BACK": {
300
+ "patternId": "F",
301
+ "rotation": 180
302
+ },
303
+ "LEFT": {
304
+ "patternId": "4",
305
+ "rotation": 270
306
+ },
307
+ "RIGHT": {
308
+ "patternId": "2",
309
+ "rotation": 90
310
+ }
311
+ },
312
+ "prompt": {
313
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
314
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C497\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): S -> E -> N -> N -> W -> S -> W -> S -> W -> W\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=Z, rotation=0, flipVertical=true\n- step 2: patternId=2, rotation=180, flipVertical=true\n- step 3: patternId=2, rotation=270, flipVertical=true\n- step 4: patternId=4, rotation=0, flipVertical=true\n- step 5: patternId=Z, rotation=180, flipVertical=true\n- step 6: patternId=2, rotation=180, flipVertical=true\n- step 7: patternId=2, rotation=90, flipVertical=true\n- step 8: patternId=F, rotation=270, flipVertical=true\n- step 9: patternId=3, rotation=0, flipVertical=true\n- step 10: patternId=Z, rotation=90, flipVertical=true\n- allowed patternId values for this task: Z, 2, 4, F, 3, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
315
+ }
316
+ }
cube1/data/C498.json ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C498",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> S -> S -> S -> W -> E -> E -> S -> S -> N\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "E",
7
+ "S",
8
+ "S",
9
+ "S",
10
+ "W",
11
+ "E",
12
+ "E",
13
+ "S",
14
+ "S",
15
+ "N"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "circle",
20
+ "rotation": 180,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "J",
26
+ "rotation": 0,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "triangle",
32
+ "rotation": 90,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "heart",
38
+ "rotation": 90,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "arrow_up",
44
+ "rotation": 0,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "heart",
50
+ "rotation": 90,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "arrow_left",
56
+ "rotation": 0,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "circle",
62
+ "rotation": 270,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "arrow_up",
68
+ "rotation": 180,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "circle",
74
+ "rotation": 270,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C498_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 498,
85
+ "name": "Reconstruct 498",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-498.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "arrow_left",
96
+ "rotation": 90,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "J",
102
+ "rotation": 270,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "circle",
108
+ "rotation": 0,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "heart",
114
+ "rotation": 180,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "triangle",
120
+ "rotation": 90,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "arrow_up",
126
+ "rotation": 90,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "arrow_left",
133
+ "J",
134
+ "circle",
135
+ "heart",
136
+ "triangle",
137
+ "arrow_up"
138
+ ],
139
+ "start_x": 1,
140
+ "start_y": 1,
141
+ "grid_width": 5,
142
+ "grid_height": 8,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "arrow_left",
146
+ "rotation": 90
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "arrow_up",
150
+ "rotation": 90
151
+ },
152
+ "FRONT": {
153
+ "patternId": "J",
154
+ "rotation": 270
155
+ },
156
+ "BACK": {
157
+ "patternId": "heart",
158
+ "rotation": 0
159
+ },
160
+ "LEFT": {
161
+ "patternId": "triangle",
162
+ "rotation": 0
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "circle",
166
+ "rotation": 90
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "arrow_up",
172
+ "rotation": 90,
173
+ "x": 1,
174
+ "y": 1
175
+ },
176
+ {
177
+ "patternId": "circle",
178
+ "rotation": 180,
179
+ "x": 2,
180
+ "y": 1
181
+ },
182
+ {
183
+ "patternId": "J",
184
+ "rotation": 0,
185
+ "x": 2,
186
+ "y": 2
187
+ },
188
+ {
189
+ "patternId": "triangle",
190
+ "rotation": 90,
191
+ "x": 2,
192
+ "y": 3
193
+ },
194
+ {
195
+ "patternId": "heart",
196
+ "rotation": 90,
197
+ "x": 2,
198
+ "y": 4
199
+ },
200
+ {
201
+ "patternId": "arrow_up",
202
+ "rotation": 0,
203
+ "x": 1,
204
+ "y": 4
205
+ },
206
+ {
207
+ "patternId": "heart",
208
+ "rotation": 90,
209
+ "x": 2,
210
+ "y": 4
211
+ },
212
+ {
213
+ "patternId": "arrow_left",
214
+ "rotation": 0,
215
+ "x": 3,
216
+ "y": 4
217
+ },
218
+ {
219
+ "patternId": "circle",
220
+ "rotation": 270,
221
+ "x": 3,
222
+ "y": 5
223
+ },
224
+ {
225
+ "patternId": "arrow_up",
226
+ "rotation": 180,
227
+ "x": 3,
228
+ "y": 6
229
+ },
230
+ {
231
+ "patternId": "circle",
232
+ "rotation": 270,
233
+ "x": 3,
234
+ "y": 5
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "RIGHT",
239
+ "FRONT",
240
+ "LEFT",
241
+ "BACK",
242
+ "BOTTOM",
243
+ "BACK",
244
+ "TOP",
245
+ "RIGHT",
246
+ "BOTTOM",
247
+ "RIGHT"
248
+ ],
249
+ "required_slots": [
250
+ "RIGHT",
251
+ "FRONT",
252
+ "LEFT",
253
+ "BACK",
254
+ "BOTTOM",
255
+ "TOP"
256
+ ],
257
+ "required_count": 6,
258
+ "answer": {
259
+ "faces": {
260
+ "TOP": {
261
+ "patternId": "arrow_left",
262
+ "rotation": 90
263
+ },
264
+ "BOTTOM": {
265
+ "patternId": "arrow_up",
266
+ "rotation": 90
267
+ },
268
+ "FRONT": {
269
+ "patternId": "J",
270
+ "rotation": 270
271
+ },
272
+ "BACK": {
273
+ "patternId": "heart",
274
+ "rotation": 180
275
+ },
276
+ "LEFT": {
277
+ "patternId": "triangle",
278
+ "rotation": 90
279
+ },
280
+ "RIGHT": {
281
+ "patternId": "circle",
282
+ "rotation": 0
283
+ }
284
+ }
285
+ },
286
+ "legacy_answer": {
287
+ "TOP": {
288
+ "patternId": "arrow_left",
289
+ "rotation": 90
290
+ },
291
+ "BOTTOM": {
292
+ "patternId": "arrow_up",
293
+ "rotation": 90
294
+ },
295
+ "FRONT": {
296
+ "patternId": "J",
297
+ "rotation": 270
298
+ },
299
+ "BACK": {
300
+ "patternId": "heart",
301
+ "rotation": 180
302
+ },
303
+ "LEFT": {
304
+ "patternId": "triangle",
305
+ "rotation": 90
306
+ },
307
+ "RIGHT": {
308
+ "patternId": "circle",
309
+ "rotation": 0
310
+ }
311
+ },
312
+ "prompt": {
313
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
314
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C498\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> S -> S -> W -> E -> E -> S -> S -> N\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=circle, rotation=180, flipVertical=true\n- step 2: patternId=J, rotation=0, flipVertical=true\n- step 3: patternId=triangle, rotation=90, flipVertical=true\n- step 4: patternId=heart, rotation=90, flipVertical=true\n- step 5: patternId=arrow_up, rotation=0, flipVertical=true\n- step 6: patternId=heart, rotation=90, flipVertical=true\n- step 7: patternId=arrow_left, rotation=0, flipVertical=true\n- step 8: patternId=circle, rotation=270, flipVertical=true\n- step 9: patternId=arrow_up, rotation=180, flipVertical=true\n- step 10: patternId=circle, rotation=270, flipVertical=true\n- allowed patternId values for this task: circle, J, triangle, heart, arrow_up, arrow_left, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
315
+ }
316
+ }
cube1/data/C499.json ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C499",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> E -> S -> W -> S -> E -> N -> E -> E -> S\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "E",
7
+ "E",
8
+ "S",
9
+ "W",
10
+ "S",
11
+ "E",
12
+ "N",
13
+ "E",
14
+ "E",
15
+ "S"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "2",
20
+ "rotation": 270,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "S",
26
+ "rotation": 270,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "smile",
32
+ "rotation": 180,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "2",
38
+ "rotation": 0,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "square",
44
+ "rotation": 180,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "smile",
50
+ "rotation": 90,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "2",
56
+ "rotation": 270,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "S",
62
+ "rotation": 270,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "4",
68
+ "rotation": 0,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "smile",
74
+ "rotation": 270,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C499_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 499,
85
+ "name": "Reconstruct 499",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-499.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "S",
96
+ "rotation": 90,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "smile",
102
+ "rotation": 0,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "2",
108
+ "rotation": 90,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "arrow_left",
114
+ "rotation": 90,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "4",
120
+ "rotation": 180,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "square",
126
+ "rotation": 90,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "S",
133
+ "smile",
134
+ "2",
135
+ "arrow_left",
136
+ "4",
137
+ "square"
138
+ ],
139
+ "start_x": 1,
140
+ "start_y": 1,
141
+ "grid_width": 7,
142
+ "grid_height": 5,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "S",
146
+ "rotation": 90
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "square",
150
+ "rotation": 90
151
+ },
152
+ "FRONT": {
153
+ "patternId": "smile",
154
+ "rotation": 0
155
+ },
156
+ "BACK": {
157
+ "patternId": "arrow_left",
158
+ "rotation": 270
159
+ },
160
+ "LEFT": {
161
+ "patternId": "4",
162
+ "rotation": 90
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "2",
166
+ "rotation": 180
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "square",
172
+ "rotation": 90,
173
+ "x": 1,
174
+ "y": 1
175
+ },
176
+ {
177
+ "patternId": "2",
178
+ "rotation": 270,
179
+ "x": 2,
180
+ "y": 1
181
+ },
182
+ {
183
+ "patternId": "S",
184
+ "rotation": 270,
185
+ "x": 3,
186
+ "y": 1
187
+ },
188
+ {
189
+ "patternId": "smile",
190
+ "rotation": 180,
191
+ "x": 3,
192
+ "y": 2
193
+ },
194
+ {
195
+ "patternId": "2",
196
+ "rotation": 0,
197
+ "x": 2,
198
+ "y": 2
199
+ },
200
+ {
201
+ "patternId": "square",
202
+ "rotation": 180,
203
+ "x": 2,
204
+ "y": 3
205
+ },
206
+ {
207
+ "patternId": "smile",
208
+ "rotation": 90,
209
+ "x": 3,
210
+ "y": 3
211
+ },
212
+ {
213
+ "patternId": "2",
214
+ "rotation": 270,
215
+ "x": 3,
216
+ "y": 2
217
+ },
218
+ {
219
+ "patternId": "S",
220
+ "rotation": 270,
221
+ "x": 4,
222
+ "y": 2
223
+ },
224
+ {
225
+ "patternId": "4",
226
+ "rotation": 0,
227
+ "x": 5,
228
+ "y": 2
229
+ },
230
+ {
231
+ "patternId": "smile",
232
+ "rotation": 270,
233
+ "x": 5,
234
+ "y": 3
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "RIGHT",
239
+ "TOP",
240
+ "FRONT",
241
+ "RIGHT",
242
+ "BOTTOM",
243
+ "FRONT",
244
+ "RIGHT",
245
+ "TOP",
246
+ "LEFT",
247
+ "FRONT"
248
+ ],
249
+ "required_slots": [
250
+ "RIGHT",
251
+ "TOP",
252
+ "FRONT",
253
+ "BOTTOM",
254
+ "LEFT"
255
+ ],
256
+ "required_count": 5,
257
+ "answer": {
258
+ "faces": {
259
+ "TOP": {
260
+ "patternId": "S",
261
+ "rotation": 90
262
+ },
263
+ "BOTTOM": {
264
+ "patternId": "square",
265
+ "rotation": 90
266
+ },
267
+ "FRONT": {
268
+ "patternId": "smile",
269
+ "rotation": 0
270
+ },
271
+ "BACK": {
272
+ "patternId": "?",
273
+ "rotation": 0
274
+ },
275
+ "LEFT": {
276
+ "patternId": "4",
277
+ "rotation": 180
278
+ },
279
+ "RIGHT": {
280
+ "patternId": "2",
281
+ "rotation": 90
282
+ }
283
+ }
284
+ },
285
+ "legacy_answer": {
286
+ "TOP": {
287
+ "patternId": "S",
288
+ "rotation": 90
289
+ },
290
+ "BOTTOM": {
291
+ "patternId": "square",
292
+ "rotation": 90
293
+ },
294
+ "FRONT": {
295
+ "patternId": "smile",
296
+ "rotation": 0
297
+ },
298
+ "BACK": {
299
+ "patternId": "?",
300
+ "rotation": 0
301
+ },
302
+ "LEFT": {
303
+ "patternId": "4",
304
+ "rotation": 180
305
+ },
306
+ "RIGHT": {
307
+ "patternId": "2",
308
+ "rotation": 90
309
+ }
310
+ },
311
+ "prompt": {
312
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
313
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C499\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): E -> E -> S -> W -> S -> E -> N -> E -> E -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=2, rotation=270, flipVertical=true\n- step 2: patternId=S, rotation=270, flipVertical=true\n- step 3: patternId=smile, rotation=180, flipVertical=true\n- step 4: patternId=2, rotation=0, flipVertical=true\n- step 5: patternId=square, rotation=180, flipVertical=true\n- step 6: patternId=smile, rotation=90, flipVertical=true\n- step 7: patternId=2, rotation=270, flipVertical=true\n- step 8: patternId=S, rotation=270, flipVertical=true\n- step 9: patternId=4, rotation=0, flipVertical=true\n- step 10: patternId=smile, rotation=270, flipVertical=true\n- allowed patternId values for this task: 2, S, smile, square, 4, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
314
+ }
315
+ }
cube1/data/C500.json ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C500",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: E -> S -> N -> S -> S -> W -> N -> W -> S -> S\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "E",
7
+ "S",
8
+ "N",
9
+ "S",
10
+ "S",
11
+ "W",
12
+ "N",
13
+ "W",
14
+ "S",
15
+ "S"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "1",
20
+ "rotation": 180,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "smile",
26
+ "rotation": 90,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "1",
32
+ "rotation": 180,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "smile",
38
+ "rotation": 90,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "arrow_up",
44
+ "rotation": 0,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "arrow_up",
50
+ "rotation": 90,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "smile",
56
+ "rotation": 180,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "1",
62
+ "rotation": 270,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "arrow_up",
68
+ "rotation": 0,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "arrow_up",
74
+ "rotation": 270,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C500_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 500,
85
+ "name": "Reconstruct 500",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-500.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "J",
96
+ "rotation": 0,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "smile",
102
+ "rotation": 0,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "1",
108
+ "rotation": 0,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "arrow_left",
114
+ "rotation": 270,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "arrow_up",
120
+ "rotation": 0,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "arrow_up",
126
+ "rotation": 270,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "J",
133
+ "smile",
134
+ "1",
135
+ "arrow_left",
136
+ "arrow_up",
137
+ "arrow_up"
138
+ ],
139
+ "start_x": 2,
140
+ "start_y": 1,
141
+ "grid_width": 5,
142
+ "grid_height": 6,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "J",
146
+ "rotation": 0
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "arrow_up",
150
+ "rotation": 270
151
+ },
152
+ "FRONT": {
153
+ "patternId": "smile",
154
+ "rotation": 0
155
+ },
156
+ "BACK": {
157
+ "patternId": "arrow_left",
158
+ "rotation": 90
159
+ },
160
+ "LEFT": {
161
+ "patternId": "arrow_up",
162
+ "rotation": 270
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "1",
166
+ "rotation": 90
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "arrow_up",
172
+ "rotation": 270,
173
+ "x": 2,
174
+ "y": 1
175
+ },
176
+ {
177
+ "patternId": "1",
178
+ "rotation": 180,
179
+ "x": 3,
180
+ "y": 1
181
+ },
182
+ {
183
+ "patternId": "smile",
184
+ "rotation": 90,
185
+ "x": 3,
186
+ "y": 2
187
+ },
188
+ {
189
+ "patternId": "1",
190
+ "rotation": 180,
191
+ "x": 3,
192
+ "y": 1
193
+ },
194
+ {
195
+ "patternId": "smile",
196
+ "rotation": 90,
197
+ "x": 3,
198
+ "y": 2
199
+ },
200
+ {
201
+ "patternId": "arrow_up",
202
+ "rotation": 0,
203
+ "x": 3,
204
+ "y": 3
205
+ },
206
+ {
207
+ "patternId": "arrow_up",
208
+ "rotation": 90,
209
+ "x": 2,
210
+ "y": 3
211
+ },
212
+ {
213
+ "patternId": "smile",
214
+ "rotation": 180,
215
+ "x": 2,
216
+ "y": 2
217
+ },
218
+ {
219
+ "patternId": "1",
220
+ "rotation": 270,
221
+ "x": 1,
222
+ "y": 2
223
+ },
224
+ {
225
+ "patternId": "arrow_up",
226
+ "rotation": 0,
227
+ "x": 1,
228
+ "y": 3
229
+ },
230
+ {
231
+ "patternId": "arrow_up",
232
+ "rotation": 270,
233
+ "x": 1,
234
+ "y": 4
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "RIGHT",
239
+ "FRONT",
240
+ "RIGHT",
241
+ "FRONT",
242
+ "LEFT",
243
+ "BOTTOM",
244
+ "FRONT",
245
+ "RIGHT",
246
+ "BOTTOM",
247
+ "LEFT"
248
+ ],
249
+ "required_slots": [
250
+ "RIGHT",
251
+ "FRONT",
252
+ "LEFT",
253
+ "BOTTOM"
254
+ ],
255
+ "required_count": 4,
256
+ "answer": {
257
+ "faces": {
258
+ "TOP": {
259
+ "patternId": "?",
260
+ "rotation": 0
261
+ },
262
+ "BOTTOM": {
263
+ "patternId": "arrow_up",
264
+ "rotation": 270
265
+ },
266
+ "FRONT": {
267
+ "patternId": "smile",
268
+ "rotation": 0
269
+ },
270
+ "BACK": {
271
+ "patternId": "?",
272
+ "rotation": 0
273
+ },
274
+ "LEFT": {
275
+ "patternId": "arrow_up",
276
+ "rotation": 0
277
+ },
278
+ "RIGHT": {
279
+ "patternId": "1",
280
+ "rotation": 0
281
+ }
282
+ }
283
+ },
284
+ "legacy_answer": {
285
+ "TOP": {
286
+ "patternId": "?",
287
+ "rotation": 0
288
+ },
289
+ "BOTTOM": {
290
+ "patternId": "arrow_up",
291
+ "rotation": 270
292
+ },
293
+ "FRONT": {
294
+ "patternId": "smile",
295
+ "rotation": 0
296
+ },
297
+ "BACK": {
298
+ "patternId": "?",
299
+ "rotation": 0
300
+ },
301
+ "LEFT": {
302
+ "patternId": "arrow_up",
303
+ "rotation": 0
304
+ },
305
+ "RIGHT": {
306
+ "patternId": "1",
307
+ "rotation": 0
308
+ }
309
+ },
310
+ "prompt": {
311
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
312
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C500\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): E -> S -> N -> S -> S -> W -> N -> W -> S -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=1, rotation=180, flipVertical=true\n- step 2: patternId=smile, rotation=90, flipVertical=true\n- step 3: patternId=1, rotation=180, flipVertical=true\n- step 4: patternId=smile, rotation=90, flipVertical=true\n- step 5: patternId=arrow_up, rotation=0, flipVertical=true\n- step 6: patternId=arrow_up, rotation=90, flipVertical=true\n- step 7: patternId=smile, rotation=180, flipVertical=true\n- step 8: patternId=1, rotation=270, flipVertical=true\n- step 9: patternId=arrow_up, rotation=0, flipVertical=true\n- step 10: patternId=arrow_up, rotation=270, flipVertical=true\n- allowed patternId values for this task: 1, smile, arrow_up, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
313
+ }
314
+ }
cube1/data/C501.json ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C501",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: W -> W -> W -> S -> S -> W -> W -> N -> E -> E\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "W",
7
+ "W",
8
+ "W",
9
+ "S",
10
+ "S",
11
+ "W",
12
+ "W",
13
+ "N",
14
+ "E",
15
+ "E"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "A",
20
+ "rotation": 270,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "W",
26
+ "rotation": 180,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "arrow_right",
32
+ "rotation": 0,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "arrow_left",
38
+ "rotation": 90,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "A",
44
+ "rotation": 90,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "square",
50
+ "rotation": 180,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "arrow_right",
56
+ "rotation": 180,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "arrow_left",
62
+ "rotation": 270,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "square",
68
+ "rotation": 270,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "J",
74
+ "rotation": 270,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C501_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 501,
85
+ "name": "Reconstruct 501",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-501.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "W",
96
+ "rotation": 0,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "arrow_left",
102
+ "rotation": 0,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "arrow_right",
108
+ "rotation": 180,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "J",
114
+ "rotation": 0,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "A",
120
+ "rotation": 90,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "square",
126
+ "rotation": 0,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "W",
133
+ "arrow_left",
134
+ "arrow_right",
135
+ "J",
136
+ "A",
137
+ "square"
138
+ ],
139
+ "start_x": 6,
140
+ "start_y": 1,
141
+ "grid_width": 8,
142
+ "grid_height": 5,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "W",
146
+ "rotation": 0
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "square",
150
+ "rotation": 0
151
+ },
152
+ "FRONT": {
153
+ "patternId": "arrow_left",
154
+ "rotation": 0
155
+ },
156
+ "BACK": {
157
+ "patternId": "J",
158
+ "rotation": 180
159
+ },
160
+ "LEFT": {
161
+ "patternId": "A",
162
+ "rotation": 0
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "arrow_right",
166
+ "rotation": 270
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "square",
172
+ "rotation": 0,
173
+ "x": 6,
174
+ "y": 1
175
+ },
176
+ {
177
+ "patternId": "A",
178
+ "rotation": 270,
179
+ "x": 5,
180
+ "y": 1
181
+ },
182
+ {
183
+ "patternId": "W",
184
+ "rotation": 180,
185
+ "x": 4,
186
+ "y": 1
187
+ },
188
+ {
189
+ "patternId": "arrow_right",
190
+ "rotation": 0,
191
+ "x": 3,
192
+ "y": 1
193
+ },
194
+ {
195
+ "patternId": "arrow_left",
196
+ "rotation": 90,
197
+ "x": 3,
198
+ "y": 2
199
+ },
200
+ {
201
+ "patternId": "A",
202
+ "rotation": 90,
203
+ "x": 3,
204
+ "y": 3
205
+ },
206
+ {
207
+ "patternId": "square",
208
+ "rotation": 180,
209
+ "x": 2,
210
+ "y": 3
211
+ },
212
+ {
213
+ "patternId": "arrow_right",
214
+ "rotation": 180,
215
+ "x": 1,
216
+ "y": 3
217
+ },
218
+ {
219
+ "patternId": "arrow_left",
220
+ "rotation": 270,
221
+ "x": 1,
222
+ "y": 2
223
+ },
224
+ {
225
+ "patternId": "square",
226
+ "rotation": 270,
227
+ "x": 2,
228
+ "y": 2
229
+ },
230
+ {
231
+ "patternId": "J",
232
+ "rotation": 270,
233
+ "x": 3,
234
+ "y": 2
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "LEFT",
239
+ "TOP",
240
+ "RIGHT",
241
+ "FRONT",
242
+ "LEFT",
243
+ "BOTTOM",
244
+ "RIGHT",
245
+ "FRONT",
246
+ "BOTTOM",
247
+ "BACK"
248
+ ],
249
+ "required_slots": [
250
+ "LEFT",
251
+ "TOP",
252
+ "RIGHT",
253
+ "FRONT",
254
+ "BOTTOM",
255
+ "BACK"
256
+ ],
257
+ "required_count": 6,
258
+ "answer": {
259
+ "faces": {
260
+ "TOP": {
261
+ "patternId": "W",
262
+ "rotation": 0
263
+ },
264
+ "BOTTOM": {
265
+ "patternId": "square",
266
+ "rotation": 0
267
+ },
268
+ "FRONT": {
269
+ "patternId": "arrow_left",
270
+ "rotation": 0
271
+ },
272
+ "BACK": {
273
+ "patternId": "J",
274
+ "rotation": 0
275
+ },
276
+ "LEFT": {
277
+ "patternId": "A",
278
+ "rotation": 90
279
+ },
280
+ "RIGHT": {
281
+ "patternId": "arrow_right",
282
+ "rotation": 180
283
+ }
284
+ }
285
+ },
286
+ "legacy_answer": {
287
+ "TOP": {
288
+ "patternId": "W",
289
+ "rotation": 0
290
+ },
291
+ "BOTTOM": {
292
+ "patternId": "square",
293
+ "rotation": 0
294
+ },
295
+ "FRONT": {
296
+ "patternId": "arrow_left",
297
+ "rotation": 0
298
+ },
299
+ "BACK": {
300
+ "patternId": "J",
301
+ "rotation": 0
302
+ },
303
+ "LEFT": {
304
+ "patternId": "A",
305
+ "rotation": 90
306
+ },
307
+ "RIGHT": {
308
+ "patternId": "arrow_right",
309
+ "rotation": 180
310
+ }
311
+ },
312
+ "prompt": {
313
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
314
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C501\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): W -> W -> W -> S -> S -> W -> W -> N -> E -> E\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=A, rotation=270, flipVertical=true\n- step 2: patternId=W, rotation=180, flipVertical=true\n- step 3: patternId=arrow_right, rotation=0, flipVertical=true\n- step 4: patternId=arrow_left, rotation=90, flipVertical=true\n- step 5: patternId=A, rotation=90, flipVertical=true\n- step 6: patternId=square, rotation=180, flipVertical=true\n- step 7: patternId=arrow_right, rotation=180, flipVertical=true\n- step 8: patternId=arrow_left, rotation=270, flipVertical=true\n- step 9: patternId=square, rotation=270, flipVertical=true\n- step 10: patternId=J, rotation=270, flipVertical=true\n- allowed patternId values for this task: A, W, arrow_right, arrow_left, square, J, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
315
+ }
316
+ }
cube1/data/C502.json ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_id": "C502",
3
+ "text_description": "Task: reconstruct the six outer faces of the cube from the blank cross net image and the path-view observation image.\nThe net uses the fixed face names TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\nIf a face cannot be uniquely determined, output patternId='?' and rotation=0.\nRoll sequence: N -> E -> N -> E -> E -> W -> S -> E -> E -> S\nThe puzzle images already show the roll path and the observed path-face states.",
4
+ "net_layout": "standard_cross",
5
+ "roll_sequence": [
6
+ "N",
7
+ "E",
8
+ "N",
9
+ "E",
10
+ "E",
11
+ "W",
12
+ "S",
13
+ "E",
14
+ "E",
15
+ "S"
16
+ ],
17
+ "observed_path_faces": [
18
+ {
19
+ "patternId": "F",
20
+ "rotation": 270,
21
+ "flipHorizontal": false,
22
+ "flipVertical": true
23
+ },
24
+ {
25
+ "patternId": "arrow_right",
26
+ "rotation": 180,
27
+ "flipHorizontal": false,
28
+ "flipVertical": true
29
+ },
30
+ {
31
+ "patternId": "A",
32
+ "rotation": 0,
33
+ "flipHorizontal": false,
34
+ "flipVertical": true
35
+ },
36
+ {
37
+ "patternId": "G",
38
+ "rotation": 0,
39
+ "flipHorizontal": false,
40
+ "flipVertical": true
41
+ },
42
+ {
43
+ "patternId": "C",
44
+ "rotation": 0,
45
+ "flipHorizontal": false,
46
+ "flipVertical": true
47
+ },
48
+ {
49
+ "patternId": "G",
50
+ "rotation": 0,
51
+ "flipHorizontal": false,
52
+ "flipVertical": true
53
+ },
54
+ {
55
+ "patternId": "arrow_right",
56
+ "rotation": 270,
57
+ "flipHorizontal": false,
58
+ "flipVertical": true
59
+ },
60
+ {
61
+ "patternId": "C",
62
+ "rotation": 270,
63
+ "flipHorizontal": false,
64
+ "flipVertical": true
65
+ },
66
+ {
67
+ "patternId": "S",
68
+ "rotation": 270,
69
+ "flipHorizontal": false,
70
+ "flipVertical": true
71
+ },
72
+ {
73
+ "patternId": "F",
74
+ "rotation": 180,
75
+ "flipHorizontal": false,
76
+ "flipVertical": true
77
+ }
78
+ ],
79
+ "image_paths": {
80
+ "blank_net_image": "images/blank_nets/open.png",
81
+ "path_sequence_image": "images/path_sequences/C502_path_sequence.png"
82
+ },
83
+ "metadata": {
84
+ "level_id": 502,
85
+ "name": "Reconstruct 502",
86
+ "difficulty": 5,
87
+ "move_count": 10,
88
+ "tier": 5,
89
+ "source_level_path": "levels/reconstruct/generated-502.json",
90
+ "tier_label": "Difficulty 5"
91
+ },
92
+ "description": "10-move reconstruct puzzle",
93
+ "net_faces": [
94
+ {
95
+ "patternId": "A",
96
+ "rotation": 90,
97
+ "flipHorizontal": false,
98
+ "flipVertical": false
99
+ },
100
+ {
101
+ "patternId": "G",
102
+ "rotation": 90,
103
+ "flipHorizontal": false,
104
+ "flipVertical": false
105
+ },
106
+ {
107
+ "patternId": "arrow_right",
108
+ "rotation": 270,
109
+ "flipHorizontal": false,
110
+ "flipVertical": false
111
+ },
112
+ {
113
+ "patternId": "F",
114
+ "rotation": 270,
115
+ "flipHorizontal": false,
116
+ "flipVertical": false
117
+ },
118
+ {
119
+ "patternId": "S",
120
+ "rotation": 270,
121
+ "flipHorizontal": false,
122
+ "flipVertical": false
123
+ },
124
+ {
125
+ "patternId": "C",
126
+ "rotation": 90,
127
+ "flipHorizontal": false,
128
+ "flipVertical": false
129
+ }
130
+ ],
131
+ "net_patterns": [
132
+ "A",
133
+ "G",
134
+ "arrow_right",
135
+ "F",
136
+ "S",
137
+ "C"
138
+ ],
139
+ "start_x": 1,
140
+ "start_y": 3,
141
+ "grid_width": 7,
142
+ "grid_height": 5,
143
+ "true_solution_faces": {
144
+ "TOP": {
145
+ "patternId": "A",
146
+ "rotation": 90
147
+ },
148
+ "BOTTOM": {
149
+ "patternId": "C",
150
+ "rotation": 90
151
+ },
152
+ "FRONT": {
153
+ "patternId": "G",
154
+ "rotation": 90
155
+ },
156
+ "BACK": {
157
+ "patternId": "F",
158
+ "rotation": 90
159
+ },
160
+ "LEFT": {
161
+ "patternId": "S",
162
+ "rotation": 180
163
+ },
164
+ "RIGHT": {
165
+ "patternId": "arrow_right",
166
+ "rotation": 0
167
+ }
168
+ },
169
+ "bottom_faces": [
170
+ {
171
+ "patternId": "C",
172
+ "rotation": 90,
173
+ "x": 1,
174
+ "y": 3
175
+ },
176
+ {
177
+ "patternId": "F",
178
+ "rotation": 270,
179
+ "x": 1,
180
+ "y": 2
181
+ },
182
+ {
183
+ "patternId": "arrow_right",
184
+ "rotation": 180,
185
+ "x": 2,
186
+ "y": 2
187
+ },
188
+ {
189
+ "patternId": "A",
190
+ "rotation": 0,
191
+ "x": 2,
192
+ "y": 1
193
+ },
194
+ {
195
+ "patternId": "G",
196
+ "rotation": 0,
197
+ "x": 3,
198
+ "y": 1
199
+ },
200
+ {
201
+ "patternId": "C",
202
+ "rotation": 0,
203
+ "x": 4,
204
+ "y": 1
205
+ },
206
+ {
207
+ "patternId": "G",
208
+ "rotation": 0,
209
+ "x": 3,
210
+ "y": 1
211
+ },
212
+ {
213
+ "patternId": "arrow_right",
214
+ "rotation": 270,
215
+ "x": 3,
216
+ "y": 2
217
+ },
218
+ {
219
+ "patternId": "C",
220
+ "rotation": 270,
221
+ "x": 4,
222
+ "y": 2
223
+ },
224
+ {
225
+ "patternId": "S",
226
+ "rotation": 270,
227
+ "x": 5,
228
+ "y": 2
229
+ },
230
+ {
231
+ "patternId": "F",
232
+ "rotation": 180,
233
+ "x": 5,
234
+ "y": 3
235
+ }
236
+ ],
237
+ "slot_sequence": [
238
+ "BACK",
239
+ "RIGHT",
240
+ "TOP",
241
+ "FRONT",
242
+ "BOTTOM",
243
+ "FRONT",
244
+ "RIGHT",
245
+ "BOTTOM",
246
+ "LEFT",
247
+ "BACK"
248
+ ],
249
+ "required_slots": [
250
+ "BACK",
251
+ "RIGHT",
252
+ "TOP",
253
+ "FRONT",
254
+ "BOTTOM",
255
+ "LEFT"
256
+ ],
257
+ "required_count": 6,
258
+ "answer": {
259
+ "faces": {
260
+ "TOP": {
261
+ "patternId": "A",
262
+ "rotation": 90
263
+ },
264
+ "BOTTOM": {
265
+ "patternId": "C",
266
+ "rotation": 90
267
+ },
268
+ "FRONT": {
269
+ "patternId": "G",
270
+ "rotation": 90
271
+ },
272
+ "BACK": {
273
+ "patternId": "F",
274
+ "rotation": 270
275
+ },
276
+ "LEFT": {
277
+ "patternId": "S",
278
+ "rotation": 270
279
+ },
280
+ "RIGHT": {
281
+ "patternId": "arrow_right",
282
+ "rotation": 270
283
+ }
284
+ }
285
+ },
286
+ "legacy_answer": {
287
+ "TOP": {
288
+ "patternId": "A",
289
+ "rotation": 90
290
+ },
291
+ "BOTTOM": {
292
+ "patternId": "C",
293
+ "rotation": 90
294
+ },
295
+ "FRONT": {
296
+ "patternId": "G",
297
+ "rotation": 90
298
+ },
299
+ "BACK": {
300
+ "patternId": "F",
301
+ "rotation": 270
302
+ },
303
+ "LEFT": {
304
+ "patternId": "S",
305
+ "rotation": 270
306
+ },
307
+ "RIGHT": {
308
+ "patternId": "arrow_right",
309
+ "rotation": 270
310
+ }
311
+ },
312
+ "prompt": {
313
+ "system": "You are a cube-reconstruction puzzle solver. Given a blank cross net of a cube and a top-down path image showing the bottom-face imprints stamped onto the road as the cube rolls, you reconstruct the patternId and rotation of every outer face.\n\nYou will receive: (a) one blank cross-net image (the unfolded outer surface, with the six face slots TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT), (b) one path-sequence image (top-down view of the cube's roll path with the bottom-face imprints visible), and (c) a structured text body listing the roll sequence, observed path faces, and the allowed patternId values for this task.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the faces schema described in section 8 of the user prompt. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf a face cannot be uniquely determined from the inputs, output patternId=\"?\" and rotation=0 for that face. Always emit a complete FINAL_JSON line covering all six face keys; never refuse, never return prose only.",
314
+ "user": "## 1. TASK\nReconstruct the patternId and absolute rotation of every face of a cube from a roll-trace image.\nThe puzzle is solved when every output face matches the cube's true outer-surface configuration; faces that cannot be uniquely determined are reported with patternId=\"?\" and rotation=0.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. Faces are named by their orientation in the world frame: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- Cross net: the unfolded outer surface laid flat in a cross shape. Each cell of the cross is one face of the cube.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell.\n- Path imprint / bottom-face stamp: as the cube rolls, the face touching the ground stamps that face's pattern (rotated according to the roll) onto the grid cell it lay on. The path-sequence image shows these imprints from a top-down view.\n- patternId: the symbolic name of a face's printed pattern (e.g. \"smile\", \"triangle\", \"5\"). The literal string \"?\" denotes \"cannot be uniquely determined\".\n- rotation: an integer in {0, 90, 180, 270} measured clockwise from the pattern's upright orientation when the face is viewed from outside the cube.\n\n## 3. VISUAL LEGEND\n- Blank cross net image: shows the six face slots arranged in a cross with TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT labelled.\n- Path sequence image: a top-down grid showing the cube's start cell, the roll path, and the bottom-face imprints stamped along the path. Each imprint is the bottom-face pattern at the moment the cube rested on that cell, viewed from above (NOT viewed from underneath looking up).\n- Coordinate system: top-down, with grid cell positions used to locate imprints; rotations are expressed in degrees clockwise.\n\n## 4. INPUT FIELDS\n- sample_id: C502\n- net_layout: standard_cross\n- difficulty: 5\n- move_count: 10\n- roll_sequence (N=up, S=down, W=left, E=right): N -> E -> N -> E -> E -> W -> S -> E -> E -> S\n- observed_path_faces (one entry per stamped imprint, in roll order):\n- step 1: patternId=F, rotation=270, flipVertical=true\n- step 2: patternId=arrow_right, rotation=180, flipVertical=true\n- step 3: patternId=A, rotation=0, flipVertical=true\n- step 4: patternId=G, rotation=0, flipVertical=true\n- step 5: patternId=C, rotation=0, flipVertical=true\n- step 6: patternId=G, rotation=0, flipVertical=true\n- step 7: patternId=arrow_right, rotation=270, flipVertical=true\n- step 8: patternId=C, rotation=270, flipVertical=true\n- step 9: patternId=S, rotation=270, flipVertical=true\n- step 10: patternId=F, rotation=180, flipVertical=true\n- allowed patternId values for this task: F, arrow_right, A, G, C, S, ?\n\n## 5. ACTION VOCABULARY\nA complete answer is one map from face name to its `(patternId, rotation)` pair:\n- face: one of {\"TOP\", \"BOTTOM\", \"FRONT\", \"BACK\", \"LEFT\", \"RIGHT\"}.\n- patternId: a string drawn from the allowed list above, or the literal \"?\" sentinel.\n- rotation: integer in {0, 90, 180, 270}.\nA face is \"uniquely determined\" iff the inputs (roll sequence, observed imprints, blank net) constrain its pattern and rotation to exactly one possibility.\n\n## 6. CONSTRAINTS\n- The output must list all six face keys exactly: TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT (no extras, no omissions).\n- Each `patternId` must come from the allowed list, or be the literal \"?\".\n- When `patternId == \"?\"`, `rotation` must be 0.\n- Each rotation must be one of 0, 90, 180, 270.\n- Do not invent new patternIds. The model is scored only against the listed allowed values plus \"?\".\n\n## 7. SOLVING ADVICE\n- Trace the roll one step at a time: which face becomes the bottom after each roll? The path imprint at that step records that face.\n- When a stamped imprint is rotated relative to the original pattern's upright orientation, infer the cumulative rotation that the rolling chain has applied to that face.\n- Faces that never touch the ground may not appear in the imprints; if no other constraint pins them, they are \"?\".\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"faces\":{\"TOP\":{\"patternId\":<string>,\"rotation\":<int>},\"BOTTOM\":{...},\"FRONT\":{...},\"BACK\":{...},\"LEFT\":{...},\"RIGHT\":{...}}}\n- faces: object with exactly six keys TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT.\n- patternId: string from the allowed list, or \"?\".\n- rotation: integer in {0, 90, 180, 270}; 0 when patternId is \"?\".\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
315
+ }
316
+ }
cube1/images/blank_nets/.gitkeep ADDED
@@ -0,0 +1 @@
 
 
1
+
cube1/images/path_sequences/.gitkeep ADDED
@@ -0,0 +1 @@
 
 
1
+
cube2/data/C425.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C425",
4
+ "name": "Goal Roll C425",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "I",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "4",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "3",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "I",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "7",
73
+ "rotation": 90
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "I",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "4",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "3",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "I",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "7",
100
+ "rotation": 90
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 6,
106
+ "stepNumber": 7,
107
+ "patternId": "4",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C425/initial_net.png",
117
+ "targetTopFaceImage": "../images/C425/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 7,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 425,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-425.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "W",
131
+ "W",
132
+ "E",
133
+ "E",
134
+ "N",
135
+ "N",
136
+ "N",
137
+ "W",
138
+ "S"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "4",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "I",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "3",
155
+ "rotation": 0,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "I",
161
+ "rotation": 90,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "4",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "7",
173
+ "rotation": 90,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "3",
179
+ "rotation": 180,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "I",
185
+ "rotation": 90,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "I",
191
+ "rotation": 180,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "3",
197
+ "rotation": 90,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "W",
206
+ "W",
207
+ "E",
208
+ "E",
209
+ "N",
210
+ "N",
211
+ "N",
212
+ "W",
213
+ "S"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "I",
219
+ "rotation": 90
220
+ },
221
+ "FRONT": {
222
+ "patternId": "4",
223
+ "rotation": 90
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "?",
227
+ "rotation": 0
228
+ },
229
+ "BACK": {
230
+ "patternId": "3",
231
+ "rotation": 180
232
+ },
233
+ "LEFT": {
234
+ "patternId": "I",
235
+ "rotation": 180
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "7",
239
+ "rotation": 90
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C425\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=4, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=3, rotation=180]\n[LEFT: patternId=I, rotation=180] [TOP: patternId=I, rotation=90] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=4, rotation=90]\n [BOTTOM: patternId=7, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=3, rotation=180\n- LEFT: patternId=I, rotation=180\n- TOP: patternId=I, rotation=90\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=4, rotation=90\n- BOTTOM: patternId=7, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C426.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C426",
4
+ "name": "Goal Roll C426",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "triangle",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "F",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "X",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "star",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "9",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "heart",
73
+ "rotation": 90
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "triangle",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "F",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "X",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "star",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "9",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "heart",
100
+ "rotation": 90
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 2,
106
+ "stepNumber": 3,
107
+ "patternId": "star",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C426/initial_net.png",
117
+ "targetTopFaceImage": "../images/C426/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 3,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 426,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-426.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "S",
131
+ "S",
132
+ "W",
133
+ "S",
134
+ "W",
135
+ "S",
136
+ "E",
137
+ "S",
138
+ "W"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "star",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "heart",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "F",
155
+ "rotation": 270,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "9",
161
+ "rotation": 0,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "triangle",
167
+ "rotation": 180,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "star",
173
+ "rotation": 180,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "X",
179
+ "rotation": 180,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "triangle",
185
+ "rotation": 90,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "F",
191
+ "rotation": 90,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "X",
197
+ "rotation": 270,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "N",
205
+ "S",
206
+ "S",
207
+ "W",
208
+ "S",
209
+ "W",
210
+ "S",
211
+ "E",
212
+ "S",
213
+ "W"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "triangle",
219
+ "rotation": 270
220
+ },
221
+ "FRONT": {
222
+ "patternId": "F",
223
+ "rotation": 270
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "X",
227
+ "rotation": 0
228
+ },
229
+ "BACK": {
230
+ "patternId": "star",
231
+ "rotation": 270
232
+ },
233
+ "LEFT": {
234
+ "patternId": "9",
235
+ "rotation": 90
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "heart",
239
+ "rotation": 90
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C426\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=star, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=star, rotation=270]\n[LEFT: patternId=9, rotation=90] [TOP: patternId=triangle, rotation=270] [RIGHT: patternId=X, rotation=0]\n [FRONT: patternId=F, rotation=270]\n [BOTTOM: patternId=heart, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=star, rotation=270\n- LEFT: patternId=9, rotation=90\n- TOP: patternId=triangle, rotation=270\n- RIGHT: patternId=X, rotation=0\n- FRONT: patternId=F, rotation=270\n- BOTTOM: patternId=heart, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C427.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C427",
4
+ "name": "Goal Roll C427",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "X",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "star",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "E",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "X",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "B",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "D",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "X",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "star",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "E",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "X",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "B",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "D",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 5,
106
+ "stepNumber": 6,
107
+ "patternId": "X",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C427/initial_net.png",
117
+ "targetTopFaceImage": "../images/C427/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 6,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 427,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-427.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "N",
131
+ "S",
132
+ "E",
133
+ "N",
134
+ "E",
135
+ "N",
136
+ "N",
137
+ "E",
138
+ "E"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "X",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "X",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "X",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "E",
161
+ "rotation": 0,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "X",
167
+ "rotation": 0,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "star",
173
+ "rotation": 270,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "B",
179
+ "rotation": 90,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "X",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "D",
191
+ "rotation": 90,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "star",
197
+ "rotation": 90,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "N",
205
+ "N",
206
+ "S",
207
+ "E",
208
+ "N",
209
+ "E",
210
+ "N",
211
+ "N",
212
+ "E",
213
+ "E"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "X",
219
+ "rotation": 90
220
+ },
221
+ "FRONT": {
222
+ "patternId": "star",
223
+ "rotation": 0
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "E",
227
+ "rotation": 90
228
+ },
229
+ "BACK": {
230
+ "patternId": "X",
231
+ "rotation": 90
232
+ },
233
+ "LEFT": {
234
+ "patternId": "B",
235
+ "rotation": 270
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "D",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C427\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=X, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=X, rotation=90]\n[LEFT: patternId=B, rotation=270] [TOP: patternId=X, rotation=90] [RIGHT: patternId=E, rotation=90]\n [FRONT: patternId=star, rotation=0]\n [BOTTOM: patternId=D, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=X, rotation=90\n- LEFT: patternId=B, rotation=270\n- TOP: patternId=X, rotation=90\n- RIGHT: patternId=E, rotation=90\n- FRONT: patternId=star, rotation=0\n- BOTTOM: patternId=D, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C428.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C428",
4
+ "name": "Goal Roll C428",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "star",
33
+ "rotation": 180
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "square",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "A",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "Q",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "diamond",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "R",
73
+ "rotation": 90
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "star",
80
+ "rotation": 180
81
+ },
82
+ "FRONT": {
83
+ "patternId": "square",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "A",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "Q",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "diamond",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "R",
100
+ "rotation": 90
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 7,
106
+ "stepNumber": 8,
107
+ "patternId": "square",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C428/initial_net.png",
117
+ "targetTopFaceImage": "../images/C428/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 8,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 428,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-428.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "N",
131
+ "N",
132
+ "E",
133
+ "N",
134
+ "E",
135
+ "N",
136
+ "N",
137
+ "W",
138
+ "W"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "square",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "R",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "Q",
155
+ "rotation": 270,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "A",
161
+ "rotation": 270,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "star",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "square",
173
+ "rotation": 180,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "diamond",
179
+ "rotation": 180,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "Q",
185
+ "rotation": 0,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "star",
191
+ "rotation": 270,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "square",
197
+ "rotation": 0,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "N",
206
+ "N",
207
+ "E",
208
+ "N",
209
+ "E",
210
+ "N",
211
+ "N",
212
+ "W",
213
+ "W"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "star",
219
+ "rotation": 180
220
+ },
221
+ "FRONT": {
222
+ "patternId": "square",
223
+ "rotation": 270
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "A",
227
+ "rotation": 0
228
+ },
229
+ "BACK": {
230
+ "patternId": "Q",
231
+ "rotation": 270
232
+ },
233
+ "LEFT": {
234
+ "patternId": "diamond",
235
+ "rotation": 0
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "R",
239
+ "rotation": 90
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C428\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=square, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=Q, rotation=270]\n[LEFT: patternId=diamond, rotation=0] [TOP: patternId=star, rotation=180] [RIGHT: patternId=A, rotation=0]\n [FRONT: patternId=square, rotation=270]\n [BOTTOM: patternId=R, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=Q, rotation=270\n- LEFT: patternId=diamond, rotation=0\n- TOP: patternId=star, rotation=180\n- RIGHT: patternId=A, rotation=0\n- FRONT: patternId=square, rotation=270\n- BOTTOM: patternId=R, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C429.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C429",
4
+ "name": "Goal Roll C429",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "6",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "P",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "6",
49
+ "rotation": 180
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "E",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "circle",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "E",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "6",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "P",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "6",
88
+ "rotation": 180
89
+ },
90
+ "BACK": {
91
+ "patternId": "E",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "circle",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "E",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 3,
106
+ "stepNumber": 4,
107
+ "patternId": "E",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C429/initial_net.png",
117
+ "targetTopFaceImage": "../images/C429/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 4,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 429,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-429.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "N",
131
+ "N",
132
+ "W",
133
+ "N",
134
+ "N",
135
+ "S",
136
+ "N",
137
+ "S",
138
+ "E"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "circle",
143
+ "rotation": 180,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "E",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "6",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "6",
161
+ "rotation": 270,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "P",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "E",
173
+ "rotation": 0,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "P",
179
+ "rotation": 90,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "E",
185
+ "rotation": 0,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "P",
191
+ "rotation": 90,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "6",
197
+ "rotation": 270,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "W",
205
+ "N",
206
+ "N",
207
+ "W",
208
+ "N",
209
+ "N",
210
+ "S",
211
+ "N",
212
+ "S",
213
+ "E"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "6",
219
+ "rotation": 270
220
+ },
221
+ "FRONT": {
222
+ "patternId": "P",
223
+ "rotation": 90
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "6",
227
+ "rotation": 180
228
+ },
229
+ "BACK": {
230
+ "patternId": "E",
231
+ "rotation": 0
232
+ },
233
+ "LEFT": {
234
+ "patternId": "circle",
235
+ "rotation": 0
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "E",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C429\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=E, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=E, rotation=0]\n[LEFT: patternId=circle, rotation=0] [TOP: patternId=6, rotation=270] [RIGHT: patternId=6, rotation=180]\n [FRONT: patternId=P, rotation=90]\n [BOTTOM: patternId=E, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=E, rotation=0\n- LEFT: patternId=circle, rotation=0\n- TOP: patternId=6, rotation=270\n- RIGHT: patternId=6, rotation=180\n- FRONT: patternId=P, rotation=90\n- BOTTOM: patternId=E, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C430.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C430",
4
+ "name": "Goal Roll C430",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "heart",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "arrow_up",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "9",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "smile",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "K",
73
+ "rotation": 90
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "heart",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "arrow_up",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "9",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "smile",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "K",
100
+ "rotation": 90
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 4,
106
+ "stepNumber": 5,
107
+ "patternId": "smile",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C430/initial_net.png",
117
+ "targetTopFaceImage": "../images/C430/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 5,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 430,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-430.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "W",
131
+ "N",
132
+ "N",
133
+ "W",
134
+ "S",
135
+ "E",
136
+ "N",
137
+ "W",
138
+ "N"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "smile",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "heart",
149
+ "rotation": 270,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "9",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "K",
161
+ "rotation": 270,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "arrow_up",
167
+ "rotation": 0,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "9",
173
+ "rotation": 90,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "K",
179
+ "rotation": 180,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "arrow_up",
185
+ "rotation": 270,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "9",
191
+ "rotation": 0,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "heart",
197
+ "rotation": 90,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "W",
205
+ "W",
206
+ "N",
207
+ "N",
208
+ "W",
209
+ "S",
210
+ "E",
211
+ "N",
212
+ "W",
213
+ "N"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "heart",
219
+ "rotation": 90
220
+ },
221
+ "FRONT": {
222
+ "patternId": "?",
223
+ "rotation": 0
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "arrow_up",
227
+ "rotation": 0
228
+ },
229
+ "BACK": {
230
+ "patternId": "9",
231
+ "rotation": 0
232
+ },
233
+ "LEFT": {
234
+ "patternId": "smile",
235
+ "rotation": 90
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "K",
239
+ "rotation": 90
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C430\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=smile, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=9, rotation=0]\n[LEFT: patternId=smile, rotation=90] [TOP: patternId=heart, rotation=90] [RIGHT: patternId=arrow_up, rotation=0]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=K, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=9, rotation=0\n- LEFT: patternId=smile, rotation=90\n- TOP: patternId=heart, rotation=90\n- RIGHT: patternId=arrow_up, rotation=0\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=K, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C431.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C431",
4
+ "name": "Goal Roll C431",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "9",
33
+ "rotation": 180
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "arrow_left",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "heart",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "1",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "O",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "9",
80
+ "rotation": 180
81
+ },
82
+ "FRONT": {
83
+ "patternId": "arrow_left",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "heart",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "1",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "O",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 8,
106
+ "stepNumber": 9,
107
+ "patternId": "1",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C431/initial_net.png",
117
+ "targetTopFaceImage": "../images/C431/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 9,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 431,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-431.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "N",
131
+ "W",
132
+ "S",
133
+ "S",
134
+ "W",
135
+ "W",
136
+ "E",
137
+ "E",
138
+ "N"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "arrow_left",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "O",
149
+ "rotation": 0,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "1",
155
+ "rotation": 270,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "arrow_left",
161
+ "rotation": 0,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "heart",
167
+ "rotation": 270,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "9",
173
+ "rotation": 180,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "1",
179
+ "rotation": 90,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "9",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "heart",
191
+ "rotation": 270,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "arrow_left",
197
+ "rotation": 0,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "N",
206
+ "W",
207
+ "S",
208
+ "S",
209
+ "W",
210
+ "W",
211
+ "E",
212
+ "E",
213
+ "N"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "9",
219
+ "rotation": 180
220
+ },
221
+ "FRONT": {
222
+ "patternId": "arrow_left",
223
+ "rotation": 90
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "heart",
227
+ "rotation": 270
228
+ },
229
+ "BACK": {
230
+ "patternId": "?",
231
+ "rotation": 0
232
+ },
233
+ "LEFT": {
234
+ "patternId": "1",
235
+ "rotation": 90
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "O",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C431\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=1, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=1, rotation=90] [TOP: patternId=9, rotation=180] [RIGHT: patternId=heart, rotation=270]\n [FRONT: patternId=arrow_left, rotation=90]\n [BOTTOM: patternId=O, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=1, rotation=90\n- TOP: patternId=9, rotation=180\n- RIGHT: patternId=heart, rotation=270\n- FRONT: patternId=arrow_left, rotation=90\n- BOTTOM: patternId=O, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C432.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C432",
4
+ "name": "Goal Roll C432",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "9",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "V",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "M",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "4",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "I",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "9",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "V",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "M",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "4",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "I",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 5,
106
+ "stepNumber": 6,
107
+ "patternId": "I",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C432/initial_net.png",
117
+ "targetTopFaceImage": "../images/C432/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 6,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 432,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-432.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "N",
131
+ "W",
132
+ "S",
133
+ "W",
134
+ "N",
135
+ "S",
136
+ "S",
137
+ "S",
138
+ "N"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "4",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "M",
149
+ "rotation": 180,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "9",
155
+ "rotation": 0,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "4",
161
+ "rotation": 180,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "V",
167
+ "rotation": 0,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "9",
173
+ "rotation": 90,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "V",
179
+ "rotation": 0,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "I",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "M",
191
+ "rotation": 270,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "I",
197
+ "rotation": 180,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "W",
205
+ "N",
206
+ "W",
207
+ "S",
208
+ "W",
209
+ "N",
210
+ "S",
211
+ "S",
212
+ "S",
213
+ "N"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "9",
219
+ "rotation": 270
220
+ },
221
+ "FRONT": {
222
+ "patternId": "V",
223
+ "rotation": 180
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "?",
227
+ "rotation": 0
228
+ },
229
+ "BACK": {
230
+ "patternId": "M",
231
+ "rotation": 90
232
+ },
233
+ "LEFT": {
234
+ "patternId": "4",
235
+ "rotation": 90
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "I",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C432\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=I, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=M, rotation=90]\n[LEFT: patternId=4, rotation=90] [TOP: patternId=9, rotation=270] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=V, rotation=180]\n [BOTTOM: patternId=I, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=M, rotation=90\n- LEFT: patternId=4, rotation=90\n- TOP: patternId=9, rotation=270\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=V, rotation=180\n- BOTTOM: patternId=I, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C433.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C433",
4
+ "name": "Goal Roll C433",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "diamond",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "arrow_up",
49
+ "rotation": 180
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "S",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "1",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "diamond",
73
+ "rotation": 90
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "diamond",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "arrow_up",
88
+ "rotation": 180
89
+ },
90
+ "BACK": {
91
+ "patternId": "S",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "1",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "diamond",
100
+ "rotation": 90
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 3,
106
+ "stepNumber": 4,
107
+ "patternId": "1",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C433/initial_net.png",
117
+ "targetTopFaceImage": "../images/C433/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 4,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 433,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-433.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "N",
131
+ "N",
132
+ "E",
133
+ "S",
134
+ "E",
135
+ "S",
136
+ "W",
137
+ "W",
138
+ "N"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "diamond",
143
+ "rotation": 180,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "diamond",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "S",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "arrow_up",
161
+ "rotation": 90,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "diamond",
167
+ "rotation": 180,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "diamond",
173
+ "rotation": 270,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "1",
179
+ "rotation": 90,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "diamond",
185
+ "rotation": 270,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "arrow_up",
191
+ "rotation": 180,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "diamond",
197
+ "rotation": 90,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "N",
206
+ "N",
207
+ "E",
208
+ "S",
209
+ "E",
210
+ "S",
211
+ "W",
212
+ "W",
213
+ "N"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "?",
219
+ "rotation": 0
220
+ },
221
+ "FRONT": {
222
+ "patternId": "diamond",
223
+ "rotation": 180
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "arrow_up",
227
+ "rotation": 180
228
+ },
229
+ "BACK": {
230
+ "patternId": "S",
231
+ "rotation": 90
232
+ },
233
+ "LEFT": {
234
+ "patternId": "1",
235
+ "rotation": 90
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "diamond",
239
+ "rotation": 90
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C433\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=1, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=S, rotation=90]\n[LEFT: patternId=1, rotation=90] [TOP: patternId=?, rotation=0] [RIGHT: patternId=arrow_up, rotation=180]\n [FRONT: patternId=diamond, rotation=180]\n [BOTTOM: patternId=diamond, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=S, rotation=90\n- LEFT: patternId=1, rotation=90\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=arrow_up, rotation=180\n- FRONT: patternId=diamond, rotation=180\n- BOTTOM: patternId=diamond, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C434.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C434",
4
+ "name": "Goal Roll C434",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "heart",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "L",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "8",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "N",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "G",
73
+ "rotation": 270
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "heart",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "L",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "8",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "N",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "G",
100
+ "rotation": 270
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 8,
106
+ "stepNumber": 9,
107
+ "patternId": "8",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C434/initial_net.png",
117
+ "targetTopFaceImage": "../images/C434/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 9,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 434,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-434.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "N",
131
+ "W",
132
+ "N",
133
+ "W",
134
+ "S",
135
+ "S",
136
+ "W",
137
+ "W",
138
+ "N"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "L",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "8",
149
+ "rotation": 180,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "G",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "N",
161
+ "rotation": 0,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "heart",
167
+ "rotation": 0,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "G",
173
+ "rotation": 90,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "8",
179
+ "rotation": 90,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "L",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "heart",
191
+ "rotation": 180,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "G",
197
+ "rotation": 270,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "E",
205
+ "N",
206
+ "W",
207
+ "N",
208
+ "W",
209
+ "S",
210
+ "S",
211
+ "W",
212
+ "W",
213
+ "N"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "?",
219
+ "rotation": 0
220
+ },
221
+ "FRONT": {
222
+ "patternId": "heart",
223
+ "rotation": 180
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "L",
227
+ "rotation": 90
228
+ },
229
+ "BACK": {
230
+ "patternId": "8",
231
+ "rotation": 270
232
+ },
233
+ "LEFT": {
234
+ "patternId": "N",
235
+ "rotation": 270
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "G",
239
+ "rotation": 270
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C434\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=8, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=8, rotation=270]\n[LEFT: patternId=N, rotation=270] [TOP: patternId=?, rotation=0] [RIGHT: patternId=L, rotation=90]\n [FRONT: patternId=heart, rotation=180]\n [BOTTOM: patternId=G, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=8, rotation=270\n- LEFT: patternId=N, rotation=270\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=L, rotation=90\n- FRONT: patternId=heart, rotation=180\n- BOTTOM: patternId=G, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C435.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C435",
4
+ "name": "Goal Roll C435",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "7",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "star",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "arrow_right",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "U",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "B",
73
+ "rotation": 180
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "7",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "star",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "arrow_right",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "U",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "B",
100
+ "rotation": 180
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 9,
106
+ "stepNumber": 10,
107
+ "patternId": "B",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C435/initial_net.png",
117
+ "targetTopFaceImage": "../images/C435/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 10,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 435,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-435.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "W",
131
+ "S",
132
+ "E",
133
+ "E",
134
+ "S",
135
+ "W",
136
+ "E",
137
+ "W",
138
+ "S"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "star",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "U",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "7",
155
+ "rotation": 0,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "star",
161
+ "rotation": 180,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "B",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "arrow_right",
173
+ "rotation": 0,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "star",
179
+ "rotation": 270,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "arrow_right",
185
+ "rotation": 0,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "star",
191
+ "rotation": 270,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "7",
197
+ "rotation": 90,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "W",
206
+ "S",
207
+ "E",
208
+ "E",
209
+ "S",
210
+ "W",
211
+ "E",
212
+ "W",
213
+ "S"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "7",
219
+ "rotation": 90
220
+ },
221
+ "FRONT": {
222
+ "patternId": "star",
223
+ "rotation": 270
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "arrow_right",
227
+ "rotation": 270
228
+ },
229
+ "BACK": {
230
+ "patternId": "?",
231
+ "rotation": 0
232
+ },
233
+ "LEFT": {
234
+ "patternId": "U",
235
+ "rotation": 180
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "B",
239
+ "rotation": 180
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C435\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=B, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=U, rotation=180] [TOP: patternId=7, rotation=90] [RIGHT: patternId=arrow_right, rotation=270]\n [FRONT: patternId=star, rotation=270]\n [BOTTOM: patternId=B, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=U, rotation=180\n- TOP: patternId=7, rotation=90\n- RIGHT: patternId=arrow_right, rotation=270\n- FRONT: patternId=star, rotation=270\n- BOTTOM: patternId=B, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C436.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C436",
4
+ "name": "Goal Roll C436",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "8",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "4",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "E",
49
+ "rotation": 180
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "5",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "heart",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "3",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "8",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "4",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "E",
88
+ "rotation": 180
89
+ },
90
+ "BACK": {
91
+ "patternId": "5",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "heart",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "3",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "heart",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C436/initial_net.png",
117
+ "targetTopFaceImage": "../images/C436/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 436,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-436.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "S",
131
+ "W",
132
+ "E",
133
+ "S",
134
+ "S",
135
+ "W",
136
+ "N",
137
+ "N",
138
+ "S"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "E",
143
+ "rotation": 0,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "4",
149
+ "rotation": 270,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "3",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "4",
161
+ "rotation": 270,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "heart",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "5",
173
+ "rotation": 180,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "3",
179
+ "rotation": 270,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "heart",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "8",
191
+ "rotation": 90,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "heart",
197
+ "rotation": 180,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "E",
205
+ "S",
206
+ "W",
207
+ "E",
208
+ "S",
209
+ "S",
210
+ "W",
211
+ "N",
212
+ "N",
213
+ "S"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "8",
219
+ "rotation": 0
220
+ },
221
+ "FRONT": {
222
+ "patternId": "4",
223
+ "rotation": 180
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "E",
227
+ "rotation": 180
228
+ },
229
+ "BACK": {
230
+ "patternId": "5",
231
+ "rotation": 270
232
+ },
233
+ "LEFT": {
234
+ "patternId": "heart",
235
+ "rotation": 90
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "3",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C436\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=heart, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=5, rotation=270]\n[LEFT: patternId=heart, rotation=90] [TOP: patternId=8, rotation=0] [RIGHT: patternId=E, rotation=180]\n [FRONT: patternId=4, rotation=180]\n [BOTTOM: patternId=3, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=5, rotation=270\n- LEFT: patternId=heart, rotation=90\n- TOP: patternId=8, rotation=0\n- RIGHT: patternId=E, rotation=180\n- FRONT: patternId=4, rotation=180\n- BOTTOM: patternId=3, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C437.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C437",
4
+ "name": "Goal Roll C437",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "5",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "2",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "?",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "N",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "C",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "U",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "5",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "2",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "?",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "N",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "C",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "U",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 1,
106
+ "stepNumber": 2,
107
+ "patternId": "2",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C437/initial_net.png",
117
+ "targetTopFaceImage": "../images/C437/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 2,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 437,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-437.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "N",
131
+ "W",
132
+ "S",
133
+ "S",
134
+ "W",
135
+ "W",
136
+ "E",
137
+ "N",
138
+ "N"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "C",
143
+ "rotation": 0,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "N",
149
+ "rotation": 180,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "5",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "C",
161
+ "rotation": 270,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "U",
167
+ "rotation": 270,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "2",
173
+ "rotation": 180,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "5",
179
+ "rotation": 0,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "2",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "C",
191
+ "rotation": 0,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "N",
197
+ "rotation": 180,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "W",
205
+ "N",
206
+ "W",
207
+ "S",
208
+ "S",
209
+ "W",
210
+ "W",
211
+ "E",
212
+ "N",
213
+ "N"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "5",
219
+ "rotation": 90
220
+ },
221
+ "FRONT": {
222
+ "patternId": "2",
223
+ "rotation": 270
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "?",
227
+ "rotation": 0
228
+ },
229
+ "BACK": {
230
+ "patternId": "N",
231
+ "rotation": 90
232
+ },
233
+ "LEFT": {
234
+ "patternId": "C",
235
+ "rotation": 180
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "U",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C437\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=2, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=N, rotation=90]\n[LEFT: patternId=C, rotation=180] [TOP: patternId=5, rotation=90] [RIGHT: patternId=?, rotation=0]\n [FRONT: patternId=2, rotation=270]\n [BOTTOM: patternId=U, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=N, rotation=90\n- LEFT: patternId=C, rotation=180\n- TOP: patternId=5, rotation=90\n- RIGHT: patternId=?, rotation=0\n- FRONT: patternId=2, rotation=270\n- BOTTOM: patternId=U, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C438.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C438",
4
+ "name": "Goal Roll C438",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "T",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "L",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "smile",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "circle",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "N",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "F",
73
+ "rotation": 270
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "T",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "L",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "smile",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "circle",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "N",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "F",
100
+ "rotation": 270
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 6,
106
+ "stepNumber": 7,
107
+ "patternId": "F",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C438/initial_net.png",
117
+ "targetTopFaceImage": "../images/C438/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 7,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 438,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-438.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "S",
131
+ "W",
132
+ "E",
133
+ "E",
134
+ "S",
135
+ "N",
136
+ "S",
137
+ "E",
138
+ "N"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "smile",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "L",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "F",
155
+ "rotation": 0,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "L",
161
+ "rotation": 90,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "T",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "N",
173
+ "rotation": 270,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "T",
179
+ "rotation": 90,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "N",
185
+ "rotation": 270,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "circle",
191
+ "rotation": 180,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "T",
197
+ "rotation": 0,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "E",
205
+ "S",
206
+ "W",
207
+ "E",
208
+ "E",
209
+ "S",
210
+ "N",
211
+ "S",
212
+ "E",
213
+ "N"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "T",
219
+ "rotation": 0
220
+ },
221
+ "FRONT": {
222
+ "patternId": "L",
223
+ "rotation": 0
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "smile",
227
+ "rotation": 90
228
+ },
229
+ "BACK": {
230
+ "patternId": "circle",
231
+ "rotation": 180
232
+ },
233
+ "LEFT": {
234
+ "patternId": "N",
235
+ "rotation": 180
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "F",
239
+ "rotation": 270
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C438\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=F, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=circle, rotation=180]\n[LEFT: patternId=N, rotation=180] [TOP: patternId=T, rotation=0] [RIGHT: patternId=smile, rotation=90]\n [FRONT: patternId=L, rotation=0]\n [BOTTOM: patternId=F, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=circle, rotation=180\n- LEFT: patternId=N, rotation=180\n- TOP: patternId=T, rotation=0\n- RIGHT: patternId=smile, rotation=90\n- FRONT: patternId=L, rotation=0\n- BOTTOM: patternId=F, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C439.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C439",
4
+ "name": "Goal Roll C439",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "5",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "?",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "X",
49
+ "rotation": 180
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "D",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "arrow_right",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "Z",
73
+ "rotation": 270
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "5",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "?",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "X",
88
+ "rotation": 180
89
+ },
90
+ "BACK": {
91
+ "patternId": "D",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "arrow_right",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "Z",
100
+ "rotation": 270
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 7,
106
+ "stepNumber": 8,
107
+ "patternId": "Z",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C439/initial_net.png",
117
+ "targetTopFaceImage": "../images/C439/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 8,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 439,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-439.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "N",
131
+ "W",
132
+ "S",
133
+ "N",
134
+ "W",
135
+ "W",
136
+ "W",
137
+ "S",
138
+ "E"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "D",
143
+ "rotation": 0,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "5",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "arrow_right",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "D",
161
+ "rotation": 270,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "arrow_right",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "Z",
173
+ "rotation": 90,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "X",
179
+ "rotation": 180,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "5",
185
+ "rotation": 90,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "D",
191
+ "rotation": 0,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "X",
197
+ "rotation": 90,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "N",
205
+ "N",
206
+ "W",
207
+ "S",
208
+ "N",
209
+ "W",
210
+ "W",
211
+ "W",
212
+ "S",
213
+ "E"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "5",
219
+ "rotation": 90
220
+ },
221
+ "FRONT": {
222
+ "patternId": "?",
223
+ "rotation": 0
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "X",
227
+ "rotation": 180
228
+ },
229
+ "BACK": {
230
+ "patternId": "D",
231
+ "rotation": 0
232
+ },
233
+ "LEFT": {
234
+ "patternId": "arrow_right",
235
+ "rotation": 90
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "Z",
239
+ "rotation": 270
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C439\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=Z, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=D, rotation=0]\n[LEFT: patternId=arrow_right, rotation=90] [TOP: patternId=5, rotation=90] [RIGHT: patternId=X, rotation=180]\n [FRONT: patternId=?, rotation=0]\n [BOTTOM: patternId=Z, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=D, rotation=0\n- LEFT: patternId=arrow_right, rotation=90\n- TOP: patternId=5, rotation=90\n- RIGHT: patternId=X, rotation=180\n- FRONT: patternId=?, rotation=0\n- BOTTOM: patternId=Z, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C440.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C440",
4
+ "name": "Goal Roll C440",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "T",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "arrow_up",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "A",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "W",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "star",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "T",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "arrow_up",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "A",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "W",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "star",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 1,
106
+ "stepNumber": 2,
107
+ "patternId": "arrow_up",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C440/initial_net.png",
117
+ "targetTopFaceImage": "../images/C440/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 2,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 440,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-440.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "N",
131
+ "E",
132
+ "N",
133
+ "E",
134
+ "E",
135
+ "S",
136
+ "W",
137
+ "N",
138
+ "N"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "A",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "W",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "T",
155
+ "rotation": 0,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "star",
161
+ "rotation": 270,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "arrow_up",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "A",
173
+ "rotation": 0,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "T",
179
+ "rotation": 180,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "arrow_up",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "A",
191
+ "rotation": 90,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "W",
197
+ "rotation": 90,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "E",
205
+ "N",
206
+ "E",
207
+ "N",
208
+ "E",
209
+ "E",
210
+ "S",
211
+ "W",
212
+ "N",
213
+ "N"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "T",
219
+ "rotation": 90
220
+ },
221
+ "FRONT": {
222
+ "patternId": "arrow_up",
223
+ "rotation": 90
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "A",
227
+ "rotation": 270
228
+ },
229
+ "BACK": {
230
+ "patternId": "W",
231
+ "rotation": 180
232
+ },
233
+ "LEFT": {
234
+ "patternId": "star",
235
+ "rotation": 0
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "?",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C440\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=arrow_up, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=W, rotation=180]\n[LEFT: patternId=star, rotation=0] [TOP: patternId=T, rotation=90] [RIGHT: patternId=A, rotation=270]\n [FRONT: patternId=arrow_up, rotation=90]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=W, rotation=180\n- LEFT: patternId=star, rotation=0\n- TOP: patternId=T, rotation=90\n- RIGHT: patternId=A, rotation=270\n- FRONT: patternId=arrow_up, rotation=90\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C441.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C441",
4
+ "name": "Goal Roll C441",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "arrow_up",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "B",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "V",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "Z",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "arrow_left",
73
+ "rotation": 270
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "arrow_up",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "B",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "V",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "Z",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "arrow_left",
100
+ "rotation": 270
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 7,
106
+ "stepNumber": 8,
107
+ "patternId": "Z",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C441/initial_net.png",
117
+ "targetTopFaceImage": "../images/C441/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 8,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 441,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-441.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "E",
131
+ "S",
132
+ "S",
133
+ "N",
134
+ "E",
135
+ "W",
136
+ "W",
137
+ "S",
138
+ "S"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "V",
143
+ "rotation": 180,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "arrow_up",
149
+ "rotation": 180,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "B",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "arrow_left",
161
+ "rotation": 90,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "B",
167
+ "rotation": 180,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "Z",
173
+ "rotation": 270,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "B",
179
+ "rotation": 180,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "V",
185
+ "rotation": 270,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "arrow_left",
191
+ "rotation": 0,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "Z",
197
+ "rotation": 90,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "E",
205
+ "E",
206
+ "S",
207
+ "S",
208
+ "N",
209
+ "E",
210
+ "W",
211
+ "W",
212
+ "S",
213
+ "S"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "arrow_up",
219
+ "rotation": 0
220
+ },
221
+ "FRONT": {
222
+ "patternId": "B",
223
+ "rotation": 0
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "V",
227
+ "rotation": 0
228
+ },
229
+ "BACK": {
230
+ "patternId": "?",
231
+ "rotation": 0
232
+ },
233
+ "LEFT": {
234
+ "patternId": "Z",
235
+ "rotation": 180
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "arrow_left",
239
+ "rotation": 270
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C441\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=Z, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=Z, rotation=180] [TOP: patternId=arrow_up, rotation=0] [RIGHT: patternId=V, rotation=0]\n [FRONT: patternId=B, rotation=0]\n [BOTTOM: patternId=arrow_left, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=Z, rotation=180\n- TOP: patternId=arrow_up, rotation=0\n- RIGHT: patternId=V, rotation=0\n- FRONT: patternId=B, rotation=0\n- BOTTOM: patternId=arrow_left, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C442.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C442",
4
+ "name": "Goal Roll C442",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "5",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "diamond",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "5",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "L",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "5",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "arrow_left",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "5",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "diamond",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "5",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "L",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "5",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "arrow_left",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 8,
106
+ "stepNumber": 9,
107
+ "patternId": "5",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C442/initial_net.png",
117
+ "targetTopFaceImage": "../images/C442/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 9,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 442,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-442.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "N",
131
+ "W",
132
+ "N",
133
+ "E",
134
+ "N",
135
+ "E",
136
+ "N",
137
+ "W",
138
+ "N"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "5",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "L",
149
+ "rotation": 180,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "5",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "5",
161
+ "rotation": 180,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "L",
167
+ "rotation": 270,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "arrow_left",
173
+ "rotation": 180,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "5",
179
+ "rotation": 90,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "diamond",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "arrow_left",
191
+ "rotation": 90,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "5",
197
+ "rotation": 0,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "W",
205
+ "N",
206
+ "W",
207
+ "N",
208
+ "E",
209
+ "N",
210
+ "E",
211
+ "N",
212
+ "W",
213
+ "N"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "5",
219
+ "rotation": 90
220
+ },
221
+ "FRONT": {
222
+ "patternId": "diamond",
223
+ "rotation": 90
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "5",
227
+ "rotation": 90
228
+ },
229
+ "BACK": {
230
+ "patternId": "L",
231
+ "rotation": 90
232
+ },
233
+ "LEFT": {
234
+ "patternId": "5",
235
+ "rotation": 90
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "arrow_left",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C442\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=5, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=L, rotation=90]\n[LEFT: patternId=5, rotation=90] [TOP: patternId=5, rotation=90] [RIGHT: patternId=5, rotation=90]\n [FRONT: patternId=diamond, rotation=90]\n [BOTTOM: patternId=arrow_left, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=L, rotation=90\n- LEFT: patternId=5, rotation=90\n- TOP: patternId=5, rotation=90\n- RIGHT: patternId=5, rotation=90\n- FRONT: patternId=diamond, rotation=90\n- BOTTOM: patternId=arrow_left, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C443.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C443",
4
+ "name": "Goal Roll C443",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "P",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "K",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "G",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "?",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "circle",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "9",
73
+ "rotation": 270
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "P",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "K",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "G",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "?",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "circle",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "9",
100
+ "rotation": 270
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 1,
106
+ "stepNumber": 2,
107
+ "patternId": "9",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C443/initial_net.png",
117
+ "targetTopFaceImage": "../images/C443/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 2,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 443,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-443.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "E",
131
+ "S",
132
+ "S",
133
+ "N",
134
+ "E",
135
+ "N",
136
+ "W",
137
+ "N",
138
+ "E"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "G",
143
+ "rotation": 180,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "P",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "K",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "9",
161
+ "rotation": 90,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "K",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "circle",
173
+ "rotation": 270,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "P",
179
+ "rotation": 0,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "K",
185
+ "rotation": 0,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "G",
191
+ "rotation": 180,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "P",
197
+ "rotation": 90,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "E",
205
+ "E",
206
+ "S",
207
+ "S",
208
+ "N",
209
+ "E",
210
+ "N",
211
+ "W",
212
+ "N",
213
+ "E"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "P",
219
+ "rotation": 270
220
+ },
221
+ "FRONT": {
222
+ "patternId": "K",
223
+ "rotation": 270
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "G",
227
+ "rotation": 0
228
+ },
229
+ "BACK": {
230
+ "patternId": "?",
231
+ "rotation": 0
232
+ },
233
+ "LEFT": {
234
+ "patternId": "circle",
235
+ "rotation": 180
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "9",
239
+ "rotation": 270
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C443\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=9, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=?, rotation=0]\n[LEFT: patternId=circle, rotation=180] [TOP: patternId=P, rotation=270] [RIGHT: patternId=G, rotation=0]\n [FRONT: patternId=K, rotation=270]\n [BOTTOM: patternId=9, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=?, rotation=0\n- LEFT: patternId=circle, rotation=180\n- TOP: patternId=P, rotation=270\n- RIGHT: patternId=G, rotation=0\n- FRONT: patternId=K, rotation=270\n- BOTTOM: patternId=9, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C444.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C444",
4
+ "name": "Goal Roll C444",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "Z",
33
+ "rotation": 180
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "arrow_right",
41
+ "rotation": 180
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "D",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "8",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "1",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "arrow_left",
73
+ "rotation": 90
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "Z",
80
+ "rotation": 180
81
+ },
82
+ "FRONT": {
83
+ "patternId": "arrow_right",
84
+ "rotation": 180
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "D",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "8",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "1",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "arrow_left",
100
+ "rotation": 90
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 9,
106
+ "stepNumber": 10,
107
+ "patternId": "arrow_right",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C444/initial_net.png",
117
+ "targetTopFaceImage": "../images/C444/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 10,
123
+ "targetRotationOffset": 270,
124
+ "levelId": 444,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-444.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "W",
131
+ "W",
132
+ "E",
133
+ "S",
134
+ "S",
135
+ "N",
136
+ "E",
137
+ "E",
138
+ "E"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "arrow_right",
143
+ "rotation": 180,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "1",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "8",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "1",
161
+ "rotation": 90,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "Z",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "D",
173
+ "rotation": 0,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "Z",
179
+ "rotation": 90,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "arrow_right",
185
+ "rotation": 90,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "arrow_left",
191
+ "rotation": 0,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "8",
197
+ "rotation": 270,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "W",
206
+ "W",
207
+ "E",
208
+ "S",
209
+ "S",
210
+ "N",
211
+ "E",
212
+ "E",
213
+ "E"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "Z",
219
+ "rotation": 180
220
+ },
221
+ "FRONT": {
222
+ "patternId": "arrow_right",
223
+ "rotation": 180
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "D",
227
+ "rotation": 90
228
+ },
229
+ "BACK": {
230
+ "patternId": "8",
231
+ "rotation": 0
232
+ },
233
+ "LEFT": {
234
+ "patternId": "1",
235
+ "rotation": 180
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "arrow_left",
239
+ "rotation": 90
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C444\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=arrow_right, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=8, rotation=0]\n[LEFT: patternId=1, rotation=180] [TOP: patternId=Z, rotation=180] [RIGHT: patternId=D, rotation=90]\n [FRONT: patternId=arrow_right, rotation=180]\n [BOTTOM: patternId=arrow_left, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=8, rotation=0\n- LEFT: patternId=1, rotation=180\n- TOP: patternId=Z, rotation=180\n- RIGHT: patternId=D, rotation=90\n- FRONT: patternId=arrow_right, rotation=180\n- BOTTOM: patternId=arrow_left, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C445.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C445",
4
+ "name": "Goal Roll C445",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "Q",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "F",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "R",
49
+ "rotation": 0
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "smile",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "plus",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "B",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "Q",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "F",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "R",
88
+ "rotation": 0
89
+ },
90
+ "BACK": {
91
+ "patternId": "smile",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "plus",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "B",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 1,
106
+ "stepNumber": 2,
107
+ "patternId": "B",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C445/initial_net.png",
117
+ "targetTopFaceImage": "../images/C445/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 2,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 445,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-445.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "S",
131
+ "E",
132
+ "W",
133
+ "W",
134
+ "W",
135
+ "S",
136
+ "S",
137
+ "W",
138
+ "S"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "F",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "Q",
149
+ "rotation": 0,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "R",
155
+ "rotation": 0,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "Q",
161
+ "rotation": 0,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "plus",
167
+ "rotation": 180,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "B",
173
+ "rotation": 180,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "smile",
179
+ "rotation": 270,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "Q",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "R",
191
+ "rotation": 180,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "F",
197
+ "rotation": 180,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "S",
206
+ "E",
207
+ "W",
208
+ "W",
209
+ "W",
210
+ "S",
211
+ "S",
212
+ "W",
213
+ "S"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "Q",
219
+ "rotation": 0
220
+ },
221
+ "FRONT": {
222
+ "patternId": "F",
223
+ "rotation": 90
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "R",
227
+ "rotation": 0
228
+ },
229
+ "BACK": {
230
+ "patternId": "smile",
231
+ "rotation": 90
232
+ },
233
+ "LEFT": {
234
+ "patternId": "plus",
235
+ "rotation": 180
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "B",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C445\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=B, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=smile, rotation=90]\n[LEFT: patternId=plus, rotation=180] [TOP: patternId=Q, rotation=0] [RIGHT: patternId=R, rotation=0]\n [FRONT: patternId=F, rotation=90]\n [BOTTOM: patternId=B, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=smile, rotation=90\n- LEFT: patternId=plus, rotation=180\n- TOP: patternId=Q, rotation=0\n- RIGHT: patternId=R, rotation=0\n- FRONT: patternId=F, rotation=90\n- BOTTOM: patternId=B, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C446.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C446",
4
+ "name": "Goal Roll C446",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "M",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "triangle",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "R",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "3",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "arrow_right",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "diamond",
73
+ "rotation": 90
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "M",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "triangle",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "R",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "3",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "arrow_right",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "diamond",
100
+ "rotation": 90
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 0,
106
+ "stepNumber": 1,
107
+ "patternId": "3",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C446/initial_net.png",
117
+ "targetTopFaceImage": "../images/C446/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 1,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 446,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-446.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "W",
131
+ "S",
132
+ "S",
133
+ "W",
134
+ "S",
135
+ "S",
136
+ "E",
137
+ "N",
138
+ "W"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "triangle",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "arrow_right",
149
+ "rotation": 180,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "M",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "R",
161
+ "rotation": 0,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "3",
167
+ "rotation": 270,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "diamond",
173
+ "rotation": 90,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "triangle",
179
+ "rotation": 270,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "R",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "diamond",
191
+ "rotation": 0,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "triangle",
197
+ "rotation": 180,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "W",
206
+ "S",
207
+ "S",
208
+ "W",
209
+ "S",
210
+ "S",
211
+ "E",
212
+ "N",
213
+ "W"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "M",
219
+ "rotation": 270
220
+ },
221
+ "FRONT": {
222
+ "patternId": "triangle",
223
+ "rotation": 270
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "R",
227
+ "rotation": 90
228
+ },
229
+ "BACK": {
230
+ "patternId": "3",
231
+ "rotation": 270
232
+ },
233
+ "LEFT": {
234
+ "patternId": "arrow_right",
235
+ "rotation": 270
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "diamond",
239
+ "rotation": 90
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C446\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=3, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=3, rotation=270]\n[LEFT: patternId=arrow_right, rotation=270] [TOP: patternId=M, rotation=270] [RIGHT: patternId=R, rotation=90]\n [FRONT: patternId=triangle, rotation=270]\n [BOTTOM: patternId=diamond, rotation=90]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=3, rotation=270\n- LEFT: patternId=arrow_right, rotation=270\n- TOP: patternId=M, rotation=270\n- RIGHT: patternId=R, rotation=90\n- FRONT: patternId=triangle, rotation=270\n- BOTTOM: patternId=diamond, rotation=90\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C447.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C447",
4
+ "name": "Goal Roll C447",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "smile",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "W",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "L",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "arrow_left",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "Y",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "arrow_up",
73
+ "rotation": 180
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "smile",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "W",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "L",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "arrow_left",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "Y",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "arrow_up",
100
+ "rotation": 180
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 4,
106
+ "stepNumber": 5,
107
+ "patternId": "W",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C447/initial_net.png",
117
+ "targetTopFaceImage": "../images/C447/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 5,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 447,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-447.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "E",
131
+ "E",
132
+ "N",
133
+ "S",
134
+ "W",
135
+ "W",
136
+ "N",
137
+ "W",
138
+ "W"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "W",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "L",
149
+ "rotation": 180,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "arrow_left",
155
+ "rotation": 0,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "arrow_up",
161
+ "rotation": 0,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "arrow_left",
167
+ "rotation": 0,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "L",
173
+ "rotation": 180,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "W",
179
+ "rotation": 90,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "arrow_up",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "Y",
191
+ "rotation": 0,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "smile",
197
+ "rotation": 270,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "E",
206
+ "E",
207
+ "N",
208
+ "S",
209
+ "W",
210
+ "W",
211
+ "N",
212
+ "W",
213
+ "W"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "smile",
219
+ "rotation": 90
220
+ },
221
+ "FRONT": {
222
+ "patternId": "W",
223
+ "rotation": 90
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "L",
227
+ "rotation": 90
228
+ },
229
+ "BACK": {
230
+ "patternId": "arrow_left",
231
+ "rotation": 180
232
+ },
233
+ "LEFT": {
234
+ "patternId": "Y",
235
+ "rotation": 180
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "arrow_up",
239
+ "rotation": 180
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C447\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=W, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=arrow_left, rotation=180]\n[LEFT: patternId=Y, rotation=180] [TOP: patternId=smile, rotation=90] [RIGHT: patternId=L, rotation=90]\n [FRONT: patternId=W, rotation=90]\n [BOTTOM: patternId=arrow_up, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=arrow_left, rotation=180\n- LEFT: patternId=Y, rotation=180\n- TOP: patternId=smile, rotation=90\n- RIGHT: patternId=L, rotation=90\n- FRONT: patternId=W, rotation=90\n- BOTTOM: patternId=arrow_up, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C448.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C448",
4
+ "name": "Goal Roll C448",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "circle",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "arrow_left",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "X",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "6",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "4",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "I",
73
+ "rotation": 270
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "circle",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "arrow_left",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "X",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "6",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "4",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "I",
100
+ "rotation": 270
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 1,
106
+ "stepNumber": 2,
107
+ "patternId": "6",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C448/initial_net.png",
117
+ "targetTopFaceImage": "../images/C448/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 2,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 448,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-448.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "S",
131
+ "E",
132
+ "S",
133
+ "N",
134
+ "E",
135
+ "E",
136
+ "S",
137
+ "W",
138
+ "S"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "4",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "arrow_left",
149
+ "rotation": 270,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "I",
155
+ "rotation": 180,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "X",
161
+ "rotation": 180,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "I",
167
+ "rotation": 180,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "6",
173
+ "rotation": 270,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "circle",
179
+ "rotation": 270,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "X",
185
+ "rotation": 0,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "6",
191
+ "rotation": 0,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "I",
197
+ "rotation": 270,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "W",
205
+ "S",
206
+ "E",
207
+ "S",
208
+ "N",
209
+ "E",
210
+ "E",
211
+ "S",
212
+ "W",
213
+ "S"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "circle",
219
+ "rotation": 0
220
+ },
221
+ "FRONT": {
222
+ "patternId": "arrow_left",
223
+ "rotation": 0
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "X",
227
+ "rotation": 90
228
+ },
229
+ "BACK": {
230
+ "patternId": "6",
231
+ "rotation": 0
232
+ },
233
+ "LEFT": {
234
+ "patternId": "4",
235
+ "rotation": 270
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "I",
239
+ "rotation": 270
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C448\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=6, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=6, rotation=0]\n[LEFT: patternId=4, rotation=270] [TOP: patternId=circle, rotation=0] [RIGHT: patternId=X, rotation=90]\n [FRONT: patternId=arrow_left, rotation=0]\n [BOTTOM: patternId=I, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=6, rotation=0\n- LEFT: patternId=4, rotation=270\n- TOP: patternId=circle, rotation=0\n- RIGHT: patternId=X, rotation=90\n- FRONT: patternId=arrow_left, rotation=0\n- BOTTOM: patternId=I, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C449.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C449",
4
+ "name": "Goal Roll C449",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "?",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "square",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "star",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "smile",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "smile",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "N",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "?",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "square",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "star",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "smile",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "smile",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "N",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 1,
106
+ "stepNumber": 2,
107
+ "patternId": "smile",
108
+ "rotation": 180
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C449/initial_net.png",
117
+ "targetTopFaceImage": "../images/C449/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 2,
123
+ "targetRotationOffset": 180,
124
+ "levelId": 449,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-449.json"
127
+ },
128
+ "rollSequence": [
129
+ "E",
130
+ "S",
131
+ "W",
132
+ "W",
133
+ "E",
134
+ "E",
135
+ "S",
136
+ "W",
137
+ "N",
138
+ "E"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "star",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "square",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "N",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "smile",
161
+ "rotation": 0,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "N",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "square",
173
+ "rotation": 90,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "smile",
179
+ "rotation": 270,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "N",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "square",
191
+ "rotation": 180,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "smile",
197
+ "rotation": 0,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "E",
205
+ "S",
206
+ "W",
207
+ "W",
208
+ "E",
209
+ "E",
210
+ "S",
211
+ "W",
212
+ "N",
213
+ "E"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "?",
219
+ "rotation": 0
220
+ },
221
+ "FRONT": {
222
+ "patternId": "square",
223
+ "rotation": 0
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "star",
227
+ "rotation": 270
228
+ },
229
+ "BACK": {
230
+ "patternId": "smile",
231
+ "rotation": 270
232
+ },
233
+ "LEFT": {
234
+ "patternId": "smile",
235
+ "rotation": 270
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "N",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C449\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=smile, rotation=180\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=smile, rotation=270]\n[LEFT: patternId=smile, rotation=270] [TOP: patternId=?, rotation=0] [RIGHT: patternId=star, rotation=270]\n [FRONT: patternId=square, rotation=0]\n [BOTTOM: patternId=N, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=smile, rotation=270\n- LEFT: patternId=smile, rotation=270\n- TOP: patternId=?, rotation=0\n- RIGHT: patternId=star, rotation=270\n- FRONT: patternId=square, rotation=0\n- BOTTOM: patternId=N, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C450.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C450",
4
+ "name": "Goal Roll C450",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "C",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "R",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "Q",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "8",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "W",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "?",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "C",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "R",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "Q",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "8",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "W",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "?",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 2,
106
+ "stepNumber": 3,
107
+ "patternId": "8",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C450/initial_net.png",
117
+ "targetTopFaceImage": "../images/C450/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 3,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 450,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-450.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "W",
131
+ "E",
132
+ "S",
133
+ "S",
134
+ "W",
135
+ "N",
136
+ "W",
137
+ "N",
138
+ "E"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "R",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "W",
149
+ "rotation": 270,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "R",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "C",
161
+ "rotation": 270,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "8",
167
+ "rotation": 0,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "W",
173
+ "rotation": 90,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "C",
179
+ "rotation": 0,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "R",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "Q",
191
+ "rotation": 90,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "C",
197
+ "rotation": 90,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "W",
206
+ "E",
207
+ "S",
208
+ "S",
209
+ "W",
210
+ "N",
211
+ "W",
212
+ "N",
213
+ "E"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "C",
219
+ "rotation": 270
220
+ },
221
+ "FRONT": {
222
+ "patternId": "R",
223
+ "rotation": 90
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "Q",
227
+ "rotation": 270
228
+ },
229
+ "BACK": {
230
+ "patternId": "8",
231
+ "rotation": 0
232
+ },
233
+ "LEFT": {
234
+ "patternId": "W",
235
+ "rotation": 0
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "?",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C450\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=8, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=8, rotation=0]\n[LEFT: patternId=W, rotation=0] [TOP: patternId=C, rotation=270] [RIGHT: patternId=Q, rotation=270]\n [FRONT: patternId=R, rotation=90]\n [BOTTOM: patternId=?, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=8, rotation=0\n- LEFT: patternId=W, rotation=0\n- TOP: patternId=C, rotation=270\n- RIGHT: patternId=Q, rotation=270\n- FRONT: patternId=R, rotation=90\n- BOTTOM: patternId=?, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C451.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C451",
4
+ "name": "Goal Roll C451",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "I",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "F",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "U",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "M",
57
+ "rotation": 90
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "circle",
65
+ "rotation": 270
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "arrow_down",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "I",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "F",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "U",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "M",
92
+ "rotation": 90
93
+ },
94
+ "LEFT": {
95
+ "patternId": "circle",
96
+ "rotation": 270
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "arrow_down",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 4,
106
+ "stepNumber": 5,
107
+ "patternId": "circle",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C451/initial_net.png",
117
+ "targetTopFaceImage": "../images/C451/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 5,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 451,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-451.json"
127
+ },
128
+ "rollSequence": [
129
+ "W",
130
+ "W",
131
+ "N",
132
+ "S",
133
+ "W",
134
+ "E",
135
+ "N",
136
+ "N",
137
+ "E",
138
+ "N"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "circle",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "I",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "M",
155
+ "rotation": 270,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "I",
161
+ "rotation": 90,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "U",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "I",
173
+ "rotation": 90,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "M",
179
+ "rotation": 270,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "arrow_down",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "circle",
191
+ "rotation": 270,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "F",
197
+ "rotation": 0,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "W",
205
+ "W",
206
+ "N",
207
+ "S",
208
+ "W",
209
+ "E",
210
+ "N",
211
+ "N",
212
+ "E",
213
+ "N"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "I",
219
+ "rotation": 270
220
+ },
221
+ "FRONT": {
222
+ "patternId": "F",
223
+ "rotation": 270
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "U",
227
+ "rotation": 270
228
+ },
229
+ "BACK": {
230
+ "patternId": "M",
231
+ "rotation": 90
232
+ },
233
+ "LEFT": {
234
+ "patternId": "circle",
235
+ "rotation": 270
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "arrow_down",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C451\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=circle, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=M, rotation=90]\n[LEFT: patternId=circle, rotation=270] [TOP: patternId=I, rotation=270] [RIGHT: patternId=U, rotation=270]\n [FRONT: patternId=F, rotation=270]\n [BOTTOM: patternId=arrow_down, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=M, rotation=90\n- LEFT: patternId=circle, rotation=270\n- TOP: patternId=I, rotation=270\n- RIGHT: patternId=U, rotation=270\n- FRONT: patternId=F, rotation=270\n- BOTTOM: patternId=arrow_down, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C452.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C452",
4
+ "name": "Goal Roll C452",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "X",
33
+ "rotation": 0
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "W",
41
+ "rotation": 90
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "L",
49
+ "rotation": 180
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "4",
57
+ "rotation": 0
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "R",
65
+ "rotation": 180
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "B",
73
+ "rotation": 180
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "X",
80
+ "rotation": 0
81
+ },
82
+ "FRONT": {
83
+ "patternId": "W",
84
+ "rotation": 90
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "L",
88
+ "rotation": 180
89
+ },
90
+ "BACK": {
91
+ "patternId": "4",
92
+ "rotation": 0
93
+ },
94
+ "LEFT": {
95
+ "patternId": "R",
96
+ "rotation": 180
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "B",
100
+ "rotation": 180
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 9,
106
+ "stepNumber": 10,
107
+ "patternId": "X",
108
+ "rotation": 90
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C452/initial_net.png",
117
+ "targetTopFaceImage": "../images/C452/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 10,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 452,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-452.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "W",
131
+ "S",
132
+ "S",
133
+ "E",
134
+ "N",
135
+ "N",
136
+ "S",
137
+ "W",
138
+ "W"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "W",
143
+ "rotation": 90,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "R",
149
+ "rotation": 90,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "X",
155
+ "rotation": 270,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "L",
161
+ "rotation": 90,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "W",
167
+ "rotation": 270,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "X",
173
+ "rotation": 180,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "4",
179
+ "rotation": 180,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "X",
185
+ "rotation": 180,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "L",
191
+ "rotation": 0,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "B",
197
+ "rotation": 180,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "W",
206
+ "S",
207
+ "S",
208
+ "E",
209
+ "N",
210
+ "N",
211
+ "S",
212
+ "W",
213
+ "W"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "X",
219
+ "rotation": 0
220
+ },
221
+ "FRONT": {
222
+ "patternId": "W",
223
+ "rotation": 90
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "L",
227
+ "rotation": 180
228
+ },
229
+ "BACK": {
230
+ "patternId": "4",
231
+ "rotation": 0
232
+ },
233
+ "LEFT": {
234
+ "patternId": "R",
235
+ "rotation": 180
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "B",
239
+ "rotation": 180
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C452\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=X, rotation=90\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=4, rotation=0]\n[LEFT: patternId=R, rotation=180] [TOP: patternId=X, rotation=0] [RIGHT: patternId=L, rotation=180]\n [FRONT: patternId=W, rotation=90]\n [BOTTOM: patternId=B, rotation=180]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=4, rotation=0\n- LEFT: patternId=R, rotation=180\n- TOP: patternId=X, rotation=0\n- RIGHT: patternId=L, rotation=180\n- FRONT: patternId=W, rotation=90\n- BOTTOM: patternId=B, rotation=180\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C453.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C453",
4
+ "name": "Goal Roll C453",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "plus",
33
+ "rotation": 90
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "A",
41
+ "rotation": 270
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "O",
49
+ "rotation": 270
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "4",
57
+ "rotation": 180
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "?",
65
+ "rotation": 0
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "9",
73
+ "rotation": 270
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "plus",
80
+ "rotation": 90
81
+ },
82
+ "FRONT": {
83
+ "patternId": "A",
84
+ "rotation": 270
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "O",
88
+ "rotation": 270
89
+ },
90
+ "BACK": {
91
+ "patternId": "4",
92
+ "rotation": 180
93
+ },
94
+ "LEFT": {
95
+ "patternId": "?",
96
+ "rotation": 0
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "9",
100
+ "rotation": 270
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 6,
106
+ "stepNumber": 7,
107
+ "patternId": "4",
108
+ "rotation": 270
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C453/initial_net.png",
117
+ "targetTopFaceImage": "../images/C453/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 7,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 453,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-453.json"
127
+ },
128
+ "rollSequence": [
129
+ "S",
130
+ "N",
131
+ "E",
132
+ "W",
133
+ "N",
134
+ "E",
135
+ "E",
136
+ "S",
137
+ "S",
138
+ "S"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "A",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "9",
149
+ "rotation": 270,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "O",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "9",
161
+ "rotation": 270,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "4",
167
+ "rotation": 180,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "O",
173
+ "rotation": 180,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "A",
179
+ "rotation": 90,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "9",
185
+ "rotation": 90,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "4",
191
+ "rotation": 0,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "plus",
197
+ "rotation": 270,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "S",
205
+ "N",
206
+ "E",
207
+ "W",
208
+ "N",
209
+ "E",
210
+ "E",
211
+ "S",
212
+ "S",
213
+ "S"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "plus",
219
+ "rotation": 90
220
+ },
221
+ "FRONT": {
222
+ "patternId": "A",
223
+ "rotation": 270
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "O",
227
+ "rotation": 270
228
+ },
229
+ "BACK": {
230
+ "patternId": "4",
231
+ "rotation": 180
232
+ },
233
+ "LEFT": {
234
+ "patternId": "?",
235
+ "rotation": 0
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "9",
239
+ "rotation": 270
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C453\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=4, rotation=270\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=4, rotation=180]\n[LEFT: patternId=?, rotation=0] [TOP: patternId=plus, rotation=90] [RIGHT: patternId=O, rotation=270]\n [FRONT: patternId=A, rotation=270]\n [BOTTOM: patternId=9, rotation=270]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=4, rotation=180\n- LEFT: patternId=?, rotation=0\n- TOP: patternId=plus, rotation=90\n- RIGHT: patternId=O, rotation=270\n- FRONT: patternId=A, rotation=270\n- BOTTOM: patternId=9, rotation=270\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }
cube2/data/C454.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "taskType": "roll_to_target_top_face",
3
+ "code": "C454",
4
+ "name": "Goal Roll C454",
5
+ "description": "Given the initial cross net and the target top-face image, output a roll sequence that moves the cube to the target state.",
6
+ "instructions": {
7
+ "en": "You are given the initial state of the cube as a cross-shaped net. This net is the unfolded outer surface of the folded cube. Each visible cell is labeled as TOP, BOTTOM, FRONT, BACK, LEFT, or RIGHT. The number under each visible face is the clockwise rotation in degrees from the original upright pattern. Output a roll sequence so that, at the end, the cube's top face seen from above exactly matches the target image.",
8
+ "directionVocabulary": {
9
+ "N": "Up",
10
+ "S": "Down",
11
+ "W": "Left",
12
+ "E": "Right"
13
+ }
14
+ },
15
+ "initialCube": {
16
+ "net": {
17
+ "layout": "reconstruction_cross",
18
+ "faceOrder": [
19
+ "TOP",
20
+ "FRONT",
21
+ "RIGHT",
22
+ "BACK",
23
+ "LEFT",
24
+ "BOTTOM"
25
+ ],
26
+ "cells": [
27
+ {
28
+ "faceKey": "TOP",
29
+ "faceLabelZh": "TOP",
30
+ "row": 1,
31
+ "col": 1,
32
+ "patternId": "N",
33
+ "rotation": 270
34
+ },
35
+ {
36
+ "faceKey": "FRONT",
37
+ "faceLabelZh": "FRONT",
38
+ "row": 2,
39
+ "col": 1,
40
+ "patternId": "J",
41
+ "rotation": 0
42
+ },
43
+ {
44
+ "faceKey": "RIGHT",
45
+ "faceLabelZh": "RIGHT",
46
+ "row": 1,
47
+ "col": 2,
48
+ "patternId": "arrow_left",
49
+ "rotation": 90
50
+ },
51
+ {
52
+ "faceKey": "BACK",
53
+ "faceLabelZh": "BACK",
54
+ "row": 0,
55
+ "col": 1,
56
+ "patternId": "R",
57
+ "rotation": 270
58
+ },
59
+ {
60
+ "faceKey": "LEFT",
61
+ "faceLabelZh": "LEFT",
62
+ "row": 1,
63
+ "col": 0,
64
+ "patternId": "W",
65
+ "rotation": 90
66
+ },
67
+ {
68
+ "faceKey": "BOTTOM",
69
+ "faceLabelZh": "BOTTOM",
70
+ "row": 3,
71
+ "col": 1,
72
+ "patternId": "arrow_left",
73
+ "rotation": 0
74
+ }
75
+ ]
76
+ },
77
+ "solutionFaces": {
78
+ "TOP": {
79
+ "patternId": "N",
80
+ "rotation": 270
81
+ },
82
+ "FRONT": {
83
+ "patternId": "J",
84
+ "rotation": 0
85
+ },
86
+ "RIGHT": {
87
+ "patternId": "arrow_left",
88
+ "rotation": 90
89
+ },
90
+ "BACK": {
91
+ "patternId": "R",
92
+ "rotation": 270
93
+ },
94
+ "LEFT": {
95
+ "patternId": "W",
96
+ "rotation": 90
97
+ },
98
+ "BOTTOM": {
99
+ "patternId": "arrow_left",
100
+ "rotation": 0
101
+ }
102
+ }
103
+ },
104
+ "targetTopFace": {
105
+ "sourceObservationIndex": 7,
106
+ "stepNumber": 8,
107
+ "patternId": "N",
108
+ "rotation": 0
109
+ },
110
+ "answers": {
111
+ "directions": [],
112
+ "moveCount": 0,
113
+ "referenceValid": false
114
+ },
115
+ "imagePaths": {
116
+ "initialNetImage": "../images/C454/initial_net.png",
117
+ "targetTopFaceImage": "../images/C454/target_top_face.png"
118
+ },
119
+ "metadata": {
120
+ "difficulty": 5,
121
+ "tier": 5,
122
+ "targetStepNumber": 8,
123
+ "targetRotationOffset": 90,
124
+ "levelId": 454,
125
+ "moveCount": 10,
126
+ "sourceLevelPath": "levels/reconstruct/generated-454.json"
127
+ },
128
+ "rollSequence": [
129
+ "N",
130
+ "N",
131
+ "E",
132
+ "S",
133
+ "E",
134
+ "W",
135
+ "S",
136
+ "E",
137
+ "S",
138
+ "W"
139
+ ],
140
+ "observedPathFaces": [
141
+ {
142
+ "patternId": "R",
143
+ "rotation": 270,
144
+ "flipHorizontal": false,
145
+ "flipVertical": true
146
+ },
147
+ {
148
+ "patternId": "N",
149
+ "rotation": 270,
150
+ "flipHorizontal": false,
151
+ "flipVertical": true
152
+ },
153
+ {
154
+ "patternId": "arrow_left",
155
+ "rotation": 90,
156
+ "flipHorizontal": false,
157
+ "flipVertical": true
158
+ },
159
+ {
160
+ "patternId": "R",
161
+ "rotation": 0,
162
+ "flipHorizontal": false,
163
+ "flipVertical": true
164
+ },
165
+ {
166
+ "patternId": "arrow_left",
167
+ "rotation": 90,
168
+ "flipHorizontal": false,
169
+ "flipVertical": true
170
+ },
171
+ {
172
+ "patternId": "R",
173
+ "rotation": 0,
174
+ "flipHorizontal": false,
175
+ "flipVertical": true
176
+ },
177
+ {
178
+ "patternId": "W",
179
+ "rotation": 270,
180
+ "flipHorizontal": false,
181
+ "flipVertical": true
182
+ },
183
+ {
184
+ "patternId": "arrow_left",
185
+ "rotation": 0,
186
+ "flipHorizontal": false,
187
+ "flipVertical": true
188
+ },
189
+ {
190
+ "patternId": "J",
191
+ "rotation": 0,
192
+ "flipHorizontal": false,
193
+ "flipVertical": true
194
+ },
195
+ {
196
+ "patternId": "W",
197
+ "rotation": 0,
198
+ "flipHorizontal": false,
199
+ "flipVertical": true
200
+ }
201
+ ],
202
+ "answer": {
203
+ "directions": [
204
+ "N",
205
+ "N",
206
+ "E",
207
+ "S",
208
+ "E",
209
+ "W",
210
+ "S",
211
+ "E",
212
+ "S",
213
+ "W"
214
+ ]
215
+ },
216
+ "legacy_answer": {
217
+ "TOP": {
218
+ "patternId": "N",
219
+ "rotation": 270
220
+ },
221
+ "FRONT": {
222
+ "patternId": "J",
223
+ "rotation": 0
224
+ },
225
+ "RIGHT": {
226
+ "patternId": "arrow_left",
227
+ "rotation": 90
228
+ },
229
+ "BACK": {
230
+ "patternId": "R",
231
+ "rotation": 270
232
+ },
233
+ "LEFT": {
234
+ "patternId": "W",
235
+ "rotation": 90
236
+ },
237
+ "BOTTOM": {
238
+ "patternId": "arrow_left",
239
+ "rotation": 0
240
+ }
241
+ },
242
+ "prompt": {
243
+ "system": "You are a cube-rolling sequence solver. Given a cube whose initial outer-surface configuration is shown as a cross net and a target top-face image, output one valid sequence of N/S/E/W rolls so that the cube's top face after the sequence matches the target.\n\nYou will receive: (a) one initial cross-net image showing the visible faces of the unfolded cube with their patternIds and rotations, (b) one target top-face image showing the desired final top-face pattern and orientation, and (c) a structured text body listing every visible net cell, the target patternId+rotation, the direction vocabulary, and the maximum allowed sequence length.\n\nYou may reason step by step before the final answer. Place your final answer on the very last line of your reply, in the form: FINAL_JSON: <one-line JSON>\n\nThe JSON object must follow the directions schema described in section 8 of the user prompt. Multiple sequences may be valid — output any one that solves the puzzle. Do NOT wrap FINAL_JSON in Markdown code fences. Do NOT write anything after the FINAL_JSON line. Emit exactly one FINAL_JSON line.\n\nIf you cannot reason out a confident sequence, still output your best-effort FINAL_JSON line with at least one direction token; the only structurally invalid output is no FINAL_JSON line at all. Never refuse, never return prose only.",
244
+ "user": "## 1. TASK\nOutput one sequence of rolls so that, at the end of the sequence, the cube's top face seen from above matches the target top face exactly (both patternId and rotation).\nThe puzzle is solved when the engine simulates your sequence on the initial cube and the resulting top-face pattern equals the target.\n\n## 2. WORLD MODEL\n- Cube: a unit cube with one pattern printed on each of its six outer faces. The faces are named TOP, BOTTOM, FRONT, BACK, LEFT, RIGHT in the world frame.\n- Cross net: the unfolded outer surface laid flat. Each cell is one face; its label tells you which face it is and its number under the patternId is the clockwise rotation in degrees from the original upright pattern.\n- Roll: tipping the cube 90° about one of its bottom edges into an adjacent grid cell. After a roll, the face that was on the side becomes the new top, the previous top moves to the opposite side, and so on.\n- Direction tokens: N (roll up / north), S (roll down / south), E (roll right / east), W (roll left / west). The direction is always relative to the world frame, not the cube's current orientation.\n- Target top face: the desired patternId and rotation of whichever face ends up on top after the sequence.\n\n## 3. VISUAL LEGEND\n- Image 1: initial cross-net of the cube. The TOP/BOTTOM/FRONT/BACK/LEFT/RIGHT cells are arranged in a cross. Each visible face shows its patternId and a number indicating the clockwise rotation in degrees from the upright orientation.\n- Image 2: the target top-face image, showing the patternId and rotation the cube's top face must reach.\n- Coordinates: the cube starts at (0, 0). N decrements y (up on screen), S increments y, E increments x (right), W decrements x.\n\n## 4. INPUT FIELDS\n- sample_id: C454\n- task_type: roll_to_target_top_face\n- difficulty: 5\n- target_top_face: patternId=N, rotation=0\n- max_direction_steps: 20\n- initial_net_layout (text view, with the BACK / LEFT-TOP-RIGHT / FRONT / BOTTOM rows of the cross):\n [BACK: patternId=R, rotation=270]\n[LEFT: patternId=W, rotation=90] [TOP: patternId=N, rotation=270] [RIGHT: patternId=arrow_left, rotation=90]\n [FRONT: patternId=J, rotation=0]\n [BOTTOM: patternId=arrow_left, rotation=0]\n- initial_net_cells (explicit list of every visible face):\n- BACK: patternId=R, rotation=270\n- LEFT: patternId=W, rotation=90\n- TOP: patternId=N, rotation=270\n- RIGHT: patternId=arrow_left, rotation=90\n- FRONT: patternId=J, rotation=0\n- BOTTOM: patternId=arrow_left, rotation=0\n\n## 5. ACTION VOCABULARY\nA complete answer is one ordered list of direction tokens:\n- direction: one of {\"N\", \"S\", \"E\", \"W\"}.\n- Sequence length is the number of rolls. The maximum allowed length for this task is `max_direction_steps`.\n- Multiple sequences may produce the same target top face; any one of them counts as correct.\n\n## 6. CONSTRAINTS\n- Each direction token must be exactly one of N, S, E, W (uppercase).\n- The sequence length must be between 1 and `max_direction_steps` inclusive.\n- The sequence must be deterministic: no probabilistic or \"either-or\" entries. One direction per step.\n- The engine evaluates by simulating your sequence on the initial cube; do not output any other JSON keys.\n\n## 7. SOLVING ADVICE\n- Track which face is currently on top after each roll. A roll N moves the FRONT face to the new TOP, S moves BACK to TOP, E moves LEFT to TOP, W moves RIGHT to TOP (with appropriate rotation).\n- Confirm the rotation of the target top face — getting the patternId right but the rotation wrong is still a fail. Each roll N or S adjusts the cube's local-frame rotation by 0/180; each roll E or W adjusts it by ±90.\n- A reference sequence may be inferable from the imprint history if the data includes one, but you do not need to copy it; output any valid sequence.\n\n## 8. OUTPUT SCHEMA\nFINAL_JSON: {\"directions\":[\"<N|S|E|W>\", ...]}\n- directions: array of direction tokens.\n- Each token: one of `\"N\"`, `\"S\"`, `\"E\"`, `\"W\"`.\n- Length: 1..20.\n\n## 9. FINAL INSTRUCTION\nYou may include reasoning above, but the very last line of your reply must start with FINAL_JSON: followed by exactly one valid JSON object.\nDo not wrap FINAL_JSON in code fences and do not write anything after it."
245
+ }
246
+ }