{"abstract":"Optional job failures block the build.","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.","contract_signature":"jobs","evaluation_group":"xt-build-exit","failed_approach":"The attempted repair substitutes if not required. Fixture 2 still yields 'failed' instead of 'passed'.","family":"xt-build-exit-optional-jobs","id":"FA-9206","implementations":{"attempt":{"sha256":"cb26298840361a9658272c484e12dc20b90aec83c7302d60afaec9ebb876d76b","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 not 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"},"broken":{"sha256":"a20fcb7d43ab3a788acbc561946d9f48e7b6c394878261005e77806df623b8ff","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 True]\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-optional-jobs","generated_at":"2026-09-29T14:38:28.089974+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.","root_cause":"The implementation substitutes if True for if required, so optional job failures block the build.","sha256":"5a3c1c9eaf096607770e17f96e3284d3b03203debe3c4ddd55dcd7ab55314764","title":"Build status reduction: Optional job failures block the build · 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":37.856,"exit_code":1,"observations":[{"actual":"passed","check":"fixture 1","expected":"passed","passed":true},{"actual":"failed","check":"fixture 2","expected":"passed","passed":false},{"actual":"passed","check":"fixture 3","expected":"failed","passed":false},{"actual":"passed","check":"fixture 4","expected":"cancelled","passed":false},{"actual":"passed","check":"fixture 5","expected":"waiting","passed":false},{"actual":"passed","check":"fixture 6","expected":"running","passed":false},{"actual":"passed","check":"fixture 7","expected":"passed","passed":true},{"actual":"passed","check":"fixture 8","expected":"waiting","passed":false},{"actual":"waiting","check":"fixture 9","expected":"passed","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": \"failed\", \"expected\": \"passed\", \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": \"passed\", \"expected\": \"failed\", \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": \"passed\", \"expected\": \"cancelled\", \"passed\": false}, {\"check\": \"fixture 5\", \"actual\": \"passed\", \"expected\": \"waiting\", \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": \"passed\", \"expected\": \"running\", \"passed\": false}, {\"check\": \"fixture 7\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 8\", \"actual\": \"passed\", \"expected\": \"waiting\", \"passed\": false}, {\"check\": \"fixture 9\", \"actual\": \"waiting\", \"expected\": \"passed\", \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.433,"exit_code":1,"observations":[{"actual":"passed","check":"fixture 1","expected":"passed","passed":true},{"actual":"failed","check":"fixture 2","expected":"passed","passed":false},{"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":"waiting","check":"fixture 9","expected":"passed","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": \"passed\", \"expected\": \"passed\", \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": \"failed\", \"expected\": \"passed\", \"passed\": false}, {\"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\": \"waiting\", \"expected\": \"passed\", \"passed\": false}], \"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."}}