GALENOSAPOSTOLUS

In Silico · system structure

Multi-Agent Orchestration for Rare Disease Diagnosis

Separate roles annotate variants, rank candidate genes and propose ACMG criteria. A separate auditor rechecks every claim before it can reach a report.

2unitsrare19 · acmg19
15componentsin hand-off order below
8/8audit gates passedrare19 · acmg19
1projectsD3

What this work is

This work turns the rare-disease diagnosis task into two runnable pipelines: separate roles annotate variants from a VCF (variant call file), rank candidate genes from HPO (Human Phenotype Ontology) terms and propose ACMG/AMP criteria (the standard evidence codes for classifying variants), and a separate auditor rechecks the result before it can be reported. In the synthetic unit every role is deterministic code and no model API is called. In the public-record unit the evidence agents, the default curation rule engine, the audit gate and the final adjudication are also deterministic code; language models appear only as the literature reader, its second reader from another model family, and a small trial that put a model in the curation seat.

Scope The synthetic unit runs on a few fixed synthetic VCF cases with a made-up evidence registry; the public-record unit runs on ClinGen expert-panel variants joined to ClinVar (a public archive of variant interpretations), gnomAD frequencies, HPO annotations, published text, and patients simulated from those records. Neither unit uses a real patient, measures clinical performance or carries a human auditor's sign-off.

D3 · Synthetic replay · rare19

Synthetic replay with audit gates

Checks, on fixed synthetic cases, that separated roles produce a run that a separate auditor can recompute and then pass or reject gate by gate. It tests whether role separation and the audit work as built, not diagnostic ability.

  1. Data curatorLock file, reference tables and synthetic VCFs in fixtures/ → Validated snapshot: cases, HPO graph, diseases, registries
  2. Variant annotation roleOne case's variant keys and the annotation table → One annotation row per variant, matched or empty
  3. Phenotype ranking roleObserved and absent HPO terms, annotated variants, disease table → Ranked genes with score, tied best diseases, variant keys
  4. ACMG evidence proposal roleAnnotated variants and the synthetic evidence registry → Evidence rows: code, kind, source ID and version
  5. RunnerValidated snapshot → Run document: annotations, rankings, evidence rows, hash
  6. Independent HPO re-rankingValidated snapshot and a case ID → A ranking to compare with the submitted one
  7. Independent auditorRun document, fixtures and the held-out answer file → Audit document: gate status and reasons, pass or fail
ComponentWhat it doesInput → outputCode
Data curatorChecks the lock file's pinned SHA-256 and each input file's hash, then validates links between tables and VCFs. Stops on any mismatch; never reads the held-out answers.Lock file, reference tables and synthetic VCFs in fixtures/ → Validated snapshot: cases, HPO graph, diseases, registriesrare19/_snapshot.py:load_snapshot
Variant annotation roleJoins a variant to the synthetic registry only when build, chromosome, position, REF and ALT all match. Keeps unmatched variants with an empty annotation; infers nothing.One case's variant keys and the annotation table → One annotation row per variant, matched or emptyrare19/orchestrate.py:annotation_role
Phenotype ranking roleScores each candidate gene's diseases by exact and ancestor HPO matches, subtracts for findings recorded absent, and ranks genes keeping ties. Computes no inheritance.Observed and absent HPO terms, annotated variants, disease table → Ranked genes with score, tied best diseases, variant keysrare19/orchestrate.py:phenotype_role
ACMG evidence proposal roleCopies criterion codes and evidence keys from the frozen synthetic registry for the annotated variants. May not add free text, create evidence or state an interpretation.Annotated variants and the synthetic evidence registry → Evidence rows: code, kind, source ID and versionrare19/orchestrate.py:evidence_role
RunnerCalls the roles in a fixed order for every case and writes one run document sealed with a SHA-256 of its body. Calls no model API; needs neither auditor nor answers.Validated snapshot → Run document: annotations, rankings, evidence rows, hashrare19/orchestrate.py:run
Independent HPO re-rankingInside the auditor, recomputes each case's gene ranking another way: descendants of disease terms, not ancestors of observed terms. Never calls the runner's code.Validated snapshot and a case ID → A ranking to compare with the submitted onerare19/audit.py:independent_rank
Independent auditorRechecks the run in four gates: frozen inputs, attribution of annotations and evidence, held-out answers, own ranking and hash. Does not import the runner; signs nothing.Run document, fixtures and the held-out answer file → Audit document: gate status and reasons, pass or failrare19/audit.py:audit

