{"abstract":"Firing is delayed by an extra observation.","category":"Observability","checks":8,"contract":"Disabled rules become disabled; absent observations become no-data; explicit evaluation error becomes error; values above threshold become firing after required consecutive count, otherwise pending; healthy observations reset count to zero.","evaluation_group":"xt-alert-state","failed_approach":"The attempted repair substitutes count == required. Fixture 8 still yields ('pending', 4) instead of ('firing', 4).","family":"xt-alert-state-consecutive-count","id":"FA-10326","implementations":{"attempt":{"sha256":"d09f9d401282161f0143637f7c4c0273399fd4bdfffdc3c2a2b2209b1bb14bd2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(enabled, value, error, threshold, count, required):\n    if not enabled: return ('disabled', 0)\n    if error: return ('error', count)\n    if value is None: return ('no-data', count)\n    if value <= threshold: return ('ok', 0)\n    count += 1\n    return ('firing' if count == required else 'pending', count)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(False, 9, False, 5, 2, 3), ('disabled', 0))\ncheck('fixture 2', solve(True, 9, True, 5, 2, 3), ('error', 2))\ncheck('fixture 3', solve(True, None, False, 5, 2, 3), ('no-data', 2))\ncheck('fixture 4', solve(True, 5, False, 5, 2, 3), ('ok', 0))\ncheck('fixture 5', solve(True, 4, False, 5, 2, 3), ('ok', 0))\ncheck('fixture 6', solve(True, 6, False, 5, 1, 3), ('pending', 2))\ncheck('fixture 7', solve(True, 6, False, 5, 2, 3), ('firing', 3))\ncheck('fixture 8', solve(True, 6, False, 5, 3, 3), ('firing', 4))\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":"602c08e6f6bc5a09eda293b9cd61d5c2d7fde375775be84f6d1077c3baa3481c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(enabled, value, error, threshold, count, required):\n    if not enabled: return ('disabled', 0)\n    if error: return ('error', count)\n    if value is None: return ('no-data', count)\n    if value <= threshold: return ('ok', 0)\n    count += 1\n    return ('firing' if count > required else 'pending', count)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(False, 9, False, 5, 2, 3), ('disabled', 0))\ncheck('fixture 2', solve(True, 9, True, 5, 2, 3), ('error', 2))\ncheck('fixture 3', solve(True, None, False, 5, 2, 3), ('no-data', 2))\ncheck('fixture 4', solve(True, 5, False, 5, 2, 3), ('ok', 0))\ncheck('fixture 5', solve(True, 4, False, 5, 2, 3), ('ok', 0))\ncheck('fixture 6', solve(True, 6, False, 5, 1, 3), ('pending', 2))\ncheck('fixture 7', solve(True, 6, False, 5, 2, 3), ('firing', 3))\ncheck('fixture 8', solve(True, 6, False, 5, 3, 3), ('firing', 4))\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":"35c4b559190c1ca2e050e8d7eb5ff1ba4510b8a78cb28644c58185ff701d959c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(enabled, value, error, threshold, count, required):\n    if not enabled: return ('disabled', 0)\n    if error: return ('error', count)\n    if value is None: return ('no-data', count)\n    if value <= threshold: return ('ok', 0)\n    count += 1\n    return ('firing' if count >= required else 'pending', count)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(False, 9, False, 5, 2, 3), ('disabled', 0))\ncheck('fixture 2', solve(True, 9, True, 5, 2, 3), ('error', 2))\ncheck('fixture 3', solve(True, None, False, 5, 2, 3), ('no-data', 2))\ncheck('fixture 4', solve(True, 5, False, 5, 2, 3), ('ok', 0))\ncheck('fixture 5', solve(True, 4, False, 5, 2, 3), ('ok', 0))\ncheck('fixture 6', solve(True, 6, False, 5, 1, 3), ('pending', 2))\ncheck('fixture 7', solve(True, 6, False, 5, 2, 3), ('firing', 3))\ncheck('fixture 8', solve(True, 6, False, 5, 3, 3), ('firing', 4))\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-alert-state-consecutive-count","generated_at":"2026-09-29T14:38:38.005466+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of alert evaluation state transition, suitable for testing build and release tooling without external services.","repair":"Fire at and beyond the required consecutive observation count.","root_cause":"The implementation substitutes count > required for count >= required, so firing is delayed by an extra observation.","sha256":"2adedb5ab32d4183209c4acc8a805170b84c05d81cc5d45dede6a6df68643cf3","title":"Alert evaluation state transition: Firing is delayed by an extra observation · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":39.535,"exit_code":1,"observations":[{"actual":["disabled",0],"check":"fixture 1","expected":["disabled",0],"passed":true},{"actual":["error",2],"check":"fixture 2","expected":["error",2],"passed":true},{"actual":["no-data",2],"check":"fixture 3","expected":["no-data",2],"passed":true},{"actual":["ok",0],"check":"fixture 4","expected":["ok",0],"passed":true},{"actual":["ok",0],"check":"fixture 5","expected":["ok",0],"passed":true},{"actual":["pending",2],"check":"fixture 6","expected":["pending",2],"passed":true},{"actual":["firing",3],"check":"fixture 7","expected":["firing",3],"passed":true},{"actual":["pending",4],"check":"fixture 8","expected":["firing",4],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"disabled\", 0], \"expected\": [\"disabled\", 0], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"error\", 2], \"expected\": [\"error\", 2], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"no-data\", 2], \"expected\": [\"no-data\", 2], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"ok\", 0], \"expected\": [\"ok\", 0], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"ok\", 0], \"expected\": [\"ok\", 0], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"pending\", 2], \"expected\": [\"pending\", 2], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"firing\", 3], \"expected\": [\"firing\", 3], \"passed\": true}, {\"check\": \"fixture 8\", \"actual\": [\"pending\", 4], \"expected\": [\"firing\", 4], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.847,"exit_code":1,"observations":[{"actual":["disabled",0],"check":"fixture 1","expected":["disabled",0],"passed":true},{"actual":["error",2],"check":"fixture 2","expected":["error",2],"passed":true},{"actual":["no-data",2],"check":"fixture 3","expected":["no-data",2],"passed":true},{"actual":["ok",0],"check":"fixture 4","expected":["ok",0],"passed":true},{"actual":["ok",0],"check":"fixture 5","expected":["ok",0],"passed":true},{"actual":["pending",2],"check":"fixture 6","expected":["pending",2],"passed":true},{"actual":["pending",3],"check":"fixture 7","expected":["firing",3],"passed":false},{"actual":["firing",4],"check":"fixture 8","expected":["firing",4],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"disabled\", 0], \"expected\": [\"disabled\", 0], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"error\", 2], \"expected\": [\"error\", 2], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"no-data\", 2], \"expected\": [\"no-data\", 2], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"ok\", 0], \"expected\": [\"ok\", 0], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"ok\", 0], \"expected\": [\"ok\", 0], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"pending\", 2], \"expected\": [\"pending\", 2], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"pending\", 3], \"expected\": [\"firing\", 3], \"passed\": false}, {\"check\": \"fixture 8\", \"actual\": [\"firing\", 4], \"expected\": [\"firing\", 4], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.389,"exit_code":0,"observations":[{"actual":["disabled",0],"check":"fixture 1","expected":["disabled",0],"passed":true},{"actual":["error",2],"check":"fixture 2","expected":["error",2],"passed":true},{"actual":["no-data",2],"check":"fixture 3","expected":["no-data",2],"passed":true},{"actual":["ok",0],"check":"fixture 4","expected":["ok",0],"passed":true},{"actual":["ok",0],"check":"fixture 5","expected":["ok",0],"passed":true},{"actual":["pending",2],"check":"fixture 6","expected":["pending",2],"passed":true},{"actual":["firing",3],"check":"fixture 7","expected":["firing",3],"passed":true},{"actual":["firing",4],"check":"fixture 8","expected":["firing",4],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"disabled\", 0], \"expected\": [\"disabled\", 0], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"error\", 2], \"expected\": [\"error\", 2], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"no-data\", 2], \"expected\": [\"no-data\", 2], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"ok\", 0], \"expected\": [\"ok\", 0], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"ok\", 0], \"expected\": [\"ok\", 0], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"pending\", 2], \"expected\": [\"pending\", 2], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"firing\", 3], \"expected\": [\"firing\", 3], \"passed\": true}, {\"check\": \"fixture 8\", \"actual\": [\"firing\", 4], \"expected\": [\"firing\", 4], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}