"""Seed the same synthetic conversation on each running checkout.
Usage: PROOF_MODEL=<configured ACP model> python seed-proof.py CHECKOUT THREAD_ID
The thread must already use the compactProof ACP registry provider and contain:
Remember these project facts: the release codename is Maple, the accent color is amber,
and the launch day is Tuesday. Reply with one short sentence confirming the three facts.
Do not use tools.
The provider is pi-acp 0.0.34 with its ordinary retention settings.
"""
import hashlib,json,subprocess,sys
from pathlib import Path
checkout,thread=sys.argv[1:]
def send(message):
    result=subprocess.run(['node','apps/server/src/bin.ts','thread','send',thread,'-',
        '--wait','--json','--base-dir','.t3'],cwd=checkout,input=message,text=True,
        capture_output=True,check=True)
    data=json.loads(result.stdout)
    print(json.dumps({'status':data['status'],'reply':data.get('reply'),'error':data.get('error')}),flush=True)
    if data['status']!='completed':raise RuntimeError('Seed turn failed')
send('Add one more fact: the release owner is Jordan. Confirm it in one sentence; no tools.')
rows=['Release checklist (synthetic test data). Keep the four release facts from earlier. Reply only: Checklist received. Do not use tools.']
for i in range(1200):rows.append(f'Check {i:04d}: verify release package {hashlib.sha256(str(i).encode()).hexdigest()[:32]} status pending.')
send('\n'.join(rows))
