run_external_anchor_attack_018.py VOYNICH RESEARCH ARCHIVE | 16 SEPTEMBER 2026 4 'zl_z':zn[s]['z'],'gc_z':gn[s]['z'],'zl_familywise_p':zn[s]['familywise_p'],'gc_f amilywise_p':gn[s]['familywise_p'], 'frozen_label_folios':'|'.join(sorted(union))}) frozen.sort(key=lambda r:(-r['strict_candidate_gate'],-r['frozen_score'],r['stem_id'])) with (OUT/'frozen_candidate_ranking.csv').open('w',newline='') as f: w=csv.DictWriter(f,fieldnames=frozen[0]);w.writeheader();w.writerows(frozen) # Reveal stage begins only here. metadata=parse_metadata(META); reveal=[] for r in frozen: if not r['strict_candidate_gate'] and len(reveal)>=12:continue folios=r['frozen_label_folios'].split('|') if r['frozen_label_folios'] else [] specific=[clear_specific_plant(metadata[f]['plant_id']) for f in folios]; specific=[x for x in specific if x] counts=Counter(specific); best,bn=counts.most_common(1)[0] if counts else ('',0) one_to_one=int(bool(best) and bn>=2 and bn==len(folios)) reveal.append({**r,'revealed_folio_metadata':' || '.join(f'{f}:PlantID={metadata[f]["plant_id"]} ;SameAs={metadata[f]["same_plant_as"]};Section={section(f)}' for f in folios), 'specific_referent':best,'specific_referent_support_folios':bn,'one_to_one_pass': one_to_one, 'decision':'PROMOTE_1_TO_1' if one_to_one else 'RETAIN_ANONYMOUS'}) with (OUT/'referent_reveal_ledger.csv').open('w',newline='') as f: w=csv.DictWriter(f,fieldnames=reveal[0]);w.writeheader();w.writerows(reveal) labels={} for r in reveal: for fol in r['frozen_label_folios'].split('|') if r['frozen_label_folios'] else []: labels[fol]=labels.get(fol,'')+r['stem_id']+' ' contact=render_contact(sorted(labels),labels) strict=sum(r['strict_candidate_gate'] for r in frozen); promoted=sum(r['one_to_one_pass'] for r in reveal) summary={'test':'EXTERNAL-ANCHOR-ATTACK-018','date':'2026-08-29','seed':SEED,'null_replicates':REPS, 'stem_universe':len(stems), 'events':len(events),'label_events':sum(e['register']=='LABEL' for e in events),'prose_events':sum(e['register']=='PROSE' for e in events), 'strict_blind_candidates':strict,'revealed_ranked_candidates':len(reveal),'one_to_one_promo tions':promoted, 'literal_known_language_words_added':0,'contact_sheet':str(contact) if contact else None, 'decision':'NO_UNIQUE_EXTERNAL_ANCHOR' if promoted==0 else 'UNIQUE_ANCHOR_FOUND', 'boundary':'Broad domain or a plausible illustration is not a unique referent. Only repeated independent specific identity can promote.'} (OUT/'summary.json').write_text(json.dumps(summary,indent=2)) strict_rows=[r for r in frozen if r['strict_candidate_gate']] strict_text='\n'.join(f"- `{r['stem_id']}` / `{r['payload']}`: ZL z={r['zl_z']:.3f}, p={r['zl_familywise_p']:.6f}; GC z={r['gc_z']:.3f}, p={r['gc_familywise_p']:.6f}; label folios `{r['frozen_label_folios']}`." for r in strict_rows) or '- None.' report=f'''# Voynich EXTERNAL-ANCHOR-ATTACK-018\n\nDate: 2026-08-29\n\n## Frozen test\n\nThe fixed 77-stem proto-lexicon was ranked using label/prose recurrence only. ZL and GC were tested independently with 1,000 within-folio register permutations. Illustrations and page-identification comments were unavailable until the candidate ranking was written.\n\nA strict candidate required at least two label tokens on two folios in each witness, at least ten prose tokens in each witness, positive enrichment, familywise p < 0.05 in both witnesses, and label-folio Jaccard >= 0.50. A 1:1 promotion additionally required the same specific externally supplied referent on at least two independent label folios.\n\n## Result\n\n- Stem universe: {len(stems)}\n- Eligible label/prose events: {len(events)}\n- Label events: {summary['label_events']}\n- Prose events: {summary['prose_events']}\n- Strict blinded candidates: {strict}\n- Ranked candidates revealed: {len(reveal)}\n- Unique 1:1 promotions: {promoted}\n- Literal known-language words added: 0\n\n## Strict blinded candidates\n\n{strict_text}\n\nBoth candidates cross incompatible illustrated subjects and manuscript sections. `A3 C1` spans Herbal, Astro, Bio, and Pharma label folios. `Q1 A3 B2` spans Herbal, Astro, and Bio. Coordinate-level reveals that could be aligned include zodiac/astronomical labels and a biological-container label, not repeated instances of one object. This supports a label/register-function interpretation, not a unique noun. That interpretation remains anonymous.\n\n## Decision\n\n{summary['decision']}. The reveal localizes two payloads toward label-register behavior, but no payload is assigned a unique word or object. A broad domain, repeated label role, or visually plausible object is insufficient under the frozen gate.\n\n## Rule recovery audit\n\nThe six-rule ledger remains unchanged. The cross-domain label enrichment strengthens REGISTER