{"abstract":"Calibration lookup borrows coefficients from another matrix.","category":"Laboratory measurement reporting","checks":6,"contract":"Given unique [lot,matrix,slope] records, return the slope for an exact pair or None. No fallback between lots or matrices.","contract_signature":"records, lot, matrix","evaluation_group":"model-af8a766b2eebb103","failed_approach":"Filtering by matrix alone fixes one collision but can borrow a different lot.","family":"z-laboratory_units-matrix-calibration","id":"FA-12406","implementations":{"attempt":{"sha256":"7ac7cbb9a186faaad4ecfe78d36a425ca3b21e1cbe4deff89d23b9ee2b024e5d","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(records, lot, matrix):\n    return next((s for l,m,s in records if m == matrix), None)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nr = [('A','water',N),('A','soil',N+2),('B','soil',N+4)]\ncheck('same lot different matrix', solve(r,'A','soil'), N+2)\ncheck('same matrix different lot', solve(r,'B','soil'), N+4)\ncheck('missing pair', solve(r,'B','water'), None)\ncheck('first exact pair', solve(r,'A','water'), N)\ncheck('unknown lot', solve(r,'C','soil'), None)\ncheck('empty calibration table', solve([], 'A','water'), None)\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":"b9e6bbdd413dd00f220495823d9cffd1f991f711b2956134c96d12adf6a65266","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(records, lot, matrix):\n    return next((s for l,m,s in records if l == lot), None)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nr = [('A','water',N),('A','soil',N+2),('B','soil',N+4)]\ncheck('same lot different matrix', solve(r,'A','soil'), N+2)\ncheck('same matrix different lot', solve(r,'B','soil'), N+4)\ncheck('missing pair', solve(r,'B','water'), None)\ncheck('first exact pair', solve(r,'A','water'), N)\ncheck('unknown lot', solve(r,'C','soil'), None)\ncheck('empty calibration table', solve([], 'A','water'), None)\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":"Synthetic integer/rational fixtures only; no instrument validation or clinical interpretation. 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-laboratory_units-matrix-calibration","generated_at":"2026-09-29T14:38:56.645386+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic synthetic laboratory reporting model isolates a software metadata contract; it is not a clinical procedure.","root_cause":"Calibration records are indexed by lot alone despite matrix-specific fits.","sha256":"4258c153fc4c1af1557a6e3b55db4815785886c8a7a6ce55f174519b446696d4","title":"Calibration lookup borrows coefficients from another matrix · 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":40.923,"exit_code":1,"observations":[{"actual":3,"check":"same lot different matrix","expected":3,"passed":true},{"actual":3,"check":"same matrix different lot","expected":5,"passed":false},{"actual":1,"check":"missing pair","expected":null,"passed":false},{"actual":1,"check":"first exact pair","expected":1,"passed":true},{"actual":3,"check":"unknown lot","expected":null,"passed":false},{"actual":null,"check":"empty calibration table","expected":null,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"same lot different matrix\", \"actual\": 3, \"expected\": 3, \"passed\": true}, {\"check\": \"same matrix different lot\", \"actual\": 3, \"expected\": 5, \"passed\": false}, {\"check\": \"missing pair\", \"actual\": 1, \"expected\": null, \"passed\": false}, {\"check\": \"first exact pair\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"unknown lot\", \"actual\": 3, \"expected\": null, \"passed\": false}, {\"check\": \"empty calibration table\", \"actual\": null, \"expected\": null, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.032,"exit_code":1,"observations":[{"actual":1,"check":"same lot different matrix","expected":3,"passed":false},{"actual":5,"check":"same matrix different lot","expected":5,"passed":true},{"actual":5,"check":"missing pair","expected":null,"passed":false},{"actual":1,"check":"first exact pair","expected":1,"passed":true},{"actual":null,"check":"unknown lot","expected":null,"passed":true},{"actual":null,"check":"empty calibration table","expected":null,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"same lot different matrix\", \"actual\": 1, \"expected\": 3, \"passed\": false}, {\"check\": \"same matrix different lot\", \"actual\": 5, \"expected\": 5, \"passed\": true}, {\"check\": \"missing pair\", \"actual\": 5, \"expected\": null, \"passed\": false}, {\"check\": \"first exact pair\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"unknown lot\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty calibration table\", \"actual\": null, \"expected\": null, \"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."}}