run_referential_core_019.py VOYNICH RESEARCH ARCHIVE | 16 SEPTEMBER 2026 4 n(groups),'all_duplicate_groups_question_marked':all(g['uncertain'] for g in groups),'witnesses':summary_w,'promoted_stems':promoted,'promoted_stem_count':len(promoted),'literal_kno wn_language_words_added':0,'decision':decision,'boundary':'Question-marked duplicate drawings can test recurrence but cannot authenticate a species name.'} (OUT/'summary.json').write_text(json.dumps(summary,indent=2)) grouptext='\n'.join(f"- {g['group_id']}: {g['folio_a']} <-> {g['folio_b']} via `{g['basis']}`; uncertain={g['uncertain']}." for g in groups) resulttext='\n'.join(f"- {w}: mean={summary_w[w]['observed_mean_similarity']:.6f}; null mean={summary_w[w]['null_mean_similarity']:.6f}; p={summary_w[w]['aggregate_p']:.6f}; pairs above median={summary_w[w]['pairs_above_matched_median']}/{len(groups)}." for w in ('ZL','GC')) report=f'''# Voynich REFERENTIAL-CORE-019\n\nDate: 2026-08-29\n\n## Frozen design\n\nThe two cross-domain label/register candidates from test 018 (`A3 C1`, `Q1 A3 B2`) were removed from the fixed 77-stem inventory. The remaining 75 stems were tested for recurrence across pre-existing duplicate-illustration annotations. ZL and GC were scored independently. Section-pair and opportunity-matched page pairs supplied 10,000 aggregate null replicates.\n\n## Available duplicate groups\n\n{grouptext}\n\nAll reusable groups inherit at least one question-marked identification. They are therefore exploratory same-object comparators, not authenticated plant-species ground truth.\n\n## Result\n\n{resulttext}\n\n- Selection-aware cross-witness stem promotions: {len(promoted)}.\n- Literal known-language words added: 0.\n- Decision: `{decision}`.\n\nThe previously earned Pleiades body `A1 A3 C1` was retained as a positive parser/control receipt; it was not allowed to select duplicate-plant stems and is outside the 75-stem promotion contest.\n\n## Interpretation\n\nRemoving the two demonstrated register payloads does not reveal a stable same-object lexical core across the surviving duplicate drawings. Because the available duplicate corpus is tiny and question-marked, this test closes only the present duplicate-illustration route. It does not prove that the manuscript lacks referential stems.\n\n## Rule recovery audit\n\nThe six-rule ledger remains unchanged. REGISTER SHIFT retains the strengthening from test 018. CORE PRESERVATION is not semantically promoted by these duplicate groups. No seventh rule is added.\n''' (OUT/'Voynich_REFERENTIAL_CORE_019_REPORT_2026-08-29.md').write_text(report) audit=[{'rule':'LINE RESET','effect':'unchanged'},{'rule':'CORE PRESERVATION','effect':'not semantically promoted by duplicate groups'},{'rule':'EDGE HANDOFF','effect':'unchanged'},{'rule':'CONTEX TUAL INTERNAL REALIZATION','effect':'unchanged'},{'rule':'REGISTER SHIFT','effect':'retains test-018 strengthening'},{'rule':'DOMAIN SPECIALIZATION','effect':'unchanged'}] with (OUT/'Voynich_REFERENTIAL_CORE_019_RULE_AUDIT.csv').open('w',newline='') as f:w=csv.DictWriter(f,fieldnames=audit[0]);w.writeheader();w.writerows(audit) paths=[Path(__file__),OUT/'summary.json',OUT/'duplicate_group_source_ledger.csv',OUT/'duplicate_pair_re sults.csv',OUT/'matched_pair_null.csv',OUT/'stem_duplicate_support.csv',OUT/'positive_control_pleiades.c sv',OUT/'Voynich_REFERENTIAL_CORE_019_REPORT_2026-08-29.md',OUT/'Voynich_REFERENTIAL_CORE_019_RULE_AUDIT .csv'] with (OUT/'Voynich_REFERENTIAL_CORE_019_SHA256_2026-08-29.txt').open('w') as f: for p in paths:f.write(hashlib.sha256(p.read_bytes()).hexdigest()+' '+p.name+'\n') print(json.dumps(summary,indent=2));print('\nPAIR RESULTS') for r in results:print(r['witness'],r['group_id'],r['folio_a'],r['folio_b'],round(r['weighted_jaccard'] ,4),'median',round(r['matched_median'],4),'p',round(r['pair_empirical_p'],4),r['shared_stems'][:100]) if __name__=='__main__':main()