Flow

  1. The runner loads the fixtures through the data curator, which checks every hash and cross-reference before any role runs.
  2. For each case the annotation role joins the VCF variants to the synthetic registry by exact key.
  3. The phenotype role ranks the annotated genes from the case's HPO terms, and the evidence role copies the registered ACMG evidence rows for the same variants.
  4. The runner writes all cases into one run document and adds a SHA-256 of the body.
  5. A separate audit command reads that document; gates G1 and G2 check inputs and structure, then compare every annotation and evidence row with the registry.
  6. Gate G3 scores the auditor's own ranking against the held-out answers, and gate G4 requires the submitted run to equal the auditor's rebuilt result and hash.
  7. At the first failed gate the auditor records the reason, marks the remaining gates as not run, sets the status to fail and exits with a non-zero code.

What is guarded

Not built or not run

Result and documents

The runner annotates variants from a fixed VCF subset and ranks candidate genes from HPO phenotypes; a separate audit command rechecks evidence codes, ranks and input hashes. 2 of 4 synthetic cases reached the top five. A tie counts only if the whole tied group fits within five places.

Synthetic inputs only (synthetic_only). Scope: synthetic inputs and evidence-code review. Patient VCFs, clinical performance and auditor sign-off are not included.

Measured values, limits and gates on the D3 record · Causal-Gene Ranking from Variants and Phenotypes

D3 synthetic replay record (KR) · Audit record (JSON) · Run output (JSON)

D3 · Public-record audit · acmg19

Public-record pipeline with ACMG audit

Takes a VCF and HPO terms through evidence-gathering agents, a curation agent that claims ACMG criteria, and an audit gate that lets only supported criteria reach the report. It is used to measure how the pipeline classifies expert-reviewed public variants and simulated patients, and whether the gate stops unsupported claims.

  1. Intake agentCase VCF and case file (proband, parents, sex, HPO terms) → Ledger items: genotype, zygosity, parental genotypes
  2. Annotation agentCarried variants and the frozen knowledge store → Ledger items per variant and gene, with source and locator
  3. Phenotype agentPatient HPO terms and HPO disease annotations → Ledger items: phenotype match per candidate gene
  4. Inheritance agentProband and parental genotypes, established variant records → Ledger items: inheritance pattern, second allele
  5. Literature agentReader findings, text-window store, second-reader verdicts → Ledger items: functional assay, segregation, second allele
  6. Curation agentEvidence ledger grouped by variant and gene → Claim set: criteria, cited evidence IDs, classification
  7. Audit gateExported ledger and claim set → Verdict and reason per criterion, audited classification
  8. AdjudicationAudit report, carried variants, phenotype ranking → Report: positive or negative, candidate genes with reasons
