{"abstract":"A line clearance survives an intervening product run.","category":"Manufacturing workflow integrity","checks":7,"contract":"Chronological events are (clear or run, product) pairs. A requested start is permitted only if the last event is clear for that requested product.","evaluation_group":"model-1897aba81783a55e","failed_approach":"Using the most recent clearance while skipping run events preserves clearance after consumption.","family":"z-manufacturing-line-clearance","id":"FA-12386","implementations":{"attempt":{"sha256":"314cced6a580daa25ced2637930308d76f082dc4cdaf2bdbfc2c987bee58b739","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events, product):\n    clears = [target for kind, target in events if kind == 'clear']\n    return bool(clears) and clears[-1] == product\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\np = 'product-' + str(N)\ncheck('fresh correct clearance', solve([('clear', p)], p), True)\ncheck('clearance consumed by run', solve([('clear', p)] + [('run', p)] * N, p), False)\ncheck('wrong target', solve([('clear', 'other')], p), False)\ncheck('new clearance after run', solve([('clear', p), ('run', p), ('clear', p)], p), True)\ncheck('most recent target controls', solve([('clear', p), ('clear', 'other')], p), False)\ncheck('no clearance', solve([], p), False)\ncheck('run alone', solve([('run', p)], p), False)\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":"bbe68e9f443f59d1e1a5c9c8413b6c527017a4005549a091ecca27c8b1522bdd","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events, product):\n    return any(kind == 'clear' for kind, target in events)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\np = 'product-' + str(N)\ncheck('fresh correct clearance', solve([('clear', p)], p), True)\ncheck('clearance consumed by run', solve([('clear', p)] + [('run', p)] * N, p), False)\ncheck('wrong target', solve([('clear', 'other')], p), False)\ncheck('new clearance after run', solve([('clear', p), ('run', p), ('clear', p)], p), True)\ncheck('most recent target controls', solve([('clear', p), ('clear', 'other')], p), False)\ncheck('no clearance', solve([], p), False)\ncheck('run alone', solve([('run', p)], p), False)\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":"bfc291167c018d46283852236d038962782b323bfd5dac7014d757776b25bc8f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(events, product):\n    return bool(events) and events[-1] == ('clear', product)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\np = 'product-' + str(N)\ncheck('fresh correct clearance', solve([('clear', p)], p), True)\ncheck('clearance consumed by run', solve([('clear', p)] + [('run', p)] * N, p), False)\ncheck('wrong target', solve([('clear', 'other')], p), False)\ncheck('new clearance after run', solve([('clear', p), ('run', p), ('clear', p)], p), True)\ncheck('most recent target controls', solve([('clear', p), ('clear', 'other')], p), False)\ncheck('no clearance', solve([], p), False)\ncheck('run alone', solve([('run', p)], p), False)\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":"Offline policy model only; no physical equipment, regulatory certification, or concurrent transaction claims. 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":"z-manufacturing-line-clearance","generated_at":"2026-09-29T14:38:56.390359+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic manufacturing record model isolates this workflow defect before equipment or enterprise integration.","repair":"Only the most recent event can authorize a start, and its cleared target must match.","root_cause":"Any historic clearance is accepted before a new product run.","sha256":"1b5dd8f7d86c8456683e111e3c9ab02133f7af5833daac50b458599c30e96530","title":"A line clearance survives an intervening product run · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.046,"exit_code":1,"observations":[{"actual":true,"check":"fresh correct clearance","expected":true,"passed":true},{"actual":true,"check":"clearance consumed by run","expected":false,"passed":false},{"actual":false,"check":"wrong target","expected":false,"passed":true},{"actual":true,"check":"new clearance after run","expected":true,"passed":true},{"actual":false,"check":"most recent target controls","expected":false,"passed":true},{"actual":false,"check":"no clearance","expected":false,"passed":true},{"actual":false,"check":"run alone","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fresh correct clearance\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"clearance consumed by run\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"wrong target\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"new clearance after run\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"most recent target controls\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"no clearance\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"run alone\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.329,"exit_code":1,"observations":[{"actual":true,"check":"fresh correct clearance","expected":true,"passed":true},{"actual":true,"check":"clearance consumed by run","expected":false,"passed":false},{"actual":true,"check":"wrong target","expected":false,"passed":false},{"actual":true,"check":"new clearance after run","expected":true,"passed":true},{"actual":true,"check":"most recent target controls","expected":false,"passed":false},{"actual":false,"check":"no clearance","expected":false,"passed":true},{"actual":false,"check":"run alone","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fresh correct clearance\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"clearance consumed by run\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"wrong target\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"new clearance after run\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"most recent target controls\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"no clearance\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"run alone\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.56,"exit_code":0,"observations":[{"actual":true,"check":"fresh correct clearance","expected":true,"passed":true},{"actual":false,"check":"clearance consumed by run","expected":false,"passed":true},{"actual":false,"check":"wrong target","expected":false,"passed":true},{"actual":true,"check":"new clearance after run","expected":true,"passed":true},{"actual":false,"check":"most recent target controls","expected":false,"passed":true},{"actual":false,"check":"no clearance","expected":false,"passed":true},{"actual":false,"check":"run alone","expected":false,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fresh correct clearance\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"clearance consumed by run\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"wrong target\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"new clearance after run\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"most recent target controls\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"no clearance\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"run alone\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}