# decryption_complete: false # source: /Voynich/Voynich_PORTABLE_ANONYMOUS_ROLE_BREAKTHROUGH_037_042_reproducibility.zip!/run_raw_multi # stated_sha256: 8307fa9b52d3ddcb062edd3856f02d9dda548aa63b3919d8bca96836984703f1 # matches_stated_sha256: false # pdf_pages: 732-733 # note: The stated SHA-256 is the digest printed in the PDF. # The PDF page extract follows the form feed. decryption_complete stays false. run_raw_multiline_record_recovery_038.py VOYNICH RESEARCH ARCHIVE | 16 SEPTEMBER 2026 1 run_raw_multiline_record_recovery_038.py Source: /Voynich/Voynich_PORTABLE_ANONYMOUS_ROLE_BREAKTHROUGH_037_042_reproducibility.zip!/run_raw_multi line_record_recovery_038.py SHA-256: 8307fa9b52d3ddcb062edd3856f02d9dda548aa63b3919d8bca96836984703f1 !/usr/bin/env python3 """RAW-MULTILINE-RECORD-RECOVERY-038: recover f68r2 line 4 lost by event parsing.""" from pathlib import Path import hashlib,json,re import numpy as np,pandas as pd import run_citation_dictionary_027 as c27 import run_anonymous_record_decompression_032 as d32 import run_geometric_expansion_link_030 as g30 import run_fifth_record_prospective_033 as p33 ROOT=Path(__file__).resolve().parent;OUT=ROOT/'raw_multiline_record_recovery_038';OUT.mkdir(exist_ok=Tru e) SRC=ROOT/'crosswalk002_inputs/Voynich_Line_Local_Reproducibility_2026-08-22/data';FOL='f68r2';LINE=4;LAB EL_LINE=25;KEY='A1';REPS=10000;SEED=20260830 def block(path,fol,line): pat=re.compile(r'^<([^>.]+)\.([^,>]+),[^>]*>\s*(.*)$');collect=False;buf=[] for s in path.read_text(errors='ignore').splitlines(): m=pat.match(s) if m: if collect:break collect=m.group(1)==fol and m.group(2)==str(line) if collect:buf=[m.group(3)] elif collect:buf.append(s) return ' '.join(buf) def payloads(txt): txt=re.sub(r'<[^>]*>',' ',txt).replace('[','').replace(']','').replace(':','') out=[] for chunk in re.split(r'[.,\s]+',txt): a=re.findall(r'[A-Z][0-9a-z]',chunk) if len(a)>=3 and a[0] in c27.L and a[-1] in c27.R:out.append(' '.join(a[1:-1])) return out def main(): raw={w:block(SRC/(w+'.txt'),FOL,LINE) for w in ('ZL','GC')};seq={w:payloads(raw[w]) for w in raw};hit={w:KEY in seq[w] and len(seq[w])>1 for w in seq} lb=g30.aligned_label_boxes();bs=[b for (f,l,i),b in lb.items() if f==FOL and l==LABEL_LINE];qy=(min(b['y'] for b in bs)+max(b['y']+b['h'] for b in bs))/2;base=g30.aligned_prose_lines();add,_=p33.recover_unrestricted(base);coords={**base,**add};box=coo rds[(FOL,LINE)];distance=abs((box[1]+box[3])/2-qy)/837 residual={w:[x for x in seq[w] if x!=KEY] for w in seq};jac=d32.multiset_jaccard(residual['ZL'],residua l['GC']);lcs=d32.lcs_ratio(residual['ZL'],residual['GC']);passed=bool(all(hit.values()) and jac>=.5 and lcs>=.75) row={'record_id':'f68r2:4/4','folio':FOL,'zl_line':LINE,'gc_line':LINE,'keys':KEY,'zl_residual':' | '.join(residual['ZL']),'gc_residual':' | '.join(residual['GC']),'multiset_jaccard':jac,'ordered_lcs_rati o':lcs};old=pd.read_csv(ROOT/'gc_segmentation_recovery_035/five_record_anonymous_ledger.csv');ledger=pd. concat([old,pd.DataFrame([row])],ignore_index=True) if passed else old;ledger.to_csv(OUT/'six_record_anonymous_ledger.csv',index=False);pd.DataFrame([row]).to_csv(OUT/'pro spective_sixth_record.csv',index=False) z=[str(x).split(' | ') for x in ledger.zl_residual];g=[str(x).split(' | ') for x in ledger.gc_residual];obs=float(np.mean([d32.multiset_jaccard(a,b) for a,b in zip(z,g)]));rng=np.random.default_rng(SEED);null=[] for _ in range(REPS): p=rng.permutation(len(g));null.append(float(np.mean([d32.multiset_jaccard(z[i],g[j]) for i,j in enumerate(p)]))) pv=(1+sum(x>=obs for x in null))/(REPS+1);promoted=passed and len(ledger)==6 and pv<.05 pd.DataFrame({'replicate':range(REPS),'jaccard':null}).to_csv(OUT/'six_record_pairing_null.csv',index=F alse) summary={'test':'RAW-MULTILINE-RECORD-RECOVERY-038','raw_payloads':seq,'both_key_hits':hit,'vertical_di stance_page_heights':distance,'new_record_jaccard':jac,'new_record_lcs':lcs,'prospective_pass':passed,'l edger_records':len(ledger),'ledger_mean_jaccard':obs,'ledger_pairing_p':pv,'six_record_ledger_promoted': run_raw_multiline_record_recovery_038.py VOYNICH RESEARCH ARCHIVE | 16 SEPTEMBER 2026 2 promoted,'boundary':'Anonymous record recovery from raw delimited atoms; no plaintext or semantics.'};(OUT/'summary.json').write_text(json.dumps(summary,indent=2)) report=['# RAW-MULTILINE-RECORD-RECOVERY-038','',('**PASS — SIXTH RECORD PROMOTED**' if promoted else '**FAIL / NOT PROMOTED**'),'','The f68r2 line 4 record was reconstructed directly from raw multiline, dot-delimited atom streams using the frozen outer-operator inventories. No fuzzy atoms or semantic values were used.','',f"- Both key hits: {hit}",f"- Vertical distance: {distance:.4f} page heights",f"- New-record Jaccard / LCS: {jac:.4f} / {lcs:.4f}",f"- Ledger records: {len(ledger)}",f"- Ledger pairing p: {pv:.6f}",'','## Rule audit','',('CORE PRESERVATION, EDGE HANDOFF, CONTEXTUAL INTERNAL REALIZATION, and REGISTER SHIFT strengthen. Six rules remain.' if promoted else 'No rule change.')] (OUT/'report.md').write_text('\n'.join(report));files=sorted(x for x in OUT.iterdir() if x.is_file() and x.name!='SHA256SUMS.txt');(OUT/'SHA256SUMS.txt').write_text('\n'.join(f'{hashlib.sha256(x.read_bytes ()).hexdigest()} {x.name}' for x in files)+'\n');print(json.dumps(summary,indent=2)) if __name__=='__main__':main()