{"abstract":"Pending prerequisites report active execution.","category":"Build systems","checks":9,"contract":"Return failed if any required job fails, cancelled if any required job cancels, waiting if required work is pending, running if required work runs, otherwise passed. Optional jobs never block.","evaluation_group":"xt-build-exit","failed_approach":"The attempted repair substitutes if 'pending' in states: return 'passed'. Fixture 5 still yields 'passed' instead of 'waiting'.","family":"xt-build-exit-pending-status","id":"FA-9221","implementations":{"attempt":{"sha256":"2be4e60b1ae7899d777eee1122be331d92b763178d55644f41cf5e27793b630e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(jobs):\n    states = [state for required, state in jobs if required]\n    if 'failed' in states: return 'failed'\n    if 'cancelled' in states: return 'cancelled'\n    if 'pending' in states: return 'passed'\n    if 'running' in states: return 'running'\n    return 'passed'\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([]), 'passed')\ncheck('fixture 2', solve([(False, 'failed')]), 'passed')\ncheck('fixture 3', solve([(True, 'failed'), (True, 'running')]), 'failed')\ncheck('fixture 4', solve([(True, 'cancelled')]), 'cancelled')\ncheck('fixture 5', solve([(True, 'pending')]), 'waiting')\ncheck('fixture 6', solve([(True, 'running')]), 'running')\ncheck('fixture 7', solve([(True, 'passed')]), 'passed')\ncheck('fixture 8', solve([(True, 'pending'), (True, 'running')]), 'waiting')\ncheck('fixture 9', solve([(False, 'pending'), (True, 'passed')]), 'passed')\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":"4d1879db9094246ab49366b3e3cf58b5a2be3b777d781105c3634c711439954b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(jobs):\n    states = [state for required, state in jobs if required]\n    if 'failed' in states: return 'failed'\n    if 'cancelled' in states: return 'cancelled'\n    if 'pending' in states: return 'running'\n    if 'running' in states: return 'running'\n    return 'passed'\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([]), 'passed')\ncheck('fixture 2', solve([(False, 'failed')]), 'passed')\ncheck('fixture 3', solve([(True, 'failed'), (True, 'running')]), 'failed')\ncheck('fixture 4', solve([(True, 'cancelled')]), 'cancelled')\ncheck('fixture 5', solve([(True, 'pending')]), 'waiting')\ncheck('fixture 6', solve([(True, 'running')]), 'running')\ncheck('fixture 7', solve([(True, 'passed')]), 'passed')\ncheck('fixture 8', solve([(True, 'pending'), (True, 'running')]), 'waiting')\ncheck('fixture 9', solve([(False, 'pending'), (True, 'passed')]), 'passed')\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":"ebdb6ace53bde76a1b24aa4ce3a9450fc8734382229ce22896a61a15303645cf","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(jobs):\n    states = [state for required, state in jobs if required]\n    if 'failed' in states: return 'failed'\n    if 'cancelled' in states: return 'cancelled'\n    if 'pending' in states: return 'waiting'\n    if 'running' in states: return 'running'\n    return 'passed'\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([]), 'passed')\ncheck('fixture 2', solve([(False, 'failed')]), 'passed')\ncheck('fixture 3', solve([(True, 'failed'), (True, 'running')]), 'failed')\ncheck('fixture 4', solve([(True, 'cancelled')]), 'cancelled')\ncheck('fixture 5', solve([(True, 'pending')]), 'waiting')\ncheck('fixture 6', solve([(True, 'running')]), 'running')\ncheck('fixture 7', solve([(True, 'passed')]), 'passed')\ncheck('fixture 8', solve([(True, 'pending'), (True, 'running')]), 'waiting')\ncheck('fixture 9', solve([(False, 'pending'), (True, 'passed')]), 'passed')\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":" 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":"xt-build-exit-pending-status","generated_at":"2026-09-29T14:38:28.006600+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of build status reduction, suitable for testing build and release tooling without external services.","repair":"Pending required work must report waiting.","root_cause":"The implementation substitutes if 'pending' in states: return 'running' for if 'pending' in states: return 'waiting', so pending prerequisites report active execution.","sha256":"1e28d7422dd1a01cdc8959936ee2674b6aa6a6525883fbd2be9ed47ea8f8cbb4","title":"Build status reduction: Pending prerequisites report active execution · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":38.935,"exit_code":1,"observations":[{"actual":"passed","check":"fixture 1","expected":"passed","passed":true},{"actual":"passed","check":"fixture 2","expected":"passed","passed":true},{"actual":"failed","check":"fixture 3","expected":"failed","passed":true},{"actual":"cancelled","check":"fixture 4","expected":"cancelled","passed":true},{"actual":"passed","check":"fixture 5","expected":"waiting","passed":false},{"actual":"running","check":"fixture 6","expected":"running","passed":true},{"actual":"passed","check":"fixture 7","expected":"passed","passed":true},{"actual":"passed","check":"fixture 8","expected":"waiting","passed":false},{"actual":"passed","check":"fixture 9","expected":"passed","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"failed\", \"expected\": \"failed\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"cancelled\", \"expected\": \"cancelled\", \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": \"passed\", \"expected\": \"waiting\", \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": \"running\", \"expected\": \"running\", \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 8\", \"actual\": \"passed\", \"expected\": \"waiting\", \"passed\": false}, {\"check\": \"fixture 9\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.692,"exit_code":1,"observations":[{"actual":"passed","check":"fixture 1","expected":"passed","passed":true},{"actual":"passed","check":"fixture 2","expected":"passed","passed":true},{"actual":"failed","check":"fixture 3","expected":"failed","passed":true},{"actual":"cancelled","check":"fixture 4","expected":"cancelled","passed":true},{"actual":"running","check":"fixture 5","expected":"waiting","passed":false},{"actual":"running","check":"fixture 6","expected":"running","passed":true},{"actual":"passed","check":"fixture 7","expected":"passed","passed":true},{"actual":"running","check":"fixture 8","expected":"waiting","passed":false},{"actual":"passed","check":"fixture 9","expected":"passed","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"failed\", \"expected\": \"failed\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"cancelled\", \"expected\": \"cancelled\", \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": \"running\", \"expected\": \"waiting\", \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": \"running\", \"expected\": \"running\", \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 8\", \"actual\": \"running\", \"expected\": \"waiting\", \"passed\": false}, {\"check\": \"fixture 9\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":37.699,"exit_code":0,"observations":[{"actual":"passed","check":"fixture 1","expected":"passed","passed":true},{"actual":"passed","check":"fixture 2","expected":"passed","passed":true},{"actual":"failed","check":"fixture 3","expected":"failed","passed":true},{"actual":"cancelled","check":"fixture 4","expected":"cancelled","passed":true},{"actual":"waiting","check":"fixture 5","expected":"waiting","passed":true},{"actual":"running","check":"fixture 6","expected":"running","passed":true},{"actual":"passed","check":"fixture 7","expected":"passed","passed":true},{"actual":"waiting","check":"fixture 8","expected":"waiting","passed":true},{"actual":"passed","check":"fixture 9","expected":"passed","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"failed\", \"expected\": \"failed\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"cancelled\", \"expected\": \"cancelled\", \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": \"waiting\", \"expected\": \"waiting\", \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": \"running\", \"expected\": \"running\", \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 8\", \"actual\": \"waiting\", \"expected\": \"waiting\", \"passed\": true}, {\"check\": \"fixture 9\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}