run_fifth_record_prospective_033.py VOYNICH RESEARCH ARCHIVE | 16 SEPTEMBER 2026 2 audit.to_csv(OUT/'unrestricted_alignment_audit.csv',index=False);pd.DataFrame(rows).assign(full=lambda d:d.full.map(lambda x:' | '.join(x)),residual=lambda d:d.residual.map(lambda x:' | '.join(x))).to_csv(OUT/'new_query_retrievals.csv',index=False);p.to_csv(OUT/'prospective_cross_witness_r ecords.csv',index=False);qual.to_csv(OUT/'qualifying_fifth_records.csv',index=False) summary={'test':'FIFTH-RECORD-PROSPECTIVE-033','frozen_alignment_gate':{'minimum_sequence_ratio':MIN_RA TIO,'minimum_best_second_margin':MIN_MARGIN,'mutual_best_required':True},'new_aligned_prose_lines':len(a dded),'new_queries':{'ZL':len(new['ZL']),'GC':len(new['GC'])},'paired_new_queries':len(p),'qualifying_ne w_physical_records':len(qual),'prospective_pass':passed,'boundary':'Coordinate recovery and anonymous record agreement only; no plaintext or semantic gloss.'};(OUT/'summary.json').write_text(json.dumps(summ ary,indent=2)) report=['# FIFTH-RECORD-PROSPECTIVE-033','',('**PASS — FIFTH PHYSICAL RECORD RECOVERED**' if passed else '**FAIL — NO FIFTH RECORD**'),'','The old ±4 visual-line restriction was removed prospectively. New line boxes require sequence ratio ≥0.55, best-versus-second margin ≥0.10, and mutual best matching. The vertical-band decoder and cross-witness record gates were unchanged.','',f"- Newly aligned prose lines: {len(added)}",f"- New ZL / GC queries: {len(new['ZL'])} / {len(new['GC'])}",f"- Paired new queries: {len(p)}",f"- Qualifying new physical records: {len(qual)}",''] if len(p): cols=list(p.columns);table=['| '+' | '.join(cols)+' |','| '+' | '.join(['---']*len(cols))+' |'] table += ['| '+' | '.join(str(r[c]).replace('|','/') for c in cols)+' |' for _,r in p.iterrows()] report += ['## Paired outcomes','',*table,''] report += ['## Boundary','','A pass promotes the five-record anonymous ledger, not a plaintext translation.','', '## Rule audit','',('CORE PRESERVATION, EDGE HANDOFF, and REGISTER SHIFT are strengthened; the rule count remains six.' if passed else 'No rule change; six remain.')] (OUT/'report.md').write_text('\n'.join(report));files=sorted(q for q in OUT.iterdir() if q.is_file() and q.name!='SHA256SUMS.txt');(OUT/'SHA256SUMS.txt').write_text('\n'.join(f'{hashlib.sha256(q.read_bytes ()).hexdigest()} {q.name}' for q in files)+'\n');print(json.dumps(summary,indent=2)) if __name__=='__main__':main()