#!/usr/bin/env python3
"""Use an unclipped empty-state W still, while recording populated font stress too."""
from pathlib import Path
import subprocess,os,sys
R=Path('/tmp/issue-lead-33252-r2/evidence-capture')
for side in ['after','before']:
 server=Path((R/(side+'-location.txt')).read_text().strip())
 private=R/(side+'-pair-W.private.log')
 with private.open('w') as f:
  subprocess.run(['node','apps/server/src/bin.ts','pair','--base-dir',str(server/'home')],cwd='/home/ubuntu/wt/issue-33252'+('-before' if side=='before' else ''),stdout=f,stderr=f,check=True)
 subprocess.run([sys.executable,R/'capture.py','pair',side,private],check=True)
 subprocess.run([sys.executable,R/'harness-capture.py',side,'W'],env={**os.environ,'EVIDENCE_W_EMPTY':'1'},check=True)
