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_93c95bcc-09a\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 'widget' in r:
        print('\n'+'='*70)
        print('WIDGET:', r.get('widget'), '| keyword:', r.get('configKeyword'))
        print('confidence:', (r.get('confidence') or '')[:400])
        fns=r.get('functions') or []
        print('functions:', ', '.join(f.get('name','?')+'@'+(f.get('address','?')[:20]) for f in fns))
        print('attrTableAdditions:', (r.get('attributeTableAdditions') or 'none')[:500])
        sd=r.get('stubbedDependencies') or []
        print('stubbedDeps:', json.dumps(sd)[:600])
        print('integrationNotes:', (r.get('integrationNotes') or '')[:600])
    if 'verdict' in r and 'implementationOrder' in r:
        print('\n'+'#'*70)
        print('VERIFY VERDICT:', (r.get('verdict') or '')[:800])
        for k in ['implementationOrder','blockers','forceTrapRisks','perWidgetVerdict']:
            v=r.get(k)
            if not v: continue
            print('\n['+k+']')
            for i,x in enumerate(v): print('  %d. %s'%(i+1,str(x)[:400]))
