# How VERA computes a result

This document describes VERA release 4 (tag `vera-2026.11.20-1`, commit `be5012cc950d27d1090e99c49070b3c4bfc4e858`)
with the changes of the branch that adds it, `dev/docs-computes`: this document, the evidence copies under
`docs/evidence`, and a stricter number check on the language model's wording (section 5). The App Store copy was built
from `be5012cc` on 20 Nov 2026, with the App Store's own commit `149196a1` on top (`/api/v1/health`, 20 Nov 2026
06:21 UTC, as recorded in the audit's `AUDIT.md`). Every statement names the file, the record or the command that
proves it. A statement about another commit, or about a machine this repository cannot see, says so. The scripts in
`scripts/evidence` rerun the checks (section 7).

## 1. In short

1. **The result path is VERA's own code.** A parser reads the analyser's result messages. Code tables, which the
   laboratory director signs before a real result passes, map each result to LOINC and UCUM. Rules check quality, and statistics and published
   formulas compute the ranges and indices. All of this is VERA's own TypeScript on the CPU. The listener runs as its
   own sidecar (`worker/lis-listener.ts`); the rest runs in the web server and its workers. VERA can also host a link
   itself (`worker/analyser-host.ts`, which answers the analyser), link by link on the laboratory director's decision. On the App
   Store copy no language model and no neural network touches a number a person sees.
   On a node with a model gateway, models' answers are shown labelled as models' answers (command centre, models
   panel, Ask the DNA model). Language-model summaries are shown beside VERA's figures. The PDF fallback reader's
   values can enter a person's history: automatically for the invented sample people, after a person confirms each row
   on a real record (section 5).
2. **The models sit apart.** On 8 Nov 2026 the deployment record listed 30 services running behind one HTTP gateway
   on the production DGX Spark, in 28 containers (MetaPhlAn, HUMAnN and sylph share one): 21 neural networks, 3
   look-ups of precomputed scores and 6 conventional pipelines (registry `index.json`, 2026-11-08T23:03:07Z; section 6).
   That record is of that day. VERA calls them over HTTP, within the limits in section 3. The command centre
   and the models panel send them only invented `SYN-` people's facts or fixed examples (built in code or public test
   files), and only on an operational node with the gateway configured. CpGPT and the single-cell models get random or
   simulated inputs, not the person's. Two further uses are in section 5. On the App Store copy each person's figures
   are computed by VERA's own code; the figures on its Models page are those of the recorded model runs (section 6).
3. **Two hand-offs link models, and no network wraps them.** ESM-2 and ESM C score the protein change that
   AlphaMissense reports. gpt-oss-20b reads the other answers as text and writes words. Apart from the PDF fallback
   reader (item 1), no model's answer flows into a person's numbers, and no convolutional or other network sits around
   the models.
4. **The 8 chosen frontier models stand apart from the result path.** Five of them ran on our own NVIDIA GB10 on 8 Nov 2026 (a
   deployment smoke test and one request through the gateway each), on synthetic or public inputs. On 20 and 21 Nov
   2026 seven (Evo 2 7B base, CpGPT, SCimilarity, MGM, Kumo-Tabular, Pulse-PPG, ECG-FM) ran as one-off batch runs on
   spark-12b5 (NVIDIA GB10) on public reference data; their records are signed with Prepaire's runner key and verified
   by VERA on every read (section 6). On the Triton path a model's output is written into a person's graph only after
   the model is entered in the register of admitted models, which holds 0 entries (`config/vera/models.v1.json`), the
   gateway's loop is switched on and the derived run is released; section 3 names the two other designed routes.
5. **One general-purpose (text) language model is used: gpt-oss-20b.** It words explanations, and it is a fallback
   reader of values written in sentences of imported PDF reports. gpt-oss-120b is named in the code only as listed but
   not reachable (`src/lib/models-live/catalog.ts`, `NOT_RUNNABLE`). Evo 2, GPN-MSA, ESM-2 and ESM C are language
   models of DNA or protein; none writes text. gpt-oss-20b is off on the App Store copy.

## 2. What VERA is for, and how far this commit goes

VERA is built to give each person an own range for each test from the analysers' own data. The VERA layer normalises
that data: framing, checksums, codes, units and quality control. The design reads the normalised results with
frontier models and a knowledge graph of human physiology.

At this commit:

- The personal ranges come from a Bayesian statistical model and published formulas (section 4). A range exists only
  for a test with an EFLM within-person CV (71 entries in `config/vera/biological-variation.v1.json`) or with 4 or more
  results.
- Five of the eight frontier models were demonstrated on our own GB10 on 8 Nov, and seven ran on spark-12b5's GB10 on
  20 and 21 Nov on public reference data, each with a signed run record VERA verifies (table 6.2); all eight stand apart from the
  result path (sections 3 and 6).
- The knowledge graph names each laboratory test by LOINC. In the served build `3ee489ad88d928d3`, 173 of its 242 test
  nodes are linked to what they measure, by 266 links from rows a named person signed (`/api/v1/reference-graph/stats`;
  check 13 of the rerun). The links a visitor sees between tests, pathways and conditions come from VERA's curated
  file `src/lib/explorer/related.v1.json`, which covers 24 tests.
- All 16 analyser channels ship switched off (`config/instruments/lis-listener.v1.json`). The parsers are tested on the
  ASTM and HL7 standards' framing, on record layouts as KERNEL documents them (Sysmex R320120 and R315168 and Roche's
  host-interface manual are awaited: `src/lib/ingestion-framework/sysmex/records.ts` l.1-6) and on simulator
  frames.
