import json, sys
sys.stdout.reconfigure(encoding='utf-8', errors='replace')
p=r"C:\Users\epilectrik\.claude\projects\C--git-bt411\09bf24bb-f92d-423a-b815-1eb662736f58\subagents\workflows\wf_1d6c4013-9c7\journal.jsonl"
for line in open(p,encoding='utf-8'):
    try: o=json.loads(line)
    except: continue
    if o.get('type')!='result': continue
    r=o.get('result')
    if not isinstance(r,dict): continue
    if 'steps' in r and 'verdict' in r:
        print('#'*70); print('SYNTHESIS PLAN'); print('#'*70)
        print('\n[verdict]', r.get('verdict'))
        for k in ['steps','handlerFixes','rankWiring','soloBehavior','traps']:
            v=r.get(k)
            if v is None: continue
            if isinstance(v,list):
                print('\n['+k+']')
                for i,x in enumerate(v): print('  %d. %s'%(i+1,x))
            else:
                print('\n['+k+'] '+str(v))
    if 'piece' in r and ('death' in r.get('piece','').lower() or 'hook' in r.get('piece','').lower()):
        print('\n'+'='*70); print('PIECE:', r.get('piece')[:90])
        for f in (r.get('findings') or []): print('  - '+f)
        print(' HOOKS:')
        for h in (r.get('hookPoints') or []): print('   * '+h)
        print(' already:', (r.get('alreadyReconstructed') or '')[:400])
        print(' open:', (r.get('openQuestions') or '')[:400])
