{
  "capability_id": "physics.fluid.trapezoid_alternate_depth",
  "tool_id": "trapezoidal-alternate-depth",
  "engine": "trapezoidal-alternate-depth",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-18T23:14:09.774Z",
  "engine_build": "2026-09-18",
  "test_count": 5,
  "passed": 5,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 0,
      "passed": 0
    },
    "boundary": {
      "total": 0,
      "passed": 0
    },
    "property": {
      "total": 5,
      "passed": 5
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": false,
  "review_kind": null,
  "source_checked": true,
  "reviewed_by": null,
  "reviewer_role": null,
  "last_reviewed": null,
  "expert_review": {
    "status": "optional_not_performed",
    "reviewer": null,
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "note": "Domain expert review is optional under CVP (CVP-EXP-01). Absence does not block CVP Verified. See Review policy for supplemental domain assurance."
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/physics/trapezoidal-alternate-depth",
  "api": "https://www.calculatorx.com/api/v1/calc/trapezoidal-alternate-depth",
  "schema_input": "https://www.calculatorx.com/schemas/physics.fluid.trapezoid_alternate_depth.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/physics.fluid.trapezoid_alternate_depth.output.json",
  "assumptions": [
    "Trapezoid alternate depths: E = y + Q²/(2g A²) with A=(b+z y)y; both y_sub>yc and y_super<yc at the same E, Q, b, z; SI; default g=9.80665; z>0 is run/rise",
    "Unknown is the pair (depths mode) or E (energy invert from one y); E>Ec=yc+D_c/2; Fr is reported not an input",
    "Not rectangular alternate depth; not trapezoid E from y+Q; not trapezoid yc as the product; not trapezoid yn; not Manning n; not Q=Av"
  ],
  "limitations": [
    "Trapezoid alternate depths: E = y + Q²/(2g A²) with A=(b+z y)y; both y_sub>yc and y_super<yc at the same E, Q, b, z; SI; default g=9.80665; z>0 is run/rise",
    "Unknown is the pair (depths mode) or E (energy invert from one y); E>Ec=yc+D_c/2; Fr is reported not an input",
    "Not rectangular alternate depth; not trapezoid E from y+Q; not trapezoid yc as the product; not trapezoid yn; not Manning n; not Q=Av"
  ],
  "boundary_conditions": [
    "missing b, z, Q, E, or y when required → MISSING_REQUIRED_INPUT",
    "E ≤ Ec or y/b outside [0.01, 20] or z>10 → VALUE_OUT_OF_RANGE",
    "z=0, A/v, y1/y2, M, Fr/L, n/C/S/R/Sc, yn/yc/q, H/Cd → MIXED_INPUT_ENCODING",
    "unknown mode → INVALID_MODE"
  ],
  "sources": [
    {
      "title": "ISO 80000-4 — Mechanics",
      "section": "Energy and volume flow",
      "url": "https://www.iso.org/standard/31895.html",
      "supports": "E and y are lengths; Q is volume flow",
      "kind": "standard"
    },
    {
      "title": "Chow, V.T. Open-Channel Hydraulics",
      "section": "Specific energy and alternate depths in a trapezoidal section",
      "supports": "The same E gives two depths when E>Ec. Rectangular both y from E, Q, b is a different product. Trapezoid E from y and Q is a different product.",
      "kind": "reference"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:ecc3bbde0925ca03a090f48ccb8af01cbffcc7de78202b6a723c5b667a429807",
  "tests": [
    {
      "id": "property-tad-ysub",
      "ok": true,
      "kind": "property",
      "detail": "y_sub from E,Q,b,z",
      "expect": 1,
      "actual": 0.9999996165399989
    },
    {
      "id": "property-tad-ysuper",
      "ok": true,
      "kind": "property",
      "detail": "y_super<yc<y_sub",
      "expect": 0.43297701238915787,
      "actual": 0.22735164481422643
    },
    {
      "id": "property-tad-not-rect",
      "ok": true,
      "kind": "property",
      "detail": "y_super≠rectangular pair",
      "expect": 0.25272701543647547,
      "actual": 0.22735164481422643
    },
    {
      "id": "property-tad-roundtrip-E",
      "ok": true,
      "kind": "property",
      "detail": "E roundtrip",
      "expect": 1.0226603602883984,
      "actual": 1.0226603602883984
    },
    {
      "id": "property-tad-model",
      "ok": true,
      "kind": "property",
      "detail": "alternate_depth_trapezoid",
      "expect": true,
      "actual": "alternate_depth_trapezoid"
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 5,
      "total": 5,
      "golden": 0,
      "boundary": 0,
      "property": 5
    },
    "contract_checks": {
      "passed": 1,
      "total": 1
    }
  },
  "evidence_core_generated_at": "2026-09-18T22:50:29.016Z",
  "rendered_at": "2026-09-18T23:14:09.774Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.0",
    "artifacts": {
      "engine": "1.0.0",
      "page": "1.0.0",
      "capability": "1.0.0",
      "evidence": "1.0.0",
      "input_schema": "1.0.0",
      "output_schema": "1.0.0",
      "mcp_contract": "1.0.0"
    },
    "digests": {
      "input_schema_sha256": "6d642655fef31789a1ab59c2e485f2494803b52a1c93cf054c601f5429d47484",
      "output_schema_sha256": "e5f9db4ab8188483c4087cade377b3e0bc4d1ced90a53255e2d790de2ff6a577",
      "evidence_sha256": "fd0332c98e38bdfa90a71b16081cb5bf229df49d70e5eead219df0f72ec777cc",
      "evidence_core_sha256": "fd0332c98e38bdfa90a71b16081cb5bf229df49d70e5eead219df0f72ec777cc",
      "capability_sha256": "deb8fb24b7701949a0ae559cedce0437620286efebeb44ac48fc97cd83bf8a04",
      "engine_sha256": "ec5f90dd051e61e84416b6eff7f761d72ed59985452a88ec6879efdbe4060d42",
      "mcp_contract_sha256": "342ea877fa003c6c958ee3fafb7b71055adb29a20af849e5b2978f768e87b93e"
    },
    "contract_checks": {
      "total": 1,
      "passed": 1,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
