{
  "capability_id": "math.modulo",
  "tool_id": "modulo",
  "engine": "modulo",
  "calculation_version": "1.1.2",
  "generated_at": "2026-10-23T01:27:11.632Z",
  "engine_build": "2026-10-22",
  "test_count": 13,
  "passed": 13,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "passed": 3,
      "total": 3
    },
    "boundary": {
      "passed": 4,
      "total": 4
    },
    "property": {
      "passed": 6,
      "total": 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/modulo",
  "api": "https://www.calculatorx.com/api/v1/calc/modulo",
  "schema_input": "https://www.calculatorx.com/schemas/math.modulo.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.modulo.output.json",
  "assumptions": [
    "Euclidean remainder",
    "Not JavaScript truncated %",
    "Integers only: at most48 digits and512 token characters; safe JSON numbers or exact signed digit strings."
  ],
  "limitations": [
    "Integer tokens up to48 digits and512 characters; JSON numeric integers must be safe. Use digit strings for larger exact integers; no decimal/scientific syntax.",
    "Euclidean0<=r<|m|; nonzero modulus. Inverse requires |m|>=2 and gcd(a,m)=1. Canonical bezout_x=inverse, bezout_y=(1-a*inverse)/modulus.",
    "Numeric outputs are safe integers; larger exact values use decimal strings. No floating rounding or measurement-uncertainty model. Not constant-time cryptography.",
    "Share links use the current engine. The modular-inverse entry locks inverse, overriding a conflicting mode parameter."
  ],
  "boundary_conditions": [
    "missing a or modulus → MISSING_REQUIRED_INPUT",
    "modulus = 0 → DIVISION_BY_ZERO"
  ],
  "sources": [
    {
      "title": "ISO 80000-2:2019 Quantities and units — Mathematics (integer division / remainder)",
      "url": "https://www.iso.org/standard/64973.html",
      "supports": "Mathematical symbols and notation. This standard is not numerical verification or an endorsement of this implementation.",
      "kind": "standard",
      "publisher": "International Organization for Standardization"
    },
    "Knuth, The Art of Computer Programming, Euclidean division (remainder ≥ 0)",
    {
      "title": "MIT Mathematics for Computer Science — Chapter 8: Number Theory",
      "section": "Chapter 8, including sections 8.2–8.9 and problem 8.24",
      "url": "https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook.pdf",
      "supports": "Divisibility, prime factorization, gcd and the Euclidean algorithm, lcm via prime exponents, division with remainder, modular congruence and multiplicative inverses. CalculatorX’s signed-remainder and zero-input policies are stated separately on the page. Mathematical reference only; not validation or endorsement of this implementation.",
      "kind": "reference",
      "publisher": "Massachusetts Institute of Technology"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:4fa57d39769a0a6099a971cf2d6f5d692eaedf649e46fdc814f6fdf0ba37aab6",
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 13,
      "total": 13,
      "golden": 3,
      "boundary": 4,
      "property": 6
    },
    "contract_checks": {
      "passed": 5,
      "total": 5
    }
  },
  "evidence_core_generated_at": "2026-10-22T14:06:51.529Z",
  "rendered_at": "2026-10-23T01:27:11.632Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.1.2",
    "artifacts": {
      "engine": "1.1.2",
      "page": "1.1.2",
      "capability": "1.1.2",
      "evidence": "1.1.2",
      "input_schema": "1.1.2",
      "output_schema": "1.1.2",
      "mcp_contract": "1.1.2"
    },
    "digests": {
      "input_schema_sha256": "62bb947505f772be313af5e28c614680ab050f49cfe4ecae5da6850f1366e87c",
      "output_schema_sha256": "9caa31ab215816f30bf5fbab15ac0c4be836f84da2137a3a9b26081623180186",
      "evidence_sha256": "2bbb17a4e2f9a47bbb4b1ab0e678c8490a78b9bff4f6abe0a3767f2d6b951391",
      "evidence_core_sha256": "2bbb17a4e2f9a47bbb4b1ab0e678c8490a78b9bff4f6abe0a3767f2d6b951391",
      "capability_sha256": "2d9f18fa7dc7caadaebc44edb2332e4c38c5d8ed345f1f6ae56636b219e0c5c5",
      "engine_sha256": "a664ae25cd2134de7de43a99352933043215473589aec38c9416508150cb1008",
      "mcp_contract_sha256": "8defa770ea0b34118e3444b698842353896edfffa88b4ef1c34898f3f5378790"
    },
    "contract_checks": {
      "total": 5,
      "passed": 5,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.1.2"
        },
        {
          "id": "schema-output-required-declared",
          "status": "pass"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "rest-success-payload-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  },
  "tests": [],
  "disclosure": {
    "policy": "calculatorx-public-evidence-v1",
    "full_validation": "private",
    "representation": "summary"
  }
}
