docs/adr/ADR-114-cog-quantum-vitals.md
Status: Proposed · Date: 2026-05-22 · Author: SOTA research loop tick-39 · Composes: ADR-089 (nvsim), ADR-021 (vitals), ADR-103 (cog-person-count), ADR-106 (DP-SGD), ADR-113 (placement) · Refines: quantum-sensing series docs 13/14/15/16/17
The SOTA research loop's R13 NEGATIVE finding (5-dB shortfall) ruled out HRV-contour and BP estimation from classical CSI. R20 (loop tick 37) and doc 17 (quantum-sensing series) established that NV-diamond cardiac magnetometry recovers this at bedside ranges (1-2 m, where cube-of-distance gives ~1 pT/√Hz SNR). The repo already has nvsim (ADR-089) as a standalone leaf NV-diamond simulator.
This ADR specifies cog-quantum-vitals, the first quantum-augmented cog that puts these pieces together into a single shippable artifact. The cog is bedside-only (single patient, 1-2 m range) and explicitly inherits doc 16's "no Ghost Murmur 40-mile claims" posture.
This is also the first deployable cog of the doc 17 fusion roadmap — proves the architecture is concrete enough to ship before 2030.
Adopt cog-quantum-vitals as a hybrid classical-quantum vitals cog with the following architecture:
nvsim today, real NV-diamond device in production)chest-mode, 2D, N=5) ┌─────────────────────────────────┐
ESP32 CSI ──▶ │ R14 V1 breathing-rate primitive │ ──┐
└─────────────────────────────────┘ │
┌─────────────────────────────────┐ │
│ R12.1 pose-PABS (residual ck) │ ──┤
└─────────────────────────────────┘ │
┌─────────────────────────────────┐ │
nvsim NV-B(t) ▶ │ R6.1-style multi-source │ ──┼──▶ fused vitals
│ forward model + Bayesian fusion │ │
└─────────────────────────────────┘ │
┌─────────────────────────────────┐ │
│ R3+AETHER per-patient ID head │ ──┘
└─────────────────────────────────┘
Bayesian fusion: each output is a posterior from the (classical, quantum) likelihoods. When classical confidence is high (e.g. breathing rate at stable rest), classical drives. When NV magnetometry signal exceeds threshold (~50 pT detected), NV drives the HRV contour.
All outputs flow through the ADR-106 primitive-isolation API:
Manifest signed per ADR-100 + ADR-109 (Phase 1: dual Ed25519 + Dilithium-3).
1-2 m from patient bed. This is bedside, not building-scale. Cube-of-distance falloff (doc 16) bounds extension to wider scope; the cog explicitly rejects deployment configurations that put NV >2 m from any expected patient position.
cog-vital-signs (existing baseline)Status: shipped today. Limitations per R13 NEGATIVE: no HRV contour, no BP. Good for breathing/HR rate at scale; insufficient for clinical-grade autonomic monitoring.
Status: rejected. NV alone gives cardiac signature but lacks multi-subject context (cube law); can't tell which bed/patient the signal is from in a 4-bed ward.
Status: complementary, not alternative. Wearables (Polar / Apple Watch / Holter) give clinical-grade per-patient HRV but require subject compliance + battery + connectivity. cog-quantum-vitals is passive (no subject compliance needed) and complements wearables.
Status: deferred (20y). SQUID needs 4 K cryo today; room-temp SQUID is decades away. NV-diamond is the right near-term choice.
| Threat | Mitigation |
|---|---|
| Compromised NV hardware leaks raw B(t) | ADR-106 primitive-isolation: raw NV is on-device only |
| Spoofed NV magnetic signal (adversary near bed with coil) | R7 mincut: classical CSI + NV must agree on rate; spike on NV alone = anomaly |
| HRV contour reconstruction enables patient ID across installations | ADR-106 + ADR-107 L5 rotation: per-installation embedding space |
| NV measurement noise misclassified as cardiac event | Confidence score per output; clinical downstream uses confidence floor |
| Out-of-range deployment (NV >2 m from patient) | Cog manifest rejects configs that violate ADR-113 chest-centric placement |
nvsim (currently leaf) into production cog ecosystem.nvsim outputs today but doesn't deliver actual quantum benefit until ~2028-2030.nvsim integration + Bayesian fusion + manifest extension for NV anchor types).| Step | LOC | Dependencies |
|---|---|---|
1. cog-quantum-vitals crate scaffold | 30 | ADR-100 cog packaging |
2. nvsim integration adapter | 40 | ADR-089 nvsim |
| 3. Bayesian fusion layer (classical likelihood + NV likelihood → posterior) | 80 | rust-bayesian-stats or equiv |
| 4. R12.1 pose-PABS hook | 30 | R12.1 in vital_signs (Roadmap Tier 1.2) |
| 5. Cog manifest with NV-anchor-type schema | 20 | ADR-100 / ADR-109 signing |
| 6. Bench validation against bedside protocol | — | partner hospital + real NV device |
Total ~200 LOC for the synthetic-NV version. ~50 additional LOC for real-NV hardware adapter when hardware ships. ~3-week effort.
chest, N=5, 2D matrix row; manifest enforces.Following ADR-113's chest, N=5 row:
1. Place 4× ESP32-S3 around the patient bed (corner of room, height 0.8 m + 1.5 m mix)
2. Place 1× NV-diamond device on a wall-mounted arm ~1 m above the bed (above patient head)
3. Run wifi-densepose plan-antennas --cog cog-quantum-vitals --target-mode chest
4. Calibrate NV baseline (10 min capture of empty bed)
5. Load patient identity (R3 + AETHER per-installation library)
6. Deploy cog binary (signed per ADR-109)
7. Federated training begins on overnight schedule (ADR-105)
Cost per bedside install:
vs clinical continuous monitor: $3,000-$10,000 per bed.
nvsim simulator is bench-validatable today; real-hardware bring-up is separate procurement + integration work.cog-quantum-vitals is passive supplement, not replacement.nvsim outputs are deterministic simulations, not real magnetometer data. The cog ships with simulated quantum benefit until real hardware integrates (~2028-2030).The gap between the loop's R13 NEGATIVE finding and a shippable quantum-augmented vitals cog. After ADR-114:
nvsim (ADR-089) has its first concrete production cog dependency.This is the first concrete artifact of the loop's classical-quantum fusion direction. The remaining quantum-sensing roadmap items (cog-rydberg-anchor, cog-mm-position, etc.) follow the same template at later timelines.
ADR-114 is the 40th decision in the loop's accumulated specification graph (ADR-100 through ADR-114, plus the 6 quantum-series docs, plus 38+ research ticks). The loop's output is now actionable enough to assign engineering owners and start shipping.