- In the shipped files and on any copy without a database (the App Store copy), every clinical table reads as
  unsigned. On an operational node a table counts as signed only by approvals in that node's database
  (`src/lib/governed-tables/attestations.server.ts`), which this document did not read. While a table is unsigned, a
  real message is quarantined at the coding step and a real person's range stays on the standard range (reason
  `no_analytical_imprecision`: the laboratory's analytical CVs are not on file yet).
- The demonstrations run the same code on invented people under a labelled demonstration sign-off of the unsigned
  tables (`src/lib/demonstration-lane.ts`; it can never sign a real result), with demonstration QC targets, a synthetic
  control history (`src/lib/sample-run/signoffs.ts`) and a sample analytical CV of half the within-person CV
  (`DEMO-IQC-HALF-CVI`).

## 3. The diagram

```text
ANALYSERS (Sysmex XR-1000: ASTM;
 Roche cobas pure: HL7 over MLLP)
  |  KERNEL hosts each link and
  |  answers the analyser; a tee
  |  or mirror copies the bytes
  v
+---------------------------------+
| VERA's own TypeScript, on the   |
| CPU. THE RESULT PATH:           |
| 1 listener (own sidecar, sends  |
|   nothing back): frames,        |
|   checksums, sealed,            |
|   hash-chained bytes            |
| 2 parser: ASTM records and      |
|   HL7 fields                    |
| 3 coding: tables (to be signed) |
|   to LOINC and UCUM, else       |
|   quarantine                    |
| 4 QC and holds: Westgard rules, |
|   critical values, delta checks |
| 5 statistics: Bayesian set      |
|   point, reference change       |
|   value, prediction interval,   |
|   14 published formulas,        |
|   linear organ clocks           |
| 6 the person's graph (sealed),  |
|   report, HL7 to the clinic,    |
|   pages                         |
| reads: reference graph (names   |
|   of tests by LOINC)            |
+---------------------------------+
  :  only where a gateway is set
  :  (none on the App Store copy):
  :  SYN- people, fixed examples;
  :  sentences of imported PDFs;
  :  up to 8 FASTQ reads (Evo 2)
  v
+---------------------------------+
| vera-models-gateway: one HTTP   |
| gateway on a DGX Spark; OIP v2  |
| tensors, batch jobs, a memory   |
| plan. A command-centre run      |
| sends at most 4 calls at once   |
| within 45 s (default);          |
| gpt-oss-20b then has its own    |
| 30 s                            |
+---------------------------------+
  |  one container per service,
  |  each its own architecture
  +- AlphaMissense (look-up)
  |    |  protein change
  |    v
  +- ESM-2 650M, ESM C 600M
  +- GPN-Star, GPN-MSA (look-ups),
  |  SpliceAI, Evo 2 7B
  +- scGPT, Geneformer, SCimilarity
  +- CpGPT, TabPFN v2, Fusion Net
  +- PharmCAT (a job)
  |
  |  every answer, as text
  v
  gpt-oss-20b, last: words only
  :
  :  no answer returns to 1 to 6,
  :  except values gpt-oss-20b
  :  reads from PDF sentences,
  :  which VERA checks and a
  :  person confirms (automatic
  :  for sample people)
```

In words:

- **Steps 1 to 6 carry every number from the analysers.** On a node with a model gateway, values gpt-oss-20b reads
  from sentences of imported PDF reports also enter a person's history (section 5). `scripts/evidence/import_graph.py`
  walks the static imports of 22 result-path modules: 17 cannot reach a model client at all. The other 5 reach it only
  through `src/lib/report-import/access.ts` (the PDF fallback reader in section 5) or through the command centre
  (`src/lib/command-center/models-runtime.ts`). `src/app/documentation/how-vera-computes.test.ts` repeats the walk and
  holds both results.
- **The analysers' links.** KERNEL is the analyser host: it holds each link, answers the analyser (the ACK and NAK),
  sends the orders and stores the results (`docs/golive/analysers.md`). VERA's listener receives a copy of one
  direction of one analyser link from a tee or mirror (KERNEL's bridge, the Roche middleware's copy route or lab IT's
  mirror host), removes the write path before the first byte and never answers (`src/lib/lis/listener.server.ts`
  l.2-11; `deployment/dgx-spark/compose.lis.yaml`).
- **The gateway** is `vera-models-gateway` (compose project `vera-models`, the production DGX Spark, 8 Nov 2026). Its deployment
  record says it routes `/v1/models/<model>/...` to each service, serves Open Inference Protocol (OIP) v2 at `/v2`,
  admits models against a memory budget, unloads idle ones and answers 503 when busy. VERA's client
  (`src/lib/models-live/gateway.ts`, `PATH`) allows these paths only: `/health`, the model list `/v1/models`, one model
  `/v1/models/<id>`, `/v1/models/<id>/infer`, `/v1/models/<id>/jobs`, one job `/v1/models/<id>/jobs/<job>`, and OIP
  v2's model metadata `/v2/models/<name>` and `/v2/models/<name>/infer`. It connects only to loopback or private
  addresses (`src/lib/model-gateway/oip/transport.ts`). Inference requests carry OIP v2 tensors (`name`, `shape`,
  `datatype`, `data`), except three: MS2DeepScore and DreaMS take spectra as JSON, and gpt-oss-20b takes an
  OpenAI-style chat request. The batch tools take a job description or a file, and are polled until they finish.
