{"abstract":"A deviation approval leaks to another operation.","category":"Manufacturing workflow integrity","checks":7,"contract":"Approvals are (lot, operation occurrence, first cycle, last cycle). Return true iff an approval matches lot and occurrence and contains the requested cycle.","contract_signature":"approvals, lot, operation, cycle","evaluation_group":"model-8c332e6f87858c88","failed_approach":"Adding the operation match still ignores expiration after the approved rework cycles.","family":"z-manufacturing-deviation-scope","id":"FA-12366","implementations":{"attempt":{"sha256":"f418c7d430e87451bdcc992e033d6d70ad4b6e8f114d5919faf329648474c96f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(approvals, lot, operation, cycle):\n    return any(a == lot and o == operation for a, o, lo, hi in approvals)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\na = [('lot', 'wash-2', N, N+2)]\ncheck('first approved cycle', solve(a, 'lot', 'wash-2', N), True)\ncheck('last approved cycle', solve(a, 'lot', 'wash-2', N+2), True)\ncheck('expired deviation', solve(a, 'lot', 'wash-2', N+3), False)\ncheck('too early', solve(a, 'lot', 'wash-2', N-1), False)\ncheck('different occurrence', solve(a, 'lot', 'wash-1', N), False)\ncheck('different lot', solve(a, 'other', 'wash-2', N), False)\ncheck('no approvals', solve([], 'lot', 'wash-2', N), 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":"198e4a955beaa4041532e749cc87a74399901f119954604dae8f50818275cfbe","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(approvals, lot, operation, cycle):\n    return any(a == lot for a, o, lo, hi in approvals)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\na = [('lot', 'wash-2', N, N+2)]\ncheck('first approved cycle', solve(a, 'lot', 'wash-2', N), True)\ncheck('last approved cycle', solve(a, 'lot', 'wash-2', N+2), True)\ncheck('expired deviation', solve(a, 'lot', 'wash-2', N+3), False)\ncheck('too early', solve(a, 'lot', 'wash-2', N-1), False)\ncheck('different occurrence', solve(a, 'lot', 'wash-1', N), False)\ncheck('different lot', solve(a, 'other', 'wash-2', N), False)\ncheck('no approvals', solve([], 'lot', 'wash-2', N), 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-deviation-scope","generated_at":"2026-09-29T14:38:56.219111+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.","root_cause":"A lot-specific exception is treated as blanket permission for every operation.","sha256":"a692ca6bab664307dcd986eb6521728e9f80f2fdcfc57605b7700fd7461483a7","title":"A deviation approval leaks to another operation · 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":39.87,"exit_code":1,"observations":[{"actual":true,"check":"first approved cycle","expected":true,"passed":true},{"actual":true,"check":"last approved cycle","expected":true,"passed":true},{"actual":true,"check":"expired deviation","expected":false,"passed":false},{"actual":true,"check":"too early","expected":false,"passed":false},{"actual":false,"check":"different occurrence","expected":false,"passed":true},{"actual":false,"check":"different lot","expected":false,"passed":true},{"actual":false,"check":"no approvals","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"first approved cycle\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"last approved cycle\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"expired deviation\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"too early\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"different occurrence\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"different lot\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"no approvals\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.421,"exit_code":1,"observations":[{"actual":true,"check":"first approved cycle","expected":true,"passed":true},{"actual":true,"check":"last approved cycle","expected":true,"passed":true},{"actual":true,"check":"expired deviation","expected":false,"passed":false},{"actual":true,"check":"too early","expected":false,"passed":false},{"actual":true,"check":"different occurrence","expected":false,"passed":false},{"actual":false,"check":"different lot","expected":false,"passed":true},{"actual":false,"check":"no approvals","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"first approved cycle\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"last approved cycle\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"expired deviation\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"too early\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"different occurrence\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"different lot\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"no approvals\", \"actual\": false, \"expected\": false, \"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."}}