{"abstract":"The tab workspace reports an incorrect surviving open tabs.","category":"Tab interfaces","checks":6,"contract":"External deletion leaves dirty tab buffers recoverable, marks missing backing files, permits Save As, and closes clean tabs only under the explicit close-clean policy.","contract_signature":"x","evaluation_group":"s3-tabs-deleted-open-document","failed_approach":"The partial repair x['tabs'] still violates a workspace boundary or normal case.","family":"s3-tab-interfaces-deleted-open-document-surviving-open-tabs","id":"FA-36291","implementations":{"attempt":{"sha256":"4fe7d440fb51fbcdd8eee4084eb3b1372a68e0d8221bba529699ca9d5ceec62d","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    r0 = [t for t in x['tabs'] if t in x['deleted']]\n    r1 = [t for t in x['tabs'] if t in x['deleted'] and t in x['dirty']]\n    r2 = [t for t in x['tabs'] if x['close_clean'] and t in x['deleted'] and t not in x['dirty']]\n    r3 = {t:x['paths'][t].rsplit('/',1)[-1] for t in x['tabs'] if t in x['deleted'] and t in x['dirty']}\n    r4 = x['tabs']\n    r5 = {t:x['paths'][t]+' (missing)' for t in x['tabs'] if t in x['deleted']}\n    return [r0,r1,r2,r3,r4,r5]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = {1: [({'tabs': ['a', 'b', 'c'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], ['a'], {'b': 'b.txt'}, ['b', 'c'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': False, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], [], {'b': 'b.txt'}, ['a', 'b', 'c'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c'], 'deleted': ['a', 'b'], 'dirty': ['a', 'b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['a', 'b'], [], {'a': 'a.txt', 'b': 'b.txt'}, ['a', 'b', 'c'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c'], 'deleted': ['c'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['c'], [], ['c'], {}, ['a', 'b'], {'c': '/project/c.txt (missing)'}]), ({'tabs': ['a', 'b', 'c'], 'deleted': [], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [[], [], [], {}, ['a', 'b', 'c'], {}]), ({'tabs': ['a', 'b', 'c'], 'deleted': ['a', 'b'], 'dirty': [], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], [], ['a', 'b'], {}, ['c'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}])], 2: [({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], ['a'], {'b': 'b.txt'}, ['b', 'c', 'background0'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': False, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], [], {'b': 'b.txt'}, ['a', 'b', 'c', 'background0'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': ['a', 'b'], 'dirty': ['a', 'b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['a', 'b'], [], {'a': 'a.txt', 'b': 'b.txt'}, ['a', 'b', 'c', 'background0'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': ['c'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['c'], [], ['c'], {}, ['a', 'b', 'background0'], {'c': '/project/c.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': [], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [[], [], [], {}, ['a', 'b', 'c', 'background0'], {}]), ({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': ['a', 'b'], 'dirty': [], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], [], ['a', 'b'], {}, ['c', 'background0'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}])], 3: [({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], ['a'], {'b': 'b.txt'}, ['b', 'c', 'background0', 'background1'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': False, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], [], {'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': ['a', 'b'], 'dirty': ['a', 'b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['a', 'b'], [], {'a': 'a.txt', 'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': ['c'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['c'], [], ['c'], {}, ['a', 'b', 'background0', 'background1'], {'c': '/project/c.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': [], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [[], [], [], {}, ['a', 'b', 'c', 'background0', 'background1'], {}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': ['a', 'b'], 'dirty': [], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], [], ['a', 'b'], {}, ['c', 'background0', 'background1'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}])], 4: [({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], ['a'], {'b': 'b.txt'}, ['b', 'c', 'background0', 'background1', 'background2'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': False, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], [], {'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1', 'background2'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': ['a', 'b'], 'dirty': ['a', 'b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['a', 'b'], [], {'a': 'a.txt', 'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1', 'background2'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': ['c'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['c'], [], ['c'], {}, ['a', 'b', 'background0', 'background1', 'background2'], {'c': '/project/c.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': [], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [[], [], [], {}, ['a', 'b', 'c', 'background0', 'background1', 'background2'], {}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': ['a', 'b'], 'dirty': [], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], [], ['a', 'b'], {}, ['c', 'background0', 'background1', 'background2'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}])], 5: [({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], ['a'], {'b': 'b.txt'}, ['b', 'c', 'background0', 'background1', 'background2', 'background3'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': False, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], [], {'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': ['a', 'b'], 'dirty': ['a', 'b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['a', 'b'], [], {'a': 'a.txt', 'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': ['c'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['c'], [], ['c'], {}, ['a', 'b', 'background0', 'background1', 'background2', 'background3'], {'c': '/project/c.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': [], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [[], [], [], {}, ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], {}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': ['a', 'b'], 'dirty': [], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], [], ['a', 'b'], {}, ['c', 'background0', 'background1', 'background2', 'background3'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}])]}\nfor i, (inputs, expected) in enumerate(fixtures[N]):\n    check(\"workspace regression \"+str(i), solve(inputs), expected)\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":"10f2c3c15997c4048cf8e2e74145bb2f61905c7a3911b4e4cca181e824e58de3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    r0 = [t for t in x['tabs'] if t in x['deleted']]\n    r1 = [t for t in x['tabs'] if t in x['deleted'] and t in x['dirty']]\n    r2 = [t for t in x['tabs'] if x['close_clean'] and t in x['deleted'] and t not in x['dirty']]\n    r3 = {t:x['paths'][t].rsplit('/',1)[-1] for t in x['tabs'] if t in x['deleted'] and t in x['dirty']}\n    r4 = [t for t in x['tabs'] if t not in x['deleted']]\n    r5 = {t:x['paths'][t]+' (missing)' for t in x['tabs'] if t in x['deleted']}\n    return [r0,r1,r2,r3,r4,r5]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = {1: [({'tabs': ['a', 'b', 'c'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], ['a'], {'b': 'b.txt'}, ['b', 'c'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': False, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], [], {'b': 'b.txt'}, ['a', 'b', 'c'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c'], 'deleted': ['a', 'b'], 'dirty': ['a', 'b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['a', 'b'], [], {'a': 'a.txt', 'b': 'b.txt'}, ['a', 'b', 'c'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c'], 'deleted': ['c'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['c'], [], ['c'], {}, ['a', 'b'], {'c': '/project/c.txt (missing)'}]), ({'tabs': ['a', 'b', 'c'], 'deleted': [], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [[], [], [], {}, ['a', 'b', 'c'], {}]), ({'tabs': ['a', 'b', 'c'], 'deleted': ['a', 'b'], 'dirty': [], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], [], ['a', 'b'], {}, ['c'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}])], 2: [({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], ['a'], {'b': 'b.txt'}, ['b', 'c', 'background0'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': False, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], [], {'b': 'b.txt'}, ['a', 'b', 'c', 'background0'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': ['a', 'b'], 'dirty': ['a', 'b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['a', 'b'], [], {'a': 'a.txt', 'b': 'b.txt'}, ['a', 'b', 'c', 'background0'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': ['c'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['c'], [], ['c'], {}, ['a', 'b', 'background0'], {'c': '/project/c.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': [], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [[], [], [], {}, ['a', 'b', 'c', 'background0'], {}]), ({'tabs': ['a', 'b', 'c', 'background0'], 'deleted': ['a', 'b'], 'dirty': [], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], [], ['a', 'b'], {}, ['c', 'background0'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}])], 3: [({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], ['a'], {'b': 'b.txt'}, ['b', 'c', 'background0', 'background1'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': False, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], [], {'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': ['a', 'b'], 'dirty': ['a', 'b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['a', 'b'], [], {'a': 'a.txt', 'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': ['c'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['c'], [], ['c'], {}, ['a', 'b', 'background0', 'background1'], {'c': '/project/c.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': [], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [[], [], [], {}, ['a', 'b', 'c', 'background0', 'background1'], {}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'deleted': ['a', 'b'], 'dirty': [], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], [], ['a', 'b'], {}, ['c', 'background0', 'background1'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}])], 4: [({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], ['a'], {'b': 'b.txt'}, ['b', 'c', 'background0', 'background1', 'background2'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': False, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], [], {'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1', 'background2'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': ['a', 'b'], 'dirty': ['a', 'b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['a', 'b'], [], {'a': 'a.txt', 'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1', 'background2'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': ['c'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['c'], [], ['c'], {}, ['a', 'b', 'background0', 'background1', 'background2'], {'c': '/project/c.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': [], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [[], [], [], {}, ['a', 'b', 'c', 'background0', 'background1', 'background2'], {}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'deleted': ['a', 'b'], 'dirty': [], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], [], ['a', 'b'], {}, ['c', 'background0', 'background1', 'background2'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}])], 5: [({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], ['a'], {'b': 'b.txt'}, ['b', 'c', 'background0', 'background1', 'background2', 'background3'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': ['a', 'b'], 'dirty': ['b'], 'close_clean': False, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['b'], [], {'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': ['a', 'b'], 'dirty': ['a', 'b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], ['a', 'b'], [], {'a': 'a.txt', 'b': 'b.txt'}, ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': ['c'], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['c'], [], ['c'], {}, ['a', 'b', 'background0', 'background1', 'background2', 'background3'], {'c': '/project/c.txt (missing)'}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': [], 'dirty': ['b'], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [[], [], [], {}, ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], {}]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'deleted': ['a', 'b'], 'dirty': [], 'close_clean': True, 'paths': {'a': '/project/a.txt', 'b': '/project/b.txt', 'c': '/project/c.txt'}}, [['a', 'b'], [], ['a', 'b'], {}, ['c', 'background0', 'background1', 'background2', 'background3'], {'a': '/project/a.txt (missing)', 'b': '/project/b.txt (missing)'}])]}\nfor i, (inputs, expected) in enumerate(fixtures[N]):\n    check(\"workspace regression \"+str(i), solve(inputs), expected)\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":"Finite stipulated workspace snapshots only. Independent result fields describe observable obligations, not a full UI runtime. 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":"s3-tab-interfaces-deleted-open-document-surviving-open-tabs","generated_at":"2026-09-29T14:42:49.909000+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Offline tab/panel workspace behavior; no browser or desktop framework is emulated.","root_cause":"The surviving open tabs decision uses [t for t in x['tabs'] if t not in x['deleted']] instead of [t for t in x['tabs'] if not (x['close_clean'] and t in x['deleted'] and t not in x['dirty'])].","sha256":"fe547ee9c7ca7eae54fea34044dbe3c0fa34e178ec2ed66bdac4e6c4cdff92d5","title":"Deleted open document: surviving open tabs · 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":42.97,"exit_code":1,"observations":[{"actual":[["a","b"],["b"],["a"],{"b":"b.txt"},["a","b","c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"check":"workspace regression 0","expected":[["a","b"],["b"],["a"],{"b":"b.txt"},["b","c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"passed":false},{"actual":[["a","b"],["b"],[],{"b":"b.txt"},["a","b","c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"check":"workspace regression 1","expected":[["a","b"],["b"],[],{"b":"b.txt"},["a","b","c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"passed":true},{"actual":[["a","b"],["a","b"],[],{"a":"a.txt","b":"b.txt"},["a","b","c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"check":"workspace regression 2","expected":[["a","b"],["a","b"],[],{"a":"a.txt","b":"b.txt"},["a","b","c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"passed":true},{"actual":[["c"],[],["c"],{},["a","b","c"],{"c":"/project/c.txt (missing)"}],"check":"workspace regression 3","expected":[["c"],[],["c"],{},["a","b"],{"c":"/project/c.txt (missing)"}],"passed":false},{"actual":[[],[],[],{},["a","b","c"],{}],"check":"workspace regression 4","expected":[[],[],[],{},["a","b","c"],{}],"passed":true},{"actual":[["a","b"],[],["a","b"],{},["a","b","c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"check":"workspace regression 5","expected":[["a","b"],[],["a","b"],{},["c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"workspace regression 0\", \"actual\": [[\"a\", \"b\"], [\"b\"], [\"a\"], {\"b\": \"b.txt\"}, [\"a\", \"b\", \"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"expected\": [[\"a\", \"b\"], [\"b\"], [\"a\"], {\"b\": \"b.txt\"}, [\"b\", \"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"passed\": false}, {\"check\": \"workspace regression 1\", \"actual\": [[\"a\", \"b\"], [\"b\"], [], {\"b\": \"b.txt\"}, [\"a\", \"b\", \"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"expected\": [[\"a\", \"b\"], [\"b\"], [], {\"b\": \"b.txt\"}, [\"a\", \"b\", \"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"passed\": true}, {\"check\": \"workspace regression 2\", \"actual\": [[\"a\", \"b\"], [\"a\", \"b\"], [], {\"a\": \"a.txt\", \"b\": \"b.txt\"}, [\"a\", \"b\", \"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"expected\": [[\"a\", \"b\"], [\"a\", \"b\"], [], {\"a\": \"a.txt\", \"b\": \"b.txt\"}, [\"a\", \"b\", \"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"passed\": true}, {\"check\": \"workspace regression 3\", \"actual\": [[\"c\"], [], [\"c\"], {}, [\"a\", \"b\", \"c\"], {\"c\": \"/project/c.txt (missing)\"}], \"expected\": [[\"c\"], [], [\"c\"], {}, [\"a\", \"b\"], {\"c\": \"/project/c.txt (missing)\"}], \"passed\": false}, {\"check\": \"workspace regression 4\", \"actual\": [[], [], [], {}, [\"a\", \"b\", \"c\"], {}], \"expected\": [[], [], [], {}, [\"a\", \"b\", \"c\"], {}], \"passed\": true}, {\"check\": \"workspace regression 5\", \"actual\": [[\"a\", \"b\"], [], [\"a\", \"b\"], {}, [\"a\", \"b\", \"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"expected\": [[\"a\", \"b\"], [], [\"a\", \"b\"], {}, [\"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":44.554,"exit_code":1,"observations":[{"actual":[["a","b"],["b"],["a"],{"b":"b.txt"},["c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"check":"workspace regression 0","expected":[["a","b"],["b"],["a"],{"b":"b.txt"},["b","c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"passed":false},{"actual":[["a","b"],["b"],[],{"b":"b.txt"},["c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"check":"workspace regression 1","expected":[["a","b"],["b"],[],{"b":"b.txt"},["a","b","c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"passed":false},{"actual":[["a","b"],["a","b"],[],{"a":"a.txt","b":"b.txt"},["c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"check":"workspace regression 2","expected":[["a","b"],["a","b"],[],{"a":"a.txt","b":"b.txt"},["a","b","c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"passed":false},{"actual":[["c"],[],["c"],{},["a","b"],{"c":"/project/c.txt (missing)"}],"check":"workspace regression 3","expected":[["c"],[],["c"],{},["a","b"],{"c":"/project/c.txt (missing)"}],"passed":true},{"actual":[[],[],[],{},["a","b","c"],{}],"check":"workspace regression 4","expected":[[],[],[],{},["a","b","c"],{}],"passed":true},{"actual":[["a","b"],[],["a","b"],{},["c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"check":"workspace regression 5","expected":[["a","b"],[],["a","b"],{},["c"],{"a":"/project/a.txt (missing)","b":"/project/b.txt (missing)"}],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"workspace regression 0\", \"actual\": [[\"a\", \"b\"], [\"b\"], [\"a\"], {\"b\": \"b.txt\"}, [\"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"expected\": [[\"a\", \"b\"], [\"b\"], [\"a\"], {\"b\": \"b.txt\"}, [\"b\", \"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"passed\": false}, {\"check\": \"workspace regression 1\", \"actual\": [[\"a\", \"b\"], [\"b\"], [], {\"b\": \"b.txt\"}, [\"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"expected\": [[\"a\", \"b\"], [\"b\"], [], {\"b\": \"b.txt\"}, [\"a\", \"b\", \"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"passed\": false}, {\"check\": \"workspace regression 2\", \"actual\": [[\"a\", \"b\"], [\"a\", \"b\"], [], {\"a\": \"a.txt\", \"b\": \"b.txt\"}, [\"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"expected\": [[\"a\", \"b\"], [\"a\", \"b\"], [], {\"a\": \"a.txt\", \"b\": \"b.txt\"}, [\"a\", \"b\", \"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"passed\": false}, {\"check\": \"workspace regression 3\", \"actual\": [[\"c\"], [], [\"c\"], {}, [\"a\", \"b\"], {\"c\": \"/project/c.txt (missing)\"}], \"expected\": [[\"c\"], [], [\"c\"], {}, [\"a\", \"b\"], {\"c\": \"/project/c.txt (missing)\"}], \"passed\": true}, {\"check\": \"workspace regression 4\", \"actual\": [[], [], [], {}, [\"a\", \"b\", \"c\"], {}], \"expected\": [[], [], [], {}, [\"a\", \"b\", \"c\"], {}], \"passed\": true}, {\"check\": \"workspace regression 5\", \"actual\": [[\"a\", \"b\"], [], [\"a\", \"b\"], {}, [\"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"expected\": [[\"a\", \"b\"], [], [\"a\", \"b\"], {}, [\"c\"], {\"a\": \"/project/a.txt (missing)\", \"b\": \"/project/b.txt (missing)\"}], \"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."}}