"""Review step: fold the Edge Case record (captured in the v1 snapshot before test_server.py's old delete-at-start logic removed it) into the evidence file, then stage a copy in output/site so the fixed test script's restore path can be verified on the next run.""" from pathlib import Path import shutil ev = Path('output/evidence/browser_submissions.jsonl') snap = Path('output/original_submission/site/submissions.jsonl') lines = ev.read_text().splitlines() for l in snap.read_text().splitlines(): if l not in lines: lines.append(l) ev.write_text('\n'.join(lines) + '\n') print('merged evidence:\n' + ev.read_text()) shutil.copyfile(ev, Path('output/site/submissions.jsonl')) print('staged pre-existing submissions.jsonl in output/site for restore-path test')