{"abstract":"Unsupported drop effects reach the mutation handler.","category":"Direct manipulation","checks":9,"contract":"Accept only enabled, compatible targets outside the source subtree, with a supported move or copy effect.","evaluation_group":"xi-drop-acceptance","failed_approach":"Restricting to move also rejects supported copy actions.","family":"xi-drop-acceptance-effect","id":"FA-8276","implementations":{"attempt":{"sha256":"df5181b785fecb4557291eca07b8f68110af82e6f08b2799a4db7baab5a5a412","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(drag_type, accepts, disabled, source, target, descendants, effect):\n    if disabled: return None\n    if drag_type not in accepts: return None\n    if source == target: return None\n    if target in descendants: return None\n    if effect != 'move': return None\n    return effect\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('disabled', solve('node', ['node'], True, 'a', 'b', [], 'move'), None)\ncheck('type', solve('file', ['node'], False, 'a', 'b', [], 'move'), None)\ncheck('self', solve('node', ['node'], False, 'a', 'a', [], 'move'), None)\ncheck('cycle', solve('node', ['node'], False, 'a', 'b', ['b'], 'move'), None)\ncheck('unsupported', solve('node', ['node'], False, 'a', 'b', [], 'link'), None)\ncheck('copy', solve('node', ['node'], False, 'a', 'b', [], 'copy'), 'copy')\ncheck('move', solve('node', ['node'], False, 'a', 'b', [], 'move'), 'move')\ncheck('parameterized payload type', solve('type'+str(N), ['type'+str(N)], False, 'a', 'b', [], 'copy'), 'copy')\nfor repetition in range(N):\n    check('repeat move', solve('node', ['node'], False, 'a', 'b', [], 'move'), 'move')\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":"c84ff335ebead0a63f60c37a09e1c67c39745fd4916d37e55c1e093a85eea0c3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(drag_type, accepts, disabled, source, target, descendants, effect):\n    if disabled: return None\n    if drag_type not in accepts: return None\n    if source == target: return None\n    if target in descendants: return None\n    if False: return None\n    return effect\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('disabled', solve('node', ['node'], True, 'a', 'b', [], 'move'), None)\ncheck('type', solve('file', ['node'], False, 'a', 'b', [], 'move'), None)\ncheck('self', solve('node', ['node'], False, 'a', 'a', [], 'move'), None)\ncheck('cycle', solve('node', ['node'], False, 'a', 'b', ['b'], 'move'), None)\ncheck('unsupported', solve('node', ['node'], False, 'a', 'b', [], 'link'), None)\ncheck('copy', solve('node', ['node'], False, 'a', 'b', [], 'copy'), 'copy')\ncheck('move', solve('node', ['node'], False, 'a', 'b', [], 'move'), 'move')\ncheck('parameterized payload type', solve('type'+str(N), ['type'+str(N)], False, 'a', 'b', [], 'copy'), 'copy')\nfor repetition in range(N):\n    check('repeat move', solve('node', ['node'], False, 'a', 'b', [], 'move'), 'move')\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":"c44f3b71dd68211cefd7ee9d8376cc9d723012adb6eb4a65054d6ea6c2d0ed86","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(drag_type, accepts, disabled, source, target, descendants, effect):\n    if disabled: return None\n    if drag_type not in accepts: return None\n    if source == target: return None\n    if target in descendants: return None\n    if effect not in ('move', 'copy'): return None\n    return effect\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('disabled', solve('node', ['node'], True, 'a', 'b', [], 'move'), None)\ncheck('type', solve('file', ['node'], False, 'a', 'b', [], 'move'), None)\ncheck('self', solve('node', ['node'], False, 'a', 'a', [], 'move'), None)\ncheck('cycle', solve('node', ['node'], False, 'a', 'b', ['b'], 'move'), None)\ncheck('unsupported', solve('node', ['node'], False, 'a', 'b', [], 'link'), None)\ncheck('copy', solve('node', ['node'], False, 'a', 'b', [], 'copy'), 'copy')\ncheck('move', solve('node', ['node'], False, 'a', 'b', [], 'move'), 'move')\ncheck('parameterized payload type', solve('type'+str(N), ['type'+str(N)], False, 'a', 'b', [], 'copy'), 'copy')\nfor repetition in range(N):\n    check('repeat move', solve('node', ['node'], False, 'a', 'b', [], 'move'), 'move')\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-drop-acceptance-effect","generated_at":"2026-09-29T14:38:20.012792+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic model of drop-target acceptance; this isolates one interface invariant without requiring a browser.","repair":"Implement the effect operation as `if effect not in ('move', 'copy'): return None`.","root_cause":"The effect operation uses `if False: return None` where the contract requires `if effect not in ('move', 'copy'): return None`.","sha256":"b3132946ca19443ff047a86fc282680a8ee95cf886842d4131e21d71a26845a3","title":"Drop-target acceptance: Unsupported drop effects reach the mutation handler · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":37.907,"exit_code":1,"observations":[{"actual":null,"check":"disabled","expected":null,"passed":true},{"actual":null,"check":"type","expected":null,"passed":true},{"actual":null,"check":"self","expected":null,"passed":true},{"actual":null,"check":"cycle","expected":null,"passed":true},{"actual":null,"check":"unsupported","expected":null,"passed":true},{"actual":null,"check":"copy","expected":"copy","passed":false},{"actual":"move","check":"move","expected":"move","passed":true},{"actual":null,"check":"parameterized payload type","expected":"copy","passed":false},{"actual":"move","check":"repeat move","expected":"move","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"disabled\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"type\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"self\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"cycle\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"unsupported\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"copy\", \"actual\": null, \"expected\": \"copy\", \"passed\": false}, {\"check\": \"move\", \"actual\": \"move\", \"expected\": \"move\", \"passed\": true}, {\"check\": \"parameterized payload type\", \"actual\": null, \"expected\": \"copy\", \"passed\": false}, {\"check\": \"repeat move\", \"actual\": \"move\", \"expected\": \"move\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.548,"exit_code":1,"observations":[{"actual":null,"check":"disabled","expected":null,"passed":true},{"actual":null,"check":"type","expected":null,"passed":true},{"actual":null,"check":"self","expected":null,"passed":true},{"actual":null,"check":"cycle","expected":null,"passed":true},{"actual":"link","check":"unsupported","expected":null,"passed":false},{"actual":"copy","check":"copy","expected":"copy","passed":true},{"actual":"move","check":"move","expected":"move","passed":true},{"actual":"copy","check":"parameterized payload type","expected":"copy","passed":true},{"actual":"move","check":"repeat move","expected":"move","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"disabled\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"type\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"self\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"cycle\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"unsupported\", \"actual\": \"link\", \"expected\": null, \"passed\": false}, {\"check\": \"copy\", \"actual\": \"copy\", \"expected\": \"copy\", \"passed\": true}, {\"check\": \"move\", \"actual\": \"move\", \"expected\": \"move\", \"passed\": true}, {\"check\": \"parameterized payload type\", \"actual\": \"copy\", \"expected\": \"copy\", \"passed\": true}, {\"check\": \"repeat move\", \"actual\": \"move\", \"expected\": \"move\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.129,"exit_code":0,"observations":[{"actual":null,"check":"disabled","expected":null,"passed":true},{"actual":null,"check":"type","expected":null,"passed":true},{"actual":null,"check":"self","expected":null,"passed":true},{"actual":null,"check":"cycle","expected":null,"passed":true},{"actual":null,"check":"unsupported","expected":null,"passed":true},{"actual":"copy","check":"copy","expected":"copy","passed":true},{"actual":"move","check":"move","expected":"move","passed":true},{"actual":"copy","check":"parameterized payload type","expected":"copy","passed":true},{"actual":"move","check":"repeat move","expected":"move","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"disabled\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"type\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"self\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"cycle\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"unsupported\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"copy\", \"actual\": \"copy\", \"expected\": \"copy\", \"passed\": true}, {\"check\": \"move\", \"actual\": \"move\", \"expected\": \"move\", \"passed\": true}, {\"check\": \"parameterized payload type\", \"actual\": \"copy\", \"expected\": \"copy\", \"passed\": true}, {\"check\": \"repeat move\", \"actual\": \"move\", \"expected\": \"move\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}