{
  "capability_id": "math.modulo",
  "tool_id": "modulo",
  "engine": "modulo",
  "calculation_version": "1.1.1",
  "generated_at": "2026-10-22T10:58:53.558Z",
  "engine_build": "2026-10-14",
  "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"
  ],
  "limitations": [
    "Euclidean remainder, not truncated or floored remainder toward −∞ of the quotient only",
    "Not IEEE remainder or floating-point fmod",
    "Not /calc/math/gcf — gcd is only used for invertibility",
    "modulus = 0 → DIVISION_BY_ZERO",
    "gcd(a,m) ≠ 1 → NOT_INVERTIBLE",
    "|m| < 2 on inverse → INVALID_INPUT",
    "Share URLs use modulus, not m (m is reserved elsewhere)"
  ],
  "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:192ea2628487264688a315e630dc3465b5f174cc0b41dfe2a28a78f9c11bb490",
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 13,
      "total": 13,
      "golden": 3,
      "boundary": 4,
      "property": 6
    },
    "contract_checks": {
      "passed": 6,
      "total": 6
    }
  },
  "evidence_core_generated_at": "2026-10-14T04:17:16.233Z",
  "rendered_at": "2026-10-22T10:58:53.558Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.1.1",
    "artifacts": {
      "engine": "1.1.1",
      "page": "1.1.1",
      "capability": "1.1.1",
      "evidence": "1.1.1",
      "input_schema": "1.1.1",
      "output_schema": "1.1.1",
      "mcp_contract": "1.1.1"
    },
    "digests": {
      "input_schema_sha256": "e8f6ee56bfbbc1ef6fedc7e31c30edcd87d46b366fff66ec655c25f560f87b08",
      "output_schema_sha256": "e8be256a4acc2490c4a3995c939a9bfd6341a4d459f87518ef889b28dd2ef9d9",
      "evidence_sha256": "33124d2f92c4145c0355b1d2dcc6eb3b9887eec0c6eddcb7fd2b7195a77dba03",
      "evidence_core_sha256": "33124d2f92c4145c0355b1d2dcc6eb3b9887eec0c6eddcb7fd2b7195a77dba03",
      "capability_sha256": "279473266b41340319f0b148d3bb19a8dcbd8062b65f0cd58c08229053b54778",
      "engine_sha256": "a664ae25cd2134de7de43a99352933043215473589aec38c9416508150cb1008",
      "mcp_contract_sha256": "1e53aaaff6cf006a6a59b0399831b58936b91048db87310f14eb2991f05764f9"
    },
    "contract_checks": {
      "total": 6,
      "passed": 6,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.1.1"
        },
        {
          "id": "schema-output-required-declared",
          "status": "pass"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "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"
  }
}
