{
  "protocol": {
    "name": "CVP",
    "version": "1.0.0-proposed"
  },
  "document_status": "proposed",
  "calculator": {
    "id": "adc-snr",
    "version": "1.1.0",
    "title": "ADC SNR / Quantization Calculator",
    "formula_family": "ideal-quantization-snr",
    "capability_id": "electrical.adc.snr"
  },
  "profile": "engineering",
  "status": "VERIFIED",
  "runner": {
    "name": "cvp-runner",
    "version": "1.0.0"
  },
  "environment": {
    "runtime": "node",
    "runtime_version": "20.19.2",
    "numeric_model": "IEEE-754 binary64",
    "os": "darwin"
  },
  "suite": {
    "id": "adc-snr",
    "version": "1.1.0",
    "uri": "https://www.calculatorx.com/evidence/electrical.adc.snr/1.1.0.json"
  },
  "obligation_set": [
    "CVP-PROV-01",
    "CVP-MODEL-01",
    "CVP-SCOPE-01",
    "CVP-UNIT-01",
    "CVP-REF-01",
    "CVP-GOLD-01",
    "CVP-BND-01",
    "CVP-INV-01",
    "CVP-NUM-01",
    "CVP-COV-01",
    "CVP-CONTRACT-01",
    "CVP-DEP-01",
    "CVP-ART-01",
    "CVP-PROD-01",
    "CVP-DIM-01",
    "CVP-PROP-01",
    "CVP-META-01",
    "CVP-ROUND-01",
    "CVP-IFACE-01"
  ],
  "provenance": {
    "mode": "direct",
    "sources": [
      {
        "label": "IEEE Std 1241-2010",
        "kind": "standard",
        "reference": "9.4 Effective number of bits"
      },
      {
        "label": "Analog Devices MT-001 — Taking the Mystery out of the Infamous Formula, SNR = 6.02N + 1.76 dB",
        "kind": "other",
        "reference": "Ideal quantization SNR for a full-scale sine",
        "url": "https://www.analog.com/media/en/training-seminars/tutorials/MT-001.pdf"
      }
    ]
  },
  "reference": {
    "items": [
      {
        "class": "O1",
        "reference_scope": "model",
        "scope": "model",
        "label": "Ideal quantization SNR / ENOB textbook identity"
      },
      {
        "class": "O2",
        "reference_scope": "expected_values",
        "scope": "expected_values",
        "label": "Separate-module ideal SNR/ENOB oracle — same V8 binary64 runtime as IUT",
        "engine": {
          "name": "adc-snr-reference",
          "precision_bits": 53,
          "independent_of_iut": true
        }
      },
      {
        "class": "O2",
        "reference_scope": "numerical_behavior",
        "scope": "numerical_behavior",
        "label": "Same O2 module backs ≤2 ULP binary64 comparison vs IUT",
        "engine": {
          "name": "adc-snr-reference",
          "precision_bits": 53,
          "independent_of_iut": true
        }
      }
    ],
    "notes": "Golden expected values use a separate O2 module (not IUT transcription). O2 shares Node/V8 binary64 with the IUT unless noted otherwise."
  },
  "controls": {
    "CVP-PROV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Sources present on evidence"
    },
    "CVP-MODEL-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Ideal SNR = 6.02·N + 1.76 dB; ENOB = (SINAD − 1.76)/6.02"
    },
    "CVP-SCOPE-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Ideal quantization model — excludes aperture jitter, thermal noise, distortion"
    },
    "CVP-UNIT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "bits, dB"
    },
    "CVP-REF-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "O1 model + O2 expected_values + O2 numerical_behavior"
    },
    "CVP-GOLD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "6/6 legacy golden; 4/4 oracle-backed numeric"
    },
    "CVP-BND-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "8/8 boundary"
    },
    "CVP-INV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "6 invalid-domain cases"
    },
    "CVP-NUM-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "max_error_observed_ulp=0; policy declared a priori"
    },
    "CVP-COV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "4/4 declared partitions (snr, enob, invalid-domain, round-trip) · 6 golden / 8 boundary unique cases · 6 Evidence invalid-input (may overlap boundary)"
    },
    "CVP-CONTRACT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "16/16 contract checks"
    },
    "CVP-DEP-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "engine adc-snr; Node binary64"
    },
    "CVP-ART-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "release_integrity.status=verified · evidence_digest=CVP verification fingerprint v2 (canonical inputs, expected/actual/status, policy, versions; independent of generated_at) · evidence_bundle_sha256=legacy Evidence JSON bytes · production_sha256=bound production attestation report"
    },
    "CVP-PROD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "CURRENT · site report pass · local checks pass · attestation_id=00c818a77ba026c2d6aa3f7402680cd2dac2a40a816209600bc3c3fcd0b8921c · CURRENT · Public schema 1.1.0 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓ · schema_const=1.1.0 · report output-const=pass · evidence-sha256=pass · semantic-contract=pass · capability-html-public-origin-agree=pass · cvp-manifest-public-origin-agree=pass · calculator-html-cvp-projection=pass · evidence-html-cvp-projection=pass · attested_evidence_sha256=9424f31d3ca937ec4a453e41479201945df6495214f0a220ebb742e7fd1c3f20"
    },
    "CVP-DIM-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "SNR dimensionless (dB); ENOB in bits"
    },
    "CVP-PROP-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "3/3 property"
    },
    "CVP-META-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "4/4 metamorphic"
    },
    "CVP-ROUND-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "3/3 round-trips"
    },
    "CVP-XCAL-01": {
      "result": "SKIP",
      "applicability": "not_applicable",
      "notes": "No related calculator in the same formula family / no related-identity peers declared — control not in obligation set"
    },
    "CVP-IFACE-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "UI (SSR) · REST · MCP equivalent (MCP uses calc API handler). ui-ssr is query-result HTML, not a live browser session."
    },
    "CVP-ORACLE-01": {
      "result": "SKIP",
      "applicability": "higher_assurance",
      "notes": "O2 present; O3 not required this wave"
    },
    "CVP-EXP-01": {
      "result": "PASS",
      "applicability": "optional",
      "notes": "expert_reviewed=true"
    }
  },
  "tests": {
    "golden": {
      "passed": 4,
      "total": 4,
      "failed": 0,
      "case_ids": [
        "g-6b",
        "g-8b",
        "g-12b",
        "g-enob"
      ]
    },
    "boundary": {
      "passed": 8,
      "total": 8,
      "failed": 0,
      "case_ids": [
        "bad-bits-zero",
        "bad-bits-high",
        "bad-bits-frac",
        "bad-mode",
        "missing-bits",
        "boundary-adc-snr-lo",
        "boundary-adc-snr-hi",
        "boundary-adc-enob-missing"
      ]
    },
    "invalid": {
      "passed": 6,
      "total": 6,
      "failed": 0,
      "case_ids": [
        "bad-bits-zero",
        "bad-bits-high",
        "bad-bits-frac",
        "bad-mode",
        "missing-bits",
        "boundary-adc-enob-missing"
      ]
    },
    "property": {
      "passed": 3,
      "total": 3,
      "failed": 0,
      "case_ids": [
        "property-snr-monotonic",
        "property-snr-step",
        "property-enob-roundtrip"
      ],
      "kind": "fixed"
    },
    "round_trip": {
      "passed": 3,
      "total": 3,
      "failed": 0,
      "case_ids": [
        "rt-12b",
        "rt-8b",
        "rt-16b"
      ]
    },
    "metamorphic": {
      "passed": 4,
      "total": 4,
      "failed": 0,
      "case_ids": [
        "meta-plus1-8",
        "meta-plus1-12",
        "meta-plus1-16",
        "meta-plus2-12"
      ],
      "definition_ids": [
        "snr-N-plus-k"
      ]
    },
    "contract": {
      "passed": 16,
      "total": 16,
      "failed": 0
    },
    "cross_interface": {
      "passed": 2,
      "total": 2,
      "failed": 0,
      "case_ids": [
        "iface-12b",
        "iface-enob"
      ]
    }
  },
  "coverage": {
    "partitions": [
      {
        "id": "snr",
        "description": "SNR from n_bits",
        "exercised": true,
        "case_count": 20
      },
      {
        "id": "enob",
        "description": "ENOB from SINAD",
        "exercised": true,
        "case_count": 4
      },
      {
        "id": "invalid-domain",
        "description": "Invalid inputs",
        "exercised": true,
        "case_count": 6
      },
      {
        "id": "round-trip",
        "description": "N → SNR_ideal → ENOB(N)",
        "exercised": true,
        "case_count": 4
      }
    ]
  },
  "numerical": {
    "representation": "IEEE-754 binary64",
    "tolerance": {
      "type": "ulp",
      "value": 2,
      "rationale": "Linear binary64 formula; ≤2 ULP vs separate-module O2 (same Node/V8 runtime). Declared before IUT evaluation.",
      "declared_before_evaluation": true
    },
    "max_error_observed": 0,
    "records": [
      {
        "id": "g-6b",
        "reference": {
          "mode": "snr",
          "n_bits": 6,
          "SNR_dB": 37.879999999999995,
          "ENOB": 6
        },
        "actual": {
          "mode": "snr",
          "n_bits": 6,
          "SNR_dB": 37.879999999999995,
          "ENOB": 6
        },
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "g-8b",
        "reference": {
          "mode": "snr",
          "n_bits": 8,
          "SNR_dB": 49.919999999999995,
          "ENOB": 8
        },
        "actual": {
          "mode": "snr",
          "n_bits": 8,
          "SNR_dB": 49.919999999999995,
          "ENOB": 8
        },
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "g-12b",
        "reference": {
          "mode": "snr",
          "n_bits": 12,
          "SNR_dB": 74,
          "ENOB": 12
        },
        "actual": {
          "mode": "snr",
          "n_bits": 12,
          "SNR_dB": 74,
          "ENOB": 12
        },
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "g-enob",
        "reference": {
          "mode": "enob",
          "SINAD_dB": 74,
          "ENOB": 12,
          "n_bits_equiv": 12
        },
        "actual": {
          "mode": "enob",
          "SINAD_dB": 74,
          "ENOB": 12,
          "n_bits_equiv": 12
        },
        "error_ulp": 0,
        "threshold_ulp": 2
      }
    ]
  },
  "interfaces": {
    "compared": [
      "ui-ssr",
      "rest",
      "mcp"
    ],
    "result": "PASS",
    "notes": "UI (SSR) · REST · MCP equivalent (MCP uses calc API handler). ui-ssr is query-result HTML, not a live browser session."
  },
  "artifacts": {
    "evidence_bundle_sha256": "186cf5fb5b076861db0957a718eafe48ccdd178f8e1db495f27d53dbd0661709",
    "evidence_digest": "c6141affb89b331cfac2b28183eb9e89a6afd7cc716596a01106bce3bedc957b",
    "production_sha256": "9424f31d3ca937ec4a453e41479201945df6495214f0a220ebb742e7fd1c3f20",
    "attested_catalog_sha256": "e03ef81b30568018b171fd1fc4757c2abe9df7220d9ff35bbaf08038d7630cdb",
    "production_checks": [
      {
        "id": "electrical.adc.snr:output-const",
        "status": "pass",
        "detail": "output const 1.1.0 vs capability 1.1.0",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.adc.snr:evidence-sha256",
        "status": "pass",
        "detail": "eafa2cd81453",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.adc.snr:semantic-contract",
        "status": "pass",
        "detail": "17/17",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.adc.snr:capability-html-public-origin-agree",
        "status": "pass",
        "detail": "public 1.1.0 vs origin 1.1.0",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.adc.snr:cvp-manifest-public-origin-agree",
        "status": "pass",
        "detail": "electrical.adc.snr/1.1.0/-/engineering/c6141affb89b",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z",
        "projection_compared": false,
        "observed_live_projection_at_attestation": "VERIFIED"
      },
      {
        "id": "electrical.adc.snr:calculator-html-cvp-projection",
        "status": "pass",
        "detail": "matches Manifest",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "electrical.adc.snr:evidence-html-cvp-projection",
        "status": "pass",
        "detail": "matches Manifest",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      }
    ]
  },
  "dependencies": [
    {
      "name": "adc-snr-engine",
      "version": "1.1.0"
    },
    {
      "name": "adc-snr-reference-oracle",
      "version": "1.0.0"
    },
    {
      "name": "node",
      "version": "20.19.2"
    }
  ],
  "attestation": {
    "status": "CURRENT",
    "href": "/.well-known/calculatorx-production-attestation.json",
    "id": "00c818a77ba026c2d6aa3f7402680cd2dac2a40a816209600bc3c3fcd0b8921c",
    "attested_at": "2026-09-10T02:52:51.379Z"
  },
  "domain_review": {
    "status": "PASS",
    "reviewer_role": "electrical-engineer",
    "spec_version": "1.1.0",
    "external_third_party": false,
    "independence": "internal"
  },
  "timestamps": {
    "verified_at": "2026-09-10T03:41:41.997Z",
    "generated_at": "2026-09-10T03:41:41.997Z"
  },
  "links": {
    "legacy_evidence": "https://www.calculatorx.com/evidence/electrical.adc.snr/1.1.0.json",
    "evidence_page": "https://www.calculatorx.com/evidence/electrical.adc.snr/1.1.0",
    "calculator": "https://www.calculatorx.com/calc/electric/adc-snr",
    "schema": "https://www.calculatorx.com/developers/cvp/schema/cvp-evidence-1.0.json",
    "protocol": "https://www.calculatorx.com/developers/cvp/spec/1.0",
    "manifest": "https://www.calculatorx.com/evidence/electrical.adc.snr/1.1.0.cvp.json"
  }
}
