run_record_role_prediction_036.py VOYNICH RESEARCH ARCHIVE | 16 SEPTEMBER 2026 2 le':'STABLE' if p>=.67 else 'DELETABLE' if p<=.33 else 'VARIABLE'}) pd.DataFrame(roles).to_csv(OUT/'anonymous_payload_roles.csv',index=False) summary={'test':'RECORD-ROLE-PREDICTION-036','loo_mean_gain_bits':float(fd.gain_bits.mean()),'positive_ loo_records':int((fd.gain_bits>0).sum()),'prospective_f75v':pros,'pass':passed,'gate':'Role model must beat position baseline in >=4/5 LOO records, positive mean gain, and positive prospective f75v gain.','boundary':'Anonymous retention/deletion roles only; no semantics or plaintext.'};(OUT/'summary.json').write_text(json.dumps(summary,indent=2)) report=['# RECORD-ROLE-PREDICTION-036','',('**PASS**' if passed else '**FAIL / NOT PROMOTED**'),'','Payload retention/deletion roles were learned from four physical records and tested on the fifth in rotation. The frozen five-record model then predicted the unused f75v residual transcription.','',f"- Mean LOO gain: {summary['loo_mean_gain_bits']:+.6f} bits/payload",f"- Positive LOO records: {summary['positive_loo_records']}/5",f"- Prospective f75v gain: {pros['gain_bits']:+.6f} bits/payload",'','## Decision','',('Anonymous payload roles predict cross-transcription realization and may be used to attack a sixth record.' if passed else 'The role model does not clear the frozen prediction gate. The five-record decompression ledger remains valid, but it has not yet yielded portable deletion grammar.'),'','## Rule audit','','No seventh rule. CONTEXTUAL INTERNAL REALIZATION strengthens only on a pass.'] (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()