import json,re,sys
from pathlib import Path
p=Path(__file__).parent
data=json.loads((p/'input.json').read_text())
expected=json.loads((p/'expected.json').read_text())
config=json.loads((p/'config.json').read_text())
assert config['_material_kind']=='field-and-fixture-lesson-not-importable-workflow'
assert expected['_evidence']=='human-authored-expected-output-not-live-run'
rows=data['rows']; out=expected['rows']; assert len({r['sku_id'] for r in rows})==len(rows)==len(out); assert {r['sku_id'] for r in rows}=={r['sku_id'] for r in out}; by={r['sku_id']:r for r in out}
for r in rows:
 o=by[r['sku_id']]; assert o['material']==r['material'] and o['size_cm']==r['size_cm']; assert o['title_en']; assert 'certification_missing' in o['review_flags']
print('PASS: fixture and expected contract; no product or model execution')
