private-genome-evidence

Keep observed, imputed and uncertain genotype evidence separate, immutable and hash-tracked; build case-safe private reports and the layered longevity registry. Use whenever a task reads, compares or

SKILL.md

GitHub

Private genome evidence

Trigger

Any task that reads the owner's array export, converted VCFs, imputation outputs, the frozen 65-marker comparison, or vault/registry/longevity-evidence.private.json.

Inputs and outputs

  • Inputs: vault/genome/**, vault/evidence/**, config/longevity_locus_annotations.json, config/longevity_literature_sources.json, config/imputation_variant_registry.json.
  • Outputs: vault/registry/longevity-evidence.private.json (private), vault/registry/case-rsids.txt (private scanner input) and config/longevity_variant_registry.json (public, no genotypes).

Privacy classification

Every case output is R4 / do_not_share / needs_review. Only the public registry, which holds loci, genes, citations and evidence-model statuses but no calls, may leave private.

Preconditions

  • Work on the private branch. Confirm source hashes against vault/manifests/vault-import-manifest.json.
  • Declare the locus list before extracting anything; never widen it to find a favorable call.

Procedure

  1. Copy evidence layers verbatim. Never overwrite a conflicting call and never pick a preferred_call; conflicts stay visible in conflicts.
  2. Assess each layer independently: DIRECT_ARRAY_CALL, TYPED_INPUT_RETAINED, IMPUTED_HIGH_POSTERIOR (called GP ≥ 0.90 and positive quality), IMPUTED_UNCERTAIN, ARRAY_NOT_TESTED, REFERENCE_PANEL_ABSENT, NOT_RUN, UNRESOLVED.
  3. Flag SEQUENCING_CONFIRMATION_REQUIRED when there is no direct call, a conflict, or zero R².
  4. Rebuild with registry build, then registry validate against the frozen file.

Stop conditions

Stop before any score, prediction, majority vote, clinical or lifespan statement; before sending any personal value outside the machine; and when a source hash does not match.

Failure handling

A hash mismatch, a missing layer or a validation problem leaves the registry unchanged. Record the problem instead of repairing evidence by hand.

Validation

registry validate reports zero problems; the public registry contains no allele_call; the leak scanner (with --case-rsids) passes on every distributable file.

Example (synthetic)

.\.venv\Scripts\longevity-imputator.exe registry build `
  --frozen-comparison tests\fixtures\synthetic\registry\frozen_comparison.json `
  --annotations tests\fixtures\synthetic\registry\annotations.json `
  --literature tests\fixtures\synthetic\registry\literature.json `
  --public-out out\synthetic-public.json --private-out out\synthetic-private.json
.\.venv\Scripts\longevity-imputator.exe registry validate `
  --private-registry out\synthetic-private.json `
  --frozen-comparison tests\fixtures\synthetic\registry\frozen_comparison.json

Cannot support

An ancestry-array call is not a clinical test; R² = 0 or single-sample DR2 is not calibration; the internal 0.90 GP threshold is not clinical; absence from the array means not tested.