"""Create a synthetic planning example; no model or external dataset involved.""" import hashlib,json from pathlib import Path r=Path(__file__).resolve().parent if (r/'sample.jsonl').exists():raise SystemExit('Frozen sample exists; not overwritten.') rows=[] for label in ['bug','example','question']: for family in range(4): for variant in range(3):rows.append({'id':f'{label}-{family}-{variant}','group':f'family-{label}-{family}','label':label,'text':f'Synthetic {label} template family {family}, sibling {variant}. 合成样例。'}) rows[0]['text']=rows[4]['text']='Exact duplicate: sample payload.' rows[12]['text']=rows[24]['text']='Cross-label duplicate: same input.' rows[15]['text']='Café note';rows[27]['text']='Cafe\u0301 note' (r/'sample.jsonl').write_text(''.join(json.dumps(row,ensure_ascii=False)+'\n' for row in rows)) (r/'SAMPLE-SNAPSHOT.json').write_text(json.dumps({'phase':'before planner implementation','scope':'36 synthetic records, 12 declared template-family groups, three labels; two exact-text edges merge two disjoint group pairs into ten allocation units; one exact-text label conflict; one NFC/whitespace candidate pair whose split outcome is not prespecified','sample_sha256':hashlib.sha256((r/'sample.jsonl').read_bytes()).hexdigest()},indent=2)+'\n') print('Frozen sample',hashlib.sha256((r/'sample.jsonl').read_bytes()).hexdigest())