- **Two callers use the gateway as drawn.** The command centre's scenario `axiom-multiomics` calls the models drawn
  above on an invented person's facts (`src/lib/command-center/scenario-models.ts`). CpGPT gets random beta values,
  and scGPT, Geneformer and SCimilarity get simulated cells shaped by the invented person's cell counts, not anyone's
  own measurements. The models panel runs one fixed example per model from a catalogue of 30: inputs built in code, or
  for the batch tools their publishers' public test files (DeepVariant quickstart on NA12878, Clair3 demo on HG003,
  StellarPGx's HG03130 from 1000 Genomes, PharmCAT's example VCF, Dorado's test POD5). None comes from a person tested
  by Prepaire (`src/lib/models-live/catalog.ts`; `run/route.ts`: "no input of the caller's ever reaches a model"). Two
  more uses send a visitor's or a person's own material: the PDF fallback reader and "Ask the DNA model" (section 5).
- **The hand-offs** are in `scenario-models.ts`: ESM-2 and ESM C wait for AlphaMissense's answer and score the CYP2C19
  substitutions it reports (UniProt P33261, the only protein VERA holds a sequence for; `scenario-models.ts` l.254),
  and `explainRun` (`scenario-models.ts` l.592) sends gpt-oss-20b the run in names and numbers after the other calls.
- **Limits on calls.** Each command-centre run sends at most `MAX_PARALLEL_CALLS = 4` calls at once
  (`scenario-models.ts` l.643) within a 45-second stage budget (the default of `VERA_MODELS_SCENARIO_BUDGET_MS`,
  `gateway.ts`). The narration then has 30 s (`LLM_TIMEOUT_MS`, `scenario-models.ts` l.469). A cold Evo 2 or scGPT is
  warmed in the background with a 300 s deadline (`WARMUP_TIMEOUT_MS`, `scenario-models.ts` l.150), outside the four
  slots and the budget. The models panel runs at most four at a time of its own (`run/route.ts`), and Ask the DNA model
  one call of up to 85 s (`CALL_DEADLINE_MS`, `score.server.ts` l.29). The limits hold per run: two runs at the same
  time have four slots each.
- **No network wraps the models.** They are independent services called over HTTP and joined by TypeScript code.
  Among the eight frontier picks, Evo 2 7B is mostly convolution, Pulse-PPG is a convolutional network and ECG-FM has a
  convolutional feature encoder before its transformer. The others are transformers or a fully connected encoder.
  Prepaire's own network, VERA Fusion Net, is a transformer. The command centre's film draws Fusion Net as stacked
  blocks (`src/components/command-center/cinema/film-fusion.ts` l.12): that is a drawing, not its architecture.
- **Three designed routes can put a model's output into a person's graph. The first two ship switched off; the
  third's calls are simulated.**
  (1) `src/lib/model-gateway`, the Triton/OIP v2 path: a derived run that two people must release; the register of admitted
  models holds 0 entries (`config/vera/models.v1.json`, `"models": []`, engine digest `null`; a run is queued for an
  admitted model alone, `enqueue.ts` l.18); its loop is off unless `VERA_MODEL_GATEWAY_ENABLED=true`. (2) The PDF importer's record lane:
  gpt-oss-20b proposes a value from a sentence and one signed-in laboratory user confirms it (`access.ts` l.9-11;
  `access.ts` l.83). It is off unless `VERA_REPORT_IMPORT_MODEL=on` and is refused while the import tables read as
  unsigned (`IMPORT_TABLES_UNSIGNED`, `src/lib/report-import/index.ts`). (3) The genomics pipelines
  (`config/vera/genomic-pipelines.v1.json`): DeepVariant on Parabricks, Dorado and Clair3 are the primary callers for
  sequencer files. They are selected for benchmark, each image is pinned to the all-zero digest until it is pulled and
  its own digest recorded, and their calls are simulated.

## 4. The result path, step by step

