import json, pathlib
root = pathlib.Path(__file__).parent
home = root / 'synthetic'
project = root / 'project'
(home / 'sessions/2026/11/10').mkdir(parents=True, exist_ok=True)
project.mkdir(exist_ok=True)
rows = []
def record(kind, payload):
    rows.append({'timestamp':f'2026-11-10T10:{len(rows):02d}:00.000Z','type':kind,'payload':payload})
def message(role, text):
    record('response_item', {'type':'message','role':role,'content':[{'type':'input_text' if role=='user' else 'output_text','text':text}]})
record('session_meta', {'id':'b1c6a2a0-3336-4336-8336-333633363336','cwd':str(project),'originator':'synthetic-evidence'})
for n in range(1,9):
    message('user',f'TURN {n:02d} — '+('Adjacent user message; no assistant reply before the next turn.' if n in [3,4] else 'Synthetic minimap navigation prompt.')+'\n\n'+ '\n'.join(f'Context line {i:02d}: Inspect the navigation sequence and preserve the order.' for i in range(1,7)))
    if n not in [3,4]:
        message('assistant', f'Response to TURN {n:02d}\n\n'+'\n\n'.join(f'Paragraph {i}. This is synthetic content for the minimap navigation demonstration. The next prompt should remain reachable in both directions.' for i in range(1,9)))
(home / 'sessions/2026/11/10/rollout-2026-11-10T10-00-00-b1c6a2a0-3336-4336-8336-333633363336.jsonl').write_text('\n'.join(map(json.dumps,rows))+'\n')
print('Created one synthetic thread with eight user messages; turns 03, 04 and 05 are consecutive.')
