{
  "protocol": {
    "name": "CVP",
    "version": "1.0.0-proposed",
    "revision": "2026-09-13",
    "spec_sha256": "f62725968356c92930531cd6085db76e216da06e95be53d636b0d2cf3218b148",
    "spec": "https://www.calculatorx.com/developers/cvp/spec/1.0"
  },
  "document_status": "proposed",
  "calculator": {
    "id": "add",
    "version": "1.0.2",
    "title": "Sum Calculator",
    "formula_family": "summation",
    "capability_id": "math.sum",
    "verification_revision": "2026-09-16.sources-no-wolfram"
  },
  "profile": "core",
  "status": "VERIFIED",
  "verification_status": "VERIFIED",
  "production_freshness": "CURRENT",
  "overall_trust": "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": "add",
    "version": "1.0.2",
    "uri": "https://www.calculatorx.com/evidence/math.sum/1.0.2.json",
    "verification_revision": "2026-09-16.sources-no-wolfram"
  },
  "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-PROP-01",
    "CVP-META-01",
    "CVP-IFACE-01"
  ],
  "provenance": {
    "mode": "direct",
    "sources": [
      {
        "label": "OpenStax Prealgebra 2e — Add Whole Numbers",
        "kind": "other",
        "reference": "1.2 Place-value addition",
        "url": "https://openstax.org/books/prealgebra-2e/pages/1-2-add-whole-numbers"
      },
      {
        "label": "OpenStax Prealgebra 2e — Add Integers",
        "kind": "other",
        "reference": "3.2 Signed addition",
        "url": "https://openstax.org/books/prealgebra-2e/pages/3-2-add-integers"
      },
      {
        "label": "CalculatorX mathematical conventions",
        "kind": "other",
        "reference": "Neumaier compensated summation for scientific-notation lists"
      }
    ]
  },
  "reference": {
    "items": [
      {
        "class": "O1",
        "reference_scope": "model",
        "scope": "model",
        "label": "Sum of a list of real numbers"
      },
      {
        "class": "O2",
        "reference_scope": "expected_values",
        "scope": "expected_values",
        "label": "Separate-module sum oracle — independent exact-rational list sum (not IUT transcription; not shared IEEE-754 accumulation)",
        "engine": {
          "name": "sum-reference",
          "independent_of_iut": true,
          "same_runtime_as_iut": true,
          "runtime": "node",
          "numeric_model": "exact_rational_sum",
          "algorithms": [
            "exact-rational-decimal",
            "exact-rational-scientific-rounded-binary64",
            "long-addition-domain"
          ],
          "arithmetic": "BigInt rationals (plain decimal, scientific mantissa×10^e, long domain)",
          "comparison": "exact_equality (sumStr) or ≤2 ULP (scientific value)"
        }
      },
      {
        "class": "O2",
        "reference_scope": "numerical_behavior",
        "scope": "numerical_behavior",
        "label": "Same O2 module backs exact sumStr identity for plain/long and ≤2 ULP vs exact-rational rounded binary64 for scientific-notation lists",
        "engine": {
          "name": "sum-reference",
          "independent_of_iut": true,
          "same_runtime_as_iut": true,
          "runtime": "node",
          "numeric_model": "exact_rational_sum",
          "algorithms": [
            "exact-rational-decimal",
            "exact-rational-scientific-rounded-binary64",
            "long-addition-domain"
          ],
          "arithmetic": "BigInt rationals (plain decimal, scientific mantissa×10^e, long domain)",
          "comparison": "exact_equality (sumStr) or ≤2 ULP (scientific value)"
        }
      }
    ],
    "notes": "Golden expected values use a separate O2 module (not IUT transcription). The oracle sums exact BigInt rationals (plain decimals and scientific mantissa×10^e). Plain/long goldens require sumStr identity. Scientific goldens compare IUT Neumaier value to that rational rounded to binary64 (≤2 ULP). O2 shares Node with the IUT for rounding only. O3 is not claimed this wave. mean_exact is a compatibility alias of mean_rational_exact (exact rational source), not a claim that JSON mean is exact — prefer mean_rational_exact and mean_numeric_approximate. Exact-decimal chart[] is Number(exact prefix sumStr); scientific chart[] is binary64 visualization (chart_model)."
  },
  "controls": {
    "CVP-PROV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Sources present on evidence"
    },
    "CVP-MODEL-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "exact decimal list sum; Neumaier for scientific-notation lists; long addition for non-negative decimals"
    },
    "CVP-SCOPE-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Declared partitions are sum-exact-decimal, sum-scientific, long-integer, long-decimal, invalid-domain — aligned with published algorithms (exact-decimal vs Neumaier) and Long addition integer/decimal work. O2 checks numeric totals; column-work strings are not an independent numerical claim."
    },
    "CVP-UNIT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "unit-agnostic (inputs should share a unit; the sum inherits it; units are not parsed)"
    },
    "CVP-REF-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "O1 model + O2 expected_values / numerical_behavior (exact rationals; Node used only to round scientific sums to binary64)"
    },
    "CVP-GOLD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "24/24 legacy golden; 10/10 oracle-backed numeric"
    },
    "CVP-BND-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "6/6 CVP boundary · 7/7 legacy Evidence boundary"
    },
    "CVP-INV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "6 Evidence illegal-input + 3/3 oracle-backed error-code (exact_error_match, not ULP)"
    },
    "CVP-NUM-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Plain-decimal and long-addition goldens: exact sumStr identity vs independent BigInt rationals. Scientific-notation goldens: ≤2 ULP on value vs the same exact rational rounded to binary64. Tabulated vectors only — not a whole-domain ≤2 ULP guarantee, including unlisted cancellation or mixed-format lists. Legacy Evidence `tol` is not this policy."
    },
    "CVP-COV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "5/5 declared partitions (sum-exact-decimal, sum-scientific, long-integer, long-decimal, invalid-domain) · 24 legacy golden / 6 CVP boundary unique cases · 6 Evidence invalid-input (may overlap boundary)"
    },
    "CVP-CONTRACT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "3/3 CVP contract"
    },
    "CVP-DEP-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "engine sum; Node binary64"
    },
    "CVP-ART-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "release_integrity.status=verified · digests: artifact_evidence_sha256=Evidence core (Trust freshness) · cvp_evidence_digest=artifacts.evidence_digest (fingerprint v2) · evidence_bundle_sha256=legacy Evidence JSON bytes · evidence_catalog_digest=attested_catalog_sha256 · production_sha256=bound production report · see artifacts.digest_registry"
    },
    "CVP-PROD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "this calculator CURRENT · bound snapshot pass @ 2026-09-16T06:43:50.908Z · live site-wide report stale @ 2026-09-16T06:44:04.926Z (4 other capabilities) · local checks pass · attestation_id=9864b02dd59e627629179439ae27934aea8c6fd24193702e66c56019c5e3e050 · This calculator CURRENT · This calculator is not affected · Bound attestation PASS @ 2026-09-16T06:43:50.908Z · Live production status STALE (4 capabilities; 160 remain CURRENT) @ 2026-09-16T06:44:04.926Z · Public schema 1.0.2 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓ · schema_const=1.0.2 · report output-const=pass · evidence-sha256=pass · semantic-contract=pass · capability-html-public-origin-agree=pass · cvp-manifest-public-origin-agree=pass · cvp-latest-alias-agrees=pass · cvp-immutable-manifest-fetch=pass · cvp-immutable-manifest-sha256=pass · cvp-latest-alias-matches-immutable=pass · calculator-html-cvp-projection=pass · evidence-html-cvp-projection=pass · attested_evidence_sha256=31e075dd2788e7c13520557df716a4e118f4844aca3908f8b06acf4a41fad0cc · verified_at=2026-09-16T06:43:07.596Z · evidence_attested_at=2026-09-16T06:43:07.596Z · last_confirmed_current_at=2026-09-16T06:43:50.908Z · rendered_at=2026-09-16T06:44:04.967Z · binds=cvp_core_sha256",
      "check_result": "PASS",
      "production_state": "CURRENT",
      "binding_current": true
    },
    "CVP-DIM-01": {
      "result": "SKIP",
      "applicability": "not_applicable",
      "notes": "Unit-agnostic core calculator — units are not parsed; no physical dimension algebra"
    },
    "CVP-PROP-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "3/3 property"
    },
    "CVP-META-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "1/1 metamorphic"
    },
    "CVP-ROUND-01": {
      "result": "SKIP",
      "applicability": "not_applicable",
      "notes": "No inverse / round-trip vectors in pack — control not in obligation set"
    },
    "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. Error-path engine·REST·MCP 1/1 (status, code, calculation_version). SSR compared on URL-canonical requested calculations; empty query is idle (not an error) and JSON-typed object/array inputs are REST/MCP-only."
    },
    "CVP-ORACLE-01": {
      "result": "SKIP",
      "applicability": "higher_assurance",
      "notes": "O2 present; O3 not required this wave"
    },
    "CVP-EXP-01": {
      "result": "SKIP",
      "applicability": "optional",
      "notes": "named expert review not performed"
    }
  },
  "tests": {
    "golden": {
      "passed": 10,
      "total": 10,
      "failed": 0,
      "case_ids": [
        "g-sum-123",
        "g-sum-0p1-0p2",
        "g-sum-mixed-mean",
        "g-sum-cancel",
        "g-sum-sci",
        "g-sum-sci-tiny",
        "g-sum-sci-cancel",
        "g-sum-sci-mixed",
        "g-long-int",
        "g-long-dec"
      ]
    },
    "boundary": {
      "passed": 6,
      "total": 6,
      "failed": 0,
      "case_ids": [
        "thousands-separator-warning",
        "empty",
        "invalid-token",
        "long-negative",
        "long-scientific",
        "boundary-sum-missing"
      ]
    },
    "invalid": {
      "passed": 9,
      "total": 9,
      "failed": 0,
      "case_ids": [
        "empty",
        "invalid-token",
        "long-negative",
        "long-scientific",
        "invalid-mode",
        "boundary-sum-missing",
        "g-inv-missing",
        "g-inv-long-neg",
        "g-inv-long-sci"
      ],
      "comparison": "exact_error_match",
      "records": [
        {
          "id": "g-inv-missing",
          "comparison": "exact_error_match",
          "expected": {
            "code": "MISSING_REQUIRED_INPUT"
          },
          "actual": {
            "code": "MISSING_REQUIRED_INPUT"
          },
          "match": true
        },
        {
          "id": "g-inv-long-neg",
          "comparison": "exact_error_match",
          "expected": {
            "code": "VALUE_MUST_BE_NON_NEGATIVE"
          },
          "actual": {
            "code": "VALUE_MUST_BE_NON_NEGATIVE"
          },
          "match": true
        },
        {
          "id": "g-inv-long-sci",
          "comparison": "exact_error_match",
          "expected": {
            "code": "UNSUPPORTED_FORMAT"
          },
          "actual": {
            "code": "UNSUPPORTED_FORMAT"
          },
          "match": true
        }
      ]
    },
    "property": {
      "passed": 3,
      "total": 3,
      "failed": 0,
      "case_ids": [
        "prop-zero",
        "prop-assoc",
        "prop-exact-0p1-0p2"
      ],
      "definition_ids": [
        "empty-not-here",
        "order-insensitive",
        "exact-decimal-sumStr"
      ]
    },
    "round_trip": {
      "passed": 0,
      "total": 0,
      "failed": 0,
      "case_ids": []
    },
    "metamorphic": {
      "passed": 1,
      "total": 1,
      "failed": 0,
      "case_ids": [
        "meta-scale"
      ],
      "definition_ids": [
        "scale-all"
      ]
    },
    "contract": {
      "passed": 3,
      "total": 3,
      "failed": 0
    },
    "cross_interface": {
      "passed": 6,
      "total": 6,
      "failed": 0,
      "case_ids": [
        "iface-sum",
        "iface-0p1-0p2",
        "iface-sci",
        "iface-long",
        "iface-long-dec",
        "iface-err-long-neg"
      ]
    }
  },
  "coverage": {
    "partitions": [
      {
        "id": "sum-exact-decimal",
        "description": "Sum mode, plain decimals — exact base-10 addition (no scientific notation)",
        "exercised": true,
        "case_count": 25
      },
      {
        "id": "sum-scientific",
        "description": "Sum mode with a scientific-notation token — Neumaier compensated IEEE-754",
        "exercised": true,
        "case_count": 8
      },
      {
        "id": "long-integer",
        "description": "Long addition of non-negative integers (no decimal point)",
        "exercised": true,
        "case_count": 3
      },
      {
        "id": "long-decimal",
        "description": "Long addition of non-negative decimals (place-value columns)",
        "exercised": true,
        "case_count": 3
      },
      {
        "id": "invalid-domain",
        "description": "Missing values, invalid tokens, long-mode negatives / scientific notation, invalid mode",
        "exercised": true,
        "case_count": 9
      }
    ]
  },
  "numerical": {
    "representation": "exact decimal-string identity (plain/long); IEEE-754 binary64 vs exact-rational sum (scientific-notation lists)",
    "tolerance": {
      "type": "ulp",
      "value": 2,
      "rationale": "Scientific-notation lists: ≤2 ULP on value vs independent exact-rational sum rounded to binary64. Plain decimal and long addition use exact sumStr identity (ULP not applicable). Declared a priori.",
      "declared_before_evaluation": true
    },
    "claim_scope": "Plain-decimal and long-addition goldens: exact sumStr identity vs independent BigInt rationals. Scientific-notation goldens: ≤2 ULP on value vs the same exact rational rounded to binary64. Tabulated vectors only — not a whole-domain ≤2 ULP guarantee, including unlisted cancellation or mixed-format lists.",
    "max_error_observed": 1,
    "records": [
      {
        "id": "g-sum-123",
        "reference": {
          "mode": "sum",
          "algorithm": "exact-decimal",
          "count": 3,
          "value": 6,
          "sum": 6,
          "sumStr": "6",
          "exact": "6"
        },
        "actual": {
          "mode": "sum",
          "algorithm": "exact-decimal",
          "count": 3,
          "values": [
            1,
            2,
            3
          ],
          "tokens": [
            "1",
            "2",
            "3"
          ],
          "sum": 6,
          "value": 6,
          "sumStr": "6",
          "mean": 2,
          "mean_exact": true,
          "mean_rational_exact": true,
          "mean_numeric_approximate": false,
          "mean_num": "6",
          "mean_den": "3",
          "mean_display": "2",
          "mean_approx": false,
          "formula": "Σ xᵢ",
          "heading": "Sum",
          "mode_label": "Sum",
          "explainer": "Count 3 · Mean 2",
          "inputs_summary": "1 + 2 + 3",
          "display": {
            "value": "6",
            "sum": "6",
            "mean": "2"
          },
          "work": null,
          "chart": [
            1,
            3,
            6
          ],
          "chart_model": "exact-decimal",
          "calculation_version": "1.0.2",
          "warnings": []
        },
        "criterion": "actual sumStr === independent exact-rational decimal string (plain decimal and long addition)",
        "match": true,
        "digits": 1,
        "reference_sha256": "e7f6c011776e8db7cd330b54174fd76f7d0216b612387a5ffcfb81e6f0919683",
        "actual_sha256": "e7f6c011776e8db7cd330b54174fd76f7d0216b612387a5ffcfb81e6f0919683",
        "fields": {
          "sumStr": {
            "ok": true,
            "match": true
          }
        },
        "suite": "golden"
      },
      {
        "id": "g-sum-0p1-0p2",
        "reference": {
          "mode": "sum",
          "algorithm": "exact-decimal",
          "count": 2,
          "value": 0.3,
          "sum": 0.3,
          "sumStr": "0.3",
          "exact": "0.3"
        },
        "actual": {
          "mode": "sum",
          "algorithm": "exact-decimal",
          "count": 2,
          "values": [
            0.1,
            0.2
          ],
          "tokens": [
            "0.1",
            "0.2"
          ],
          "sum": 0.3,
          "value": 0.3,
          "sumStr": "0.3",
          "mean": 0.15,
          "mean_exact": true,
          "mean_rational_exact": true,
          "mean_numeric_approximate": false,
          "mean_num": "3",
          "mean_den": "20",
          "mean_display": "0.15",
          "mean_approx": false,
          "formula": "Σ xᵢ",
          "heading": "Sum",
          "mode_label": "Sum",
          "explainer": "Count 2 · Mean 0.15",
          "inputs_summary": "0.1 + 0.2",
          "display": {
            "value": "0.3",
            "sum": "0.3",
            "mean": "0.15"
          },
          "work": null,
          "chart": [
            0.1,
            0.3
          ],
          "chart_model": "exact-decimal",
          "calculation_version": "1.0.2",
          "warnings": []
        },
        "criterion": "actual sumStr === independent exact-rational decimal string (plain decimal and long addition)",
        "match": true,
        "digits": 3,
        "reference_sha256": "221764976efe04132774d96b0253cc31434c5261737469324f222621baf34b20",
        "actual_sha256": "221764976efe04132774d96b0253cc31434c5261737469324f222621baf34b20",
        "fields": {
          "sumStr": {
            "ok": true,
            "match": true
          }
        },
        "suite": "golden"
      },
      {
        "id": "g-sum-mixed-mean",
        "reference": {
          "mode": "sum",
          "algorithm": "exact-decimal",
          "count": 9,
          "value": 256.25,
          "sum": 256.25,
          "sumStr": "256.25",
          "exact": "256.25"
        },
        "actual": {
          "mode": "sum",
          "algorithm": "exact-decimal",
          "count": 9,
          "values": [
            -66.25,
            -37.5,
            40,
            42,
            47,
            53,
            54,
            59,
            65
          ],
          "tokens": [
            "-66.25",
            "-37.5",
            "40",
            "42",
            "47",
            "53",
            "54",
            "59",
            "65"
          ],
          "sum": 256.25,
          "value": 256.25,
          "sumStr": "256.25",
          "mean": 28.47222222222222,
          "mean_exact": true,
          "mean_rational_exact": true,
          "mean_numeric_approximate": true,
          "mean_num": "25625",
          "mean_den": "900",
          "mean_display": "28.4722",
          "mean_approx": true,
          "formula": "Σ xᵢ",
          "heading": "Sum",
          "mode_label": "Sum",
          "explainer": "Count 9 · Mean ≈ 28.4722",
          "inputs_summary": "−66.25 + (−37.5) + 40 + 42 + 47 + 53 + 54 + 59 + 65",
          "display": {
            "value": "256.25",
            "sum": "256.25",
            "mean": "28.4722"
          },
          "work": null,
          "chart": [
            -66.25,
            -103.75,
            -63.75,
            -21.75,
            25.25,
            78.25,
            132.25,
            191.25,
            256.25
          ],
          "chart_model": "exact-decimal",
          "calculation_version": "1.0.2",
          "warnings": []
        },
        "criterion": "actual sumStr === independent exact-rational decimal string (plain decimal and long addition)",
        "match": true,
        "digits": 6,
        "reference_sha256": "86ba482681af9886df7d3619ab31c274f757764c4785a6588b713e0408308df9",
        "actual_sha256": "86ba482681af9886df7d3619ab31c274f757764c4785a6588b713e0408308df9",
        "fields": {
          "sumStr": {
            "ok": true,
            "match": true
          }
        },
        "suite": "golden"
      },
      {
        "id": "g-sum-cancel",
        "reference": {
          "mode": "sum",
          "algorithm": "exact-decimal",
          "count": 3,
          "value": 1,
          "sum": 1,
          "sumStr": "1",
          "exact": "1"
        },
        "actual": {
          "mode": "sum",
          "algorithm": "exact-decimal",
          "count": 3,
          "values": [
            10000000000000000,
            1,
            -10000000000000000
          ],
          "tokens": [
            "10000000000000000",
            "1",
            "-10000000000000000"
          ],
          "sum": 1,
          "value": 1,
          "sumStr": "1",
          "mean": 0.3333333333333333,
          "mean_exact": true,
          "mean_rational_exact": true,
          "mean_numeric_approximate": true,
          "mean_num": "1",
          "mean_den": "3",
          "mean_display": "0.3333",
          "mean_approx": true,
          "formula": "Σ xᵢ",
          "heading": "Sum",
          "mode_label": "Sum",
          "explainer": "Count 3 · Mean ≈ 0.3333",
          "inputs_summary": "10000000000000000 + 1 + (−10000000000000000)",
          "display": {
            "value": "1",
            "sum": "1",
            "mean": "0.3333"
          },
          "work": null,
          "chart": [
            10000000000000000,
            10000000000000000,
            1
          ],
          "chart_model": "exact-decimal",
          "calculation_version": "1.0.2",
          "warnings": []
        },
        "criterion": "actual sumStr === independent exact-rational decimal string (plain decimal and long addition)",
        "match": true,
        "digits": 1,
        "reference_sha256": "6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b",
        "actual_sha256": "6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b",
        "fields": {
          "sumStr": {
            "ok": true,
            "match": true
          }
        },
        "suite": "golden"
      },
      {
        "id": "g-sum-sci",
        "reference": {
          "mode": "sum",
          "algorithm": "neumaier",
          "count": 2,
          "value": 3000,
          "sum": 3000,
          "exact_num": "3000",
          "exact_den": "1"
        },
        "actual": {
          "mode": "sum",
          "algorithm": "neumaier",
          "count": 2,
          "values": [
            1000,
            2000
          ],
          "tokens": [
            "1e3",
            "2e3"
          ],
          "sum": 3000,
          "value": 3000,
          "sumStr": "3000",
          "mean": 1500,
          "mean_exact": false,
          "mean_rational_exact": false,
          "mean_numeric_approximate": true,
          "mean_num": null,
          "mean_den": null,
          "mean_display": "1500",
          "mean_approx": false,
          "formula": "Σ xᵢ",
          "heading": "Sum",
          "mode_label": "Sum",
          "explainer": "Count 2 · Mean 1500",
          "inputs_summary": "1e3 + 2e3",
          "display": {
            "value": "3000",
            "sum": "3000",
            "mean": "1500"
          },
          "work": null,
          "chart": [
            1000,
            3000
          ],
          "chart_model": "binary64",
          "calculation_version": "1.0.2",
          "warnings": []
        },
        "error_ulp": 0,
        "threshold_ulp": 2,
        "fields": {
          "value": {
            "ok": true,
            "error_ulp": 0
          }
        },
        "suite": "golden"
      },
      {
        "id": "g-sum-sci-tiny",
        "reference": {
          "mode": "sum",
          "algorithm": "neumaier",
          "count": 2,
          "value": 3e-12,
          "sum": 3e-12,
          "exact_num": "3",
          "exact_den": "1000000000000"
        },
        "actual": {
          "mode": "sum",
          "algorithm": "neumaier",
          "count": 2,
          "values": [
            1e-12,
            2e-12
          ],
          "tokens": [
            "1e-12",
            "2e-12"
          ],
          "sum": 3e-12,
          "value": 3e-12,
          "sumStr": "3e-12",
          "mean": 1.5e-12,
          "mean_exact": false,
          "mean_rational_exact": false,
          "mean_numeric_approximate": true,
          "mean_num": null,
          "mean_den": null,
          "mean_display": "1.5e-12",
          "mean_approx": true,
          "formula": "Σ xᵢ",
          "heading": "Sum",
          "mode_label": "Sum",
          "explainer": "Count 2 · Mean ≈ 1.5e−12",
          "inputs_summary": "1e−12 + 2e−12",
          "display": {
            "value": "3e-12",
            "sum": "3e-12",
            "mean": "1.5e-12"
          },
          "work": null,
          "chart": [
            1e-12,
            3e-12
          ],
          "chart_model": "binary64",
          "calculation_version": "1.0.2",
          "warnings": []
        },
        "error_ulp": 0,
        "threshold_ulp": 2,
        "fields": {
          "value": {
            "ok": true,
            "error_ulp": 0
          }
        },
        "suite": "golden"
      },
      {
        "id": "g-sum-sci-cancel",
        "reference": {
          "mode": "sum",
          "algorithm": "neumaier",
          "count": 3,
          "value": 1,
          "sum": 1,
          "exact_num": "1",
          "exact_den": "1"
        },
        "actual": {
          "mode": "sum",
          "algorithm": "neumaier",
          "count": 3,
          "values": [
            10000000000000000,
            1,
            -10000000000000000
          ],
          "tokens": [
            "1e16",
            "1",
            "-1e16"
          ],
          "sum": 1,
          "value": 1,
          "sumStr": "1",
          "mean": 0.3333333333333333,
          "mean_exact": false,
          "mean_rational_exact": false,
          "mean_numeric_approximate": true,
          "mean_num": null,
          "mean_den": null,
          "mean_display": "0.3333",
          "mean_approx": true,
          "formula": "Σ xᵢ",
          "heading": "Sum",
          "mode_label": "Sum",
          "explainer": "Count 3 · Mean ≈ 0.3333",
          "inputs_summary": "1e16 + 1 + (−1e16)",
          "display": {
            "value": "1",
            "sum": "1",
            "mean": "0.3333"
          },
          "work": null,
          "chart": [
            10000000000000000,
            10000000000000000,
            1
          ],
          "chart_model": "binary64",
          "calculation_version": "1.0.2",
          "warnings": []
        },
        "error_ulp": 0,
        "threshold_ulp": 2,
        "fields": {
          "value": {
            "ok": true,
            "error_ulp": 0
          }
        },
        "suite": "golden"
      },
      {
        "id": "g-sum-sci-mixed",
        "reference": {
          "mode": "sum",
          "algorithm": "neumaier",
          "count": 2,
          "value": 0.3,
          "sum": 0.3,
          "exact_num": "3",
          "exact_den": "10"
        },
        "actual": {
          "mode": "sum",
          "algorithm": "neumaier",
          "count": 2,
          "values": [
            0.1,
            0.2
          ],
          "tokens": [
            "1e-1",
            "0.2"
          ],
          "sum": 0.30000000000000004,
          "value": 0.30000000000000004,
          "sumStr": "0.3",
          "mean": 0.15000000000000002,
          "mean_exact": false,
          "mean_rational_exact": false,
          "mean_numeric_approximate": true,
          "mean_num": null,
          "mean_den": null,
          "mean_display": "0.15",
          "mean_approx": false,
          "formula": "Σ xᵢ",
          "heading": "Sum",
          "mode_label": "Sum",
          "explainer": "Count 2 · Mean 0.15",
          "inputs_summary": "1e−1 + 0.2",
          "display": {
            "value": "0.3",
            "sum": "0.3",
            "mean": "0.15"
          },
          "work": null,
          "chart": [
            0.1,
            0.30000000000000004
          ],
          "chart_model": "binary64",
          "calculation_version": "1.0.2",
          "warnings": []
        },
        "error_ulp": 1,
        "threshold_ulp": 2,
        "fields": {
          "value": {
            "ok": true,
            "error_ulp": 1
          }
        },
        "suite": "golden"
      },
      {
        "id": "g-long-int",
        "reference": {
          "mode": "long",
          "algorithm": "long-addition",
          "count": 3,
          "value": 3314,
          "sum": 3314,
          "sumStr": "3314",
          "exact": "3314"
        },
        "actual": {
          "mode": "long",
          "algorithm": "long-addition",
          "count": 3,
          "values": [
            937,
            129,
            2248
          ],
          "tokens": [
            "937",
            "129",
            "2248"
          ],
          "sum": 3314,
          "value": 3314,
          "sumStr": "3314",
          "mean": 1104.6666666666667,
          "mean_exact": false,
          "mean_rational_exact": false,
          "mean_numeric_approximate": true,
          "formula": "column addition with carry",
          "heading": "Total",
          "mode_label": "Long addition",
          "explainer": "Added 3 numbers with long addition (place-value columns).",
          "inputs_summary": "937 + 129 + 2248",
          "display": {
            "value": "3314",
            "sum": "3314"
          },
          "work": "Long addition (align place values, add right → left):\n\n   937\n   129\n+ 2248\n  ----\n  3314\n\nColumn work:\n  thousands: 1 + 0 + 0 + 2 = 3 → write 3\n  hundreds: 1 + 9 + 1 + 2 = 13 → write 3, carry 1\n  tens: 2 + 3 + 2 + 4 = 11 → write 1, carry 1\n  ones: 7 + 9 + 8 = 24 → write 4, carry 2",
          "chart": null,
          "calculation_version": "1.0.2",
          "warnings": []
        },
        "criterion": "actual sumStr === independent exact-rational decimal string (plain decimal and long addition)",
        "match": true,
        "digits": 4,
        "reference_sha256": "ac99164821bdc97550cd5d0148199855aac84cebe5e4b62b265e81859bdb27c3",
        "actual_sha256": "ac99164821bdc97550cd5d0148199855aac84cebe5e4b62b265e81859bdb27c3",
        "fields": {
          "sumStr": {
            "ok": true,
            "match": true
          }
        },
        "suite": "golden"
      },
      {
        "id": "g-long-dec",
        "reference": {
          "mode": "long",
          "algorithm": "long-addition",
          "count": 3,
          "value": 215.063,
          "sum": 215.063,
          "sumStr": "215.063",
          "exact": "215.063"
        },
        "actual": {
          "mode": "long",
          "algorithm": "long-addition",
          "count": 3,
          "values": [
            37.5,
            129.44,
            48.123
          ],
          "tokens": [
            "37.5",
            "129.44",
            "48.123"
          ],
          "sum": 215.063,
          "value": 215.063,
          "sumStr": "215.063",
          "mean": 71.68766666666666,
          "mean_exact": false,
          "mean_rational_exact": false,
          "mean_numeric_approximate": true,
          "formula": "column addition with carry",
          "heading": "Total",
          "mode_label": "Long addition",
          "explainer": "Added 3 numbers with long addition (place-value columns).",
          "inputs_summary": "37.5 + 129.44 + 48.123",
          "display": {
            "value": "215.063",
            "sum": "215.063"
          },
          "work": "Long addition (align place values, add right → left):\n\n   37.500\n  129.440\n+  48.123\n  -------\n  215.063\n\nColumn work:\n  hundreds: 1 + 0 + 1 + 0 = 2 → write 2\n  tens: 2 + 3 + 2 + 4 = 11 → write 1, carry 1\n  ones: 1 + 7 + 9 + 8 = 25 → write 5, carry 2\n  10^−1: 5 + 4 + 1 = 10 → write 0, carry 1\n  10^−2: 0 + 4 + 2 = 6 → write 6\n  10^−3: 0 + 0 + 3 = 3 → write 3",
          "chart": null,
          "calculation_version": "1.0.2",
          "warnings": []
        },
        "criterion": "actual sumStr === independent exact-rational decimal string (plain decimal and long addition)",
        "match": true,
        "digits": 7,
        "reference_sha256": "a44380898aa6f0296ea739efafa5c09aef1a12c1f29ec03395b54874171eb72f",
        "actual_sha256": "a44380898aa6f0296ea739efafa5c09aef1a12c1f29ec03395b54874171eb72f",
        "fields": {
          "sumStr": {
            "ok": true,
            "match": true
          }
        },
        "suite": "golden"
      },
      {
        "id": "meta-scale",
        "reference": 2,
        "actual": 2,
        "error_ulp": 0,
        "threshold_ulp": 2,
        "suite": "metamorphic",
        "hops": {
          "base": {
            "reference": {
              "mode": "sum",
              "algorithm": "exact-decimal",
              "count": 3,
              "value": 6,
              "sum": 6,
              "sumStr": "6",
              "exact": "6"
            },
            "actual": {
              "mode": "sum",
              "algorithm": "exact-decimal",
              "count": 3,
              "values": [
                1,
                2,
                3
              ],
              "tokens": [
                "1",
                "2",
                "3"
              ],
              "sum": 6,
              "value": 6,
              "sumStr": "6",
              "mean": 2,
              "mean_exact": true,
              "mean_rational_exact": true,
              "mean_numeric_approximate": false,
              "mean_num": "6",
              "mean_den": "3",
              "mean_display": "2",
              "mean_approx": false,
              "formula": "Σ xᵢ",
              "heading": "Sum",
              "mode_label": "Sum",
              "explainer": "Count 3 · Mean 2",
              "inputs_summary": "1 + 2 + 3",
              "display": {
                "value": "6",
                "sum": "6",
                "mean": "2"
              },
              "work": null,
              "chart": [
                1,
                3,
                6
              ],
              "chart_model": "exact-decimal",
              "calculation_version": "1.0.2",
              "warnings": []
            },
            "error_ulp": 0
          },
          "follow": {
            "reference": {
              "mode": "sum",
              "algorithm": "exact-decimal",
              "count": 3,
              "value": 12,
              "sum": 12,
              "sumStr": "12",
              "exact": "12"
            },
            "actual": {
              "mode": "sum",
              "algorithm": "exact-decimal",
              "count": 3,
              "values": [
                2,
                4,
                6
              ],
              "tokens": [
                "2",
                "4",
                "6"
              ],
              "sum": 12,
              "value": 12,
              "sumStr": "12",
              "mean": 4,
              "mean_exact": true,
              "mean_rational_exact": true,
              "mean_numeric_approximate": false,
              "mean_num": "12",
              "mean_den": "3",
              "mean_display": "4",
              "mean_approx": false,
              "formula": "Σ xᵢ",
              "heading": "Sum",
              "mode_label": "Sum",
              "explainer": "Count 3 · Mean 4",
              "inputs_summary": "2 + 4 + 6",
              "display": {
                "value": "12",
                "sum": "12",
                "mean": "4"
              },
              "work": null,
              "chart": [
                2,
                6,
                12
              ],
              "chart_model": "exact-decimal",
              "calculation_version": "1.0.2",
              "warnings": []
            },
            "error_ulp": 0
          },
          "relation": {
            "reference": 2,
            "actual": 2,
            "error_ulp": 0
          }
        }
      }
    ]
  },
  "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. Error-path engine·REST·MCP 1/1 (status, code, calculation_version). SSR compared on URL-canonical requested calculations; empty query is idle (not an error) and JSON-typed object/array inputs are REST/MCP-only."
  },
  "artifacts": {
    "evidence_bundle_sha256": "3c8f47bfa745141ee163de3a0e74ea301def669eb50c89932c77f7fb193cb2a2",
    "evidence_digest": "a295d54714a48c041cbadca14376bf1c079a84dc528c44869816c1b57c329c1f",
    "production_sha256": "31e075dd2788e7c13520557df716a4e118f4844aca3908f8b06acf4a41fad0cc",
    "attested_catalog_sha256": "f89399c8dda78af9b2d784bf34d77b786cf749392d54e5e00bd3707c3fcdd13e",
    "production_checks": [
      {
        "id": "math.sum:output-const",
        "status": "pass",
        "detail": "output const 1.0.2 vs capability 1.0.2",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-16T06:43:07.596Z"
      },
      {
        "id": "math.sum:evidence-sha256",
        "status": "pass",
        "detail": "42b19eb5b573",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-16T06:43:07.596Z"
      },
      {
        "id": "math.sum:semantic-contract",
        "status": "pass",
        "detail": "31/31",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-16T06:43:07.596Z"
      },
      {
        "id": "math.sum:capability-html-public-origin-agree",
        "status": "pass",
        "detail": "public 1.0.2 vs origin 1.0.2",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-16T06:43:07.596Z"
      },
      {
        "id": "math.sum:cvp-manifest-public-origin-agree",
        "status": "pass",
        "detail": "math.sum/1.0.2/2026-09-16.sources-no-wolfram/core/a295d54714a4",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-16T06:43:07.596Z",
        "projection_compared": false
      },
      {
        "id": "math.sum:cvp-latest-alias-agrees",
        "status": "pass",
        "detail": "math.sum/1.0.2/2026-09-16.sources-no-wolfram/core/a295d54714a4",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-16T06:43:07.596Z",
        "projection_compared": false
      },
      {
        "id": "math.sum:cvp-immutable-manifest-fetch",
        "status": "pass",
        "detail": "public=200 origin=200",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-16T06:43:07.596Z"
      },
      {
        "id": "math.sum:cvp-immutable-manifest-sha256",
        "status": "pass",
        "detail": "a295d54714a4",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-16T06:43:07.596Z"
      },
      {
        "id": "math.sum:cvp-latest-alias-matches-immutable",
        "status": "pass",
        "detail": "math.sum/1.0.2/2026-09-16.sources-no-wolfram/core/a295d54714a4",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-16T06:43:07.596Z",
        "projection_compared": false
      },
      {
        "id": "math.sum:calculator-html-cvp-projection",
        "status": "pass",
        "detail": "matches Trust display",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-16T06:43:07.596Z"
      },
      {
        "id": "math.sum:evidence-html-cvp-projection",
        "status": "pass",
        "detail": "matches Trust display",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-16T06:43:07.596Z"
      }
    ],
    "digest_registry": {
      "digest_algorithm": "sha256",
      "canonicalization": "json-sorted-keys-utf8",
      "entries": [
        {
          "name": "cvp_core_sha256",
          "field": "artifacts.cvp_core_sha256",
          "digest_scope": "cvp_verification_fingerprint_v2",
          "value": "a295d54714a48c041cbadca14376bf1c079a84dc528c44869816c1b57c329c1f",
          "note": "Immutable verification core; excludes attestation/live-status and Evidence contract counts"
        },
        {
          "name": "cvp_evidence_digest",
          "field": "artifacts.evidence_digest",
          "digest_scope": "cvp_verification_fingerprint_v2",
          "value": "a295d54714a48c041cbadca14376bf1c079a84dc528c44869816c1b57c329c1f",
          "note": "Alias of cvp_core_sha256 (historical field name)"
        },
        {
          "name": "artifact_evidence_sha256",
          "field": "release_integrity.digests.evidence_core_sha256",
          "digest_scope": "evidence_artifact_core",
          "value": "42b19eb5b57350e467933f57ae4fddd60b536ecb948f0f8f79719f1eb08de3cb",
          "note": "Published Evidence JSON core — Trust freshness / production bind subject"
        },
        {
          "name": "evidence_catalog_digest",
          "field": "artifacts.attested_catalog_sha256",
          "digest_scope": "capability_catalog",
          "value": "f89399c8dda78af9b2d784bf34d77b786cf749392d54e5e00bd3707c3fcdd13e",
          "note": "Capability catalog integrity; site-wide, not per-suite fingerprint"
        }
      ]
    },
    "cvp_core_sha256": "a295d54714a48c041cbadca14376bf1c079a84dc528c44869816c1b57c329c1f"
  },
  "dependencies": [
    {
      "name": "sum-engine",
      "version": "1.0.2"
    },
    {
      "name": "sum-reference-oracle",
      "version": "1.0.0"
    },
    {
      "name": "node",
      "version": "20.19.2"
    }
  ],
  "attestation": {
    "status": "CURRENT",
    "href": "/.well-known/calculatorx-production-attestation.json",
    "id": "9864b02dd59e627629179439ae27934aea8c6fd24193702e66c56019c5e3e050",
    "attested_at": "2026-09-16T06:43:07.596Z",
    "last_confirmed_current_at": "2026-09-16T06:43:50.908Z",
    "site_attestation_current": false,
    "capability_attestation_current": true,
    "bound_snapshot_status": "pass",
    "live_report_status": "stale",
    "bound_attested_at": "2026-09-16T06:43:50.908Z",
    "live_updated_at": "2026-09-16T06:44:04.926Z",
    "bound_snapshot": {
      "status": "pass",
      "attested_at": "2026-09-16T06:43:50.908Z",
      "site_stale_count": 4
    },
    "live_site_status": {
      "href": "/.well-known/calculatorx-production-attestation.json"
    },
    "bound_snapshot_site_stale_count": 4,
    "site_stale_capability_count": 4,
    "evidence_attested_at": "2026-09-16T06:43:07.596Z"
  },
  "domain_review": {
    "status": "ABSENT",
    "spec_version": "1.0.2",
    "external_third_party": false,
    "note": "Named expert review not performed"
  },
  "timestamps": {
    "verified_at": "2026-09-16T06:43:07.596Z",
    "generated_at": "2026-09-16T06:43:07.596Z",
    "rendered_at": "2026-09-16T06:44:04.967Z",
    "notes": "verified_at/generated_at mark the first publication of this cvp_core_sha256 (artifacts.evidence_digest alias) for suite verification. evidence_attested_at/attested_at is the first production bind of that core digest. last_confirmed_current_at is the latest site-wide report that still confirms CURRENT. rendered_at is this JSON serialization and is not part of cvp_core_sha256 / evidence_digest. Production attestation binds cvp_core_sha256 (binds evidence_digest). Causal order: verified_at ≤ evidence_attested_at ≤ last_confirmed_current_at. attestation.bound_snapshot.site_stale_count is the site-wide stale capability count at Manifest bind time — not a live value. Fetch attestation.live_site_status.href for the current site report."
  },
  "links": {
    "legacy_evidence": "https://www.calculatorx.com/evidence/math.sum/1.0.2.json",
    "evidence_page": "https://www.calculatorx.com/evidence/math.sum/1.0.2",
    "calculator": "https://www.calculatorx.com/calc/math/add",
    "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/math.sum/1.0.2.cvp.json",
    "manifest_immutable": "https://www.calculatorx.com/evidence/math.sum/1.0.2/2026-09-16.sources-no-wolfram.cvp.json",
    "manifest_core": "https://www.calculatorx.com/evidence/math.sum/1.0.2/2026-09-16.sources-no-wolfram.a295d54714a4.cvp.json"
  }
}
