{"abstract":"Backtracking barely changes the angle and rows keep shading each other.","category":"Solar tracker geometry","checks":7,"contract":"Rows on terrain with cross-axis slope cross_tilt degrees. dist = 1/(gcr*cos(cross_tilt)); temp = dist*cos(ideal - cross_tilt). When temp < 1 the angle becomes ideal - sign(ideal)*acos(max(temp, -1)) degrees, else ideal. The result is then clamped to +-max_angle. Return the angle rounded to 3.","evaluation_group":"w2-solar_tracker_geometry-cross-slope-backtracking","failed_approach":"Using asin yields the complementary correction angle.","family":"w2-solar_tracker_geometry-cross-slope-backtracking-correction-angle-units","id":"FA-93631","implementations":{"attempt":{"sha256":"53c5ec795504c1672c8192c87e8fd9905aea6cb077f0a71c6590fb288aa0ec17","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(ideal, gcr, cross_tilt, max_angle):\n    dist = 1 / (gcr * math.cos(math.radians(cross_tilt)))\n    temp = dist * math.cos(math.radians(ideal - cross_tilt))\n    if temp < 1:\n        theta = ideal - math.copysign(math.degrees(math.asin(max(temp, -1.0))), ideal)\n    else:\n        theta = ideal\n    theta = max(-max_angle, min(max_angle, theta))\n    return round(theta, 3)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-80, 0.5, 0, 75], -10.322],\n  ['regression: correction angle units (partial repair)', [80, 0.3, -10, 55], -10.0],\n  ['control 1', [-45, 0.5, -5, 50], -45], ['control 2', [-60, 0.3, 0, 60], -60]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [60, 0.5, -5, 55], 28.045],\n  ['regression: correction angle units (partial repair)', [-80, 0.3, 0, 75], -25.368],\n  ['control 1', [80, 0.4, 0, 60], 15.729], ['control 2', [-80, 0.4, 15, 75], 23.037]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-70, 0.3, 15, 60], 2.496],\n  ['regression: correction angle units (partial repair)', [80, 0.4, 5, 55], 30.505],\n  ['control 1', [0, 0.4, -5, 55], 0], ['control 2', [70, 0.4, -5, 75], 20.505]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-80, 0.4, -10, 75], -50.255],\n  ['regression: correction angle units (partial repair)', [80, 0.3, -5, 55], 6.955],\n  ['control 1', [-60, 0.4, -5, 50], -50], ['control 2', [0, 0.4, -5, 60], 0]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-70, 0.3, 5, 75], -40.0],\n  ['regression: correction angle units (partial repair)', [-80, 0.4, 0, 75], -15.729],\n  ['control 1', [-80, 0.5, 0, 75], -10.322], ['control 2', [-45, 0.4, 15, 50], -45]]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"99d14b7de9dfb56e1647cb8d1d2be0347107b0bf101c6f6ff1b99bfd49c6661c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(ideal, gcr, cross_tilt, max_angle):\n    dist = 1 / (gcr * math.cos(math.radians(cross_tilt)))\n    temp = dist * math.cos(math.radians(ideal - cross_tilt))\n    if temp < 1:\n        theta = ideal - math.copysign(math.acos(max(temp, -1.0)), ideal)\n    else:\n        theta = ideal\n    theta = max(-max_angle, min(max_angle, theta))\n    return round(theta, 3)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-80, 0.5, 0, 75], -10.322],\n  ['regression: correction angle units (partial repair)', [80, 0.3, -10, 55], -10.0],\n  ['control 1', [-45, 0.5, -5, 50], -45], ['control 2', [-60, 0.3, 0, 60], -60]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [60, 0.5, -5, 55], 28.045],\n  ['regression: correction angle units (partial repair)', [-80, 0.3, 0, 75], -25.368],\n  ['control 1', [80, 0.4, 0, 60], 15.729], ['control 2', [-80, 0.4, 15, 75], 23.037]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-70, 0.3, 15, 60], 2.496],\n  ['regression: correction angle units (partial repair)', [80, 0.4, 5, 55], 30.505],\n  ['control 1', [0, 0.4, -5, 55], 0], ['control 2', [70, 0.4, -5, 75], 20.505]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-80, 0.4, -10, 75], -50.255],\n  ['regression: correction angle units (partial repair)', [80, 0.3, -5, 55], 6.955],\n  ['control 1', [-60, 0.4, -5, 50], -50], ['control 2', [0, 0.4, -5, 60], 0]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-70, 0.3, 5, 75], -40.0],\n  ['regression: correction angle units (partial repair)', [-80, 0.4, 0, 75], -15.729],\n  ['control 1', [-80, 0.5, 0, 75], -10.322], ['control 2', [-45, 0.4, 15, 50], -45]]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"fixed":{"sha256":"186c68c2219b639e295795f75a5461e8a8a9e6574fe14ae92965b4976b84e6f9","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(ideal, gcr, cross_tilt, max_angle):\n    dist = 1 / (gcr * math.cos(math.radians(cross_tilt)))\n    temp = dist * math.cos(math.radians(ideal - cross_tilt))\n    if temp < 1:\n        theta = ideal - math.copysign(math.degrees(math.acos(max(temp, -1.0))), ideal)\n    else:\n        theta = ideal\n    theta = max(-max_angle, min(max_angle, theta))\n    return round(theta, 3)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-80, 0.5, 0, 75], -10.322],\n  ['regression: correction angle units (partial repair)', [80, 0.3, -10, 55], -10.0],\n  ['control 1', [-45, 0.5, -5, 50], -45], ['control 2', [-60, 0.3, 0, 60], -60]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [60, 0.5, -5, 55], 28.045],\n  ['regression: correction angle units (partial repair)', [-80, 0.3, 0, 75], -25.368],\n  ['control 1', [80, 0.4, 0, 60], 15.729], ['control 2', [-80, 0.4, 15, 75], 23.037]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-70, 0.3, 15, 60], 2.496],\n  ['regression: correction angle units (partial repair)', [80, 0.4, 5, 55], 30.505],\n  ['control 1', [0, 0.4, -5, 55], 0], ['control 2', [70, 0.4, -5, 75], 20.505]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-80, 0.4, -10, 75], -50.255],\n  ['regression: correction angle units (partial repair)', [80, 0.3, -5, 55], 6.955],\n  ['control 1', [-60, 0.4, -5, 50], -50], ['control 2', [0, 0.4, -5, 60], 0]],\n [['normal: flat terrain matches plain backtracking', [-70, 0.4, 0, 60], -38.765],\n  ['boundary: slope-facing noon', [0, 0.4, 10, 60], 0],\n  ['boundary: clamp after backtracking', [80, 0.3, -10, 50], -10.0],\n  ['regression: correction angle units', [-70, 0.3, 5, 75], -40.0],\n  ['regression: correction angle units (partial repair)', [-80, 0.4, 0, 75], -15.729],\n  ['control 1', [-80, 0.5, 0, 75], -10.322], ['control 2', [-45, 0.4, 15, 50], -45]]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"Deterministic stipulated toy contract for teaching; no claim of conformance with any standard, vendor protocol or production controller. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w2-solar_tracker_geometry-cross-slope-backtracking-correction-angle-units","generated_at":"2026-09-29T14:51:56.873039+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Single-axis and dual-axis solar trackers turn a sun direction into actuator commands; a sign, frame or limit mistake points a whole plant away from the sun or into a mechanical stop.","repair":"Convert the acos correction to degrees.","root_cause":"The acos correction is applied in radians to an angle in degrees.","sha256":"8028cac23b3acce7135b5385762f19f63ed574b36dbb9b7343bcb1c0b8d85171","title":"Cross-axis slope aware backtracking: correction angle units · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.234,"exit_code":1,"observations":[{"actual":-11.235,"check":"normal: flat terrain matches plain backtracking","expected":-38.765,"passed":false},{"actual":0,"check":"boundary: slope-facing noon","expected":0,"passed":true},{"actual":50,"check":"boundary: clamp after backtracking","expected":-10.0,"passed":false},{"actual":-59.678,"check":"regression: correction angle units","expected":-10.322,"passed":false},{"actual":55,"check":"regression: correction angle units (partial repair)","expected":-10.0,"passed":false},{"actual":-45,"check":"control 1","expected":-45,"passed":true},{"actual":-60,"check":"control 2","expected":-60,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal: flat terrain matches plain backtracking\", \"actual\": -11.235, \"expected\": -38.765, \"passed\": false}, {\"check\": \"boundary: slope-facing noon\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"boundary: clamp after backtracking\", \"actual\": 50, \"expected\": -10.0, \"passed\": false}, {\"check\": \"regression: correction angle units\", \"actual\": -59.678, \"expected\": -10.322, \"passed\": false}, {\"check\": \"regression: correction angle units (partial repair)\", \"actual\": 55, \"expected\": -10.0, \"passed\": false}, {\"check\": \"control 1\", \"actual\": -45, \"expected\": -45, \"passed\": true}, {\"check\": \"control 2\", \"actual\": -60, \"expected\": -60, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.409,"exit_code":1,"observations":[{"actual":-60,"check":"normal: flat terrain matches plain backtracking","expected":-38.765,"passed":false},{"actual":0,"check":"boundary: slope-facing noon","expected":0,"passed":true},{"actual":50,"check":"boundary: clamp after backtracking","expected":-10.0,"passed":false},{"actual":-75,"check":"regression: correction angle units","expected":-10.322,"passed":false},{"actual":55,"check":"regression: correction angle units (partial repair)","expected":-10.0,"passed":false},{"actual":-45,"check":"control 1","expected":-45,"passed":true},{"actual":-60,"check":"control 2","expected":-60,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal: flat terrain matches plain backtracking\", \"actual\": -60, \"expected\": -38.765, \"passed\": false}, {\"check\": \"boundary: slope-facing noon\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"boundary: clamp after backtracking\", \"actual\": 50, \"expected\": -10.0, \"passed\": false}, {\"check\": \"regression: correction angle units\", \"actual\": -75, \"expected\": -10.322, \"passed\": false}, {\"check\": \"regression: correction angle units (partial repair)\", \"actual\": 55, \"expected\": -10.0, \"passed\": false}, {\"check\": \"control 1\", \"actual\": -45, \"expected\": -45, \"passed\": true}, {\"check\": \"control 2\", \"actual\": -60, \"expected\": -60, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.12,"exit_code":0,"observations":[{"actual":-38.765,"check":"normal: flat terrain matches plain backtracking","expected":-38.765,"passed":true},{"actual":0,"check":"boundary: slope-facing noon","expected":0,"passed":true},{"actual":-10.0,"check":"boundary: clamp after backtracking","expected":-10.0,"passed":true},{"actual":-10.322,"check":"regression: correction angle units","expected":-10.322,"passed":true},{"actual":-10.0,"check":"regression: correction angle units (partial repair)","expected":-10.0,"passed":true},{"actual":-45,"check":"control 1","expected":-45,"passed":true},{"actual":-60,"check":"control 2","expected":-60,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal: flat terrain matches plain backtracking\", \"actual\": -38.765, \"expected\": -38.765, \"passed\": true}, {\"check\": \"boundary: slope-facing noon\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"boundary: clamp after backtracking\", \"actual\": -10.0, \"expected\": -10.0, \"passed\": true}, {\"check\": \"regression: correction angle units\", \"actual\": -10.322, \"expected\": -10.322, \"passed\": true}, {\"check\": \"regression: correction angle units (partial repair)\", \"actual\": -10.0, \"expected\": -10.0, \"passed\": true}, {\"check\": \"control 1\", \"actual\": -45, \"expected\": -45, \"passed\": true}, {\"check\": \"control 2\", \"actual\": -60, \"expected\": -60, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}