{"abstract":"Threshold equality starts an alert.","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.","contract_signature":"enabled, value, error, threshold, count, required","evaluation_group":"xt-alert-state","failed_approach":"The attempted repair substitutes value == threshold. Fixture 5 still yields ('firing', 3) instead of ('ok', 0).","family":"xt-alert-state-threshold-equality","id":"FA-10321","implementations":{"attempt":{"sha256":"6cfdf0966b42f0c5baccc419bfe8ba5a0afc720529791dc47495e8a611e717b2","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":"e0dd862a9679612c515d1de04a4658d75ea5c440d2ca3adbff5d7dbf748f0454","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-threshold-equality","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.","root_cause":"The implementation substitutes value < threshold for value <= threshold, so threshold equality starts an alert.","sha256":"ac4ff4aeaa29b7bfa9d6c5b36455e0517339ff88990a804d136ce4d91c854460","title":"Alert evaluation state transition: Threshold equality starts an alert · 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.898,"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":["firing",3],"check":"fixture 5","expected":["ok",0],"passed":false},{"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":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\": [\"firing\", 3], \"expected\": [\"ok\", 0], \"passed\": false}, {\"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\": false}\n"},"broken":{"elapsed_ms":40.862,"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":["firing",3],"check":"fixture 4","expected":["ok",0],"passed":false},{"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":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\": [\"firing\", 3], \"expected\": [\"ok\", 0], \"passed\": false}, {\"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\": 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."}}