| Step | Method | Code |
|---|---|---|
| Sysmex link | ASTM E1381 frames; checksum is the sum of the bytes mod 256 as two hex digits | `src/lib/lis/astm.ts` |
| Roche cobas link | HL7 v2 over MLLP; fields split by the separators the message's own MSH declares | `src/lib/lis/mllp.ts`, `src/lib/hl7/reader.ts` |
| Listener | Its own sidecar (`worker/lis-listener.ts`), fed a copy of each link by a tee or mirror. Read-only TCP: the write path is removed before the first byte; bytes sealed (AES-256-GCM) and hash-chained | `src/lib/lis/listener.server.ts`, `src/lib/lis/sealing.ts` |
| Records | ASTM E1394 records read by position, with the Sysmex layouts as KERNEL documents them; HL7 OBX fields | `src/lib/lis/astm-records.ts`, `src/lib/ingestion-framework/sysmex/records.ts`; OBX in `src/lib/hl7/reader.ts` and `src/lib/ingestion-framework/hl7.ts` |
| Coding | Table lookup to marker, LOINC and unit; a table not yet signed, or a code, unit or module not in it, quarantines the message | `src/lib/ingestion-framework/sysmex/adapter.ts`, `src/lib/ingestion-framework/roche/catalog-lane.ts`, `src/lib/ingestion-framework/hl7.ts` |
| Units | Prefix and power-of-ten arithmetic; declared factors otherwise; no factor, no conversion | `src/lib/personal-ranges/units.ts` |
| Quality control | Westgard multirules on control z-scores (1-2s warns; 1-3s, 2-2s, R-4s, 4-1s, 10x reject) | `src/lib/lab/qc/westgard.ts` |
| Holds | Rule tables: critical values, delta checks, analyser flags, identity and order gates | `src/lib/lab/result-gates.ts`, `src/lib/lab/holds.ts` |
| Personal range | Bayesian normal-normal set point with known variance on the log scale; prior from the printed standard range; predictive interval `mu ± Z (sw² + v)^½` | `src/lib/personal-ranges/model.ts` (`priorFromInterval` l.109, `posterior` l.126, `predictiveInterval` l.136), method `vera-personal-range-bayes@1.4.1` |
| Reference change value | Closed form, log scale: `exp(±Z·√2·sw) − 1` (Fokkema 2006 via Paal 2021) | `model.ts` `referenceChange` l.95 |
| Own range without a published within-person CV | Classical 95 % prediction interval of the next result, t distribution, log scale, at least 4 results | `src/lib/sample-run/pipeline.server.ts` `predictionInterval` l.533 |
| Indices | 14 published equations, among them CKD-EPI 2021, PhenoAge (Levine 2018), FIB-4, NLR and PLR; all 14 `pending` sign-off | `src/lib/indices/formulas.ts`, `config/vera/indices.v1.json` |
| Organ age | Linear clocks, the method of Oh et al. 2025: intercept plus Σ weight × protein z-score. Where `VERA_ORGAN_AGE_ARTEFACT_DIR` names the 13 signed published artefacts (the production DGX Spark), VERA scores those. Elsewhere, including the App Store copy, it scores a synthetic fixture of 9 organs and 26 proteins whose every coefficient is invented. No organ age has come from a real sample | `src/lib/organ-age/engine.ts`, `src/lib/organ-age/deployment.ts`, `src/lib/organ-age/testing/synthetic.ts` |
| Person's graph and report | Deterministic segments sealed with AES-256-GCM; signed PDF; HL7 ORU^R01 | `src/lib/patient-kg/segment-builder.ts`, `src/lib/report/assemble.ts` |

## 5. Where a language model enters

All five uses of gpt-oss-20b are off on the App Store copy (rerun checks 8 and 9). On a copy with a model gateway they
are on.

| Use | What the model does | Can it change a number? |
|---|---|---|
| PDF fallback reader (`src/lib/report-import/model.ts` l.159) | Reads values written inside sentences of an imported PDF report and returns line, test, value and unit as JSON. The model also picks the test: a row whose line names no known test is kept as "<test> (matched by the model)" (`model.ts` l.131, `model.ts` l.146) | Yes: it proposes a value, and that value can enter a person's history. VERA keeps it only if the line is one VERA sent, the number is printed on that line and the unit follows it and converts; every model row is marked "check" (`validate.ts` l.124). For the invented sample people the confirmation is automatic, on any node with a gateway, operational or not (`src/lib/people/history.server.ts` l.58; `confirmedRows` keeps every row not refused, "check" rows included). On the record lane one signed-in laboratory user confirms each row (`access.ts` l.83, only with `VERA_REPORT_IMPORT_MODEL=on`). The own-report lane sends a visitor's sentence lines on any node that is not operational and has a gateway, for that visitor's session only (`access.ts` l.12-16) |
| History summary (`src/lib/report-import/explain.ts` l.109) | Asked for at most 80 words (up to 900 characters accepted, `explain.ts` l.71) about numbers VERA computed | It cannot change a computed figure, but its text is shown with numbers in it. VERA refuses it if it uses a banned word or a pronoun, or if any number in it is not one VERA gave at the precision written (`src/lib/personal-ranges/explain-check.ts`, `roundsTo`: "HbA1c 6.4 %" or "6.1 %" is refused when VERA gave 5.6 %; "about 6 %" passes). A number is not tied to its test, so a number VERA gave for one test, written beside another, passes. VERA's own template is shown instead of a refused text |
| Showcase explanation (`src/lib/showcase/explain.ts` l.94) | The same, for the showcase's invented person (up to 900 characters accepted, `explain.ts` l.73) | As for the history summary |
| Command-centre narration (`scenario-models.ts` `explainRun` l.592) | Asked for at most 70 words about a synthetic run; the answer is cut at 500 characters | It cannot change a computed figure. Shown only when VERA's number check passes (`numbersNotInRun`, `scenario-models.ts` l.552): every figure it writes in digits must be one of the run's own figures, rounded to the places written; otherwise VERA's own words are shown |
| Models panel tile (`src/lib/models-live/catalog.ts`) | Asked for at most 60 words about a fixed synthetic card | It cannot change a computed figure. Shown with no number check at this commit |

The number check above is this branch's. At `be5012cc` a number passed if it was within 0.5 (or 0.5 %) of one VERA gave
or rounded to the same whole number, so "HbA1c 6.4 %" passed when VERA gave 5.6 %
(`src/lib/personal-ranges/explain-check.test.ts` holds both cases).

An example of the PDF reader on a copy with a gateway: the sample report `sample-2025-03-saltmarsh.pdf` writes its
ferritin and vitamin D values in sentences on its comments page, so gpt-oss-20b reads them and they enter that
invented person's history and range (`src/lib/report-import/import.test.ts`, "leaves the sentences of the comments page
for the frontier model").

