{
  "capability_id": "math.vector",
  "tool_id": "vector",
  "engine": "vector",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-20T09:07:29.781Z",
  "engine_build": "2026-09-20",
  "test_count": 11,
  "passed": 11,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 3,
      "passed": 3
    },
    "boundary": {
      "total": 2,
      "passed": 2
    },
    "property": {
      "total": 6,
      "passed": 6
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": false,
  "review_kind": null,
  "source_checked": true,
  "reviewed_by": null,
  "reviewer_role": null,
  "last_reviewed": null,
  "expert_review": {
    "status": "optional_not_performed",
    "reviewer": null,
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "note": "Domain expert review is optional under CVP (CVP-EXP-01). Absence does not block CVP Verified. See Review policy for supplemental domain assurance."
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/math/vector",
  "api": "https://www.calculatorx.com/api/v1/calc/vector",
  "schema_input": "https://www.calculatorx.com/schemas/math.vector.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.vector.output.json",
  "assumptions": [
    "Euclidean R²/R³",
    "uz/vz/wz default to 0",
    "Not a matrix",
    "Not coordinate geometry",
    "Not CAS"
  ],
  "limitations": [
    "R²/R³ only; uz/vz/wz default to 0",
    "Not a matrix — det / inverse / eigen stay on math.linear_algebra",
    "Not coordinate geometry (two-point line / intersection / angle between lines)",
    "Angle is the vector included angle in [0°, 180°], not the acute line angle",
    "Zero vector: magnitude 0 is valid; normalize / angle / projection → INVALID_INPUT",
    "unknown mode (including cas, eigen, matrix) → INVALID_MODE"
  ],
  "boundary_conditions": [
    "missing ux or uy → MISSING_REQUIRED_INPUT",
    "zero vector normalize / angle / projection → INVALID_INPUT",
    "unknown mode → INVALID_MODE"
  ],
  "sources": [
    "ISO 80000-2:2019 Quantities and units — Mathematics"
  ],
  "methods": [],
  "fingerprint": "sha256:a13c8c2eceb68442e67624cd72a734c310c0ac2e5437db2195d2c108de3b8a6c",
  "tests": [
    {
      "id": "golden-vector-345",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "magnitude",
        "ux": 3,
        "uy": 4
      },
      "expect": {
        "magnitude": 5
      },
      "expectWarning": null,
      "actual": {
        "mode": "magnitude",
        "ux": 3,
        "uy": 4,
        "uz": 0,
        "magnitude": 5,
        "formula": "|u| = √(ux² + uy² + uz²)"
      },
      "tol": null
    },
    {
      "id": "golden-dot-123-456",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "dot",
        "ux": 1,
        "uy": 2,
        "uz": 3,
        "vx": 4,
        "vy": 5,
        "vz": 6
      },
      "expect": {
        "dot": 32
      },
      "expectWarning": null,
      "actual": {
        "mode": "dot",
        "ux": 1,
        "uy": 2,
        "uz": 3,
        "vx": 4,
        "vy": 5,
        "vz": 6,
        "dot": 32,
        "formula": "u · v = ux vx + uy vy + uz vz"
      },
      "tol": null
    },
    {
      "id": "golden-cross-i-j",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "mode": "cross",
        "ux": 1,
        "uy": 0,
        "uz": 0,
        "vx": 0,
        "vy": 1,
        "vz": 0
      },
      "expect": {
        "cx": 0,
        "cy": 0,
        "cz": 1
      },
      "expectWarning": null,
      "actual": {
        "mode": "cross",
        "ux": 1,
        "uy": 0,
        "uz": 0,
        "vx": 0,
        "vy": 1,
        "vz": 0,
        "cx": 0,
        "cy": 0,
        "cz": 1,
        "formula": "u × v"
      },
      "tol": null
    },
    {
      "id": "boundary-vector-mode",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "cas",
        "ux": 1,
        "uy": 0
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "mode must be magnitude, normalize, add, sub, dot, cross, angle, projection, or triple. Not a matrix, not coordinate geometry, not CAS."
    },
    {
      "id": "boundary-normalize-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "mode": "normalize",
        "ux": 0,
        "uy": 0
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "Cannot normalize the zero vector."
    },
    {
      "id": "property-vec-345",
      "ok": true,
      "kind": "property",
      "detail": "|(3,4)|=5",
      "expect": 5,
      "actual": 5
    },
    {
      "id": "property-vec-unit",
      "ok": true,
      "kind": "property",
      "detail": "unit 3-4",
      "expect": 0.6,
      "actual": 0.6
    },
    {
      "id": "property-vec-dot",
      "ok": true,
      "kind": "property",
      "detail": "dot 1-2-3·4-5-6",
      "expect": 32,
      "actual": 32
    },
    {
      "id": "property-vec-cross",
      "ok": true,
      "kind": "property",
      "detail": "i×j=k",
      "expect": 1,
      "actual": 1
    },
    {
      "id": "property-vec-angle",
      "ok": true,
      "kind": "property",
      "detail": "i∠j=90°",
      "expect": 90,
      "actual": 90
    },
    {
      "id": "property-vec-triple",
      "ok": true,
      "kind": "property",
      "detail": "i·(j×k)=1",
      "expect": 1,
      "actual": 1
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 11,
      "total": 11,
      "golden": 3,
      "boundary": 2,
      "property": 6
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-20T02:57:05.889Z",
  "rendered_at": "2026-09-20T09:07:29.781Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.0",
    "artifacts": {
      "engine": "1.0.0",
      "page": "1.0.0",
      "capability": "1.0.0",
      "evidence": "1.0.0",
      "input_schema": "1.0.0",
      "output_schema": "1.0.0",
      "mcp_contract": "1.0.0"
    },
    "digests": {
      "input_schema_sha256": "edeae6ba0412d1dfbb35dc690a1007f4af4f5813b2fe750cad6b9bea64c42687",
      "output_schema_sha256": "9e7b6c3a259365a757805cdb19952b4e5cdaddfd9e37bd82ba929d0701cdb7cf",
      "evidence_sha256": "53da07b8fdd53e7b6ef43b4c3cb647410c970bb363fb36d87e737f5ea7c5564a",
      "evidence_core_sha256": "53da07b8fdd53e7b6ef43b4c3cb647410c970bb363fb36d87e737f5ea7c5564a",
      "capability_sha256": "d5b40440e380ae8f6d23d65ff0dfa2826182673b0702d7fc2330d0cd22884533",
      "engine_sha256": "43bbc25ec362b3f78daa612fef9a96df34206649b79e753faa7f17441d59b17a",
      "mcp_contract_sha256": "bf0dcfcfd80680efd201a229fab7f7a80ba9abbff3bea07815672d1d5cb2435a"
    },
    "contract_checks": {
      "total": 3,
      "passed": 3,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
