{"abstract":"Equal values in different filter fields are collapsed.","category":"Filter interfaces","checks":8,"contract":"Chip identity includes field and value; exclusive replacement clears only that field; removal targets one identity; field clear and global clear have distinct scope.","contract_signature":"chips, event, field, value, exclusive","evaluation_group":"xi-filter-chips","failed_approach":"Never deduplicating creates repeated chips for the same criterion.","family":"xi-filter-chips-identity","id":"FA-8956","implementations":{"attempt":{"sha256":"553afa9bd7fa9ff561cb30753e3da5687ee4bdf48e7c054aff6bd3915deda445","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(chips, event, field, value, exclusive):\n    chips = list(chips)\n    if event == 'add':\n        if False: return chips\n        if exclusive: chips = [(f,v) for f,v in chips if f != field]\n        chips.append((field,value))\n    elif event == 'remove': chips = [(f,v) for f,v in chips if (f,v) != (field,value)]\n    elif event == 'clear-field': chips = [(f,v) for f,v in chips if f != field]\n    elif event == 'clear-all': chips = []\n    return chips\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('cross field', solve([('color','red')], 'add', 'tag', 'red', False), [('color', 'red'), ('tag', 'red')])\ncheck('duplicate', solve([('color','red')], 'add', 'color', 'red', False), [('color', 'red')])\ncheck('exclusive', solve([('color','red'),('tag','new')], 'add', 'color', 'blue', True), [('tag', 'new'), ('color', 'blue')])\ncheck('remove identity', solve([('color','red'),('color','blue'),('tag','red')], 'remove', 'color', 'red', False), [('color', 'blue'), ('tag', 'red')])\ncheck('clear field', solve([('color','red'),('tag','new')], 'clear-field', 'color', None, False), [('tag', 'new')])\ncheck('clear all', solve([('color','red'),('tag','new')], 'clear-all', 'color', None, False), [])\ncheck('parameterized filter criterion', solve([],'add','field',str(N),False), [('field',str(N))])\nfor repetition in range(N):\n    check('repeat clear all', solve([('color','red'),('tag','new')], 'clear-all', 'color', None, 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":"135ac78146cae5a69a0c1b6d5379fae038e0fbcc1fa4e69988c4abf13536c2f3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(chips, event, field, value, exclusive):\n    chips = list(chips)\n    if event == 'add':\n        if any(v == value for f,v in chips): return chips\n        if exclusive: chips = [(f,v) for f,v in chips if f != field]\n        chips.append((field,value))\n    elif event == 'remove': chips = [(f,v) for f,v in chips if (f,v) != (field,value)]\n    elif event == 'clear-field': chips = [(f,v) for f,v in chips if f != field]\n    elif event == 'clear-all': chips = []\n    return chips\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('cross field', solve([('color','red')], 'add', 'tag', 'red', False), [('color', 'red'), ('tag', 'red')])\ncheck('duplicate', solve([('color','red')], 'add', 'color', 'red', False), [('color', 'red')])\ncheck('exclusive', solve([('color','red'),('tag','new')], 'add', 'color', 'blue', True), [('tag', 'new'), ('color', 'blue')])\ncheck('remove identity', solve([('color','red'),('color','blue'),('tag','red')], 'remove', 'color', 'red', False), [('color', 'blue'), ('tag', 'red')])\ncheck('clear field', solve([('color','red'),('tag','new')], 'clear-field', 'color', None, False), [('tag', 'new')])\ncheck('clear all', solve([('color','red'),('tag','new')], 'clear-all', 'color', None, False), [])\ncheck('parameterized filter criterion', solve([],'add','field',str(N),False), [('field',str(N))])\nfor repetition in range(N):\n    check('repeat clear all', solve([('color','red'),('tag','new')], 'clear-all', 'color', None, 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":" 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":"xi-filter-chips-identity","generated_at":"2026-09-29T14:38:26.054769+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic model of filter-chip identity and removal; this isolates one interface invariant without requiring a browser.","root_cause":"The identity operation uses `if any(v == value for f,v in chips):` where the contract requires `if (field,value) in chips:`.","sha256":"b0762510e4003757ce90ac26ad1921567a07dc33ade3c133bcc0be70982c4968","title":"Filter-chip identity and removal: Equal values in different filter fields are collapsed · 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":35.477,"exit_code":1,"observations":[{"actual":[["color","red"],["tag","red"]],"check":"cross field","expected":[["color","red"],["tag","red"]],"passed":true},{"actual":[["color","red"],["color","red"]],"check":"duplicate","expected":[["color","red"]],"passed":false},{"actual":[["tag","new"],["color","blue"]],"check":"exclusive","expected":[["tag","new"],["color","blue"]],"passed":true},{"actual":[["color","blue"],["tag","red"]],"check":"remove identity","expected":[["color","blue"],["tag","red"]],"passed":true},{"actual":[["tag","new"]],"check":"clear field","expected":[["tag","new"]],"passed":true},{"actual":[],"check":"clear all","expected":[],"passed":true},{"actual":[["field","1"]],"check":"parameterized filter criterion","expected":[["field","1"]],"passed":true},{"actual":[],"check":"repeat clear all","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cross field\", \"actual\": [[\"color\", \"red\"], [\"tag\", \"red\"]], \"expected\": [[\"color\", \"red\"], [\"tag\", \"red\"]], \"passed\": true}, {\"check\": \"duplicate\", \"actual\": [[\"color\", \"red\"], [\"color\", \"red\"]], \"expected\": [[\"color\", \"red\"]], \"passed\": false}, {\"check\": \"exclusive\", \"actual\": [[\"tag\", \"new\"], [\"color\", \"blue\"]], \"expected\": [[\"tag\", \"new\"], [\"color\", \"blue\"]], \"passed\": true}, {\"check\": \"remove identity\", \"actual\": [[\"color\", \"blue\"], [\"tag\", \"red\"]], \"expected\": [[\"color\", \"blue\"], [\"tag\", \"red\"]], \"passed\": true}, {\"check\": \"clear field\", \"actual\": [[\"tag\", \"new\"]], \"expected\": [[\"tag\", \"new\"]], \"passed\": true}, {\"check\": \"clear all\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"parameterized filter criterion\", \"actual\": [[\"field\", \"1\"]], \"expected\": [[\"field\", \"1\"]], \"passed\": true}, {\"check\": \"repeat clear all\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.623,"exit_code":1,"observations":[{"actual":[["color","red"]],"check":"cross field","expected":[["color","red"],["tag","red"]],"passed":false},{"actual":[["color","red"]],"check":"duplicate","expected":[["color","red"]],"passed":true},{"actual":[["tag","new"],["color","blue"]],"check":"exclusive","expected":[["tag","new"],["color","blue"]],"passed":true},{"actual":[["color","blue"],["tag","red"]],"check":"remove identity","expected":[["color","blue"],["tag","red"]],"passed":true},{"actual":[["tag","new"]],"check":"clear field","expected":[["tag","new"]],"passed":true},{"actual":[],"check":"clear all","expected":[],"passed":true},{"actual":[["field","1"]],"check":"parameterized filter criterion","expected":[["field","1"]],"passed":true},{"actual":[],"check":"repeat clear all","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cross field\", \"actual\": [[\"color\", \"red\"]], \"expected\": [[\"color\", \"red\"], [\"tag\", \"red\"]], \"passed\": false}, {\"check\": \"duplicate\", \"actual\": [[\"color\", \"red\"]], \"expected\": [[\"color\", \"red\"]], \"passed\": true}, {\"check\": \"exclusive\", \"actual\": [[\"tag\", \"new\"], [\"color\", \"blue\"]], \"expected\": [[\"tag\", \"new\"], [\"color\", \"blue\"]], \"passed\": true}, {\"check\": \"remove identity\", \"actual\": [[\"color\", \"blue\"], [\"tag\", \"red\"]], \"expected\": [[\"color\", \"blue\"], [\"tag\", \"red\"]], \"passed\": true}, {\"check\": \"clear field\", \"actual\": [[\"tag\", \"new\"]], \"expected\": [[\"tag\", \"new\"]], \"passed\": true}, {\"check\": \"clear all\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"parameterized filter criterion\", \"actual\": [[\"field\", \"1\"]], \"expected\": [[\"field\", \"1\"]], \"passed\": true}, {\"check\": \"repeat clear all\", \"actual\": [], \"expected\": [], \"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."}}