One more call reaches a model with a visitor's data: "Ask the DNA model" sends up to eight reads of a visitor's own
FASTQ file to Evo 2 7B and shows the log-likelihood (`src/lib/sequencing-reads/score.server.ts` l.133). It is a
demonstration, not a result, and needs a configured gateway.

**Neural networks used only to make files.** Kokoro v1.0 speech synthesis (onnxruntime,
`scripts/requirements-voice.txt`; `scripts/build-vera-story-audio.py`) and Azure's neural text to speech
(`tools/voiceover/render.mjs`) voice fixed scripts: the evidence journey's story and the film's voice-over. VERA serves
the audio files and runs neither.

## 6. Every model: architecture and evidence

"Frontier model" here means a model pretrained by its publisher on a large corpus and used as published; the models
panel also uses the word for TabPFN v2, scGPT, Geneformer and ECGFounder. VERA's register calls these
`foundation_model` (`config/vera/model-stack.v1.json`, 97 tasks: 25 pipelines, 23 statistics, 18 trained models, 8
foundation models, 6 formulas, 5 look-ups, 4 rule bases, 3 vendor software, 1 protocol, 4 with nothing chosen).

**Evidence records.** The records that exist are:

- the gateway check of 8 Nov 2026, 20:53 to 21:04 UTC, through `vera-models-gateway` on the production DGX Spark, one request per
  model, synthetic or public example inputs, "No patient data was used". Its result was 28 verified and 3 failed, none
  of them served. The row numbers below are that table's. A copy with the LAN addresses removed is
  `docs/evidence/models-deploy-2026-11-08/verify.md`; the original, in Prepaire's evidence archive of 9 Nov
  (`Evidence_2026-11-09/scratchpad/models-deploy/verify.md`), has SHA-256
  `fce3f7b9a3227f217f699c6acbafda65912c0d967bb94efc4a96e93d7b4be515`;
- the deployment registry `index.json` (writtenAt 2026-11-08T23:03:07Z): 30 running, 2 failed, 1 staged. Copy
  `docs/evidence/models-deploy-2026-11-08/index.json`, LAN addresses removed; original SHA-256
  `4587a1c9f33c472c110705a5206b2f7f046b1bdf03d276f262d1222d0b80891e`;
- runs recorded on 20 and 21 Nov 2026 on spark-12b5 (NVIDIA GB10), on public reference data, in the separate
  repository `vera-frontier`, each record copied byte for byte with its outputs into `data/model-runs/recorded/` at a
  pinned branch commit (`data/model-runs/recorded/manifest.v1.json`, by `scripts/model-runs/bring-recorded.mjs`); one,
  Evo 2's FP8-off run, was fetched from spark-12b5 once it had ended and is not yet on its branch (its runner commit
  is). Ten of them, of seven models, were signed afterwards on Prepaire's Mac with the runner key `prepaire-runner-2026-11-20`
  (SHA-256 fingerprint `f17787256f69d0eead235445af1e6a706588921bf3bf0282e4f6da0160bb69f5`, registered in
  `config/vera/model-runner-keys.v1.json` on the founder's approval of 20 Nov 2026), each only after its record file and
  every output had been re-hashed (`scripts/model-runs/sign-recorded.mjs`). The signed copies ship in
  `data/model-runs/signed/` and every VERA copy verifies them on every read with the same checks as
  `POST /api/v1/model-runs` (`src/lib/model-runs/signed.server.ts`). A signature shows a record is unchanged since it was
  signed; it does not prove which machine ran the model. VERA Fusion Net's record is not of the run contract (no
  source or licence address: its weights are not published) and stays out of the ledger by design. Earlier runs of
  20 Nov on this Mac (Apple M2 Ultra GPU) remain on the branches, unsigned and not shown as status.

`vera-frontier` and `vera-fusion-net` are shown on request from Prepaire's machine. They are to be pushed to the
company GitLab with read access for diligence.

The architecture column says where it was checked: in the model's code or configuration, in the deployment record, or
as the publisher describes it (not checked against code here).

### 6.1 Computed in VERA's own process