ComponentWhat it doesInput → outputCode
Intake agentReads the VCF, splits multi-allelic records, trims alleles to minimal form and keeps only those the proband carries. Records genotypes; interprets nothing.Case VCF and case file (proband, parents, sex, HPO terms) → Ledger items: genotype, zygosity, parental genotypesacmg19/agents.py:intake
Annotation agentAttaches facts from the frozen store: consequence, frequency, prediction scores, gene records. Never uses the variant's own ClinVar classification; no live lookups.Carried variants and the frozen knowledge store → Ledger items per variant and gene, with source and locatoracmg19/agents.py:annotate
Phenotype agentRanks genes by information-content similarity of patient HPO terms to disease annotations; records rank, score and matched terms for candidates. Classifies no variant.Patient HPO terms and HPO disease annotations → Ledger items: phenotype match per candidate geneacmg19/agents.py:phenotype
Inheritance agentReads from trio genotypes: de novo, homozygous, or a second established pathogenic allele in the gene. Without parents it records phase as unknown, not a guess.Proband and parental genotypes, established variant records → Ledger items: inheritance pattern, second alleleacmg19/agents.py:inheritance
Literature agentAdmits a language-model reader's findings, citing text-window IDs, only if a rule check and a second reader of another model family both accept. No ready-made evidence.Reader findings, text-window store, second-reader verdicts → Ledger items: functional assay, segregation, second alleleacmg19/agents.py:literature_intake
Curation agentClaims ACMG criteria and a five-tier class per variant, citing ledger item IDs. Cannot write to the ledger. A rule engine by default; a language model was also tried.Evidence ledger grouped by variant and gene → Claim set: criteria, cited evidence IDs, classificationacmg19/agents.py:propose_by_rules
Audit gateVerifies the ledger, checks each claimed criterion against its cited items and recomputes the class from accepted criteria only. Callers cannot skip the ledger check.Exported ledger and claim set → Verdict and reason per criterion, audited classificationacmg19/acmg_audit.py:audit
AdjudicationBuilds candidate diagnoses from audited classes, genotype fit to the gene's inheritance mode and phenotype rank. Uses audited results only; blocked claims never reach it.Audit report, carried variants, phenotype ranking → Report: positive or negative, candidate genes with reasonsacmg19/agents.py:adjudicate

Flow

  1. The orchestrator opens an empty append-only ledger for the case and runs intake, annotation, phenotype, inheritance and literature in that order, each adding evidence.
  2. Every item gets an ID derived from the SHA-256 of its content and carries the name and locator of its source.
  3. The ledger is exported and handed to the curation agent, which returns claims that cite item IDs.
  4. The audit gate checks the ledger, accepts or blocks each criterion with a reason, and recomputes each variant's class from the accepted criteria.
  5. A blocked claim set can go back to the curation agent once with the reasons; whatever is still blocked is left out of the report.
  6. Adjudication combines audited classes with genotype fit and phenotype rank into the report, returned with the trace, ledger, claims and audit.
  7. A separate evaluation script replays this on frozen inputs and injects faults, and a summary script recomputes the status gates G1 to G4 from the stored result.

What is guarded

Not built or not run

Result and documents

Every ACMG criterion an agent claims is checked against an evidence ledger built from public records before it can reach a report. On 20 held-out genes the pipeline kept 1,323 of 1,324 expert-benign variants out of the pathogenic classes (99.92%) and called 475 of 1,890 expert-pathogenic variants pathogenic or likely pathogenic (25.13%). The audit gate stopped 8,641 of 8,641 injected unsupported claims and blocked 0 of the 160,899 criteria derived from the ledger.

Public records and simulated patients (public_records_and_simulated_patients). Figures come from ClinGen, ClinVar, gnomAD, HPO and published text, and from patients simulated out of those records. No patient data were used and no clinical performance was measured. No human auditor has signed.

Measured values, limits and gates on the D3 record · Causal-Gene Ranking from Variants and Phenotypes

D3 ACMG audit gate: method and replay record (KR) · D3 ACMG audit gate: cross-model review record (KR) · Audit record (JSON) · Run output (JSON)

How to read this screen

This screen describes structure: the parts, the order work passes through them and what each run is checked against. It carries no measured value of its own. The figure in each result paragraph is filled from the audit file when the site is built, and every component names the code that does the work.

Analysis registry · Replay commands · Audit results

© 2026 RISCON Co., Ltd.Privacy PolicyTerms of UseCookie SettingsContact

RISCON Labsrisconlabs.com