{
  "protocol": {
    "name": "CVP",
    "version": "1.0.0-proposed"
  },
  "document_status": "proposed",
  "calculator": {
    "id": "arcsin",
    "version": "1.0.5",
    "title": "Arcsine Calculator",
    "formula_family": "arcsin",
    "capability_id": "math.arcsin"
  },
  "profile": "core",
  "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": "arcsin",
    "version": "1.0.5",
    "uri": "https://www.calculatorx.com/evidence/math.arcsin/1.0.5.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": "NIST Digital Library of Mathematical Functions, Chapter 4",
        "kind": "other",
        "reference": "Elementary Functions",
        "url": "https://dlmf.nist.gov/4"
      },
      {
        "label": "NIST DLMF §4.23",
        "kind": "other",
        "reference": "Inverse trigonometric functions; principal values",
        "url": "https://dlmf.nist.gov/4.23"
      },
      {
        "label": "CalculatorX mathematical conventions",
        "kind": "other",
        "reference": "Principal branch; exact-value recognition; triangle mode is UI-only"
      }
    ]
  },
  "reference": {
    "items": [
      {
        "class": "O1",
        "reference_scope": "model",
        "scope": "model",
        "label": "Principal inverse sine (NIST DLMF §4.23)"
      },
      {
        "class": "O3",
        "reference_scope": "expected_values",
        "scope": "expected_values",
        "label": "Precomputed mpmath 1.4.1 asin (80 dps, python backend, round-to-nearest-binary64) — not Node Math.*",
        "engine": {
          "name": "asin-mpmath-o3",
          "precision_bits": 265,
          "independent_of_iut": true,
          "library": "mpmath 1.4.1",
          "mpmath_dps": 80,
          "rounding": "round-to-nearest-binary64",
          "backend": "python",
          "generator_version": "1.0.0",
          "generator_sha256": "3453ec60bd03738a1f1f3723baed7e617ff49466452efab1844fe68b8f654cea",
          "table_sha256": "efdad939a92a67df1f3995db36c52bb87f428a59fc73568f789c02540f4372ee",
          "seed": "20260907",
          "source": "https://www.calculatorx.com/developers/cvp/reproduce/math-o3-tables.json",
          "public_table": "/developers/cvp/reproduce/math-o3-tables.json",
          "public_generator": "/developers/cvp/reproduce/generate-math-o3.py",
          "public_checker": "/developers/cvp/reproduce/check-math-o3-rest.py"
        }
      },
      {
        "class": "O3",
        "reference_scope": "numerical_behavior",
        "scope": "numerical_behavior",
        "label": "Same O3 table vs IUT deg; ≤2 ULP on tabulated vectors only, not the whole domain. Distinct from legacy Evidence case-level tol.",
        "engine": {
          "name": "asin-mpmath-o3",
          "precision_bits": 265,
          "independent_of_iut": true,
          "library": "mpmath 1.4.1",
          "mpmath_dps": 80,
          "rounding": "round-to-nearest-binary64",
          "backend": "python",
          "generator_version": "1.0.0",
          "generator_sha256": "3453ec60bd03738a1f1f3723baed7e617ff49466452efab1844fe68b8f654cea",
          "table_sha256": "efdad939a92a67df1f3995db36c52bb87f428a59fc73568f789c02540f4372ee",
          "seed": "20260907",
          "source": "https://www.calculatorx.com/developers/cvp/reproduce/math-o3-tables.json",
          "public_table": "/developers/cvp/reproduce/math-o3-tables.json",
          "public_generator": "/developers/cvp/reproduce/generate-math-o3.py",
          "public_checker": "/developers/cvp/reproduce/check-math-o3-rest.py"
        }
      },
      {
        "class": "O2",
        "reference_scope": "expected_values",
        "scope": "expected_values",
        "label": "Separate-module arcsin oracle — independent Math.asin + snap",
        "engine": {
          "name": "arcsin-reference",
          "precision_bits": 53,
          "independent_of_iut": true
        }
      },
      {
        "class": "O2",
        "reference_scope": "numerical_behavior",
        "scope": "numerical_behavior",
        "label": "Same O2 module backs ≤2 ULP deg comparison vs IUT",
        "engine": {
          "name": "arcsin-reference",
          "precision_bits": 53,
          "independent_of_iut": true
        }
      }
    ],
    "notes": "Golden expected values prefer an O3 mpmath/MPFR table (independent of Node Math.asin). O2 is a live oracle for identities and shares V8 binary64 with the IUT."
  },
  "controls": {
    "CVP-PROV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Sources present on evidence"
    },
    "CVP-MODEL-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "principal arcsin(x) on [−π/2, π/2]"
    },
    "CVP-SCOPE-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "x ∈ [−1, 1]; principal range [−90°, 90°]"
    },
    "CVP-UNIT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "dimensionless x → angle out (deg and rad)"
    },
    "CVP-REF-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "O1 model + O3 expected_values/numerical_behavior (mpmath table) + O2 live identities"
    },
    "CVP-GOLD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "6/6 legacy golden; 6/6 oracle-backed numeric"
    },
    "CVP-BND-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "5/5 boundary"
    },
    "CVP-INV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "5 invalid-domain cases"
    },
    "CVP-NUM-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "CVP ≤2 ULP vs O3 when tabulated; legacy Evidence `tol` is not this policy"
    },
    "CVP-COV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "2/2 declared partitions (arcsin, invalid-domain) · 6 golden / 5 boundary unique cases · 5 Evidence invalid-input (may overlap boundary)"
    },
    "CVP-CONTRACT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "1/1 contract checks"
    },
    "CVP-DEP-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "engine arcsin; 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.0.5 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓ · schema_const=1.0.5 · 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": "dimensionless x → angle (deg/rad)"
    },
    "CVP-PROP-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "5/5 property"
    },
    "CVP-META-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "3/3 metamorphic"
    },
    "CVP-ROUND-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "5/5 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). Success 1/1. Integration: URL → SSR result → Live graph current point (4/4). Hydration/slider/history are URL-canonical contracts, not a live browser session."
    },
    "CVP-ORACLE-01": {
      "result": "PASS",
      "applicability": "higher_assurance",
      "notes": "O3 19/19 tabulated vectors vs IUT"
    },
    "CVP-EXP-01": {
      "result": "SKIP",
      "applicability": "optional",
      "notes": "expert_reviewed=false"
    }
  },
  "tests": {
    "golden": {
      "passed": 6,
      "total": 6,
      "failed": 0,
      "case_ids": [
        "g-asin-half",
        "g-asin-zero",
        "g-asin-one",
        "g-asin-neg-one",
        "g-asin-no-snap",
        "g-asin-near-one"
      ]
    },
    "boundary": {
      "passed": 5,
      "total": 5,
      "failed": 0,
      "case_ids": [
        "out-of-domain",
        "neg-out-of-domain",
        "missing-x",
        "x-abc",
        "x-object"
      ]
    },
    "invalid": {
      "passed": 5,
      "total": 5,
      "failed": 0,
      "case_ids": [
        "out-of-domain",
        "neg-out-of-domain",
        "missing-x",
        "x-abc",
        "x-object"
      ]
    },
    "property": {
      "passed": 5,
      "total": 5,
      "failed": 0,
      "case_ids": [
        "prop-range-half",
        "prop-range-one",
        "prop-range-neg-one",
        "prop-range-no-snap",
        "prop-increasing"
      ],
      "definition_ids": [
        "principal-range",
        "strictly-increasing"
      ]
    },
    "round_trip": {
      "passed": 5,
      "total": 5,
      "failed": 0,
      "case_ids": [
        "rt-half",
        "rt-zero",
        "rt-neg-half",
        "rt-no-snap",
        "rt-one"
      ]
    },
    "metamorphic": {
      "passed": 3,
      "total": 3,
      "failed": 0,
      "case_ids": [
        "meta-odd-half",
        "meta-odd-no-snap",
        "meta-odd-quarter"
      ],
      "definition_ids": [
        "arcsin-odd"
      ]
    },
    "contract": {
      "passed": 1,
      "total": 1,
      "failed": 0
    },
    "cross_interface": {
      "passed": 1,
      "total": 1,
      "failed": 0,
      "case_ids": [
        "iface-asin"
      ]
    },
    "ui_integration": {
      "passed": 4,
      "total": 4,
      "failed": 0,
      "case_ids": [
        "ui-asin-half",
        "ui-asin-no-snap",
        "ui-asin-neg-one",
        "ui-asin-generic"
      ]
    },
    "o3": {
      "passed": 19,
      "total": 19,
      "failed": 0,
      "case_ids": [
        "o3-asin-neg-one",
        "o3-asin-one",
        "o3-asin-zero",
        "o3-asin-half",
        "o3-asin-neg-half",
        "o3-asin-sqrt2-2",
        "o3-asin-neg-sqrt2-2",
        "o3-asin-no-snap",
        "o3-asin-near-one",
        "o3-asin-near-neg-one",
        "o3-asin-quarter",
        "o3-asin-rand-00",
        "o3-asin-rand-01",
        "o3-asin-rand-02",
        "o3-asin-rand-03",
        "o3-asin-rand-04",
        "o3-asin-rand-05",
        "o3-asin-rand-06",
        "o3-asin-rand-07"
      ],
      "generator_id": "math-mpmath-o3",
      "seed": "20260907",
      "max_error_ulp": 1
    }
  },
  "coverage": {
    "partitions": [
      {
        "id": "arcsin",
        "description": "arcsin(x) in [−1, 1]",
        "exercised": true,
        "case_count": 44
      },
      {
        "id": "invalid-domain",
        "description": "Invalid inputs",
        "exercised": true,
        "case_count": 5
      }
    ]
  },
  "numerical": {
    "representation": "IEEE-754 binary64 Math.asin with textbook snap",
    "tolerance": {
      "type": "ulp",
      "value": 2,
      "rationale": "Independent asin + snap vs IUT; ≤2 ULP on deg. Declared a priori.",
      "declared_before_evaluation": true
    },
    "legacy_regression_notes": "Legacy Evidence JSON may record case-level tol (e.g. 1e-8). That is a regression epsilon, not the CVP ≤2 ULP acceptance policy. CVP records list reference, actual, error_ulp, and the a-priori ULP threshold.",
    "max_error_observed": 1,
    "records": [
      {
        "id": "g-asin-half",
        "reference": 30,
        "actual": 30,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "g-asin-zero",
        "reference": 0,
        "actual": 0,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "g-asin-one",
        "reference": 90,
        "actual": 90,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "g-asin-neg-one",
        "reference": -90,
        "actual": -90,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "g-asin-no-snap",
        "reference": 30.000000059543517,
        "actual": 30.00000005954352,
        "error_ulp": 1,
        "threshold_ulp": 2
      },
      {
        "id": "g-asin-near-one",
        "reference": 89.99992272523073,
        "actual": 89.99992272523075,
        "error_ulp": 1,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-neg-one",
        "reference": -90,
        "actual": -90,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-one",
        "reference": 90,
        "actual": 90,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-zero",
        "reference": 0,
        "actual": 0,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-half",
        "reference": 30,
        "actual": 30,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-neg-half",
        "reference": -30,
        "actual": -30,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-sqrt2-2",
        "reference": 45.00000000000001,
        "actual": 45,
        "error_ulp": 1,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-neg-sqrt2-2",
        "reference": -45.00000000000001,
        "actual": -45,
        "error_ulp": 1,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-no-snap",
        "reference": 30.000000059543517,
        "actual": 30.00000005954352,
        "error_ulp": 1,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-near-one",
        "reference": 89.99992272523073,
        "actual": 89.99992272523075,
        "error_ulp": 1,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-near-neg-one",
        "reference": -89.99992272523073,
        "actual": -89.99992272523075,
        "error_ulp": 1,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-quarter",
        "reference": 14.477512185929925,
        "actual": 14.477512185929923,
        "error_ulp": 1,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-rand-00",
        "reference": -11.520680711095556,
        "actual": -11.520680711095556,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-rand-01",
        "reference": 57.09623196281669,
        "actual": 57.096231962816695,
        "error_ulp": 1,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-rand-02",
        "reference": -47.34966679918994,
        "actual": -47.34966679918994,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-rand-03",
        "reference": 44.75893123871443,
        "actual": 44.75893123871443,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-rand-04",
        "reference": 56.681302373684986,
        "actual": 56.681302373684986,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-rand-05",
        "reference": 24.890888297095213,
        "actual": 24.890888297095216,
        "error_ulp": 1,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-rand-06",
        "reference": 86.98669572590896,
        "actual": 86.98669572590896,
        "error_ulp": 0,
        "threshold_ulp": 2
      },
      {
        "id": "o3-asin-rand-07",
        "reference": 1.454148525736183,
        "actual": 1.454148525736183,
        "error_ulp": 0,
        "threshold_ulp": 2
      }
    ]
  },
  "interfaces": {
    "compared": [
      "ui-ssr",
      "rest",
      "mcp",
      "ui-url-result-graph"
    ],
    "result": "PASS",
    "notes": "UI (SSR) · REST · MCP equivalent (MCP uses calc API handler). Success 1/1. Integration: URL → SSR result → Live graph current point (4/4). Hydration/slider/history are URL-canonical contracts, not a live browser session."
  },
  "artifacts": {
    "evidence_bundle_sha256": "d6663e920bc3c660e4500ac15ed2dd5341038f5a537f9ab00bdaa2a52929422e",
    "evidence_digest": "2ccf13f932a9f4bf639802b3fa380af9d1e1345dec2edfc414738b6f4701fe5e",
    "production_sha256": "9424f31d3ca937ec4a453e41479201945df6495214f0a220ebb742e7fd1c3f20",
    "attested_catalog_sha256": "e03ef81b30568018b171fd1fc4757c2abe9df7220d9ff35bbaf08038d7630cdb",
    "production_checks": [
      {
        "id": "math.arcsin:output-const",
        "status": "pass",
        "detail": "output const 1.0.5 vs capability 1.0.5",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "math.arcsin:evidence-sha256",
        "status": "pass",
        "detail": "2736795ad589",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "math.arcsin:semantic-contract",
        "status": "pass",
        "detail": "11/11",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "math.arcsin:capability-html-public-origin-agree",
        "status": "pass",
        "detail": "public 1.0.5 vs origin 1.0.5",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "math.arcsin:cvp-manifest-public-origin-agree",
        "status": "pass",
        "detail": "math.arcsin/1.0.5/-/core/2ccf13f932a9",
        "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": "math.arcsin: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": "math.arcsin: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": "arcsin-engine",
      "version": "1.0.5"
    },
    {
      "name": "arcsin-reference-oracle",
      "version": "1.0.0"
    },
    {
      "name": "arcsin-o3-mpmath-table",
      "version": "math-mpmath-o3"
    },
    {
      "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": "ABSENT",
    "spec_version": "1.0.5"
  },
  "timestamps": {
    "verified_at": "2026-09-10T03:41:49.944Z",
    "generated_at": "2026-09-10T03:41:49.944Z"
  },
  "links": {
    "legacy_evidence": "https://www.calculatorx.com/evidence/math.arcsin/1.0.5.json",
    "evidence_page": "https://www.calculatorx.com/evidence/math.arcsin/1.0.5",
    "calculator": "https://www.calculatorx.com/calc/math/arcsin",
    "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.arcsin/1.0.5.cvp.json"
  }
}
