{
  "protocol": {
    "name": "CVP",
    "version": "1.0.0-proposed"
  },
  "document_status": "proposed",
  "calculator": {
    "id": "final-grade",
    "version": "1.1.1",
    "title": "Final Grade Calculator",
    "formula_family": "final_grade",
    "capability_id": "education.final_grade"
  },
  "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": "final-grade",
    "version": "1.1.1",
    "uri": "https://www.calculatorx.com/evidence/education.final_grade/1.1.1.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-IFACE-01"
  ],
  "provenance": {
    "mode": "direct",
    "sources": [
      {
        "label": "University of Chicago — Use Weighted Assignment Groups in Your Canvas Course",
        "kind": "other",
        "reference": "Total = Σ(category percentage × group weight); example: quizzes 20% + midterm 30% + final 40% + participation 10%",
        "url": "https://courses.uchicago.edu/2022/08/26/use-weighted-assignment-groups-in-your-canvas-course/"
      },
      {
        "label": "Appalachian State University — Gradebook: Weighted Mean of Grades (Percentages)",
        "kind": "other",
        "reference": "Weighted mean of grades; unentered items are excluded and remaining weights are rescaled until those scores exist",
        "url": "https://confluence.appstate.edu/pages/viewpage.action?pageId=32473144"
      },
      {
        "label": "Weighted arithmetic mean (pre-final average and final exam weight)",
        "kind": "other",
        "reference": "Overall = Current×(100−W)/100 + Final×W/100, equivalently Current(1−w)+Final·w with w = W/100"
      }
    ]
  },
  "reference": {
    "items": [
      {
        "class": "O1",
        "reference_scope": "model",
        "scope": "model",
        "label": "Weighted course grade with fixed final share"
      },
      {
        "class": "O2",
        "reference_scope": "expected_values",
        "scope": "expected_values",
        "label": "Separate-module final-grade oracle — independent Need/Overall/Weighted/Points algebra",
        "engine": {
          "name": "final-grade-reference",
          "precision_bits": 53,
          "independent_of_iut": true
        }
      },
      {
        "class": "O2",
        "reference_scope": "numerical_behavior",
        "scope": "numerical_behavior",
        "label": "Same O2 module backs ≤2 ULP value comparison vs IUT",
        "engine": {
          "name": "final-grade-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": "Need/Overall weighted mean; categories; points→weight%"
    },
    "CVP-SCOPE-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "Current excludes final; W in percent; planning estimate only"
    },
    "CVP-UNIT-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "percent (%)"
    },
    "CVP-REF-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "O1 model + O2 expected_values + O2 numerical_behavior"
    },
    "CVP-GOLD-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "5/5 legacy golden; 1/1 oracle-backed numeric"
    },
    "CVP-BND-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "12/12 boundary"
    },
    "CVP-INV-01": {
      "result": "PASS",
      "applicability": "required",
      "notes": "4 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": "5/5 declared partitions (need, overall, weighted, points, invalid-domain) · 5 golden / 12 boundary unique cases · 4 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 final-grade; 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.1 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓ · schema_const=1.1.1 · 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": "grade percent / weight percent"
    },
    "CVP-PROP-01": {
      "result": "PASS",
      "applicability": "applicable",
      "notes": "8/8 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": "expert_reviewed=false"
    }
  },
  "tests": {
    "golden": {
      "passed": 1,
      "total": 1,
      "failed": 0,
      "case_ids": [
        "g-need"
      ]
    },
    "boundary": {
      "passed": 12,
      "total": 12,
      "failed": 0,
      "case_ids": [
        "boundary-w-100",
        "boundary-w-0",
        "boundary-needed-100",
        "boundary-unreachable",
        "boundary-needed-0",
        "boundary-needed-neg",
        "boundary-overall-w-0",
        "boundary-overall-w-100",
        "boundary-points-total-0",
        "points-exceed-total",
        "boundary-categories-empty",
        "boundary-overall-missing-final"
      ]
    },
    "invalid": {
      "passed": 4,
      "total": 4,
      "failed": 0,
      "case_ids": [
        "boundary-w-0",
        "boundary-points-total-0",
        "boundary-categories-empty",
        "boundary-overall-missing-final"
      ]
    },
    "property": {
      "passed": 8,
      "total": 8,
      "failed": 0,
      "case_ids": [
        "property-deterministic",
        "property-w100-needed-eq-goal",
        "property-need-overall-roundtrip",
        "property-overall-w0",
        "property-overall-w100",
        "property-points-inverse",
        "property-monotonic-current",
        "property-Ww-identity"
      ],
      "kind": "fixed"
    },
    "round_trip": {
      "passed": 0,
      "total": 0,
      "failed": 0,
      "case_ids": []
    },
    "metamorphic": {
      "passed": 0,
      "total": 0,
      "failed": 0,
      "case_ids": []
    },
    "contract": {
      "passed": 1,
      "total": 1,
      "failed": 0
    },
    "cross_interface": {
      "passed": 1,
      "total": 1,
      "failed": 0,
      "case_ids": [
        "iface-need"
      ]
    }
  },
  "coverage": {
    "partitions": [
      {
        "id": "need",
        "description": "Need on final",
        "exercised": true,
        "case_count": 16
      },
      {
        "id": "overall",
        "description": "Overall after final",
        "exercised": true,
        "case_count": 4
      },
      {
        "id": "weighted",
        "description": "Weighted categories",
        "exercised": true,
        "case_count": 1
      },
      {
        "id": "points",
        "description": "Points → weight",
        "exercised": true,
        "case_count": 2
      },
      {
        "id": "invalid-domain",
        "description": "Invalid inputs",
        "exercised": true,
        "case_count": 4
      }
    ]
  },
  "numerical": {
    "representation": "IEEE-754 binary64 percent arithmetic",
    "tolerance": {
      "type": "ulp",
      "value": 2,
      "rationale": "Independent weighted-mean algebra vs IUT; ≤2 ULP on value. Declared a priori.",
      "declared_before_evaluation": true
    },
    "max_error_observed": 0,
    "records": [
      {
        "id": "g-need",
        "reference": {
          "status": "ok",
          "mode": "need",
          "current": 85,
          "goal": 90,
          "weight": 40,
          "remain": 60,
          "needed": 97.5,
          "value": 97.5,
          "unit": "%",
          "reachability": "attainable",
          "warnings": []
        },
        "actual": {
          "status": "ok",
          "code": null,
          "mode": "need",
          "current": 85,
          "goal": 90,
          "weight": 40,
          "remain": 60,
          "needed": 97.5,
          "value": 97.5,
          "unit": "%",
          "reachability": "attainable",
          "warnings": []
        },
        "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": "ad3fb76059bdb970fd961f97c689b8a254829f4e3e5e6ccb1e3c28ec718527fa",
    "evidence_digest": "d660dddb19db72bd0330443eb9f3fc72602e4a33e5ee831958ef92a75c5f7988",
    "production_sha256": "9424f31d3ca937ec4a453e41479201945df6495214f0a220ebb742e7fd1c3f20",
    "attested_catalog_sha256": "e03ef81b30568018b171fd1fc4757c2abe9df7220d9ff35bbaf08038d7630cdb",
    "production_checks": [
      {
        "id": "education.final_grade:output-const",
        "status": "pass",
        "detail": "output const 1.1.1 vs capability 1.1.1",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "education.final_grade:evidence-sha256",
        "status": "pass",
        "detail": "5f17437602e2",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "education.final_grade:semantic-contract",
        "status": "pass",
        "detail": "26/26",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "education.final_grade:capability-html-public-origin-agree",
        "status": "pass",
        "detail": "public 1.1.1 vs origin 1.1.1",
        "scope": "last_attestation_snapshot",
        "current": true,
        "attestation_binding_current": true,
        "attested_at": "2026-09-10T02:52:51.379Z"
      },
      {
        "id": "education.final_grade:cvp-manifest-public-origin-agree",
        "status": "pass",
        "detail": "education.final_grade/1.1.1/-/engineering/d660dddb19db",
        "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": "education.final_grade: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": "education.final_grade: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": "final-grade-engine",
      "version": "1.1.1"
    },
    {
      "name": "final-grade-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": "ABSENT",
    "spec_version": "1.1.1"
  },
  "timestamps": {
    "verified_at": "2026-09-10T03:41:47.636Z",
    "generated_at": "2026-09-10T03:41:47.636Z"
  },
  "links": {
    "legacy_evidence": "https://www.calculatorx.com/evidence/education.final_grade/1.1.1.json",
    "evidence_page": "https://www.calculatorx.com/evidence/education.final_grade/1.1.1",
    "calculator": "https://www.calculatorx.com/calc/grade/final-grade",
    "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/education.final_grade/1.1.1.cvp.json"
  }
}
