{"abstract":"A manual command beyond the east stop is passed through to the drive.","category":"Solar tracker geometry","checks":7,"contract":"Priority: wind >= 20 m/s gives [0.0, 'wind']; then a manual angle (clamped to +-max_angle) gives 'manual'; then hail from azimuth hail_from gives +max_angle when (hail_from - axis_az) mod 360 is strictly between 0 and 180, else -max_angle ('hail'); then snow alternates rows: even rows +max_angle, odd rows -max_angle ('snow'); otherwise [None, 'normal'].","contract_signature":"hazards, row, axis_az, max_angle, manual","evaluation_group":"w2-solar_tracker_geometry-hazard-stow-selection","failed_approach":"Clamping only the positive side misses eastern commands.","family":"w2-solar_tracker_geometry-hazard-stow-selection-manual-angle-clamp","id":"FA-93781","implementations":{"attempt":{"sha256":"37692f1074a9a294c5f367279becdd6aeb194794622dc2154bcbc4fa9a6fe051","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(hazards, row, axis_az, max_angle, manual):\n    wind = hazards.get('wind', 0)\n    if wind >= 20:\n        return [0.0, 'wind']\n    if manual is not None:\n        return [float(min(max_angle, manual)), 'manual']\n    hail = hazards.get('hail_from')\n    if hail is not None:\n        rel = (hail - axis_az) % 360\n        return [float(max_angle if 0 < rel < 180 else -max_angle), 'hail']\n    if hazards.get('snow'):\n        return [float(max_angle if row % 2 == 0 else -max_angle), 'snow']\n    return [None, 'normal']\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['boundary: wind exactly at stow limit', [{'wind': 20}, 0, 180, 60, 30], [0.0, 'wind']],\n  ['boundary: hail along the axis', [{'hail_from': 180}, 1, 180, 60, None], [-60.0, 'hail']],\n  ['normal: snow on odd row', [{'snow': True}, 3, 180, 60, None], [-60.0, 'snow']],\n  ['regression: manual angle clamp', [{'hail_from': 270}, 3, 180, 50, -70], [-50.0, 'manual']],\n  ['regression: manual angle clamp (partial repair)', [{'hail_from': 0}, 1, 180, 50, -70],\n   [-50.0, 'manual']],\n  ['control 1', [{'wind': 15, 'hail_from': 180}, 5, 180, 50, 0], [0.0, 'manual']],\n  ['control 2', [{'wind': 20, 'hail_from': 90, 'snow': False}, 2, 180, 50, -70], [0.0, 'wind']]],\n [['boundary: wind exactly at stow limit', [{'wind': 20}, 0, 180, 60, 30], [0.0, 'wind']],\n  ['boundary: hail along the axis', [{'hail_from': 180}, 1, 180, 60, None], [-60.0, 'hail']],\n  ['normal: snow on odd row', [{'snow': True}, 3, 180, 60, None], [-60.0, 'snow']],\n  ['regression: manual angle clamp', [{'wind': 19, 'hail_from': None}, 2, 0, 60, 65],\n   [60.0, 'manual']],\n  ['regression: manual angle clamp (partial repair)',\n   [{'wind': 19, 'hail_from': 315, 'snow': False}, 3, 180, 50, -70], [-50.0, 'manual']],\n  ['control 1', [{}, 3, 0, 60, 65], [60.0, 'manual']],\n  ['control 2', [{'wind': 21, 'hail_from': 225, 'snow': True}, 1, 180, 60, -70], [0.0, 'wind']]],\n [['boundary: wind exactly at stow limit', [{'wind': 20}, 0, 180, 60, 30], [0.0, 'wind']],\n  ['boundary: hail along the axis', [{'hail_from': 180}, 1, 180, 60, None], [-60.0, 'hail']],\n  ['normal: snow on odd row', [{'snow': True}, 3, 180, 60, None], [-60.0, 'snow']],\n  ['regression: manual angle clamp', [{'hail_from': 0, 'snow': False}, 5, 0, 60, 65],\n   [60.0, 'manual']],\n  ['regression: manual angle clamp (partial repair)', [{'wind': 15, 'snow': True}, 2, 180, 60, -70],\n   [-60.0, 'manual']],\n  ['control 1', [{}, 3, 180, 50, -20], [-20.0, 'manual']],\n  ['control 2', [{'wind': 21, 'snow': False}, 1, 0, 60, 65], [0.0, 'wind']]],\n [['boundary: wind exactly at stow limit', [{'wind': 20}, 0, 180, 60, 30], [0.0, 'wind']],\n  ['boundary: hail along the axis', [{'hail_from': 180}, 1, 180, 60, None], [-60.0, 'hail']],\n  ['normal: snow on odd row', [{'snow': True}, 3, 180, 60, None], [-60.0, 'snow']],\n  ['regression: manual angle clamp', [{'hail_from': 45, 'snow': False}, 3, 0, 60, -70],\n   [-60.0, 'manual']],\n  ['regression: manual angle clamp (partial repair)',\n   [{'hail_from': 315, 'snow': True}, 0, 180, 60, -70], [-60.0, 'manual']],\n  ['control 1', [{'hail_from': None, 'snow': True}, 1, 180, 50, 30], [30.0, 'manual']],\n  ['control 2', [{'wind': 15, 'snow': True}, 3, 0, 50, -20], [-20.0, 'manual']]],\n [['boundary: wind exactly at stow limit', [{'wind': 20}, 0, 180, 60, 30], [0.0, 'wind']],\n  ['boundary: hail along the axis', [{'hail_from': 180}, 1, 180, 60, None], [-60.0, 'hail']],\n  ['normal: snow on odd row', [{'snow': True}, 3, 180, 60, None], [-60.0, 'snow']],\n  ['regression: manual angle clamp', [{'wind': 5}, 3, 180, 60, -70], [-60.0, 'manual']],\n  ['regression: manual angle clamp (partial repair)', [{'hail_from': None}, 2, 180, 60, -70],\n   [-60.0, 'manual']],\n  ['control 1', [{'wind': 19, 'snow': False}, 1, 180, 60, None], [None, 'normal']],\n  ['control 2', [{'snow': True}, 4, 0, 50, -20], [-20.0, 'manual']]]]\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":"bc6025eefd5768daf3d1d302b630252068848a65d36a8f52dc4a25c944fc7094","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(hazards, row, axis_az, max_angle, manual):\n    wind = hazards.get('wind', 0)\n    if wind >= 20:\n        return [0.0, 'wind']\n    if manual is not None:\n        return [float(manual), 'manual']\n    hail = hazards.get('hail_from')\n    if hail is not None:\n        rel = (hail - axis_az) % 360\n        return [float(max_angle if 0 < rel < 180 else -max_angle), 'hail']\n    if hazards.get('snow'):\n        return [float(max_angle if row % 2 == 0 else -max_angle), 'snow']\n    return [None, 'normal']\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['boundary: wind exactly at stow limit', [{'wind': 20}, 0, 180, 60, 30], [0.0, 'wind']],\n  ['boundary: hail along the axis', [{'hail_from': 180}, 1, 180, 60, None], [-60.0, 'hail']],\n  ['normal: snow on odd row', [{'snow': True}, 3, 180, 60, None], [-60.0, 'snow']],\n  ['regression: manual angle clamp', [{'hail_from': 270}, 3, 180, 50, -70], [-50.0, 'manual']],\n  ['regression: manual angle clamp (partial repair)', [{'hail_from': 0}, 1, 180, 50, -70],\n   [-50.0, 'manual']],\n  ['control 1', [{'wind': 15, 'hail_from': 180}, 5, 180, 50, 0], [0.0, 'manual']],\n  ['control 2', [{'wind': 20, 'hail_from': 90, 'snow': False}, 2, 180, 50, -70], [0.0, 'wind']]],\n [['boundary: wind exactly at stow limit', [{'wind': 20}, 0, 180, 60, 30], [0.0, 'wind']],\n  ['boundary: hail along the axis', [{'hail_from': 180}, 1, 180, 60, None], [-60.0, 'hail']],\n  ['normal: snow on odd row', [{'snow': True}, 3, 180, 60, None], [-60.0, 'snow']],\n  ['regression: manual angle clamp', [{'wind': 19, 'hail_from': None}, 2, 0, 60, 65],\n   [60.0, 'manual']],\n  ['regression: manual angle clamp (partial repair)',\n   [{'wind': 19, 'hail_from': 315, 'snow': False}, 3, 180, 50, -70], [-50.0, 'manual']],\n  ['control 1', [{}, 3, 0, 60, 65], [60.0, 'manual']],\n  ['control 2', [{'wind': 21, 'hail_from': 225, 'snow': True}, 1, 180, 60, -70], [0.0, 'wind']]],\n [['boundary: wind exactly at stow limit', [{'wind': 20}, 0, 180, 60, 30], [0.0, 'wind']],\n  ['boundary: hail along the axis', [{'hail_from': 180}, 1, 180, 60, None], [-60.0, 'hail']],\n  ['normal: snow on odd row', [{'snow': True}, 3, 180, 60, None], [-60.0, 'snow']],\n  ['regression: manual angle clamp', [{'hail_from': 0, 'snow': False}, 5, 0, 60, 65],\n   [60.0, 'manual']],\n  ['regression: manual angle clamp (partial repair)', [{'wind': 15, 'snow': True}, 2, 180, 60, -70],\n   [-60.0, 'manual']],\n  ['control 1', [{}, 3, 180, 50, -20], [-20.0, 'manual']],\n  ['control 2', [{'wind': 21, 'snow': False}, 1, 0, 60, 65], [0.0, 'wind']]],\n [['boundary: wind exactly at stow limit', [{'wind': 20}, 0, 180, 60, 30], [0.0, 'wind']],\n  ['boundary: hail along the axis', [{'hail_from': 180}, 1, 180, 60, None], [-60.0, 'hail']],\n  ['normal: snow on odd row', [{'snow': True}, 3, 180, 60, None], [-60.0, 'snow']],\n  ['regression: manual angle clamp', [{'hail_from': 45, 'snow': False}, 3, 0, 60, -70],\n   [-60.0, 'manual']],\n  ['regression: manual angle clamp (partial repair)',\n   [{'hail_from': 315, 'snow': True}, 0, 180, 60, -70], [-60.0, 'manual']],\n  ['control 1', [{'hail_from': None, 'snow': True}, 1, 180, 50, 30], [30.0, 'manual']],\n  ['control 2', [{'wind': 15, 'snow': True}, 3, 0, 50, -20], [-20.0, 'manual']]],\n [['boundary: wind exactly at stow limit', [{'wind': 20}, 0, 180, 60, 30], [0.0, 'wind']],\n  ['boundary: hail along the axis', [{'hail_from': 180}, 1, 180, 60, None], [-60.0, 'hail']],\n  ['normal: snow on odd row', [{'snow': True}, 3, 180, 60, None], [-60.0, 'snow']],\n  ['regression: manual angle clamp', [{'wind': 5}, 3, 180, 60, -70], [-60.0, 'manual']],\n  ['regression: manual angle clamp (partial repair)', [{'hail_from': None}, 2, 180, 60, -70],\n   [-60.0, 'manual']],\n  ['control 1', [{'wind': 19, 'snow': False}, 1, 180, 60, None], [None, 'normal']],\n  ['control 2', [{'snow': True}, 4, 0, 50, -20], [-20.0, 'manual']]]]\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-hazard-stow-selection-manual-angle-clamp","generated_at":"2026-09-29T14:51:58.241275+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.","root_cause":"Manual angles are not clamped.","sha256":"3ac042d8b07c42ef612c404eae90b6f7bbff602bfc7f5f90029d8e6648a73982","title":"Hazard stow angle selection: manual angle clamp · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":43.436,"exit_code":1,"observations":[{"actual":[0.0,"wind"],"check":"boundary: wind exactly at stow limit","expected":[0.0,"wind"],"passed":true},{"actual":[-60.0,"hail"],"check":"boundary: hail along the axis","expected":[-60.0,"hail"],"passed":true},{"actual":[-60.0,"snow"],"check":"normal: snow on odd row","expected":[-60.0,"snow"],"passed":true},{"actual":[-70.0,"manual"],"check":"regression: manual angle clamp","expected":[-50.0,"manual"],"passed":false},{"actual":[-70.0,"manual"],"check":"regression: manual angle clamp (partial repair)","expected":[-50.0,"manual"],"passed":false},{"actual":[0.0,"manual"],"check":"control 1","expected":[0.0,"manual"],"passed":true},{"actual":[0.0,"wind"],"check":"control 2","expected":[0.0,"wind"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary: wind exactly at stow limit\", \"actual\": [0.0, \"wind\"], \"expected\": [0.0, \"wind\"], \"passed\": true}, {\"check\": \"boundary: hail along the axis\", \"actual\": [-60.0, \"hail\"], \"expected\": [-60.0, \"hail\"], \"passed\": true}, {\"check\": \"normal: snow on odd row\", \"actual\": [-60.0, \"snow\"], \"expected\": [-60.0, \"snow\"], \"passed\": true}, {\"check\": \"regression: manual angle clamp\", \"actual\": [-70.0, \"manual\"], \"expected\": [-50.0, \"manual\"], \"passed\": false}, {\"check\": \"regression: manual angle clamp (partial repair)\", \"actual\": [-70.0, \"manual\"], \"expected\": [-50.0, \"manual\"], \"passed\": false}, {\"check\": \"control 1\", \"actual\": [0.0, \"manual\"], \"expected\": [0.0, \"manual\"], \"passed\": true}, {\"check\": \"control 2\", \"actual\": [0.0, \"wind\"], \"expected\": [0.0, \"wind\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.64,"exit_code":1,"observations":[{"actual":[0.0,"wind"],"check":"boundary: wind exactly at stow limit","expected":[0.0,"wind"],"passed":true},{"actual":[-60.0,"hail"],"check":"boundary: hail along the axis","expected":[-60.0,"hail"],"passed":true},{"actual":[-60.0,"snow"],"check":"normal: snow on odd row","expected":[-60.0,"snow"],"passed":true},{"actual":[-70.0,"manual"],"check":"regression: manual angle clamp","expected":[-50.0,"manual"],"passed":false},{"actual":[-70.0,"manual"],"check":"regression: manual angle clamp (partial repair)","expected":[-50.0,"manual"],"passed":false},{"actual":[0.0,"manual"],"check":"control 1","expected":[0.0,"manual"],"passed":true},{"actual":[0.0,"wind"],"check":"control 2","expected":[0.0,"wind"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"boundary: wind exactly at stow limit\", \"actual\": [0.0, \"wind\"], \"expected\": [0.0, \"wind\"], \"passed\": true}, {\"check\": \"boundary: hail along the axis\", \"actual\": [-60.0, \"hail\"], \"expected\": [-60.0, \"hail\"], \"passed\": true}, {\"check\": \"normal: snow on odd row\", \"actual\": [-60.0, \"snow\"], \"expected\": [-60.0, \"snow\"], \"passed\": true}, {\"check\": \"regression: manual angle clamp\", \"actual\": [-70.0, \"manual\"], \"expected\": [-50.0, \"manual\"], \"passed\": false}, {\"check\": \"regression: manual angle clamp (partial repair)\", \"actual\": [-70.0, \"manual\"], \"expected\": [-50.0, \"manual\"], \"passed\": false}, {\"check\": \"control 1\", \"actual\": [0.0, \"manual\"], \"expected\": [0.0, \"manual\"], \"passed\": true}, {\"check\": \"control 2\", \"actual\": [0.0, \"wind\"], \"expected\": [0.0, \"wind\"], \"passed\": true}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}