{
  "capability_id": "engineering.tolerance.monte_carlo",
  "tool_id": "monte-carlo-tolerance",
  "engine": "monte-carlo-tolerance",
  "calculation_version": "1.12.0",
  "generated_at": "2026-09-21T16:00:36.047Z",
  "engine_build": "2026-09-11",
  "test_count": 71,
  "passed": 71,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 5,
      "passed": 5
    },
    "boundary": {
      "total": 26,
      "passed": 26
    },
    "property": {
      "total": 40,
      "passed": 40
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": true,
  "review_kind": "internal",
  "source_checked": true,
  "reviewed_by": "CalculatorX tolerance / mechanical engineering review",
  "reviewer_role": "tolerance-engineer",
  "last_reviewed": "2026-08-12",
  "expert_review": {
    "status": "not_applicable",
    "reviewer": null,
    "note": "Internal domain review completed; not a named external expert review.",
    "kind": "internal"
  },
  "internal_review": {
    "status": "approved",
    "reviewer": {
      "name": "CalculatorX tolerance / mechanical engineering review",
      "role": "tolerance-engineer"
    },
    "reviewed_at": "2026-08-12",
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "kind": "internal"
  },
  "page": "https://www.calculatorx.com/calc/engineering/monte-carlo-tolerance",
  "api": "https://www.calculatorx.com/api/v1/calc/monte-carlo-tolerance",
  "schema_input": "https://www.calculatorx.com/schemas/engineering.tolerance.monte_carlo.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/engineering.tolerance.monte_carlo.output.json",
  "assumptions": [
    "Independent unless correlations provided",
    "Correlated all-normal: joint two-piece normal via Cholesky",
    "Correlated non-normal: Gaussian-copula NORTA; entered ρ is latent Gaussian correlation, not Pearson of the finished marginals",
    "Cp*/Cpk* are design-stage simulated indices"
  ],
  "limitations": [
    "1-D stack; correlations use joint normal (all-normal) or Gaussian-copula NORTA (non-normal marginals)",
    "Asymmetric normal uses two-piece scaling; uniform/triangular use [-tol_minus,+tol_plus]",
    "Cp/Cpk/Ppk are simulated design-stage indices from overall MC mean/σ — not measured in-control SPC",
    "Sobol requires independent inputs; for this linear stack Si=STi=analytic variance shares",
    "Shapley variance attribution supports correlation; exact for d≤12, permutation estimate for d>12",
    "Under NORTA, analytic σ uses Cov≈ρ·σi·σj (latent ρ); prefer Monte Carlo σ",
    "Shared query must encode noms/sense; legacy tol1/tol2 alone is error-only (nominals 0)",
    "Not full GD&T / 3-D geometry",
    "MCP/agent input schema is canonical (no legacy field aliases); REST still accepts aliases",
    "calculation_fingerprint is SHA-256; calculation_short_id is FNV-1a32 for UI only",
    "MCP execute/inspect default detail_level=summary; pass full for histogram/Sobol/Shapley/contributors",
    "Agent correlations use named pairs {a,b,rho} only (no i/j indexes)",
    "Agent tolerances: half_tolerance OR both tol_plus+tol_minus (no single-sided agent form)"
  ],
  "boundary_conditions": [
    "N∉100…1e5 → VALUE_OUT_OF_RANGE",
    "stack center outside LSL/USL → SPEC_CENTER_MISMATCH",
    "observed yield 0 or 1 → YIELD_SAMPLING_EXTREME",
    "sobol + correlations → SOBOL_REQUIRES_INDEPENDENT_INPUTS",
    "non-normal + correlations → Gaussian-copula NORTA (CORRELATED_NORTA)",
    "shapley works with correlations (exact d≤12)"
  ],
  "sources": [
    {
      "title": "NIST IR 6223 — Design for Tolerance of Electro-Mechanical Assemblies",
      "section": "Monte Carlo for assembly tolerance analysis",
      "url": "https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir6223.pdf",
      "supports": "Monte Carlo for assembly tolerance and functional requirements",
      "kind": "reference"
    },
    {
      "title": "ASME Y14.5 — Dimensioning and Tolerancing",
      "section": "Dimensional tolerancing semantics",
      "url": "https://www.asme.org/codes-standards/find-codes-standards/y14-5-dimensioning-tolerancing",
      "supports": "± and limit tolerancing language background",
      "kind": "standard"
    },
    {
      "title": "NIST Engineering Statistics Handbook — Process Capability",
      "section": "6.1.6 What is Process Capability?",
      "url": "https://www.itl.nist.gov/div898/handbook/pmc/section1/pmc16.htm",
      "supports": "Distinguishes simulated design indices from measured SPC Cp/Cpk",
      "kind": "reference"
    },
    {
      "title": "Statistical tolerance analysis practice",
      "section": "RSS, correlation, sensitivity, capability",
      "supports": "Stack-up, Spearman ranking, design-stage capability",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:b4326f46a11710b3cbb4d2b124ac12ebc8e637d6d7e6dd9fbbbdcc2fd9c25a43",
  "tests": [
    {
      "id": "mc",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "tol1": 0.1,
        "tol2": 0.2,
        "N": 2000,
        "seed": 42
      },
      "expect": {
        "std": 0.07431402402418098,
        "std_analytic": 0.07453559924999299
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 2,
        "N": 2000,
        "seed": 42,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T2",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": 0.00027942046066928717,
        "std": 0.07431402402418098,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": -0.002972743602273117,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.43122055780513946,
            "sensitivity_share": 19.211112318025574,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T2",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": 0.8842987595746898,
            "sensitivity_share": 80.78888768197442,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.07860623255600938,
            "mean": -0.0011420215968446965,
            "rel_err_vs_analytic": 0.054613276702364016
          },
          {
            "N": 1000,
            "std": 0.07384703336215144,
            "mean": 0.0002922136303471721,
            "rel_err_vs_analytic": -0.009238080793207242
          },
          {
            "N": 2000,
            "std": 0.07431402402418101,
            "mean": 0.0002794204606692373,
            "rel_err_vs_analytic": -0.0029727436022727446
          }
        ],
        "p025": -0.14853515498327396,
        "p05": -0.1243487198389368,
        "p50": 0.0006320186234671336,
        "p95": 0.12167142849463117,
        "p975": 0.14710352950576439,
        "p99": 0.16606672810109607,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:137b9bac0d4c6f3e655eb04ce9450c62296e02e564dec2d43bddb74ef8105658",
        "calculation_short_id": "fnv1a32:becf725e",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 42
        },
        "histogram": {
          "bins": 24,
          "min": -0.2408051138309298,
          "max": 0.23024265385623355,
          "counts": [
            1,
            3,
            8,
            15,
            33,
            45,
            64,
            97,
            134,
            148,
            176,
            200,
            233,
            173,
            192,
            141,
            121,
            88,
            52,
            32,
            27,
            10,
            5,
            2
          ]
        }
      },
      "tol": 1e-9
    },
    {
      "id": "bad-N",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.1,
        "N": 10
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "N must be in 100…100000"
    },
    {
      "id": "empty",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "N": 1000
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "need at least one tolerance"
    },
    {
      "id": "seeded",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "tol1": 0.1,
        "tol2": 0.2,
        "N": 2000,
        "seed": 42
      },
      "expect": {
        "mean": 0.00027942046066928717
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 2,
        "N": 2000,
        "seed": 42,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T2",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": 0.00027942046066928717,
        "std": 0.07431402402418098,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": -0.002972743602273117,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.43122055780513946,
            "sensitivity_share": 19.211112318025574,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T2",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": 0.8842987595746898,
            "sensitivity_share": 80.78888768197442,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.07860623255600938,
            "mean": -0.0011420215968446965,
            "rel_err_vs_analytic": 0.054613276702364016
          },
          {
            "N": 1000,
            "std": 0.07384703336215144,
            "mean": 0.0002922136303471721,
            "rel_err_vs_analytic": -0.009238080793207242
          },
          {
            "N": 2000,
            "std": 0.07431402402418101,
            "mean": 0.0002794204606692373,
            "rel_err_vs_analytic": -0.0029727436022727446
          }
        ],
        "p025": -0.14853515498327396,
        "p05": -0.1243487198389368,
        "p50": 0.0006320186234671336,
        "p95": 0.12167142849463117,
        "p975": 0.14710352950576439,
        "p99": 0.16606672810109607,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:137b9bac0d4c6f3e655eb04ce9450c62296e02e564dec2d43bddb74ef8105658",
        "calculation_short_id": "fnv1a32:becf725e",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 42
        },
        "histogram": {
          "bins": 24,
          "min": -0.2408051138309298,
          "max": 0.23024265385623355,
          "counts": [
            1,
            3,
            8,
            15,
            33,
            45,
            64,
            97,
            134,
            148,
            176,
            200,
            233,
            173,
            192,
            141,
            121,
            88,
            52,
            32,
            27,
            10,
            5,
            2
          ]
        }
      },
      "tol": 1e-9
    },
    {
      "id": "canonical",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "tolerances": [
          {
            "name": "A",
            "half_tolerance": 0.1
          },
          {
            "name": "B",
            "half_tolerance": 0.2
          }
        ],
        "N": 2000,
        "seed": 42
      },
      "expect": {
        "std": 0.07431402402418098
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 2,
        "N": 2000,
        "seed": 42,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "A",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "B",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": 0.00027942046066928717,
        "std": 0.07431402402418098,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": -0.002972743602273117,
        "contributors": [
          {
            "name": "A",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.43122055780513946,
            "sensitivity_share": 19.211112318025574,
            "sensitivity_method": "spearman"
          },
          {
            "name": "B",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": 0.8842987595746898,
            "sensitivity_share": 80.78888768197442,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.07860623255600938,
            "mean": -0.0011420215968446965,
            "rel_err_vs_analytic": 0.054613276702364016
          },
          {
            "N": 1000,
            "std": 0.07384703336215144,
            "mean": 0.0002922136303471721,
            "rel_err_vs_analytic": -0.009238080793207242
          },
          {
            "N": 2000,
            "std": 0.07431402402418101,
            "mean": 0.0002794204606692373,
            "rel_err_vs_analytic": -0.0029727436022727446
          }
        ],
        "p025": -0.14853515498327396,
        "p05": -0.1243487198389368,
        "p50": 0.0006320186234671336,
        "p95": 0.12167142849463117,
        "p975": 0.14710352950576439,
        "p99": 0.16606672810109607,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:b0bf3238da692ea19c35793b606e970b913726f1e4be1a74a6c7a3fc8dc6add0",
        "calculation_short_id": "fnv1a32:2d337d90",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 42
        },
        "histogram": {
          "bins": 24,
          "min": -0.2408051138309298,
          "max": 0.23024265385623355,
          "counts": [
            1,
            3,
            8,
            15,
            33,
            45,
            64,
            97,
            134,
            148,
            176,
            200,
            233,
            173,
            192,
            141,
            121,
            88,
            52,
            32,
            27,
            10,
            5,
            2
          ]
        }
      },
      "tol": 1e-9
    },
    {
      "id": "gap-yield",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "tolerances": [
          {
            "name": "A",
            "nominal": 10,
            "half_tolerance": 0.1,
            "coefficient": 1
          },
          {
            "name": "B",
            "nominal": 5,
            "half_tolerance": 0.2,
            "coefficient": -1
          }
        ],
        "N": 20000,
        "seed": 42,
        "LSL": 4.8,
        "USL": 5.2
      },
      "expect": {
        "stack_nom": 5,
        "yield": 0.99285
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "dimensional",
        "n": 2,
        "N": 20000,
        "seed": 42,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "A",
            "nominal": 10,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "B",
            "nominal": 5,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": -1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 5,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 5,
        "mean": 5.001093838487071,
        "std": 0.0742061447862047,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": -0.0044200954591281875,
        "contributors": [
          {
            "name": "A",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.42936986472242467,
            "sensitivity_share": 19.07773733805351,
            "sensitivity_method": "spearman"
          },
          {
            "name": "B",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": -0.8843051137692628,
            "sensitivity_share": 80.92226266194649,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.07451284813704952,
            "mean": 5.0100498215807034,
            "rel_err_vs_analytic": -0.0003052382106323183
          },
          {
            "N": 1000,
            "std": 0.07381717203788368,
            "mean": 5.002123817055456,
            "rel_err_vs_analytic": -0.009638712498972463
          },
          {
            "N": 10000,
            "std": 0.07448584394816626,
            "mean": 5.001127261563749,
            "rel_err_vs_analytic": -0.0006675374227535106
          },
          {
            "N": 20000,
            "std": 0.0742061447862049,
            "mean": 5.001093838487107,
            "rel_err_vs_analytic": -0.004420095459125581
          }
        ],
        "p025": 4.8576818063955125,
        "p05": 4.879576986299328,
        "p50": 5.000970646546322,
        "p95": 5.121920234459469,
        "p975": 5.1484443419450905,
        "p99": 5.174133900578514,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": 4.8,
        "USL": 5.2,
        "yield": 0.99285,
        "reject_rate": 0.00714999999999999,
        "ppm_below": 3500,
        "ppm_above": 3650,
        "ppm_total": 7150,
        "below_count": 70,
        "above_count": 73,
        "in_spec_count": 19857,
        "Cp": 0.8983981967900372,
        "Cpl": 0.9033117094118573,
        "Cpu": 0.893484684168217,
        "Cpk": 0.893484684168217,
        "Ppk": 0.893484684168217,
        "capability_basis": "simulated_monte_carlo",
        "capability_normal_equivalent": true,
        "simulated_Cp": 0.8983981967900372,
        "simulated_Cpk": 0.893484684168217,
        "yield_sampling": {
          "N": 20000,
          "observed_pass": 19857,
          "observed_fail": 143,
          "observed_yield": 0.99285,
          "rule_of_three": 0.00015,
          "ppm_per_sample": 50,
          "ci_method": "wilson",
          "ci_level": 0.95,
          "ci_low": 0.9915839464297019,
          "ci_high": 0.9939267636297957
        },
        "warnings": [],
        "calculation_fingerprint": "sha256:762b7123db14625770aca42c730680b8615d254e9afc5a72980166fa16e617a6",
        "calculation_short_id": "fnv1a32:21750f38",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 42
        },
        "histogram": {
          "bins": 24,
          "min": 4.715128824295494,
          "max": 5.295647415268561,
          "counts": [
            8,
            11,
            34,
            60,
            130,
            311,
            605,
            985,
            1451,
            1937,
            2378,
            2554,
            2472,
            2248,
            1795,
            1317,
            823,
            424,
            264,
            116,
            56,
            14,
            4,
            3
          ]
        }
      },
      "tol": 1e-9
    },
    {
      "id": "asym-uniform",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "tolerances": [
          {
            "name": "A",
            "tol_plus": 0.2,
            "tol_minus": 0.05,
            "distribution": "uniform"
          }
        ],
        "N": 10000,
        "seed": 2
      },
      "expect": {
        "stack_dist_mean": 0.075,
        "std_analytic": 0.07216878364870323
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "dimensional",
        "n": 1,
        "N": 10000,
        "seed": 2,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.125
        ],
        "half_tolerances": [
          0.125
        ],
        "tolerances": [
          {
            "name": "A",
            "nominal": 0,
            "half_tolerance": 0.125,
            "tol_plus": 0.2,
            "tol_minus": 0.05,
            "asymmetric": true,
            "coefficient": 1,
            "distribution": "uniform",
            "mean_shift": 0,
            "error_mean": 0.07500000000000001,
            "error_std": 0.07216878364870323
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0.07500000000000001,
        "stack_center": 0.07500000000000001,
        "mean": 0.07520854572218731,
        "std": 0.07217695768992448,
        "std_analytic": 0.07216878364870323,
        "std_rel_err": 0.00011326283758691552,
        "contributors": [
          {
            "name": "A",
            "sigma": 0.07216878364870323,
            "variance_share": 1,
            "percent": 100,
            "sensitivity": 1,
            "sensitivity_share": 100,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.07900779197774346,
            "mean": 0.0795574329205556,
            "rel_err_vs_analytic": 0.0947640791942753
          },
          {
            "N": 1000,
            "std": 0.07406583650098149,
            "mean": 0.07496986470551918,
            "rel_err_vs_analytic": 0.02628633539831519
          },
          {
            "N": 10000,
            "std": 0.07217695768992452,
            "mean": 0.07520854572218383,
            "rel_err_vs_analytic": 0.0001132628375874924
          }
        ],
        "p025": -0.043260948860552165,
        "p05": -0.036758457205723974,
        "p50": 0.07530498509295284,
        "p95": 0.18664561472833158,
        "p975": 0.193495907925535,
        "p99": 0.19737677624216304,
        "stack_worst": 0.2,
        "stack_rss": 0.125,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": false,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:165f20f05ebf9dff0a5135a376d7596437c361cc15591a441d668ceb23d2d673",
        "calculation_short_id": "fnv1a32:3d330e79",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 2
        },
        "histogram": {
          "bins": 24,
          "min": -0.04996221368201077,
          "max": 0.19999084154842423,
          "counts": [
            391,
            424,
            421,
            447,
            415,
            405,
            447,
            405,
            421,
            368,
            428,
            416,
            404,
            418,
            397,
            390,
            442,
            427,
            451,
            402,
            434,
            453,
            407,
            387
          ]
        }
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mc",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.1,
        "tol2": 0.2,
        "N": 2000,
        "seed": 42
      },
      "expect": {
        "std": 0.07431402402418098,
        "std_analytic": 0.07453559924999299,
        "stack_nom": 0
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 2,
        "N": 2000,
        "seed": 42,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T2",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": 0.00027942046066928717,
        "std": 0.07431402402418098,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": -0.002972743602273117,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.43122055780513946,
            "sensitivity_share": 19.211112318025574,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T2",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": 0.8842987595746898,
            "sensitivity_share": 80.78888768197442,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.07860623255600938,
            "mean": -0.0011420215968446965,
            "rel_err_vs_analytic": 0.054613276702364016
          },
          {
            "N": 1000,
            "std": 0.07384703336215144,
            "mean": 0.0002922136303471721,
            "rel_err_vs_analytic": -0.009238080793207242
          },
          {
            "N": 2000,
            "std": 0.07431402402418101,
            "mean": 0.0002794204606692373,
            "rel_err_vs_analytic": -0.0029727436022727446
          }
        ],
        "p025": -0.14853515498327396,
        "p05": -0.1243487198389368,
        "p50": 0.0006320186234671336,
        "p95": 0.12167142849463117,
        "p975": 0.14710352950576439,
        "p99": 0.16606672810109607,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:137b9bac0d4c6f3e655eb04ce9450c62296e02e564dec2d43bddb74ef8105658",
        "calculation_short_id": "fnv1a32:becf725e",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 42
        },
        "histogram": {
          "bins": 24,
          "min": -0.2408051138309298,
          "max": 0.23024265385623355,
          "counts": [
            1,
            3,
            8,
            15,
            33,
            45,
            64,
            97,
            134,
            148,
            176,
            200,
            233,
            173,
            192,
            141,
            121,
            88,
            52,
            32,
            27,
            10,
            5,
            2
          ]
        }
      },
      "tol": 1e-9
    },
    {
      "id": "boundary-mc-canonical",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tolerances": [
          {
            "name": "A",
            "half_tolerance": 0.1
          },
          {
            "name": "B",
            "half_tolerance": 0.2
          }
        ],
        "N": 2000,
        "seed": 42
      },
      "expect": {
        "std": 0.07431402402418098,
        "n": 2
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 2,
        "N": 2000,
        "seed": 42,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "A",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "B",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": 0.00027942046066928717,
        "std": 0.07431402402418098,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": -0.002972743602273117,
        "contributors": [
          {
            "name": "A",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.43122055780513946,
            "sensitivity_share": 19.211112318025574,
            "sensitivity_method": "spearman"
          },
          {
            "name": "B",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": 0.8842987595746898,
            "sensitivity_share": 80.78888768197442,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.07860623255600938,
            "mean": -0.0011420215968446965,
            "rel_err_vs_analytic": 0.054613276702364016
          },
          {
            "N": 1000,
            "std": 0.07384703336215144,
            "mean": 0.0002922136303471721,
            "rel_err_vs_analytic": -0.009238080793207242
          },
          {
            "N": 2000,
            "std": 0.07431402402418101,
            "mean": 0.0002794204606692373,
            "rel_err_vs_analytic": -0.0029727436022727446
          }
        ],
        "p025": -0.14853515498327396,
        "p05": -0.1243487198389368,
        "p50": 0.0006320186234671336,
        "p95": 0.12167142849463117,
        "p975": 0.14710352950576439,
        "p99": 0.16606672810109607,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:b0bf3238da692ea19c35793b606e970b913726f1e4be1a74a6c7a3fc8dc6add0",
        "calculation_short_id": "fnv1a32:2d337d90",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 42
        },
        "histogram": {
          "bins": 24,
          "min": -0.2408051138309298,
          "max": 0.23024265385623355,
          "counts": [
            1,
            3,
            8,
            15,
            33,
            45,
            64,
            97,
            134,
            148,
            176,
            200,
            233,
            173,
            192,
            141,
            121,
            88,
            52,
            32,
            27,
            10,
            5,
            2
          ]
        }
      },
      "tol": 1e-9
    },
    {
      "id": "boundary-mc-gap",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tolerances": [
          {
            "name": "A",
            "nominal": 10,
            "half_tolerance": 0.1,
            "coefficient": 1
          },
          {
            "name": "B",
            "nominal": 5,
            "half_tolerance": 0.2,
            "coefficient": -1
          }
        ],
        "N": 20000,
        "seed": 42,
        "LSL": 4.8,
        "USL": 5.2
      },
      "expect": {
        "stack_nom": 5,
        "std_analytic": 0.07453559924999299,
        "yield": 0.99285,
        "Cp": 0.8983981967900371
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "dimensional",
        "n": 2,
        "N": 20000,
        "seed": 42,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "A",
            "nominal": 10,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "B",
            "nominal": 5,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": -1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 5,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 5,
        "mean": 5.001093838487071,
        "std": 0.0742061447862047,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": -0.0044200954591281875,
        "contributors": [
          {
            "name": "A",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.42936986472242467,
            "sensitivity_share": 19.07773733805351,
            "sensitivity_method": "spearman"
          },
          {
            "name": "B",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": -0.8843051137692628,
            "sensitivity_share": 80.92226266194649,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.07451284813704952,
            "mean": 5.0100498215807034,
            "rel_err_vs_analytic": -0.0003052382106323183
          },
          {
            "N": 1000,
            "std": 0.07381717203788368,
            "mean": 5.002123817055456,
            "rel_err_vs_analytic": -0.009638712498972463
          },
          {
            "N": 10000,
            "std": 0.07448584394816626,
            "mean": 5.001127261563749,
            "rel_err_vs_analytic": -0.0006675374227535106
          },
          {
            "N": 20000,
            "std": 0.0742061447862049,
            "mean": 5.001093838487107,
            "rel_err_vs_analytic": -0.004420095459125581
          }
        ],
        "p025": 4.8576818063955125,
        "p05": 4.879576986299328,
        "p50": 5.000970646546322,
        "p95": 5.121920234459469,
        "p975": 5.1484443419450905,
        "p99": 5.174133900578514,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": 4.8,
        "USL": 5.2,
        "yield": 0.99285,
        "reject_rate": 0.00714999999999999,
        "ppm_below": 3500,
        "ppm_above": 3650,
        "ppm_total": 7150,
        "below_count": 70,
        "above_count": 73,
        "in_spec_count": 19857,
        "Cp": 0.8983981967900372,
        "Cpl": 0.9033117094118573,
        "Cpu": 0.893484684168217,
        "Cpk": 0.893484684168217,
        "Ppk": 0.893484684168217,
        "capability_basis": "simulated_monte_carlo",
        "capability_normal_equivalent": true,
        "simulated_Cp": 0.8983981967900372,
        "simulated_Cpk": 0.893484684168217,
        "yield_sampling": {
          "N": 20000,
          "observed_pass": 19857,
          "observed_fail": 143,
          "observed_yield": 0.99285,
          "rule_of_three": 0.00015,
          "ppm_per_sample": 50,
          "ci_method": "wilson",
          "ci_level": 0.95,
          "ci_low": 0.9915839464297019,
          "ci_high": 0.9939267636297957
        },
        "warnings": [],
        "calculation_fingerprint": "sha256:762b7123db14625770aca42c730680b8615d254e9afc5a72980166fa16e617a6",
        "calculation_short_id": "fnv1a32:21750f38",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 42
        },
        "histogram": {
          "bins": 24,
          "min": 4.715128824295494,
          "max": 5.295647415268561,
          "counts": [
            8,
            11,
            34,
            60,
            130,
            311,
            605,
            985,
            1451,
            1937,
            2378,
            2554,
            2472,
            2248,
            1795,
            1317,
            823,
            424,
            264,
            116,
            56,
            14,
            4,
            3
          ]
        }
      },
      "tol": 1e-9
    },
    {
      "id": "boundary-mc-corr",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tolerances": [
          {
            "name": "A",
            "half_tolerance": 0.3
          },
          {
            "name": "B",
            "half_tolerance": 0.3
          }
        ],
        "correlations": [
          {
            "a": "A",
            "b": "B",
            "rho": 0.5
          }
        ],
        "N": 2000,
        "seed": 3,
        "k_sigma": 3
      },
      "expect": {
        "std_analytic": 0.17320508075688773,
        "correlated": true
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "dimensional",
        "n": 2,
        "N": 2000,
        "seed": 3,
        "k_sigma": 3,
        "unit": null,
        "correlated": true,
        "correlation_model": "two_piece_normal",
        "correlations": [
          {
            "a": "A",
            "b": "B",
            "i": 0,
            "j": 1,
            "rho": 0.5
          }
        ],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.3,
          0.3
        ],
        "half_tolerances": [
          0.3,
          0.3
        ],
        "tolerances": [
          {
            "name": "A",
            "nominal": 0,
            "half_tolerance": 0.3,
            "tol_plus": 0.3,
            "tol_minus": 0.3,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.09999999999999999
          },
          {
            "name": "B",
            "nominal": 0,
            "half_tolerance": 0.3,
            "tol_plus": 0.3,
            "tol_minus": 0.3,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.09999999999999999
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": -0.002382278670343534,
        "std": 0.1714048735062999,
        "std_analytic": 0.1732050807568877,
        "std_rel_err": -0.010393501407239818,
        "contributors": [
          {
            "name": "A",
            "sigma": 0.09999999999999999,
            "variance_share": 0.33333333333333337,
            "percent": 33.333333333333336,
            "sensitivity": 0.8507372816843204,
            "sensitivity_share": 49.80111607784782,
            "sensitivity_method": "spearman"
          },
          {
            "name": "B",
            "sigma": 0.09999999999999999,
            "variance_share": 0.33333333333333337,
            "percent": 33.333333333333336,
            "sensitivity": 0.8541279980319995,
            "sensitivity_share": 50.19888392215218,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.15246552526844098,
            "mean": -0.026431712282364253,
            "rel_err_vs_analytic": -0.11973987944127897
          },
          {
            "N": 1000,
            "std": 0.1688405344939381,
            "mean": -0.0038318729434149404,
            "rel_err_vs_analytic": -0.025198719598045292
          },
          {
            "N": 2000,
            "std": 0.17140487350629996,
            "mean": -0.0023822786703435283,
            "rel_err_vs_analytic": -0.010393501407239497
          }
        ],
        "p025": -0.3330031609661134,
        "p05": -0.28399280044198844,
        "p50": 0.001697352306280514,
        "p95": 0.2817131709326456,
        "p975": 0.33812195772720577,
        "p99": 0.4071256124135718,
        "stack_worst": 0.6,
        "stack_rss": 0.4242640687119285,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:fd68a76322cdf0b0708ba5034b6851d8e07378bfd331fe21bb020597e6d4d07f",
        "calculation_short_id": "fnv1a32:d1d77423",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 3
        },
        "histogram": {
          "bins": 24,
          "min": -0.5910900297564395,
          "max": 0.6340595063946799,
          "counts": [
            1,
            1,
            6,
            11,
            29,
            50,
            79,
            127,
            163,
            208,
            193,
            231,
            230,
            197,
            175,
            132,
            63,
            45,
            24,
            21,
            8,
            5,
            0,
            1
          ]
        }
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mc-shift",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tolerances": [
          {
            "name": "A",
            "nominal": 10,
            "half_tolerance": 0.1,
            "mean_shift": 0.05
          },
          {
            "name": "B",
            "nominal": 5,
            "half_tolerance": 0.2,
            "coefficient": -1
          }
        ],
        "N": 500,
        "seed": 1
      },
      "expect": {
        "stack_nom": 5,
        "stack_shift": 0.05,
        "stack_center": 5.05
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "dimensional",
        "n": 2,
        "N": 500,
        "seed": 1,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "A",
            "nominal": 10,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0.05,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "B",
            "nominal": 5,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": -1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 5,
        "stack_shift": 0.05,
        "stack_dist_mean": 0,
        "stack_center": 5.05,
        "mean": 5.053068134698471,
        "std": 0.07664042232133847,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": 0.028239164808830253,
        "contributors": [
          {
            "name": "A",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.412249936999748,
            "sensitivity_share": 17.173147381936367,
            "sensitivity_method": "spearman"
          },
          {
            "name": "B",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": -0.9053598454393817,
            "sensitivity_share": 82.82685261806363,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.08060990810830178,
            "mean": 5.046466036816237,
            "rel_err_vs_analytic": 0.08149540514104549
          },
          {
            "N": 500,
            "std": 0.07664042232133837,
            "mean": 5.0530681346984725,
            "rel_err_vs_analytic": 0.028239164808828952
          }
        ],
        "p025": 4.913759436549967,
        "p05": 4.933878367942092,
        "p50": 5.052506481675188,
        "p95": 5.177916107212244,
        "p975": 5.2040443260002585,
        "p99": 5.230737106067606,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:f3f71b544d91cfc309d474c7cbc37a03765dd2700110ccaa9836903daba68d46",
        "calculation_short_id": "fnv1a32:01b1ce7e",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 1
        },
        "histogram": {
          "bins": 24,
          "min": 4.843191591968024,
          "max": 5.322319001054515,
          "counts": [
            4,
            1,
            4,
            9,
            14,
            31,
            35,
            35,
            45,
            46,
            52,
            44,
            50,
            47,
            23,
            20,
            17,
            9,
            7,
            3,
            1,
            1,
            1,
            1
          ]
        }
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mc-corr-uniform",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tolerances": [
          {
            "half_tolerance": 0.1,
            "distribution": "uniform"
          },
          {
            "half_tolerance": 0.1,
            "distribution": "uniform"
          }
        ],
        "correlations": [
          {
            "i": 0,
            "j": 1,
            "rho": 0.5
          }
        ],
        "N": 2000,
        "seed": 1
      },
      "expect": {
        "correlated": true,
        "correlation_model": "gaussian_copula_norta"
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "dimensional",
        "n": 2,
        "N": 2000,
        "seed": 1,
        "k_sigma": 3,
        "unit": null,
        "correlated": true,
        "correlation_model": "gaussian_copula_norta",
        "correlations": [
          {
            "a": "T1",
            "b": "T2",
            "i": 0,
            "j": 1,
            "rho": 0.5
          }
        ],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.1
        ],
        "half_tolerances": [
          0.1,
          0.1
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "uniform",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.05773502691896258
          },
          {
            "name": "T2",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "uniform",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.05773502691896258
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": 0.001536711873661617,
        "std": 0.10146217307208814,
        "std_analytic": 0.1,
        "std_rel_err": 0.014621730720881382,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.05773502691896258,
            "variance_share": 0.3333333333333333,
            "percent": 33.33333333333333,
            "sensitivity": 0.8626824206706052,
            "sensitivity_share": 49.953500600170045,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T2",
            "sigma": 0.05773502691896258,
            "variance_share": 0.3333333333333333,
            "percent": 33.33333333333333,
            "sensitivity": 0.8634850783712696,
            "sensitivity_share": 50.04649939982995,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.09687691943762593,
            "mean": 0.018260150586729657,
            "rel_err_vs_analytic": -0.03123080562374078
          },
          {
            "N": 1000,
            "std": 0.10093862871978232,
            "mean": -0.0005272035064415536,
            "rel_err_vs_analytic": 0.00938628719782314
          },
          {
            "N": 2000,
            "std": 0.10146217307208819,
            "mean": 0.0015367118736617626,
            "rel_err_vs_analytic": 0.014621730720881798
          }
        ],
        "p025": -0.1745468146757791,
        "p05": -0.16411049738611982,
        "p50": 0.0038206871884516394,
        "p95": 0.16448140299144703,
        "p975": 0.17785337815041774,
        "p99": 0.18617276089785031,
        "stack_worst": 0.2,
        "stack_rss": 0.14142135623730953,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": false,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [
          {
            "code": "CORRELATED_NORTA",
            "severity": "info",
            "detail": "Non-normal marginals with correlations use a Gaussian-copula (NORTA) model. ρ is the latent normal correlation.",
            "suggestion": "Analytic σ uses Cov≈ρ·σi·σj (exact for joint normal; approximate under NORTA). Prefer Monte Carlo σ for decisions."
          }
        ],
        "calculation_fingerprint": "sha256:21f1c2b58230e52b9be2c5a93c0e738e19246acae7fd6d8e5c7060368071bc83",
        "calculation_short_id": "fnv1a32:ef0c568b",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 1
        },
        "histogram": {
          "bins": 24,
          "min": -0.1989367732659087,
          "max": 0.19885348699687586,
          "counts": [
            18,
            73,
            74,
            75,
            72,
            92,
            83,
            91,
            93,
            99,
            108,
            97,
            116,
            98,
            95,
            116,
            102,
            94,
            88,
            75,
            78,
            66,
            59,
            38
          ]
        }
      },
      "tol": 0
    },
    {
      "id": "boundary-mc-uniform",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tolerances": [
          {
            "half_tolerance": 0.3,
            "distribution": "uniform"
          }
        ],
        "N": 2000,
        "seed": 1
      },
      "expect": {
        "std_analytic": 0.17320508075688773,
        "n": 1
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 1,
        "N": 2000,
        "seed": 1,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.3
        ],
        "half_tolerances": [
          0.3
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.3,
            "tol_plus": 0.3,
            "tol_minus": 0.3,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "uniform",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.17320508075688773
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": -0.004139741799258547,
        "std": 0.17226545871996782,
        "std_analytic": 0.17320508075688773,
        "std_rel_err": -0.00542491035952216,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.17320508075688773,
            "variance_share": 1,
            "percent": 100,
            "sensitivity": 1,
            "sensitivity_share": 100,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.17771715172505456,
            "mean": -0.00740113593405113,
            "rel_err_vs_analytic": 0.026050453880738154
          },
          {
            "N": 1000,
            "std": 0.17362656284117153,
            "mean": -0.004931939244037503,
            "rel_err_vs_analytic": 0.002433427948198582
          },
          {
            "N": 2000,
            "std": 0.1722654587199678,
            "mean": -0.004139741799258631,
            "rel_err_vs_analytic": -0.005424910359522321
          }
        ],
        "p025": -0.28559853569604454,
        "p05": -0.2736876399256289,
        "p50": -0.002751583233475685,
        "p95": 0.26932872910983857,
        "p975": 0.2835912707727402,
        "p99": 0.2938777999486774,
        "stack_worst": 0.3,
        "stack_rss": 0.3,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": false,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:ecf1d0003b85ea6cb204e64474bad4fa5d5219e2ea5299a3be4285c26bc13306",
        "calculation_short_id": "fnv1a32:92877e6a",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 1
        },
        "histogram": {
          "bins": 24,
          "min": -0.29959239657036957,
          "max": 0.29991264576092364,
          "counts": [
            96,
            93,
            75,
            86,
            80,
            78,
            73,
            104,
            77,
            98,
            77,
            74,
            77,
            75,
            89,
            111,
            83,
            82,
            81,
            84,
            82,
            74,
            77,
            74
          ]
        }
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mc-one",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tolerances": [
          {
            "half_tolerance": 0.3
          }
        ],
        "N": 1000,
        "seed": 7,
        "k_sigma": 3
      },
      "expect": {
        "std_analytic": 0.1,
        "n": 1
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 1,
        "N": 1000,
        "seed": 7,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.3
        ],
        "half_tolerances": [
          0.3
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.3,
            "tol_plus": 0.3,
            "tol_minus": 0.3,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.09999999999999999
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": -0.00026448940679916144,
        "std": 0.10253403388128147,
        "std_analytic": 0.09999999999999999,
        "std_rel_err": 0.025340338812814837,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.09999999999999999,
            "variance_share": 1,
            "percent": 100,
            "sensitivity": 1,
            "sensitivity_share": 100,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.10344753726285963,
            "mean": 0.01046083012693158,
            "rel_err_vs_analytic": 0.034475372628596374
          },
          {
            "N": 1000,
            "std": 0.10253403388128159,
            "mean": -0.00026448940679912777,
            "rel_err_vs_analytic": 0.025340338812815947
          }
        ],
        "p025": -0.19745472407397743,
        "p05": -0.16589890496957785,
        "p50": -0.0022868492728160958,
        "p95": 0.16907250411110744,
        "p975": 0.20796966642848633,
        "p99": 0.25784306999917267,
        "stack_worst": 0.3,
        "stack_rss": 0.3,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:0dec5b447fc8bdea5e25f0f17aa42c1e5e67c2c1521ebc68d572681c86ed6762",
        "calculation_short_id": "fnv1a32:491a7a8c",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 7
        },
        "histogram": {
          "bins": 24,
          "min": -0.3594798797647611,
          "max": 0.32701757704110457,
          "counts": [
            1,
            1,
            0,
            2,
            6,
            22,
            31,
            37,
            66,
            79,
            90,
            106,
            117,
            98,
            101,
            65,
            85,
            33,
            18,
            20,
            7,
            8,
            4,
            3
          ]
        }
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mc-ten",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol": [
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1
        ],
        "N": 500,
        "seed": 1,
        "k_sigma": 3
      },
      "expect": {
        "n": 10,
        "std_analytic": 0.10540925533894598
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 10,
        "N": 500,
        "seed": 1,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1
        ],
        "half_tolerances": [
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1,
          0.1
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T2",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T3",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T4",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T5",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T6",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T7",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T8",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T9",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T10",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": 0.00013619373618189567,
        "std": 0.10836611625170685,
        "std_analytic": 0.10540925533894598,
        "std_rel_err": 0.02805124562594637,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.03333333333333333,
            "variance_share": 0.09999999999999999,
            "percent": 9.999999999999998,
            "sensitivity": 0.2517236628946516,
            "sensitivity_share": 6.529803043730653,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T2",
            "sigma": 0.03333333333333333,
            "variance_share": 0.09999999999999999,
            "percent": 9.999999999999998,
            "sensitivity": 0.272688418753675,
            "sensitivity_share": 7.662762828609179,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T3",
            "sigma": 0.03333333333333333,
            "variance_share": 0.09999999999999999,
            "percent": 9.999999999999998,
            "sensitivity": 0.2931726926907708,
            "sensitivity_share": 8.857252558273945,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T4",
            "sigma": 0.03333333333333333,
            "variance_share": 0.09999999999999999,
            "percent": 9.999999999999998,
            "sensitivity": 0.32772255889023555,
            "sensitivity_share": 11.06788584439665,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T5",
            "sigma": 0.03333333333333333,
            "variance_share": 0.09999999999999999,
            "percent": 9.999999999999998,
            "sensitivity": 0.42045518582074326,
            "sensitivity_share": 18.21761096021929,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T6",
            "sigma": 0.03333333333333333,
            "variance_share": 0.09999999999999999,
            "percent": 9.999999999999998,
            "sensitivity": 0.3359099516398066,
            "sensitivity_share": 11.62780493368768,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T7",
            "sigma": 0.03333333333333333,
            "variance_share": 0.09999999999999999,
            "percent": 9.999999999999998,
            "sensitivity": 0.21981524726098906,
            "sensitivity_share": 4.979292326159503,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T8",
            "sigma": 0.03333333333333333,
            "variance_share": 0.09999999999999999,
            "percent": 9.999999999999998,
            "sensitivity": 0.35939682958731833,
            "sensitivity_share": 13.310687272244651,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T9",
            "sigma": 0.03333333333333333,
            "variance_share": 0.09999999999999999,
            "percent": 9.999999999999998,
            "sensitivity": 0.2621185844743379,
            "sensitivity_share": 7.080234217761196,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T10",
            "sigma": 0.03333333333333333,
            "variance_share": 0.09999999999999999,
            "percent": 9.999999999999998,
            "sensitivity": 0.3217276229104916,
            "sensitivity_share": 10.666666014917253,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.09947871210502546,
            "mean": -0.0016477276157684938,
            "rel_err_vs_analytic": -0.056262073143868774
          },
          {
            "N": 500,
            "std": 0.10836611625170685,
            "mean": 0.0001361937361819668,
            "rel_err_vs_analytic": 0.02805124562594637
          }
        ],
        "p025": -0.22566068715073748,
        "p05": -0.18264289159290367,
        "p50": 0.0035911387153681473,
        "p95": 0.1699177165305354,
        "p975": 0.22574192075320404,
        "p99": 0.26626723271817065,
        "stack_worst": 0.9999999999999999,
        "stack_rss": 0.316227766016838,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:e6b004ce4cc2b8bddc92ef347965b6b6891de8f3285240d46d8c2c6837234240",
        "calculation_short_id": "fnv1a32:af1ce737",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 1
        },
        "histogram": {
          "bins": 24,
          "min": -0.3054572627211709,
          "max": 0.34432509501874736,
          "counts": [
            3,
            2,
            8,
            4,
            14,
            19,
            22,
            28,
            33,
            51,
            43,
            62,
            53,
            35,
            39,
            26,
            23,
            15,
            5,
            4,
            5,
            4,
            0,
            2
          ]
        }
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mc-k6",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.6,
        "N": 500,
        "seed": 1,
        "k_sigma": 6
      },
      "expect": {
        "std_analytic": 0.1,
        "k_sigma": 6
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 1,
        "N": 500,
        "seed": 1,
        "k_sigma": 6,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.6
        ],
        "half_tolerances": [
          0.6
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.6,
            "tol_plus": 0.6,
            "tol_minus": 0.6,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.09999999999999999
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": 0.0021345384900478344,
        "std": 0.1009422677788328,
        "std_analytic": 0.09999999999999999,
        "std_rel_err": 0.009422677788328143,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.09999999999999999,
            "variance_share": 1,
            "percent": 100,
            "sensitivity": 1,
            "sensitivity_share": 100,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.09908603254536211,
            "mean": 0.02082431107275392,
            "rel_err_vs_analytic": -0.009139674546378845
          },
          {
            "N": 500,
            "std": 0.1009422677788327,
            "mean": 0.0021345384900478058,
            "rel_err_vs_analytic": 0.009422677788327033
          }
        ],
        "p025": -0.18351357541654068,
        "p05": -0.16050948358138256,
        "p50": 0.005426320405853726,
        "p95": 0.15813533360492815,
        "p975": 0.18209026777043308,
        "p99": 0.22447678846558125,
        "stack_worst": 0.6,
        "stack_rss": 0.6,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:3720a5718014f9649a0cf0735a72d6d77ee18aa0378f3559b415c6489a5bbfb4",
        "calculation_short_id": "fnv1a32:df62813f",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 1
        },
        "histogram": {
          "bins": 24,
          "min": -0.2959158652825782,
          "max": 0.2656438731808044,
          "counts": [
            1,
            2,
            3,
            4,
            5,
            13,
            19,
            26,
            36,
            36,
            37,
            34,
            37,
            44,
            42,
            33,
            38,
            34,
            23,
            16,
            6,
            5,
            4,
            2
          ]
        }
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mc-zero-pad",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol": [
          0.1,
          0,
          0.2
        ],
        "N": 500,
        "seed": 3
      },
      "expect": {
        "n": 3,
        "std_analytic": 0.07453559924999299,
        "stack_worst": 0.3
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 3,
        "N": 500,
        "seed": 3,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0,
          0.2
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T2",
            "nominal": 0,
            "half_tolerance": 0,
            "tol_plus": 0,
            "tol_minus": 0,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0
          },
          {
            "name": "T3",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": -0.0011279617124697792,
        "std": 0.07034340691623125,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": -0.056244162198268395,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.39733493333973335,
            "sensitivity_share": 17.171314833661945,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T2",
            "sigma": 0,
            "variance_share": 0,
            "percent": 0,
            "sensitivity": 0,
            "sensitivity_share": 0,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T3",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": 0.8726605786423146,
            "sensitivity_share": 82.82868516633805,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.0701551725243869,
            "mean": -0.011097223889855472,
            "rel_err_vs_analytic": -0.05876959157347229
          },
          {
            "N": 500,
            "std": 0.07034340691623125,
            "mean": -0.0011279617124697562,
            "rel_err_vs_analytic": -0.056244162198268395
          }
        ],
        "p025": -0.1343433800456372,
        "p05": -0.1195705225082136,
        "p50": 0.00043950027440079094,
        "p95": 0.11787853458066311,
        "p975": 0.13137663958973678,
        "p99": 0.15445246866801138,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:afaa209545f4a496e881b95eb05a99a5f08be141af3ef3c3f66da40e8f6edc33",
        "calculation_short_id": "fnv1a32:678f3001",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 3
        },
        "histogram": {
          "bins": 24,
          "min": -0.24781514665930848,
          "max": 0.23817933322644494,
          "counts": [
            1,
            0,
            3,
            0,
            2,
            10,
            24,
            21,
            24,
            41,
            44,
            73,
            61,
            54,
            40,
            31,
            24,
            20,
            19,
            4,
            2,
            1,
            0,
            1
          ]
        }
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mc-N-hi",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.1,
        "N": 200000
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "N must be in 100…100000"
    },
    {
      "id": "boundary-mc-empty",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "N": 1000,
        "seed": 1
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "need at least one tolerance"
    },
    {
      "id": "boundary-mc-k-bad",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.1,
        "k_sigma": 0,
        "N": 500
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "k_sigma must be greater than zero"
    },
    {
      "id": "boundary-mc-usl-lsl",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.1,
        "N": 500,
        "seed": 1,
        "LSL": 1,
        "USL": 0.5
      },
      "expectError": "VALUE_OUT_OF_RANGE",
      "code": "VALUE_OUT_OF_RANGE",
      "error": "USL must be greater than LSL"
    },
    {
      "id": "boundary-mc-asym-uniform",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tolerances": [
          {
            "name": "A",
            "tol_plus": 0.2,
            "tol_minus": 0.05,
            "distribution": "uniform"
          }
        ],
        "N": 10000,
        "seed": 2
      },
      "expect": {
        "stack_dist_mean": 0.075,
        "std_analytic": 0.07216878364870323,
        "sensitivity_method": "spearman"
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "dimensional",
        "n": 1,
        "N": 10000,
        "seed": 2,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.125
        ],
        "half_tolerances": [
          0.125
        ],
        "tolerances": [
          {
            "name": "A",
            "nominal": 0,
            "half_tolerance": 0.125,
            "tol_plus": 0.2,
            "tol_minus": 0.05,
            "asymmetric": true,
            "coefficient": 1,
            "distribution": "uniform",
            "mean_shift": 0,
            "error_mean": 0.07500000000000001,
            "error_std": 0.07216878364870323
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0.07500000000000001,
        "stack_center": 0.07500000000000001,
        "mean": 0.07520854572218731,
        "std": 0.07217695768992448,
        "std_analytic": 0.07216878364870323,
        "std_rel_err": 0.00011326283758691552,
        "contributors": [
          {
            "name": "A",
            "sigma": 0.07216878364870323,
            "variance_share": 1,
            "percent": 100,
            "sensitivity": 1,
            "sensitivity_share": 100,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.07900779197774346,
            "mean": 0.0795574329205556,
            "rel_err_vs_analytic": 0.0947640791942753
          },
          {
            "N": 1000,
            "std": 0.07406583650098149,
            "mean": 0.07496986470551918,
            "rel_err_vs_analytic": 0.02628633539831519
          },
          {
            "N": 10000,
            "std": 0.07217695768992452,
            "mean": 0.07520854572218383,
            "rel_err_vs_analytic": 0.0001132628375874924
          }
        ],
        "p025": -0.043260948860552165,
        "p05": -0.036758457205723974,
        "p50": 0.07530498509295284,
        "p95": 0.18664561472833158,
        "p975": 0.193495907925535,
        "p99": 0.19737677624216304,
        "stack_worst": 0.2,
        "stack_rss": 0.125,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": false,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:165f20f05ebf9dff0a5135a376d7596437c361cc15591a441d668ceb23d2d673",
        "calculation_short_id": "fnv1a32:3d330e79",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 2
        },
        "histogram": {
          "bins": 24,
          "min": -0.04996221368201077,
          "max": 0.19999084154842423,
          "counts": [
            391,
            424,
            421,
            447,
            415,
            405,
            447,
            405,
            421,
            368,
            428,
            416,
            404,
            418,
            397,
            390,
            442,
            427,
            451,
            402,
            434,
            453,
            407,
            387
          ]
        }
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mc-sens-pearson",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.1,
        "tol2": 0.2,
        "N": 2000,
        "seed": 42,
        "sensitivity_method": "pearson"
      },
      "expect": {
        "sensitivity_method": "pearson"
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 2,
        "N": 2000,
        "seed": 42,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "pearson",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T2",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": 0.00027942046066928717,
        "std": 0.07431402402418098,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": -0.002972743602273117,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.4384760734091528,
            "sensitivity_share": 19.412111808781106,
            "sensitivity_method": "pearson"
          },
          {
            "name": "T2",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": 0.8933968060497325,
            "sensitivity_share": 80.5878881912189,
            "sensitivity_method": "pearson"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.07860623255600938,
            "mean": -0.0011420215968446965,
            "rel_err_vs_analytic": 0.054613276702364016
          },
          {
            "N": 1000,
            "std": 0.07384703336215144,
            "mean": 0.0002922136303471721,
            "rel_err_vs_analytic": -0.009238080793207242
          },
          {
            "N": 2000,
            "std": 0.07431402402418101,
            "mean": 0.0002794204606692373,
            "rel_err_vs_analytic": -0.0029727436022727446
          }
        ],
        "p025": -0.14853515498327396,
        "p05": -0.1243487198389368,
        "p50": 0.0006320186234671336,
        "p95": 0.12167142849463117,
        "p975": 0.14710352950576439,
        "p99": 0.16606672810109607,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:bef0dce05f9935adabaa859ee2144e60a1cc1a85ffd09e3554427e94141e2d29",
        "calculation_short_id": "fnv1a32:77bdf8db",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 42
        },
        "histogram": {
          "bins": 24,
          "min": -0.2408051138309298,
          "max": 0.23024265385623355,
          "counts": [
            1,
            3,
            8,
            15,
            33,
            45,
            64,
            97,
            134,
            148,
            176,
            200,
            233,
            173,
            192,
            141,
            121,
            88,
            52,
            32,
            27,
            10,
            5,
            2
          ]
        }
      },
      "tol": 0
    },
    {
      "id": "boundary-mc-sens-bad",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.1,
        "N": 500,
        "seed": 1,
        "sensitivity_method": "kendall"
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "sensitivity_method must be spearman|pearson|sobol|shapley"
    },
    {
      "id": "boundary-mc-sobol-corr",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tolerances": [
          {
            "name": "A",
            "half_tolerance": 0.1
          },
          {
            "name": "B",
            "half_tolerance": 0.2
          }
        ],
        "correlations": [
          {
            "a": "A",
            "b": "B",
            "rho": 0.3
          }
        ],
        "sensitivity_method": "sobol",
        "N": 500,
        "seed": 1
      },
      "expectError": "SOBOL_REQUIRES_INDEPENDENT_INPUTS",
      "code": "SOBOL_REQUIRES_INDEPENDENT_INPUTS",
      "error": "Sobol indices require independent inputs (no correlations)"
    },
    {
      "id": "boundary-mc-sobol",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.1,
        "tol2": 0.2,
        "N": 500,
        "seed": 1,
        "sensitivity_method": "sobol"
      },
      "expect": {
        "sensitivity_method": "sobol"
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 2,
        "N": 500,
        "seed": 1,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "sobol",
        "sensitivity_metric": "sobol",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": {
          "N": 0,
          "variance": 0.005555555555555556,
          "method": "analytical-additive",
          "note": "Linear independent stack: first-order Sobol equals analytic variance shares; interactions are zero."
        },
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T2",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": -0.0014621055970281103,
        "std": 0.07524693971007135,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": 0.009543633743287065,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.19999999999999998,
            "sensitivity_share": 20.000000000000004,
            "sensitivity_method": "sobol",
            "sobol_first": 0.19999999999999998,
            "sobol_total": 0.19999999999999998
          },
          {
            "name": "T2",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": 0.7999999999999999,
            "sensitivity_share": 80.00000000000001,
            "sensitivity_method": "sobol",
            "sobol_first": 0.7999999999999999,
            "sobol_total": 0.7999999999999999
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.06999919080517686,
            "mean": 0.01244710476981639,
            "rel_err_vs_analytic": -0.06086230593787787
          },
          {
            "N": 500,
            "std": 0.07524693971007132,
            "mean": -0.0014621055970281134,
            "rel_err_vs_analytic": 0.009543633743286692
          }
        ],
        "p025": -0.1493329200207805,
        "p05": -0.1342582677269257,
        "p50": 0.002503454256438147,
        "p95": 0.1129998189754739,
        "p975": 0.14079038413784398,
        "p99": 0.18707682373943402,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:44fe00722c9c737f5963ef5c2a5cf56a70874b80aca0c848a129e36ceca613d0",
        "calculation_short_id": "fnv1a32:dcf3374a",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 1
        },
        "histogram": {
          "bins": 24,
          "min": -0.21173821212984065,
          "max": 0.21657675456860742,
          "counts": [
            2,
            3,
            2,
            14,
            10,
            18,
            16,
            24,
            35,
            46,
            44,
            36,
            49,
            50,
            41,
            34,
            26,
            21,
            10,
            8,
            3,
            2,
            3,
            3
          ]
        }
      },
      "tol": 0
    },
    {
      "id": "boundary-mc-shapley",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.1,
        "tol2": 0.2,
        "N": 500,
        "seed": 1,
        "sensitivity_method": "shapley"
      },
      "expect": {
        "sensitivity_method": "shapley"
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "basic",
        "n": 2,
        "N": 500,
        "seed": 1,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "shapley",
        "sensitivity_metric": "shapley",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": {
          "variance": 0.005555555555555556,
          "method": "exact",
          "permutations": 0,
          "note": "Exact Shapley variance attribution for additive stack (supports correlation). Independent ⇒ equals Sobol/variance shares.",
          "effects": [
            0.0011111111111111113,
            0.0044444444444444444
          ],
          "shares": [
            0.20000000000000004,
            0.7999999999999999
          ]
        },
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T2",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": -0.0014621055970281103,
        "std": 0.07524693971007135,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": 0.009543633743287065,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.20000000000000004,
            "sensitivity_share": 20.000000000000004,
            "sensitivity_method": "shapley",
            "shapley_effect": 0.0011111111111111113,
            "shapley_share": 0.20000000000000004
          },
          {
            "name": "T2",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": 0.7999999999999999,
            "sensitivity_share": 80,
            "sensitivity_method": "shapley",
            "shapley_effect": 0.0044444444444444444,
            "shapley_share": 0.7999999999999999
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.06999919080517686,
            "mean": 0.01244710476981639,
            "rel_err_vs_analytic": -0.06086230593787787
          },
          {
            "N": 500,
            "std": 0.07524693971007132,
            "mean": -0.0014621055970281134,
            "rel_err_vs_analytic": 0.009543633743286692
          }
        ],
        "p025": -0.1493329200207805,
        "p05": -0.1342582677269257,
        "p50": 0.002503454256438147,
        "p95": 0.1129998189754739,
        "p975": 0.14079038413784398,
        "p99": 0.18707682373943402,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:d7f7488d1307bc17b80f879031733f49ff83ea4bb597ab314f2fd7b81674892c",
        "calculation_short_id": "fnv1a32:efc33987",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 1
        },
        "histogram": {
          "bins": 24,
          "min": -0.21173821212984065,
          "max": 0.21657675456860742,
          "counts": [
            2,
            3,
            2,
            14,
            10,
            18,
            16,
            24,
            35,
            46,
            44,
            36,
            49,
            50,
            41,
            34,
            26,
            21,
            10,
            8,
            3,
            2,
            3,
            3
          ]
        }
      },
      "tol": 0
    },
    {
      "id": "boundary-mc-shapley-corr",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tolerances": [
          {
            "name": "A",
            "half_tolerance": 0.1
          },
          {
            "name": "B",
            "half_tolerance": 0.2
          }
        ],
        "correlations": [
          {
            "a": "A",
            "b": "B",
            "rho": 0.5
          }
        ],
        "sensitivity_method": "shapley",
        "N": 500,
        "seed": 1
      },
      "expect": {
        "sensitivity_method": "shapley",
        "correlated": true
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "dimensional",
        "n": 2,
        "N": 500,
        "seed": 1,
        "k_sigma": 3,
        "unit": null,
        "correlated": true,
        "correlation_model": "two_piece_normal",
        "correlations": [
          {
            "a": "A",
            "b": "B",
            "i": 0,
            "j": 1,
            "rho": 0.5
          }
        ],
        "sensitivity_method": "shapley",
        "sensitivity_metric": "shapley",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": {
          "variance": 0.007777777777777778,
          "method": "exact",
          "permutations": 0,
          "note": "Exact Shapley variance attribution for additive stack (supports correlation). Independent ⇒ equals Sobol/variance shares.",
          "effects": [
            0.0022222222222222222,
            0.005555555555555555
          ],
          "shares": [
            0.2857142857142857,
            0.7142857142857142
          ]
        },
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "A",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "B",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": -0.00035562248913305474,
        "std": 0.08760260883001601,
        "std_analytic": 0.08819171036881969,
        "std_rel_err": -0.006679783579885697,
        "contributors": [
          {
            "name": "A",
            "sigma": 0.03333333333333333,
            "variance_share": 0.14285714285714285,
            "percent": 14.285714285714283,
            "sensitivity": 0.2857142857142857,
            "sensitivity_share": 28.571428571428573,
            "sensitivity_method": "shapley",
            "shapley_effect": 0.0022222222222222222,
            "shapley_share": 0.2857142857142857
          },
          {
            "name": "B",
            "sigma": 0.06666666666666667,
            "variance_share": 0.5714285714285714,
            "percent": 57.14285714285713,
            "sensitivity": 0.7142857142857142,
            "sensitivity_share": 71.42857142857143,
            "sensitivity_method": "shapley",
            "shapley_effect": 0.005555555555555555,
            "shapley_share": 0.7142857142857142
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.08212455804347958,
            "mean": 0.015833146999755913,
            "rel_err_vs_analytic": -0.06879504093941645
          },
          {
            "N": 500,
            "std": 0.08760260883001592,
            "mean": -0.00035562248913301517,
            "rel_err_vs_analytic": -0.006679783579886798
          }
        ],
        "p025": -0.1678048849519222,
        "p05": -0.1448740178525713,
        "p50": 0.0021462539634282685,
        "p95": 0.140720070991464,
        "p975": 0.1730669891037014,
        "p99": 0.2104117237355863,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": null,
        "USL": null,
        "yield": null,
        "reject_rate": null,
        "ppm_below": null,
        "ppm_above": null,
        "ppm_total": null,
        "below_count": null,
        "above_count": null,
        "in_spec_count": null,
        "Cp": null,
        "Cpl": null,
        "Cpu": null,
        "Cpk": null,
        "Ppk": null,
        "capability_basis": null,
        "capability_normal_equivalent": true,
        "simulated_Cp": null,
        "simulated_Cpk": null,
        "yield_sampling": null,
        "warnings": [],
        "calculation_fingerprint": "sha256:f74be6ca5fd001e1cd210d1ebe12e0dc70e2c58df9e4857f53fc8f48ac243524",
        "calculation_short_id": "fnv1a32:6a46c61f",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 1
        },
        "histogram": {
          "bins": 24,
          "min": -0.23346382937004564,
          "max": 0.2743382874290373,
          "counts": [
            1,
            4,
            6,
            12,
            15,
            24,
            26,
            28,
            37,
            56,
            39,
            51,
            37,
            51,
            27,
            28,
            21,
            18,
            6,
            4,
            5,
            1,
            0,
            3
          ]
        }
      },
      "tol": 0
    },
    {
      "id": "boundary-mc-spec-mismatch",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.1,
        "tol2": 0.2,
        "N": 500,
        "seed": 1,
        "LSL": 4.8,
        "USL": 5.2
      },
      "expect": {
        "stack_center": 0,
        "yield": 0,
        "capability_basis": "simulated_monte_carlo"
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "dimensional",
        "n": 2,
        "N": 500,
        "seed": 1,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T2",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": -0.0014621055970281103,
        "std": 0.07524693971007135,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": 0.009543633743287065,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.41204296017184067,
            "sensitivity_share": 17.714961828702464,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T2",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": 0.8880406081624327,
            "sensitivity_share": 82.28503817129753,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.06999919080517686,
            "mean": 0.01244710476981639,
            "rel_err_vs_analytic": -0.06086230593787787
          },
          {
            "N": 500,
            "std": 0.07524693971007132,
            "mean": -0.0014621055970281134,
            "rel_err_vs_analytic": 0.009543633743286692
          }
        ],
        "p025": -0.1493329200207805,
        "p05": -0.1342582677269257,
        "p50": 0.002503454256438147,
        "p95": 0.1129998189754739,
        "p975": 0.14079038413784398,
        "p99": 0.18707682373943402,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": 4.8,
        "USL": 5.2,
        "yield": 0,
        "reject_rate": 1,
        "ppm_below": 1000000,
        "ppm_above": 0,
        "ppm_total": 1000000,
        "below_count": 500,
        "above_count": 0,
        "in_spec_count": 0,
        "Cp": 0.885971800627844,
        "Cpl": -21.26980013671077,
        "Cpu": 23.04174373796646,
        "Cpk": -21.26980013671077,
        "Ppk": -21.26980013671077,
        "capability_basis": "simulated_monte_carlo",
        "capability_normal_equivalent": true,
        "simulated_Cp": 0.885971800627844,
        "simulated_Cpk": -21.26980013671077,
        "yield_sampling": {
          "N": 500,
          "observed_pass": 0,
          "observed_fail": 500,
          "observed_yield": 0,
          "rule_of_three": 0.006,
          "ppm_per_sample": 2000,
          "ci_method": "wilson",
          "ci_level": 0.95,
          "ci_low": 4.303743383973282e-19,
          "ci_high": 0.007624340461552241
        },
        "warnings": [
          {
            "code": "SPEC_CENTER_MISMATCH",
            "severity": "warning",
            "detail": "The simulated stack center lies outside the specification interval.",
            "suggestion": "Verify nominal dimensions, coefficients/sense, LSL and USL. Yield may be near 0% for mathematical reasons that do not match design intent.",
            "stack_center": 0,
            "LSL": 4.8,
            "USL": 5.2
          },
          {
            "code": "YIELD_SAMPLING_EXTREME",
            "severity": "info",
            "detail": "Observed yield is 0/500. Finite Monte Carlo does not prove the true pass rate is exactly 0%.",
            "suggestion": "Approximate 95% upper bound on true pass rate ≈ 3/N = 0.006 (rule of three). Increase N or check SPEC_CENTER_MISMATCH."
          }
        ],
        "calculation_fingerprint": "sha256:e8100ffa92dbac1322cf561df8b535f75e2dadb46d36d48cc263f9320461b933",
        "calculation_short_id": "fnv1a32:3a8296b1",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 1
        },
        "histogram": {
          "bins": 24,
          "min": -0.21173821212984065,
          "max": 0.21657675456860742,
          "counts": [
            2,
            3,
            2,
            14,
            10,
            18,
            16,
            24,
            35,
            46,
            44,
            36,
            49,
            50,
            41,
            34,
            26,
            21,
            10,
            8,
            3,
            2,
            3,
            3
          ]
        }
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-mc-yield-extreme",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "tol1": 0.1,
        "tol2": 0.2,
        "N": 500,
        "seed": 1,
        "LSL": 4.8,
        "USL": 5.2
      },
      "expect": {
        "yield": 0
      },
      "expectWarning": null,
      "actual": {
        "mode": "monte_carlo",
        "profile": "dimensional",
        "n": 2,
        "N": 500,
        "seed": 1,
        "k_sigma": 3,
        "unit": null,
        "correlated": false,
        "correlation_model": null,
        "correlations": [],
        "sensitivity_method": "spearman",
        "sensitivity_metric": "ranking",
        "sobol_N": null,
        "shapley_N": null,
        "sobol": null,
        "shapley": null,
        "tol": [
          0.1,
          0.2
        ],
        "half_tolerances": [
          0.1,
          0.2
        ],
        "tolerances": [
          {
            "name": "T1",
            "nominal": 0,
            "half_tolerance": 0.1,
            "tol_plus": 0.1,
            "tol_minus": 0.1,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.03333333333333333
          },
          {
            "name": "T2",
            "nominal": 0,
            "half_tolerance": 0.2,
            "tol_plus": 0.2,
            "tol_minus": 0.2,
            "asymmetric": false,
            "coefficient": 1,
            "distribution": "normal",
            "mean_shift": 0,
            "error_mean": 0,
            "error_std": 0.06666666666666667
          }
        ],
        "stack_nom": 0,
        "stack_shift": 0,
        "stack_dist_mean": 0,
        "stack_center": 0,
        "mean": -0.0014621055970281103,
        "std": 0.07524693971007135,
        "std_analytic": 0.07453559924999299,
        "std_rel_err": 0.009543633743287065,
        "contributors": [
          {
            "name": "T1",
            "sigma": 0.03333333333333333,
            "variance_share": 0.19999999999999998,
            "percent": 19.999999999999996,
            "sensitivity": 0.41204296017184067,
            "sensitivity_share": 17.714961828702464,
            "sensitivity_method": "spearman"
          },
          {
            "name": "T2",
            "sigma": 0.06666666666666667,
            "variance_share": 0.7999999999999999,
            "percent": 79.99999999999999,
            "sensitivity": 0.8880406081624327,
            "sensitivity_share": 82.28503817129753,
            "sensitivity_method": "spearman"
          }
        ],
        "convergence": [
          {
            "N": 100,
            "std": 0.06999919080517686,
            "mean": 0.01244710476981639,
            "rel_err_vs_analytic": -0.06086230593787787
          },
          {
            "N": 500,
            "std": 0.07524693971007132,
            "mean": -0.0014621055970281134,
            "rel_err_vs_analytic": 0.009543633743286692
          }
        ],
        "p025": -0.1493329200207805,
        "p05": -0.1342582677269257,
        "p50": 0.002503454256438147,
        "p95": 0.1129998189754739,
        "p975": 0.14079038413784398,
        "p99": 0.18707682373943402,
        "stack_worst": 0.30000000000000004,
        "stack_rss": 0.223606797749979,
        "LSL": 4.8,
        "USL": 5.2,
        "yield": 0,
        "reject_rate": 1,
        "ppm_below": 1000000,
        "ppm_above": 0,
        "ppm_total": 1000000,
        "below_count": 500,
        "above_count": 0,
        "in_spec_count": 0,
        "Cp": 0.885971800627844,
        "Cpl": -21.26980013671077,
        "Cpu": 23.04174373796646,
        "Cpk": -21.26980013671077,
        "Ppk": -21.26980013671077,
        "capability_basis": "simulated_monte_carlo",
        "capability_normal_equivalent": true,
        "simulated_Cp": 0.885971800627844,
        "simulated_Cpk": -21.26980013671077,
        "yield_sampling": {
          "N": 500,
          "observed_pass": 0,
          "observed_fail": 500,
          "observed_yield": 0,
          "rule_of_three": 0.006,
          "ppm_per_sample": 2000,
          "ci_method": "wilson",
          "ci_level": 0.95,
          "ci_low": 4.303743383973282e-19,
          "ci_high": 0.007624340461552241
        },
        "warnings": [
          {
            "code": "SPEC_CENTER_MISMATCH",
            "severity": "warning",
            "detail": "The simulated stack center lies outside the specification interval.",
            "suggestion": "Verify nominal dimensions, coefficients/sense, LSL and USL. Yield may be near 0% for mathematical reasons that do not match design intent.",
            "stack_center": 0,
            "LSL": 4.8,
            "USL": 5.2
          },
          {
            "code": "YIELD_SAMPLING_EXTREME",
            "severity": "info",
            "detail": "Observed yield is 0/500. Finite Monte Carlo does not prove the true pass rate is exactly 0%.",
            "suggestion": "Approximate 95% upper bound on true pass rate ≈ 3/N = 0.006 (rule of three). Increase N or check SPEC_CENTER_MISMATCH."
          }
        ],
        "calculation_fingerprint": "sha256:e8100ffa92dbac1322cf561df8b535f75e2dadb46d36d48cc263f9320461b933",
        "calculation_short_id": "fnv1a32:3a8296b1",
        "rng": {
          "algorithm": "mulberry32",
          "normal_sampler": "box-muller",
          "version": "1.0",
          "seed": 1
        },
        "histogram": {
          "bins": 24,
          "min": -0.21173821212984065,
          "max": 0.21657675456860742,
          "counts": [
            2,
            3,
            2,
            14,
            10,
            18,
            16,
            24,
            35,
            46,
            44,
            36,
            49,
            50,
            41,
            34,
            26,
            21,
            10,
            8,
            3,
            2,
            3,
            3
          ]
        }
      },
      "tol": 0
    },
    {
      "id": "property-seeded",
      "ok": true,
      "kind": "property",
      "detail": "deterministic",
      "expect": 0.07431402402418098,
      "actual": 0.07431402402418098
    },
    {
      "id": "property-std",
      "ok": true,
      "kind": "property",
      "detail": "std",
      "expect": 0.07431402402418098,
      "actual": 0.07431402402418098
    },
    {
      "id": "property-analytic",
      "ok": true,
      "kind": "property",
      "detail": "σ_analytic = √Σ(T/k)²",
      "expect": 0.07453559924999299,
      "actual": 0.07453559924999299
    },
    {
      "id": "property-mc-near-analytic",
      "ok": true,
      "kind": "property",
      "detail": "N=2000 within 1% of analytic",
      "expect": 0.07453559924999299,
      "actual": 0.07431402402418098
    },
    {
      "id": "property-canonical",
      "ok": true,
      "kind": "property",
      "detail": "tolerances[] ≡ tol1/tol2",
      "expect": 0.07431402402418098,
      "actual": 0.07431402402418098
    },
    {
      "id": "property-permute-analytic",
      "ok": true,
      "kind": "property",
      "detail": "order-invariant analytic",
      "expect": 0.07453559924999299,
      "actual": 0.07453559924999299
    },
    {
      "id": "property-scale-analytic",
      "ok": true,
      "kind": "property",
      "detail": "homogeneous ×2",
      "expect": 0.14907119849998599,
      "actual": 0.14907119849998599
    },
    {
      "id": "property-k1",
      "ok": true,
      "kind": "property",
      "detail": "k=1 → σ=√ΣT²",
      "expect": 0.22360679774997896,
      "actual": 0.223606797749979
    },
    {
      "id": "property-all-zero",
      "ok": true,
      "kind": "property",
      "detail": "all-zero → σ=0",
      "expect": 0,
      "actual": 0
    },
    {
      "id": "property-seed-differs",
      "ok": true,
      "kind": "property",
      "detail": "different seed → different sample",
      "expect": 0.00027942046066928717,
      "actual": 0.0008854874017518433
    },
    {
      "id": "property-convergence",
      "ok": true,
      "kind": "property",
      "detail": "larger N closer to analytic",
      "expect": {
        "n2k": 0.07431402402418098,
        "n20k": 0.07443733781601711,
        "analytic": 0.07453559924999299
      },
      "actual": {
        "err2k": 0.002972743602273117,
        "err20k": 0.0013183154756201214
      }
    },
    {
      "id": "property-rng-meta",
      "ok": true,
      "kind": "property",
      "detail": "PRNG lock",
      "expect": {
        "algorithm": "mulberry32",
        "normal_sampler": "box-muller",
        "version": "1.0"
      },
      "actual": {
        "algorithm": "mulberry32",
        "normal_sampler": "box-muller",
        "version": "1.0",
        "seed": 42
      }
    },
    {
      "id": "property-central95",
      "ok": true,
      "kind": "property",
      "detail": "percentile ordering",
      "expect": true,
      "actual": {
        "p025": -0.14853515498327396,
        "p50": 0.0006320186234671336,
        "p975": 0.14710352950576439
      }
    },
    {
      "id": "property-stack-rss",
      "ok": true,
      "kind": "property",
      "detail": "stack_rss = k·σ_analytic",
      "expect": 0.22360679774997896,
      "actual": 0.223606797749979
    },
    {
      "id": "property-100-tols",
      "ok": true,
      "kind": "property",
      "detail": "100 tolerances",
      "expect": 100,
      "actual": 100
    },
    {
      "id": "property-gap-nom",
      "ok": true,
      "kind": "property",
      "detail": "Gap A−B nominal+σ",
      "expect": {
        "stack_nom": 5,
        "std_analytic": 0.07453559924999299
      },
      "actual": {
        "stack_nom": 5,
        "std_analytic": 0.07453559924999299
      }
    },
    {
      "id": "property-yield",
      "ok": true,
      "kind": "property",
      "detail": "yield+Cp≥Cpk",
      "expect": {
        "yield": 0.99285,
        "Cp": 0.8983981967900372
      },
      "actual": {
        "yield": 0.99285,
        "ppm": 7150,
        "Cp": 0.8983981967900372,
        "Cpk": 0.893484684168217
      }
    },
    {
      "id": "property-corr-analytic",
      "ok": true,
      "kind": "property",
      "detail": "ρ=0.5 analytic σ = √(σ₁²+σ₂²+2ρσ₁σ₂)",
      "expect": 0.17320508075688773,
      "actual": 0.1732050807568877
    },
    {
      "id": "property-corr-mc-near-analytic",
      "ok": true,
      "kind": "property",
      "detail": "ρ=0.5 MC σ near analytic",
      "expect": {
        "analytic_expected": 0.17320508075688773,
        "relative_error_lt": 0.03
      },
      "actual": {
        "analytic_expected": 0.1732050807568877,
        "mc_observed": 0.17381471110713503,
        "relative_error": 0.0035197024682144637
      }
    },
    {
      "id": "property-mean-shift",
      "ok": true,
      "kind": "property",
      "detail": "mean_shift moves center",
      "expect": 5.1,
      "actual": 5.10142333581853
    },
    {
      "id": "property-sense-alias",
      "ok": true,
      "kind": "property",
      "detail": "sense/direction aliases",
      "expect": 5,
      "actual": 5
    },
    {
      "id": "property-uniform",
      "ok": true,
      "kind": "property",
      "detail": "uniform σ = T/√3",
      "expect": 0.17320508075688773,
      "actual": 0.17299254404663475
    },
    {
      "id": "property-triangular",
      "ok": true,
      "kind": "property",
      "detail": "triangular σ = T/√6",
      "expect": 1,
      "actual": 1.0024862940006003
    },
    {
      "id": "property-asym-mean",
      "ok": true,
      "kind": "property",
      "detail": "asymmetric uniform E[ε]=(+−)/2",
      "expect": 0.075,
      "actual": 0.07520854572218731
    },
    {
      "id": "property-sensitivity",
      "ok": true,
      "kind": "property",
      "detail": "Spearman |ρ|≤1",
      "expect": true,
      "actual": [
        0.43122055780513946,
        0.8842987595746898
      ]
    },
    {
      "id": "property-convergence-meta",
      "ok": true,
      "kind": "property",
      "detail": "convergence checkpoints",
      "expect": {
        "N": [
          100,
          2000
        ]
      },
      "actual": [
        100,
        1000,
        2000
      ]
    },
    {
      "id": "property-pearson",
      "ok": true,
      "kind": "property",
      "detail": "Pearson sensitivity lock",
      "expect": 0.4384760734091528,
      "actual": 0.4384760734091528
    },
    {
      "id": "property-spec-mismatch-warn",
      "ok": true,
      "kind": "property",
      "detail": "SPEC_CENTER_MISMATCH when center outside LSL/USL",
      "expect": "SPEC_CENTER_MISMATCH",
      "actual": "SPEC_CENTER_MISMATCH"
    },
    {
      "id": "property-gap-no-mismatch",
      "ok": true,
      "kind": "property",
      "detail": "aligned gap stack has no SPEC_CENTER_MISMATCH",
      "expect": false,
      "actual": []
    },
    {
      "id": "property-yield-extreme-warn",
      "ok": true,
      "kind": "property",
      "detail": "YIELD_SAMPLING_EXTREME + rule of three when 0 passes",
      "expect": 0.006,
      "actual": 0.006
    },
    {
      "id": "property-fingerprint",
      "ok": true,
      "kind": "property",
      "detail": "SHA-256 calculation_fingerprint + FNV short_id lock",
      "expect": {
        "fingerprint": "sha256:…",
        "short_id": "fnv1a32:becf725e"
      },
      "actual": {
        "fingerprint": "sha256:137b9bac0d4c6f3e655eb04ce9450c62296e02e564dec2d43bddb74ef8105658",
        "short_id": "fnv1a32:becf725e"
      }
    },
    {
      "id": "property-sobol-exact",
      "ok": true,
      "kind": "property",
      "detail": "Sobol Si=STi=variance share",
      "expect": {
        "Si": [
          0.2,
          0.8
        ]
      },
      "actual": [
        0.19999999999999998,
        0.7999999999999999
      ]
    },
    {
      "id": "property-shapley-indep",
      "ok": true,
      "kind": "property",
      "detail": "Shapley independent = Sobol shares",
      "expect": {
        "shares": [
          0.2,
          0.8
        ]
      },
      "actual": [
        0.20000000000000004,
        0.7999999999999999
      ]
    },
    {
      "id": "property-shapley-corr",
      "ok": true,
      "kind": "property",
      "detail": "Shapley correlated shares sum≈1",
      "expect": 1,
      "actual": 0.9999999999999999
    },
    {
      "id": "property-norta",
      "ok": true,
      "kind": "property",
      "detail": "NORTA uniform+ρ · MC σ near analytic approx",
      "expect": {
        "model": "gaussian_copula_norta",
        "rel_lt": 0.03
      },
      "actual": {
        "model": "gaussian_copula_norta",
        "rel": -0.00440125025153823,
        "warn": [
          "CORRELATED_NORTA"
        ]
      }
    },
    {
      "id": "property-share-url-noms",
      "ok": true,
      "kind": "property",
      "detail": "Shared URL noms/sense → gap yield + Wilson CI",
      "expect": {
        "stack_nom": 5,
        "yield": 0.9935,
        "ci": "wilson"
      },
      "actual": {
        "stack_nom": 5,
        "yield": 0.9935,
        "ci": [
          0.9889104708274775,
          0.9961974035059259
        ]
      }
    },
    {
      "id": "property-legacy-tol-nom0",
      "ok": true,
      "kind": "property",
      "detail": "Legacy tol1/tol2+spec without noms → nom=0 (no client invention)",
      "expect": {
        "stack_nom": 0,
        "yield": 0
      },
      "actual": {
        "stack_nom": 0,
        "yield": 0
      }
    },
    {
      "id": "property-parity-fingerprint",
      "ok": true,
      "kind": "property",
      "detail": "Canonical tolerances[] ↔ legacy query inputs → same fingerprint",
      "expect": {
        "fp": "sha256:dc088ad8eef4b8b91947a2ac4c3e174dd92a07e46bc98c4fa7b734ac84df3431",
        "yield": 0.9935
      },
      "actual": {
        "fp_canon": "sha256:dc088ad8eef4b8b91947a2ac4c3e174dd92a07e46bc98c4fa7b734ac84df3431",
        "fp_legacy": "sha256:dc088ad8eef4b8b91947a2ac4c3e174dd92a07e46bc98c4fa7b734ac84df3431",
        "yield": [
          0.9935,
          0.9935
        ]
      }
    },
    {
      "id": "property-fingerprint-stable",
      "ok": true,
      "kind": "property",
      "detail": "Identical request → identical SHA-256 fingerprint",
      "expect": "sha256:dc088ad8eef4b8b91947a2ac4c3e174dd92a07e46bc98c4fa7b734ac84df3431",
      "actual": "sha256:dc088ad8eef4b8b91947a2ac4c3e174dd92a07e46bc98c4fa7b734ac84df3431"
    },
    {
      "id": "property-mcp-summary-fields",
      "ok": true,
      "kind": "property",
      "detail": "Summary contract fields present on engine result",
      "expect": [
        "stack_center",
        "mean",
        "std",
        "yield",
        "reject_rate",
        "simulated_Cpk",
        "warnings",
        "calculation_fingerprint"
      ],
      "actual": [
        "stack_center",
        "mean",
        "std",
        "yield",
        "reject_rate",
        "simulated_Cpk",
        "warnings",
        "calculation_fingerprint"
      ]
    }
  ],
  "tier": "internally_reviewed",
  "verification": {
    "tests": {
      "passed": 71,
      "total": 71,
      "golden": 5,
      "boundary": 26,
      "property": 40
    },
    "contract_checks": {
      "passed": 10,
      "total": 10
    }
  },
  "evidence_core_generated_at": "2026-09-11T23:04:52.544Z",
  "rendered_at": "2026-09-21T16:00:36.047Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.12.0",
    "artifacts": {
      "engine": "1.12.0",
      "page": "1.12.0",
      "capability": "1.12.0",
      "evidence": "1.12.0",
      "input_schema": "1.12.0",
      "output_schema": "1.12.0",
      "mcp_contract": "1.12.0"
    },
    "digests": {
      "input_schema_sha256": "55ee91bbeba09c82e0effc6d2c3bf95a9e0d7afe24f8b056bf217788b81992b1",
      "output_schema_sha256": "6bd4d91cb24648c1c65224651fb3153e3b3c7149b5328f5362df59d0ec62744a",
      "evidence_sha256": "30a8f1ad6fe3df4af69da2a2ac605ea9c8e05793f23b1d5465828c15cb5c9c68",
      "evidence_core_sha256": "30a8f1ad6fe3df4af69da2a2ac605ea9c8e05793f23b1d5465828c15cb5c9c68",
      "capability_sha256": "396dd6ff9f32fa630246c302a98c29c5c8fb0a151a475c86d4954d30cc7c86c7",
      "engine_sha256": "925bd3b9c373f747a10f30cedc6352b3f419cf91144ae6744c9c9adcd703033c",
      "mcp_contract_sha256": "2bb4bbc15ea3f9842a9a464e07efcc692dc31f3e830dee8553f3d7c4e81238d3"
    },
    "contract_checks": {
      "total": 10,
      "passed": 10,
      "failed": 0,
      "items": [
        {
          "id": "contract-page-version",
          "status": "pass",
          "detail": "1.12.0"
        },
        {
          "id": "contract-capability-version",
          "status": "pass",
          "detail": "1.12.0"
        },
        {
          "id": "contract-input-schema-version",
          "status": "pass",
          "detail": "1.12.0"
        },
        {
          "id": "contract-output-schema-version",
          "status": "pass",
          "detail": "1.12.0"
        },
        {
          "id": "evidence-version-matches-manifest",
          "status": "pass",
          "detail": "1.12.0"
        },
        {
          "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"
  }
}
