{"abstract":"Export in one interval erases import from another.","category":"Power metering accounting","checks":6,"contract":"Input rows are [import, export] nonnegative energy per settlement interval. Net each row first, then return total positive net import. Export credits are separate and cannot offset another interval.","evaluation_group":"model-d28a9ef8a8243505","failed_approach":"Ignoring export entirely charges imports that should cancel within the same interval.","family":"z-power_metering-settlement-net-window","id":"FA-12251","implementations":{"attempt":{"sha256":"aadc0d0ffefd9b4a4eefe01cf429f4f82ef025822509c6fb42bdb5d1e4174082","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows):\n    return sum(i for i,e in rows)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('export cannot cross intervals', solve([[3*N,0],[0,2*N]]), 3*N)\ncheck('within interval credit', solve([[3*N,N]]), 2*N)\ncheck('balanced interval', solve([[N,N]]), 0)\ncheck('export only', solve([[0,N]]), 0)\ncheck('import only', solve([[N,0]]), N)\ncheck('empty period', solve([]), 0)\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":"92307ed7e69662d21a16d5a9ed3dcb39e3e7503d80d1b67c6b37b1334121cb3b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows):\n    return max(sum(i-e for i,e in rows),0)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('export cannot cross intervals', solve([[3*N,0],[0,2*N]]), 3*N)\ncheck('within interval credit', solve([[3*N,N]]), 2*N)\ncheck('balanced interval', solve([[N,N]]), 0)\ncheck('export only', solve([[0,N]]), 0)\ncheck('import only', solve([[N,0]]), N)\ncheck('empty period', solve([]), 0)\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":"164826c5435f2a65f476c50ddcd196c1f1a2e5ad4f155967dfbe991ca177190e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows):\n    return sum(max(i-e,0) for i,e in rows)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('export cannot cross intervals', solve([[3*N,0],[0,2*N]]), 3*N)\ncheck('within interval credit', solve([[3*N,N]]), 2*N)\ncheck('balanced interval', solve([[N,N]]), 0)\ncheck('export only', solve([[0,N]]), 0)\ncheck('import only', solve([[N,0]]), N)\ncheck('empty period', solve([]), 0)\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":"Simplified integer-energy accounting model; no hardware protocol, legal tariff, measurement uncertainty, or live grid behavior is represented. 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-power_metering-settlement-net-window","generated_at":"2026-09-29T14:38:55.212437+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Meter settlement depends on explicit register and tariff policies; this controlled model makes that policy observable.","repair":"Apply the nonnegative net-import rule separately to each interval.","root_cause":"Netting over the full billing period crosses the tariff settlement boundary.","sha256":"d7d4693491a0cd635d0e88986a6c47275f5c738480b525b6765108ddd66a2230","title":"Export in one interval erases import from another · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.324,"exit_code":1,"observations":[{"actual":3,"check":"export cannot cross intervals","expected":3,"passed":true},{"actual":3,"check":"within interval credit","expected":2,"passed":false},{"actual":1,"check":"balanced interval","expected":0,"passed":false},{"actual":0,"check":"export only","expected":0,"passed":true},{"actual":1,"check":"import only","expected":1,"passed":true},{"actual":0,"check":"empty period","expected":0,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"export cannot cross intervals\", \"actual\": 3, \"expected\": 3, \"passed\": true}, {\"check\": \"within interval credit\", \"actual\": 3, \"expected\": 2, \"passed\": false}, {\"check\": \"balanced interval\", \"actual\": 1, \"expected\": 0, \"passed\": false}, {\"check\": \"export only\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"import only\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"empty period\", \"actual\": 0, \"expected\": 0, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.879,"exit_code":1,"observations":[{"actual":1,"check":"export cannot cross intervals","expected":3,"passed":false},{"actual":2,"check":"within interval credit","expected":2,"passed":true},{"actual":0,"check":"balanced interval","expected":0,"passed":true},{"actual":0,"check":"export only","expected":0,"passed":true},{"actual":1,"check":"import only","expected":1,"passed":true},{"actual":0,"check":"empty period","expected":0,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"export cannot cross intervals\", \"actual\": 1, \"expected\": 3, \"passed\": false}, {\"check\": \"within interval credit\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"balanced interval\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"export only\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"import only\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"empty period\", \"actual\": 0, \"expected\": 0, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":38.935,"exit_code":0,"observations":[{"actual":3,"check":"export cannot cross intervals","expected":3,"passed":true},{"actual":2,"check":"within interval credit","expected":2,"passed":true},{"actual":0,"check":"balanced interval","expected":0,"passed":true},{"actual":0,"check":"export only","expected":0,"passed":true},{"actual":1,"check":"import only","expected":1,"passed":true},{"actual":0,"check":"empty period","expected":0,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"export cannot cross intervals\", \"actual\": 3, \"expected\": 3, \"passed\": true}, {\"check\": \"within interval credit\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"balanced interval\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"export only\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"import only\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"empty period\", \"actual\": 0, \"expected\": 0, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}