| Model | Architecture | Evidence |
|---|---|---|
| Personal range | Bayesian normal-normal model, known variance, log scale | Rerun check 11: 48 of 50 live figures recomputed from the formulas alone; `src/lib/personal-ranges/model.test.ts` |
| Reference change value | Closed-form formula | Check 11; `model.test.ts` |
| Own-range prediction interval | Classical prediction interval | Code, `pipeline.server.ts` l.533 |
| 14 indices | Published equations with fixed coefficients | `src/lib/indices/formulas.test.ts`: synthetic inputs, checked against values computed separately in Python from each equation as printed (7 Nov 2026). None of the sources prints a worked example, and the laboratory director has still to check them against a published calculator (the file's lines 9-11) |
| Westgard QC | Rules | `src/lib/lab/qc/westgard.test.ts` |
| Organ age (linear clocks) | Linear models (the published clocks were fitted by LASSO) | `src/lib/organ-age/paper-method.test.ts`, `src/lib/organ-age/lab-crosscheck.test.ts`; invented fixture weights on the App Store copy |

### 6.2 The eight frontier models chosen

Five of the eight ran on 8 Nov 2026 (a deployment smoke test and one request through the gateway each), and seven on
spark-12b5 on 20 and 21 Nov 2026 (each figure below is the record's, beside the published one where there is one). Each
run is a record of its day; the table gives each model's.

| Model | Architecture (where checked) | Run on our hardware (dates in UTC unless marked GST) | Evidence record |
|---|---|---|---|
| Kumo-Tabular (Hugging Face `nvidia/Kumo-Tabular`, tag v1.0.1; the 8 Nov service ran `b2f5a9d6`, weights SHA-256 `cc214843…`/`745e0e5d…`; package structured-data-models 0.2.1) | Transformer, in-context learning: cell embeddings, set-transformer row encoder, transformer stack; no convolution (package code in structured-data-models 0.2.1, `sdm/models/kumo/tabular/model.py`, `block.py`) | the production DGX Spark, 8 Nov: synthetic 120-row table, held-out R² 0.993. spark-12b5 (GB10), 20 Nov: NHANES 1999-2018 with NCHS 2019 mortality, the locked test set Fusion Net used, run `kumo-20261120t110551z-nhanes-mortality-horizon-test-large-cuda-9480c2bc` (`model/kumo` at `fbfa7dd`): Harrell C 0.877, level with Fusion Net v0.2's 0.877 (unpaired); +0.0039 (−0.0004 to +0.0081) over linear Cox, no clear gain; its 10-year risk score over-predicts (17.4% against 15.0%). No published figure exists for Kumo-Tabular on this data | 8 Nov check, row 27; 20 Nov record signed |
| ETHOS | GPT-2-style decoder transformer (publisher's README) | Never: no public weights | None |
| Evo 2 7B | StripedHyena 2: 32 blocks, 27 of them convolution operators (9 short, 9 medium, 9 long), 5 attention (configuration `configs/evo2-7b-1m.yml` in the evo2 package 0.6.0) | the production DGX Spark, 8 Nov: the deployment forward test (mean loss 0.34717 against 0.34766 expected) and two well-known variants entered by hand (BRAF V600E, TP53 P72R), not from any person; shows the model runs, not that it interprets variants. spark-12b5 (GB10), 20 Nov, 4 h 50 min: Evo 2 7B base (8,192-base context, not the 1-million-base checkpoint the stack lists) on the 3,893 BRCA1 variants of Findlay 2018, zero-shot, run `evo2-brca1-findlay-evo2-7b-base-full-20261120t103457z-bf62d256` (`model/evo2` at `0b64cf1`): AUROC 0.863 against the paper's 0.891; 1 of 7 published figures within 0.01; on the coding SNVs above the paper (0.817 against 0.797). The same run with FP8 off (run `evo2-brca1-findlay-evo2-7b-base-full-fp8-off-20261120t161659z-7bc874bc`, runner commit `fcb727a`, fetched from spark-12b5): AUROC 0.864, so FP8 is not the cause | 8 Nov check, row 1; 20 Nov records signed |
| CpGPT | Transformer over CpG sites with Nucleotide Transformer v2 embeddings of their DNA context (deployment record, README) | the production DGX Spark, 8 Nov: synthetic beta values; shows the age head runs, nothing more. spark-12b5 (GB10), 20 Nov, CpGPT-2M-Age (`model/cpgpt` at `c397b2f`): on GSE64495's 106 controls with the betas as deposited, MAE 6.85 years against the authors' 3.98 (run `cpgpt-age-gse64495-20261120t193603z-85059df4`), so short of the published accuracy; after the authors' input preparation (KNN imputation, BMIQ to goldstandard2) 3.12, lower than the authors' 3.98 for a reason the runner's README says is not known (run `cpgpt-age-gse64495-goldstandard2-20261120t202240z-1f7ca84a`, 20 Nov, 20:22 UTC; 21 Nov, 00:22 GST); on GSE40279, with the betas as deposited, 6.16 (4.26 with the same preparation, in a run the README reports that is not signed), but those people were in the age head's training or validation studies, so neither is CpGPT's accuracy (run `cpgpt-age-gse40279-20261120t194758z-6522bb34`) | 8 Nov check, row 18; 20 Nov records signed |
| SCimilarity | Fully connected encoder (28,231 genes to 128 numbers) trained by metric learning, with hnswlib nearest-neighbour indexes (run record, from the loaded weights) | the production DGX Spark, 8 Nov: synthetic counts and 200 cells of the public 10x PBMC 3k set. spark-12b5 (GB10), 20 Nov, 22:22 UTC (21 Nov, 02:22 GST), model v1.1 in the runner's own arm64 image `vera-frontier/scimilarity:548006c` (not the authors' amd64 image), run `scimilarity-pbmc10k-20261120t222216z-60415862` (`model/scimilarity` at `a7567d7`): on the 10,727 cells of 10x Genomics' public PBMC 10k v3 donor, main blood cell groups agree with the published annotation of Luecken et al. 2022 for 0.946 of cells (kappa 0.921); macro-F1 0.780, below the runner's own 0.80 mark; NK recall 0.55. No published SCimilarity figure for this dataset is known to the runner. The labels come from an approximate nearest-neighbour search: identical in every rerun on spark-12b5, while a Mac replay changes 45 near-tied labels (0.9457) and an exact search 216 (0.9467) | 8 Nov check, row 17; 20 Nov record signed |
| MGM | GPT-2 decoder-only transformer, 8 layers, 8 heads, 8,925,440 parameters (run record) | 20 Nov on a Mac on public MGnify profiles, unsigned (`model/mgm` at `7f7d47a`). spark-12b5 (GB10), 21 Nov, run `mgm-crc-20261121t015318z-285785df` (`model/mgm` at `d3b9cff`; a rerun of the first GB10 run with identical AUROCs): fine-tuned to tell colorectal cancer from controls in five public curatedMetagenomicData studies (578 people), AUROC 0.807 five-fold and 0.790 mean over the held-out studies; the random forest on species is ahead (0.856 and 0.825), and the same network from random weights gives 0.754 and 0.742. The MGM paper has no like-for-like figure (no stool colorectal-cancer result, nothing on curatedMetagenomicData) | 21 Nov record signed |
| Pulse-PPG | 1-D residual convolutional network, ResNet1D (code, `pulseppg/nets/ResNet1D/ResNet1D_Net.py` in github.com/maxxu05/pulseppg at `716eaf9c`) | the production DGX Spark, 8 Nov: synthetic PPG traces. spark-12b5 (GB10), 20 Nov: PPG-DaLiA heart rate, run `pulseppg-dalia-20261120t133221z-15d2822b` (`model/pulseppg` at `c831afe`): MAE 8.935 against the paper's 8.936 (within the printed precision) | 8 Nov check, row 29; 20 Nov record signed |
| ECG-FM | wav2vec 2.0: convolutional feature encoder, then a transformer (publisher's README) | Not on GB10 on 8 Nov (ECGFounder was served instead). spark-12b5 (GB10), 20 Nov: 2,146 PTB-XL ECGs, run `ecgfm-20261120t154240z-3ed7d901` (`model/ecgfm` at `cff9b35`): AUROC at least 0.8 (the runner's own mark; the authors publish AUROCs on MIMIC-IV-ECG, not PTB-XL) for 12 of 13 classes, sinus rhythm 0.750 | 20 Nov record signed |

### 6.3 The other services VERA's code can call

| Service | Architecture (where checked) | 8 Nov check |
|---|---|---|
| AlphaMissense, GPN-Star (447 mammals), GPN-MSA | Served as look-ups of precomputed scores (tabix or Parquet); no network runs when they answer (deployment records) | Rows 5, 6, 7 |
| SpliceAI | Convolutional network, 5-model ensemble, on the CPU (publisher; register: "Small CNN") | Row 8 |
| ESM-2 650M, ESM C 600M | Transformer protein language models (publisher). VERA has them score the CYP2C19 substitutions AlphaMissense reports (the only protein VERA holds a sequence for) | Rows 4 (ESM-2) and 3 (ESM C) |
| scGPT | Transformer (deployment record) | Row 15 |
| Geneformer | Transformer (publisher) | Row 16 |
| MAP | STATE SE-600M cell encoder, MoleculeSTM drug encoder and a 4-layer transformer (deployment record) | Row 19 |
| Prosit (Koina) | Recurrent network with GRU layers; one Triton server holding 77 models, of which VERA's code names 2 (deployment record) | Row 20 |
| MS2DeepScore | Siamese neural network (deployment record) | Row 21 |
| DreaMS | Transformer (deployment record) | Row 22 |
| TabPFN v2 | Transformer, in-context (publisher) | Row 26 |
| ECGFounder | Net1D, a 1-D convolutional network (deployment record) | Row 28 |
| DeepVariant (Parabricks) | Convolutional classifier over read pileups, run as TensorRT engines (publisher; deployment record) | Row 9 |
| Clair3 | Pileup and full-alignment neural networks in PyTorch (deployment record; layer types not checked here) | Row 11 |
| Dorado | Neural basecaller (layer types not checked here) | Row 10 |
| PharmCAT, StellarPGx, pgsc_calc, MetaPhlAn, sylph, HUMAnN | No neural network: allele matching, graph genotyping, weighted sums of allele dosages, marker genes, k-mer containment, read mapping (deployment records) | Rows 12, 13, 14, 23, 24, 25 |
| VERA Fusion Net v0.2 (Prepaire's own) | Transformer, 1,281,043 parameters, trained on NHANES on GB10 (`vera-fusion-net` at commit `b9085d7`, `reports/v0.2-evaluation.md`, SHA-256 `00f3843567de8063af8ebce7569fb05db967b0defc770af6e168517b32557fa8`) | Registered 9 Nov, synthetic smoke test. On its locked test set Harrell C is 0.877 against 0.873 for a linear Cox model on the same data, +0.003 (−0.000 to +0.007): its own report finds "no clear gain". This was the second scoring of the locked test set, after a review read v0.1's test results, so the numbers are not fully independent (`v0.2-evaluation.md` l.7). The graph embeddings changed validation C from 0.8762 to 0.8770 (5 seeds, SD about 0.001; `v0.2-evaluation.md` l.110): no measurable gain. Re-scored on spark-12b5 (GB10) on 20 Nov, run `fusionnet-20261120t164311z-7fbe6b01` (`model/fusionnet` at `4f58e5c`): all 465 numbers identical to the 8 Nov scoring; recorded, not of the run contract (its weights are not published), so kept out of the ledger by design |
| gpt-oss-20b (OpenAI, open weights) | Mixture-of-experts transformer, 21B parameters, 3.6B active (deployment record) | Registered 9 Nov, synthetic smoke test |
| Evo 2 40B | 50 blocks, 42 convolution and 8 attention (configuration) | Failed, not served: 82.25 GB of weights do not fit beside the other services |
| gpt-oss-120b | Mixture-of-experts transformer (publisher) | Failed, not served: not reachable from the production DGX Spark |

Of the 21 networks served on 8 and 9 Nov, the audit counts 7 that contain convolutions: SpliceAI, DeepVariant,
ECGFounder, Pulse-PPG, Clair3, Dorado and Evo 2 (`models.md` section 4.9). For Clair3 and Dorado that count rests on
the publishers' descriptions.

## 7. Rerun it

The audit's scripts are in `scripts/evidence`, with their own `README.md`. From the repository root:

```bash
bash scripts/evidence/rerun.sh                                  # against the App Store copy
npm ci; npm run dev                                             # a local copy, on http://localhost:8010
LIVE=http://localhost:8010 bash scripts/evidence/rerun.sh "" <prepaire-reference-kg checkout with build/commercial/csv>
python3 -I scripts/evidence/import_graph.py .
npx vitest run src/lib/personal-ranges/model.test.ts src/lib/indices/formulas.test.ts src/lib/lab/qc/westgard.test.ts src/lib/organ-age/paper-method.test.ts src/lib/organ-age/lab-crosscheck.test.ts src/lib/personal-ranges/explain-check.test.ts src/app/documentation/how-vera-computes.test.ts
```

Checks 13 and 14 run where the reference-graph repository (`prepaire-reference-kg`) with its built CSVs is at hand;
elsewhere the script runs the other checks.

| What it shows | Check | Answer on 20 Nov 2026 |
|---|---|---|
| No language-model or ML library in the application's JavaScript dependencies | 2 | none (the authoring-only voice tools are listed apart: `onnxruntime` and `kokoro-onnx` in `scripts/requirements-voice.txt`) |
| Models admitted to a person's graph | 6 | 0 |
| Result-path modules that cannot reach a model client | 7 | 17 of 22 |
| The copy's model gateway | 8 | `configured: false`, 0 tiles |
| Who read each value of the sample reports | 9 | the parser, 65 of 65 |
| Model events in a full multi-omics run | 10 | 0 |
| Personal ranges recomputed from the formulas | 11 | 48 of 50 figures the same to at least 14 significant figures; the other 2 are band tops capped at the printed standard range |
| Laboratory tests in the graph with a link | 12, 13 | 173 of 242; 266 of 286,558 edges touch one |

`model.test.ts` checks the reference change value and the intervals against numbers worked out by hand from the cited
formulas and against the EFLM database's calculators. `formulas.test.ts` checks the 14 equations against separate
Python values. `lab-crosscheck.test.ts` checks the organ engine against the organ-age lab's separate Python
implementation on synthetic artefacts, to within 1e-9.

## 8. How the code was written

VERA is AI-assisted engineering: most commits were written with Anthropic's Claude as a coding assistant, and their
trailers say so. The assistant writes code; it is not part of what VERA runs.

| Fact | Command | Answer at `be5012cc` |
|---|---|---|
| Commits | `git rev-list --count be5012cc` | 1,257 |
| Merge commits among them | `git rev-list --count --merges be5012cc` | 141 |
| Commits with a `Co-Authored-By: Claude` trailer (merges included) | `git log --format=%B be5012cc \| grep -ci 'Co-Authored-By: Claude'` | 1,207 |
| Authored (non-merge) commits with the trailer | `git log --no-merges --format='%H %(trailers:key=Co-Authored-By,valueonly,separator=%x2C)' be5012cc \| grep -ci claude` | 1,086 of 1,116 |
| First commit | `git log --reverse --format=%ad be5012cc \| head -1` | 16 Aug 2026 |
| Commits from 1 to 20 Nov 2026 | `git log --format=%ad --date=short be5012cc \| grep -c '^2026-11'` | 1,227 |
| Commits named as a fix round | `git log --format=%s be5012cc \| grep -ciE 'fix round [0-9]+'` | 32 |

- **Who wrote and reviewed.** Of 1,116 authored commits, 1,086 carry the trailer. The other 30 are 13 CI, build and
  deployment fixes by a human engineer, 9 commits of the App Store's deployment automation, 6 early commits (16 Aug to
  7 Sep) from a shared developer account, one deployment commit by a second engineer and one revert. Each round is
  reviewed by separate AI reviewer agents and accepted by the founder; no human code review is recorded in git.
- **Review rounds.** Release 4 had five rounds, on 19 and 20 Nov ("Release 4, fix round 1" to "fix round 5"). The
  release line (`docs/RELEASE_LINE.md`) then tests the tagged release and runs the smoke run in its pipeline, and
  rehearses it before it is promoted: the Safari and iPad checks, a 10-minute pass, and the page-console check in
  Chromium and WebKit at 768, 1440 and 2560 px.
- **Tests.** The release 4 rehearsal on 20 Nov 2026 (06:17 GST) recorded 864 test files passed and 2 skipped, and
  8,482 tests passed and 14 skipped. Its log was kept in a temporary folder that the Mac's restart that day cleared;
  the figure is quoted from the audit (`gauss.md` section 8.4). The full suite on the branch that adds this document,
  run on 20 Nov 2026, gave 866 files passed and 2 skipped, and 8,499 tests passed and 14 skipped: the rehearsal's
  8,482, the 13 checks in `src/app/documentation/how-vera-computes.test.ts`, which hold this document's figures, files,
  cited lines and riskiest claims to the code, and the 4 number-check tests in
  `src/lib/personal-ranges/explain-check.test.ts`.

## 9. What this document rests on

- Every model run named here used synthetic or public reference data.
- What the DGX Spark machines ran is stated from their deployment and run records, each under its own day.
- Which tables count as signed is stated from the shipped files; an operational node's own approvals are in that
  node's database.
- Architectures of third-party models are as checked in the column that says so.
- The organ ages on the App Store copy come from a synthetic fixture with invented coefficients.
