{"abstract":"The tab workspace reports an incorrect context relative index.","category":"Tab interfaces","checks":6,"contract":"Context commands act on the right-clicked tab even when another tab is active; bulk commands expand only when that target belongs to the existing multiselection.","evaluation_group":"s3-tabs-tab-context-target","failed_approach":"The partial repair 0 still violates a workspace boundary or normal case.","family":"s3-tab-interfaces-tab-context-target-context-relative-index","id":"FA-36536","implementations":{"attempt":{"sha256":"bc6a94ca96a69e8b75dca8414393f60f665dd89e9c185f97ca6c4c89ad65fde2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    r0 = x['context']\n    r1 = x['selection'] if x['context'] in x['selection'] else [x['context']]\n    r2 = x['active']\n    r3 = x['context'] in x['dirty']\n    r4 = 'unpin' if x['context'] in x['pins'] else 'pin'\n    r5 = 0\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', 'd'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 2: [({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 3: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 4: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 5: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])]}\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":"1c34cf0fa4b7f0094c6b121ffe559404992b1bcb8af46d4f6b772d4ee7dda6eb","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    r0 = x['context']\n    r1 = x['selection'] if x['context'] in x['selection'] else [x['context']]\n    r2 = x['active']\n    r3 = x['context'] in x['dirty']\n    r4 = 'unpin' if x['context'] in x['pins'] else 'pin'\n    r5 = x['tabs'].index(x['active'])\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', 'd'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 2: [({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 3: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 4: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 5: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])]}\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"},"fixed":{"sha256":"a3097261875cfe358b97787c637754e2165e811d8f8f2be1468725bf432e2271","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    r0 = x['context']\n    r1 = x['selection'] if x['context'] in x['selection'] else [x['context']]\n    r2 = x['active']\n    r3 = x['context'] in x['dirty']\n    r4 = 'unpin' if x['context'] in x['pins'] else 'pin'\n    r5 = x['tabs'].index(x['context'])\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', 'd'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 2: [({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 3: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 4: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])], 5: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'a', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['a', ['a'], 'a', False, 'pin', 0]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'b', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['b', ['b', 'c'], 'a', False, 'unpin', 1]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'c', 'selection': [], 'dirty': ['c'], 'pins': ['b']}, ['c', ['c'], 'a', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'd', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['c'], 'pins': ['b']}, ['c', ['b', 'c'], 'd', True, 'pin', 2]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'active': 'a', 'context': 'c', 'selection': ['b', 'c'], 'dirty': ['b', 'c'], 'pins': ['b']}, ['c', ['b', 'c'], 'a', True, 'pin', 2])]}\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-tab-context-target-context-relative-index","generated_at":"2026-09-29T14:42:52.332864+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.","repair":"Use the stipulated workspace rule: x['tabs'].index(x['context']).","root_cause":"The context relative index decision uses x['tabs'].index(x['active']) instead of x['tabs'].index(x['context']).","sha256":"85edcd82d36b8439ba918b2143b3ac1a041b4d663cb9da488409a3999ebf58e3","title":"Tab context target: context relative index · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.933,"exit_code":1,"observations":[{"actual":["c",["b","c"],"a",true,"pin",0],"check":"workspace regression 0","expected":["c",["b","c"],"a",true,"pin",2],"passed":false},{"actual":["a",["a"],"a",false,"pin",0],"check":"workspace regression 1","expected":["a",["a"],"a",false,"pin",0],"passed":true},{"actual":["b",["b","c"],"a",false,"unpin",0],"check":"workspace regression 2","expected":["b",["b","c"],"a",false,"unpin",1],"passed":false},{"actual":["c",["c"],"a",true,"pin",0],"check":"workspace regression 3","expected":["c",["c"],"a",true,"pin",2],"passed":false},{"actual":["c",["b","c"],"d",true,"pin",0],"check":"workspace regression 4","expected":["c",["b","c"],"d",true,"pin",2],"passed":false},{"actual":["c",["b","c"],"a",true,"pin",0],"check":"workspace regression 5","expected":["c",["b","c"],"a",true,"pin",2],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"workspace regression 0\", \"actual\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 0], \"expected\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 2], \"passed\": false}, {\"check\": \"workspace regression 1\", \"actual\": [\"a\", [\"a\"], \"a\", false, \"pin\", 0], \"expected\": [\"a\", [\"a\"], \"a\", false, \"pin\", 0], \"passed\": true}, {\"check\": \"workspace regression 2\", \"actual\": [\"b\", [\"b\", \"c\"], \"a\", false, \"unpin\", 0], \"expected\": [\"b\", [\"b\", \"c\"], \"a\", false, \"unpin\", 1], \"passed\": false}, {\"check\": \"workspace regression 3\", \"actual\": [\"c\", [\"c\"], \"a\", true, \"pin\", 0], \"expected\": [\"c\", [\"c\"], \"a\", true, \"pin\", 2], \"passed\": false}, {\"check\": \"workspace regression 4\", \"actual\": [\"c\", [\"b\", \"c\"], \"d\", true, \"pin\", 0], \"expected\": [\"c\", [\"b\", \"c\"], \"d\", true, \"pin\", 2], \"passed\": false}, {\"check\": \"workspace regression 5\", \"actual\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 0], \"expected\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 2], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.616,"exit_code":1,"observations":[{"actual":["c",["b","c"],"a",true,"pin",0],"check":"workspace regression 0","expected":["c",["b","c"],"a",true,"pin",2],"passed":false},{"actual":["a",["a"],"a",false,"pin",0],"check":"workspace regression 1","expected":["a",["a"],"a",false,"pin",0],"passed":true},{"actual":["b",["b","c"],"a",false,"unpin",0],"check":"workspace regression 2","expected":["b",["b","c"],"a",false,"unpin",1],"passed":false},{"actual":["c",["c"],"a",true,"pin",0],"check":"workspace regression 3","expected":["c",["c"],"a",true,"pin",2],"passed":false},{"actual":["c",["b","c"],"d",true,"pin",3],"check":"workspace regression 4","expected":["c",["b","c"],"d",true,"pin",2],"passed":false},{"actual":["c",["b","c"],"a",true,"pin",0],"check":"workspace regression 5","expected":["c",["b","c"],"a",true,"pin",2],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"workspace regression 0\", \"actual\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 0], \"expected\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 2], \"passed\": false}, {\"check\": \"workspace regression 1\", \"actual\": [\"a\", [\"a\"], \"a\", false, \"pin\", 0], \"expected\": [\"a\", [\"a\"], \"a\", false, \"pin\", 0], \"passed\": true}, {\"check\": \"workspace regression 2\", \"actual\": [\"b\", [\"b\", \"c\"], \"a\", false, \"unpin\", 0], \"expected\": [\"b\", [\"b\", \"c\"], \"a\", false, \"unpin\", 1], \"passed\": false}, {\"check\": \"workspace regression 3\", \"actual\": [\"c\", [\"c\"], \"a\", true, \"pin\", 0], \"expected\": [\"c\", [\"c\"], \"a\", true, \"pin\", 2], \"passed\": false}, {\"check\": \"workspace regression 4\", \"actual\": [\"c\", [\"b\", \"c\"], \"d\", true, \"pin\", 3], \"expected\": [\"c\", [\"b\", \"c\"], \"d\", true, \"pin\", 2], \"passed\": false}, {\"check\": \"workspace regression 5\", \"actual\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 0], \"expected\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 2], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":47.841,"exit_code":0,"observations":[{"actual":["c",["b","c"],"a",true,"pin",2],"check":"workspace regression 0","expected":["c",["b","c"],"a",true,"pin",2],"passed":true},{"actual":["a",["a"],"a",false,"pin",0],"check":"workspace regression 1","expected":["a",["a"],"a",false,"pin",0],"passed":true},{"actual":["b",["b","c"],"a",false,"unpin",1],"check":"workspace regression 2","expected":["b",["b","c"],"a",false,"unpin",1],"passed":true},{"actual":["c",["c"],"a",true,"pin",2],"check":"workspace regression 3","expected":["c",["c"],"a",true,"pin",2],"passed":true},{"actual":["c",["b","c"],"d",true,"pin",2],"check":"workspace regression 4","expected":["c",["b","c"],"d",true,"pin",2],"passed":true},{"actual":["c",["b","c"],"a",true,"pin",2],"check":"workspace regression 5","expected":["c",["b","c"],"a",true,"pin",2],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"workspace regression 0\", \"actual\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 2], \"expected\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 2], \"passed\": true}, {\"check\": \"workspace regression 1\", \"actual\": [\"a\", [\"a\"], \"a\", false, \"pin\", 0], \"expected\": [\"a\", [\"a\"], \"a\", false, \"pin\", 0], \"passed\": true}, {\"check\": \"workspace regression 2\", \"actual\": [\"b\", [\"b\", \"c\"], \"a\", false, \"unpin\", 1], \"expected\": [\"b\", [\"b\", \"c\"], \"a\", false, \"unpin\", 1], \"passed\": true}, {\"check\": \"workspace regression 3\", \"actual\": [\"c\", [\"c\"], \"a\", true, \"pin\", 2], \"expected\": [\"c\", [\"c\"], \"a\", true, \"pin\", 2], \"passed\": true}, {\"check\": \"workspace regression 4\", \"actual\": [\"c\", [\"b\", \"c\"], \"d\", true, \"pin\", 2], \"expected\": [\"c\", [\"b\", \"c\"], \"d\", true, \"pin\", 2], \"passed\": true}, {\"check\": \"workspace regression 5\", \"actual\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 2], \"expected\": [\"c\", [\"b\", \"c\"], \"a\", true, \"pin\", 2], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}