{
  "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": "energy-consumption",
    "version": "1.4.2",
    "title": "Energy Consumption Calculator",
    "formula_family": "energy-wh",
    "capability_id": "electrical.energy_consumption",
    "verification_revision": "2026-09-13.negative-input-contract"
  },
  "profile": "engineering",
  "verified_scope": "core energy calculation (W × h / 1000 → kWh)",
  "deferred_scope": "UI daily/month/year projections (×30 / ×365)",
  "status": "VERIFIED",
  "verification_status": "VERIFIED",
  "production_freshness": "CURRENT",
  "overall_trust": "VERIFIED",
  "runner": {
    "name": "cvp-runner",
    "version": "1.0.0"
  },
  "environment": {
    "runtime": "node",
    "runtime_version": "22.23.2",
    "numeric_model": "IEEE-754 binary64",
    "os": "linux"
  },
  "suite": {
    "id": "energy-consumption",
    "version": "1.4.2",
    "uri": "https://www.calculatorx.com/evidence/electrical.energy_consumption/1.4.2.json",
    "verification_revision": "2026-09-13.negative-input-contract"
  },
  "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-IFACE-01"
  ],
  "provenance": {
    "mode": "direct",
    "sources": [
      {
        "label": "NIST Guide to the SI (SP 811)",
        "kind": "other",
        "reference": "Energy as power × time; kilowatt-hour",
        "url": "https://www.nist.gov/pml/special-publication-811"
      },
      {
        "label": "BIPM SI Brochure (9th edition, version 4.01)",
        "kind": "other",
        "reference": "Derived unit joule and common non-SI kWh",
        "url": "https://www.bipm.org/en/publications/si-brochure"
      },
      {
        "label": "IEC 60050 — International Electrotechnical Vocabulary",
        "kind": "standard",
        "reference": "Active energy (IEV 131-11-57)",
        "url": "https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=131-11-57"
      },
      {
        "label": "IEC 60050 — International Electrotechnical Vocabulary",
        "kind": "standard",
        "reference": "Watt hour (IEV 131-11-58)",
        "url": "https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=131-11-58"
      }
    ]
  },
  "reference": {
    "items": [
      {
        "class": "O1",
        "reference_scope": "model",
        "scope": "model",
        "label": "Energy from power × time"
      },
      {
        "class": "O2",
        "reference_scope": "expected_values",
        "scope": "expected_values",
        "label": "Separate-module energy-consumption oracle — same V8 binary64 as IUT",
        "engine": {
          "name": "energy-consumption-reference",
          "precision_bits": 53,
          "independent_of_iut": true
        }
      },
      {
        "class": "O2",
        "reference_scope": "numerical_behavior",
        "scope": "numerical_behavior",
        "label": "Same O2 module backs ≤2 ULP scalar comparison vs IUT",
        "engine": {
          "name": "energy-consumption-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": "kWh = W·hours/1000"
    },
    "CVP-SCOPE-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "CVP VERIFIED covers the core energy calculation E(kWh)=W×h/1000. Daily month/year figures are UI projections (30-day month, 365-day year), not engine outputs."
    },
    "CVP-UNIT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "W, h → kWh. Inverse: P(kW)=E(kWh)/t(h); P(W)=1000×E(kWh)/t(h)."
    },
    "CVP-REF-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "O1 model + O2 expected_values + O2 numerical_behavior"
    },
    "CVP-GOLD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "9/9 legacy golden; 2/2 oracle-backed numeric"
    },
    "CVP-BND-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "3/3 CVP boundary · 3/3 legacy Evidence boundary"
    },
    "CVP-INV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "3 Evidence illegal-input + 2/2 oracle-backed error-code (exact_error_match, not ULP)"
    },
    "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": "3/3 declared partitions (nominal-positive, zero, invalid-domain) · 9 legacy golden / 3 CVP boundary unique cases · 3 Evidence invalid-input (may overlap boundary)"
    },
    "CVP-CONTRACT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "4/4 CVP contract"
    },
    "CVP-DEP-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "engine energy; 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-14T00:43:05.498Z · live site-wide report stale @ 2026-09-14T00:43:08.797Z (2 other capabilities) · local checks pass · attestation_id=1fdd351e49d9a9103d52e8d4d216269454fafffce59ccada2570a57ac43a6b27 · This calculator CURRENT · This calculator is not affected · Bound attestation PASS @ 2026-09-14T00:43:05.498Z · Live production status STALE (2 capabilities; 155 remain CURRENT) @ 2026-09-14T00:43:08.797Z · Public schema 1.4.2 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓ · schema_const=1.4.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=3c45d14ff1258b0eea59837f3942585dd6825ab0585ca7cb85b4608e08c1f590 · verified_at=2026-09-12T23:49:01.417Z · evidence_attested_at=2026-09-12T23:49:01.417Z · last_confirmed_current_at=2026-09-14T00:43:05.498Z · rendered_at=2026-09-14T00:43:08.837Z · binds=cvp_core_sha256",
      "check_result": "PASS",
      "production_state": "CURRENT",
      "binding_current": true
    },
    "CVP-DIM-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "Energy"
    },
    "CVP-PROP-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "4/4 property"
    },
    "CVP-META-01": {
      "result": "SKIP",
      "applicability": "not_applicable",
      "notes": "No input→output transformation vectors in pack — control not in obligation set"
    },
    "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."
    },
    "CVP-ORACLE-01": {
      "result": "SKIP",
      "applicability": "higher_assurance",
      "notes": "O2 present; O3 not required this wave"
    },
    "CVP-EXP-01": {
      "result": "SKIP",
      "applicability": "optional",
      "notes": "CalculatorX internal domain review — not CVP-EXP-01"
    }
  },
  "tests": {
    "golden": {
      "passed": 2,
      "total": 2,
      "failed": 0,
      "case_ids": [
        "g-1500",
        "g-9W"
      ]
    },
    "boundary": {
      "passed": 3,
      "total": 3,
      "failed": 0,
      "case_ids": [
        "neg-W",
        "neg-hours",
        "missing-W"
      ]
    },
    "invalid": {
      "passed": 5,
      "total": 5,
      "failed": 0,
      "case_ids": [
        "neg-W",
        "neg-hours",
        "missing-W",
        "inv-neg-W",
        "inv-neg-hours"
      ],
      "comparison": "exact_error_match",
      "records": [
        {
          "id": "inv-neg-W",
          "comparison": "exact_error_match",
          "expected": {
            "code": "VALUE_MUST_BE_NON_NEGATIVE"
          },
          "actual": {
            "code": "VALUE_MUST_BE_NON_NEGATIVE"
          },
          "match": true
        },
        {
          "id": "inv-neg-hours",
          "comparison": "exact_error_match",
          "expected": {
            "code": "VALUE_MUST_BE_NON_NEGATIVE"
          },
          "actual": {
            "code": "VALUE_MUST_BE_NON_NEGATIVE"
          },
          "match": true
        }
      ]
    },
    "property": {
      "passed": 4,
      "total": 4,
      "failed": 0,
      "case_ids": [
        "property-kwh",
        "property-linear-power",
        "property-linear-time",
        "property-default"
      ],
      "kind": "fixed"
    },
    "round_trip": {
      "passed": 0,
      "total": 0,
      "failed": 0,
      "case_ids": []
    },
    "metamorphic": {
      "passed": 0,
      "total": 0,
      "failed": 0,
      "case_ids": []
    },
    "contract": {
      "passed": 4,
      "total": 4,
      "failed": 0
    },
    "cross_interface": {
      "passed": 2,
      "total": 2,
      "failed": 0,
      "case_ids": [
        "iface-1500",
        "iface-daily"
      ]
    }
  },
  "coverage": {
    "partitions": [
      {
        "id": "nominal-positive",
        "description": "W>0 and hours>0 → kWh",
        "exercised": true,
        "case_count": 9
      },
      {
        "id": "zero",
        "description": "Zero power or zero time → 0 kWh",
        "exercised": true,
        "case_count": 2
      },
      {
        "id": "invalid-domain",
        "description": "Negative or missing inputs",
        "exercised": true,
        "case_count": 5
      }
    ]
  },
  "numerical": {
    "representation": "IEEE-754 binary64",
    "tolerance": {
      "type": "ulp",
      "value": 2,
      "rationale": "Energy consumption W·h/1000; ≤2 ULP vs separate-module O2 (same V8). Declared a priori.",
      "declared_before_evaluation": true
    },
    "max_error_observed": 0,
    "records": [
      {
        "id": "g-1500",
        "reference": 4.5,
        "actual": 4.5,
        "error_ulp": 0,
        "threshold_ulp": 2,
        "suite": "golden"
      },
      {
        "id": "g-9W",
        "reference": 0.072,
        "actual": 0.072,
        "error_ulp": 0,
        "threshold_ulp": 2,
        "suite": "golden"
      }
    ]
  },
  "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": "b32dc07133fb2dbad1fcdef0db678199bec92ef6767661ca341d60aba6e06aeb",
    "evidence_digest": "9f36849cd3cd986d371f74fbc0418098640f15f3bb9b7efbefa1f889c7c85dda",
    "production_sha256": "3c45d14ff1258b0eea59837f3942585dd6825ab0585ca7cb85b4608e08c1f590",
    "attested_catalog_sha256": "d7330775e814d9fe1f97af28b52db2ecba2f32e2e3e82f08076f10a72d85c01b",
    "production_checks": [
      {
        "id": "electrical.energy_consumption:output-const",
        "status": "pass",
        "detail": "output const 1.4.2 vs capability 1.4.2",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-12T23:49:01.417Z"
      },
      {
        "id": "electrical.energy_consumption:evidence-sha256",
        "status": "pass",
        "detail": "af2d679bfc45",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-12T23:49:01.417Z"
      },
      {
        "id": "electrical.energy_consumption:semantic-contract",
        "status": "pass",
        "detail": "16/16",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-12T23:49:01.417Z"
      },
      {
        "id": "electrical.energy_consumption:capability-html-public-origin-agree",
        "status": "pass",
        "detail": "public 1.4.2 vs origin 1.4.2",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-12T23:49:01.417Z"
      },
      {
        "id": "electrical.energy_consumption:cvp-manifest-public-origin-agree",
        "status": "pass",
        "detail": "electrical.energy_consumption/1.4.2/2026-09-13.negative-input-contract/engineering/9f36849cd3cd",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-12T23:49:01.417Z",
        "projection_compared": false
      },
      {
        "id": "electrical.energy_consumption:cvp-latest-alias-agrees",
        "status": "pass",
        "detail": "electrical.energy_consumption/1.4.2/2026-09-13.negative-input-contract/engineering/9f36849cd3cd",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-12T23:49:01.417Z",
        "projection_compared": false
      },
      {
        "id": "electrical.energy_consumption: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-12T23:49:01.417Z"
      },
      {
        "id": "electrical.energy_consumption:cvp-immutable-manifest-sha256",
        "status": "pass",
        "detail": "9f36849cd3cd",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-12T23:49:01.417Z"
      },
      {
        "id": "electrical.energy_consumption:cvp-latest-alias-matches-immutable",
        "status": "pass",
        "detail": "electrical.energy_consumption/1.4.2/2026-09-13.negative-input-contract/engineering/9f36849cd3cd",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-12T23:49:01.417Z",
        "projection_compared": false
      },
      {
        "id": "electrical.energy_consumption:calculator-html-cvp-projection",
        "status": "pass",
        "detail": "matches Trust display",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-12T23:49:01.417Z"
      },
      {
        "id": "electrical.energy_consumption:evidence-html-cvp-projection",
        "status": "pass",
        "detail": "matches Trust display",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-12T23:49:01.417Z"
      }
    ],
    "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": "9f36849cd3cd986d371f74fbc0418098640f15f3bb9b7efbefa1f889c7c85dda",
          "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": "9f36849cd3cd986d371f74fbc0418098640f15f3bb9b7efbefa1f889c7c85dda",
          "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": "af2d679bfc458fdfc50a0f8f2dc9786710676212a82be62dae14cbfc2f8e376e",
          "note": "Published Evidence JSON core — Trust freshness / production bind subject"
        },
        {
          "name": "evidence_catalog_digest",
          "field": "artifacts.attested_catalog_sha256",
          "digest_scope": "capability_catalog",
          "value": "d7330775e814d9fe1f97af28b52db2ecba2f32e2e3e82f08076f10a72d85c01b",
          "note": "Capability catalog integrity; site-wide, not per-suite fingerprint"
        }
      ]
    },
    "cvp_core_sha256": "9f36849cd3cd986d371f74fbc0418098640f15f3bb9b7efbefa1f889c7c85dda"
  },
  "dependencies": [
    {
      "name": "energy-engine",
      "version": "1.4.2"
    },
    {
      "name": "energy-reference-oracle",
      "version": "1.0.0"
    },
    {
      "name": "node",
      "version": "22.23.2"
    }
  ],
  "attestation": {
    "status": "CURRENT",
    "href": "/.well-known/calculatorx-production-attestation.json",
    "id": "1fdd351e49d9a9103d52e8d4d216269454fafffce59ccada2570a57ac43a6b27",
    "attested_at": "2026-09-12T23:49:01.417Z",
    "last_confirmed_current_at": "2026-09-14T00:43:05.498Z",
    "site_attestation_current": false,
    "capability_attestation_current": true,
    "bound_snapshot_status": "pass",
    "live_report_status": "stale",
    "bound_attested_at": "2026-09-14T00:43:05.498Z",
    "live_updated_at": "2026-09-14T00:43:08.797Z",
    "bound_snapshot": {
      "status": "pass",
      "attested_at": "2026-09-14T00:43:05.498Z",
      "site_stale_count": 2
    },
    "live_site_status": {
      "href": "/.well-known/calculatorx-production-attestation.json"
    },
    "bound_snapshot_site_stale_count": 2,
    "site_stale_capability_count": 2,
    "evidence_attested_at": "2026-09-12T23:49:01.417Z"
  },
  "domain_review": {
    "status": "ABSENT",
    "spec_version": "1.4.2",
    "external_third_party": false,
    "note": "Supplemental CalculatorX internal domain review — see internal_review"
  },
  "internal_review": {
    "status": "PASS",
    "reviewer_role": "electrical-engineer",
    "reviewed_by": "CalculatorX electrical review",
    "spec_version": "1.4.2",
    "independence": "internal",
    "external_third_party": false
  },
  "timestamps": {
    "verified_at": "2026-09-12T23:49:01.417Z",
    "generated_at": "2026-09-12T23:49:01.417Z",
    "rendered_at": "2026-09-14T00:43:08.837Z",
    "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/electrical.energy_consumption/1.4.2.json",
    "evidence_page": "https://www.calculatorx.com/evidence/electrical.energy_consumption/1.4.2",
    "calculator": "https://www.calculatorx.com/calc/electric/energy-consumption",
    "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.energy_consumption/1.4.2.cvp.json",
    "manifest_immutable": "https://www.calculatorx.com/evidence/electrical.energy_consumption/1.4.2/2026-09-13.negative-input-contract.cvp.json",
    "manifest_core": "https://www.calculatorx.com/evidence/electrical.energy_consumption/1.4.2/2026-09-13.negative-input-contract.9f36849cd3cd.cvp.json"
  }
}
