{"abstract":"The tab workspace reports an incorrect rowwise hit identity.","category":"Tab interfaces","checks":6,"contract":"A multirow strip greedily packs indivisible tab widths with exact fits allowed. The active tab row is painted adjacent to content after other rows; tab identity and within-row coordinates follow this row permutation.","evaluation_group":"s3-tabs-multirow-tab-strip","failed_approach":"The partial repair list(reversed(range(len(x['widths'])))) still violates a workspace boundary or normal case.","family":"s3-tab-interfaces-multirow-tab-strip-rowwise-hit-identity","id":"FA-36836","implementations":{"attempt":{"sha256":"42bc73b43223a0472ae6aa98334bcbef75ce083d724801e4119a25450e4576a9","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\ndef pack(widths, available):\n    rows = [[]]\n    occupied = 0\n    for index, width in enumerate(widths):\n        if rows[-1] and occupied + width > available:\n            rows.append([])\n            occupied = 0\n        rows[-1].append(index)\n        occupied += width\n    return rows\n\nN = 1\nobservations = []\ndef solve(x):\n    r0 = pack(x['widths'],x['available'])\n    r1 = sum(x['widths'][j] for j in next(row for row in pack(x['widths'],x['available']) if x['active_index'] in row) if j<x['active_index'])\n    r2 = next(i for i,row in enumerate(pack(x['widths'],x['available'])) if x['active_index'] in row)\n    r3 = [row for row in pack(x['widths'],x['available']) if x['active_index'] not in row]+[row for row in pack(x['widths'],x['available']) if x['active_index'] in row]\n    r4 = (len(pack(x['widths'],x['available']))-1)*x['row_height']\n    r5 = list(reversed(range(len(x['widths']))))\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: [({'widths': [80, 70, 90, 30], 'available': 160, 'active_index': 2, 'row_height': 24}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]]), ({'widths': [80, 80, 50, 100], 'available': 160, 'active_index': 2, 'row_height': 24}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]]), ({'widths': [80, 70, 90, 30], 'available': 160, 'active_index': 0, 'row_height': 24}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 24, [2, 3, 0, 1]]), ({'widths': [80, 70, 90, 30], 'available': 160, 'active_index': 3, 'row_height': 24}, [[[0, 1], [2, 3]], 90, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]]), ({'widths': [80, 70, 90, 30], 'available': 300, 'active_index': 2, 'row_height': 24}, [[[0, 1, 2, 3]], 150, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [100, 70, 70, 90], 'available': 160, 'active_index': 2, 'row_height': 24}, [[[0], [1, 2], [3]], 70, 1, [[0], [3], [1, 2]], 48, [0, 3, 1, 2]])], 2: [({'widths': [160, 140, 180, 60], 'available': 320, 'active_index': 2, 'row_height': 48}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 48, [0, 1, 2, 3]]), ({'widths': [160, 160, 100, 200], 'available': 320, 'active_index': 2, 'row_height': 48}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 48, [0, 1, 2, 3]]), ({'widths': [160, 140, 180, 60], 'available': 320, 'active_index': 0, 'row_height': 48}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 48, [2, 3, 0, 1]]), ({'widths': [160, 140, 180, 60], 'available': 320, 'active_index': 3, 'row_height': 48}, [[[0, 1], [2, 3]], 180, 1, [[0, 1], [2, 3]], 48, [0, 1, 2, 3]]), ({'widths': [160, 140, 180, 60], 'available': 600, 'active_index': 2, 'row_height': 48}, [[[0, 1, 2, 3]], 300, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [200, 140, 140, 180], 'available': 320, 'active_index': 2, 'row_height': 48}, [[[0], [1, 2], [3]], 140, 1, [[0], [3], [1, 2]], 96, [0, 3, 1, 2]])], 3: [({'widths': [240, 210, 270, 90], 'available': 480, 'active_index': 2, 'row_height': 72}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 72, [0, 1, 2, 3]]), ({'widths': [240, 240, 150, 300], 'available': 480, 'active_index': 2, 'row_height': 72}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 72, [0, 1, 2, 3]]), ({'widths': [240, 210, 270, 90], 'available': 480, 'active_index': 0, 'row_height': 72}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 72, [2, 3, 0, 1]]), ({'widths': [240, 210, 270, 90], 'available': 480, 'active_index': 3, 'row_height': 72}, [[[0, 1], [2, 3]], 270, 1, [[0, 1], [2, 3]], 72, [0, 1, 2, 3]]), ({'widths': [240, 210, 270, 90], 'available': 900, 'active_index': 2, 'row_height': 72}, [[[0, 1, 2, 3]], 450, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [300, 210, 210, 270], 'available': 480, 'active_index': 2, 'row_height': 72}, [[[0], [1, 2], [3]], 210, 1, [[0], [3], [1, 2]], 144, [0, 3, 1, 2]])], 4: [({'widths': [320, 280, 360, 120], 'available': 640, 'active_index': 2, 'row_height': 96}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 96, [0, 1, 2, 3]]), ({'widths': [320, 320, 200, 400], 'available': 640, 'active_index': 2, 'row_height': 96}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 96, [0, 1, 2, 3]]), ({'widths': [320, 280, 360, 120], 'available': 640, 'active_index': 0, 'row_height': 96}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 96, [2, 3, 0, 1]]), ({'widths': [320, 280, 360, 120], 'available': 640, 'active_index': 3, 'row_height': 96}, [[[0, 1], [2, 3]], 360, 1, [[0, 1], [2, 3]], 96, [0, 1, 2, 3]]), ({'widths': [320, 280, 360, 120], 'available': 1200, 'active_index': 2, 'row_height': 96}, [[[0, 1, 2, 3]], 600, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [400, 280, 280, 360], 'available': 640, 'active_index': 2, 'row_height': 96}, [[[0], [1, 2], [3]], 280, 1, [[0], [3], [1, 2]], 192, [0, 3, 1, 2]])], 5: [({'widths': [400, 350, 450, 150], 'available': 800, 'active_index': 2, 'row_height': 120}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 120, [0, 1, 2, 3]]), ({'widths': [400, 400, 250, 500], 'available': 800, 'active_index': 2, 'row_height': 120}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 120, [0, 1, 2, 3]]), ({'widths': [400, 350, 450, 150], 'available': 800, 'active_index': 0, 'row_height': 120}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 120, [2, 3, 0, 1]]), ({'widths': [400, 350, 450, 150], 'available': 800, 'active_index': 3, 'row_height': 120}, [[[0, 1], [2, 3]], 450, 1, [[0, 1], [2, 3]], 120, [0, 1, 2, 3]]), ({'widths': [400, 350, 450, 150], 'available': 1500, 'active_index': 2, 'row_height': 120}, [[[0, 1, 2, 3]], 750, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [500, 350, 350, 450], 'available': 800, 'active_index': 2, 'row_height': 120}, [[[0], [1, 2], [3]], 350, 1, [[0], [3], [1, 2]], 240, [0, 3, 1, 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":"7924759e06b64c85de2ac22afbb6ecdc662fc27d087297cab02642444db7df1c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\ndef pack(widths, available):\n    rows = [[]]\n    occupied = 0\n    for index, width in enumerate(widths):\n        if rows[-1] and occupied + width > available:\n            rows.append([])\n            occupied = 0\n        rows[-1].append(index)\n        occupied += width\n    return rows\n\nN = 1\nobservations = []\ndef solve(x):\n    r0 = pack(x['widths'],x['available'])\n    r1 = sum(x['widths'][j] for j in next(row for row in pack(x['widths'],x['available']) if x['active_index'] in row) if j<x['active_index'])\n    r2 = next(i for i,row in enumerate(pack(x['widths'],x['available'])) if x['active_index'] in row)\n    r3 = [row for row in pack(x['widths'],x['available']) if x['active_index'] not in row]+[row for row in pack(x['widths'],x['available']) if x['active_index'] in row]\n    r4 = (len(pack(x['widths'],x['available']))-1)*x['row_height']\n    r5 = list(range(len(x['widths'])))\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: [({'widths': [80, 70, 90, 30], 'available': 160, 'active_index': 2, 'row_height': 24}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]]), ({'widths': [80, 80, 50, 100], 'available': 160, 'active_index': 2, 'row_height': 24}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]]), ({'widths': [80, 70, 90, 30], 'available': 160, 'active_index': 0, 'row_height': 24}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 24, [2, 3, 0, 1]]), ({'widths': [80, 70, 90, 30], 'available': 160, 'active_index': 3, 'row_height': 24}, [[[0, 1], [2, 3]], 90, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]]), ({'widths': [80, 70, 90, 30], 'available': 300, 'active_index': 2, 'row_height': 24}, [[[0, 1, 2, 3]], 150, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [100, 70, 70, 90], 'available': 160, 'active_index': 2, 'row_height': 24}, [[[0], [1, 2], [3]], 70, 1, [[0], [3], [1, 2]], 48, [0, 3, 1, 2]])], 2: [({'widths': [160, 140, 180, 60], 'available': 320, 'active_index': 2, 'row_height': 48}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 48, [0, 1, 2, 3]]), ({'widths': [160, 160, 100, 200], 'available': 320, 'active_index': 2, 'row_height': 48}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 48, [0, 1, 2, 3]]), ({'widths': [160, 140, 180, 60], 'available': 320, 'active_index': 0, 'row_height': 48}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 48, [2, 3, 0, 1]]), ({'widths': [160, 140, 180, 60], 'available': 320, 'active_index': 3, 'row_height': 48}, [[[0, 1], [2, 3]], 180, 1, [[0, 1], [2, 3]], 48, [0, 1, 2, 3]]), ({'widths': [160, 140, 180, 60], 'available': 600, 'active_index': 2, 'row_height': 48}, [[[0, 1, 2, 3]], 300, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [200, 140, 140, 180], 'available': 320, 'active_index': 2, 'row_height': 48}, [[[0], [1, 2], [3]], 140, 1, [[0], [3], [1, 2]], 96, [0, 3, 1, 2]])], 3: [({'widths': [240, 210, 270, 90], 'available': 480, 'active_index': 2, 'row_height': 72}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 72, [0, 1, 2, 3]]), ({'widths': [240, 240, 150, 300], 'available': 480, 'active_index': 2, 'row_height': 72}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 72, [0, 1, 2, 3]]), ({'widths': [240, 210, 270, 90], 'available': 480, 'active_index': 0, 'row_height': 72}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 72, [2, 3, 0, 1]]), ({'widths': [240, 210, 270, 90], 'available': 480, 'active_index': 3, 'row_height': 72}, [[[0, 1], [2, 3]], 270, 1, [[0, 1], [2, 3]], 72, [0, 1, 2, 3]]), ({'widths': [240, 210, 270, 90], 'available': 900, 'active_index': 2, 'row_height': 72}, [[[0, 1, 2, 3]], 450, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [300, 210, 210, 270], 'available': 480, 'active_index': 2, 'row_height': 72}, [[[0], [1, 2], [3]], 210, 1, [[0], [3], [1, 2]], 144, [0, 3, 1, 2]])], 4: [({'widths': [320, 280, 360, 120], 'available': 640, 'active_index': 2, 'row_height': 96}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 96, [0, 1, 2, 3]]), ({'widths': [320, 320, 200, 400], 'available': 640, 'active_index': 2, 'row_height': 96}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 96, [0, 1, 2, 3]]), ({'widths': [320, 280, 360, 120], 'available': 640, 'active_index': 0, 'row_height': 96}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 96, [2, 3, 0, 1]]), ({'widths': [320, 280, 360, 120], 'available': 640, 'active_index': 3, 'row_height': 96}, [[[0, 1], [2, 3]], 360, 1, [[0, 1], [2, 3]], 96, [0, 1, 2, 3]]), ({'widths': [320, 280, 360, 120], 'available': 1200, 'active_index': 2, 'row_height': 96}, [[[0, 1, 2, 3]], 600, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [400, 280, 280, 360], 'available': 640, 'active_index': 2, 'row_height': 96}, [[[0], [1, 2], [3]], 280, 1, [[0], [3], [1, 2]], 192, [0, 3, 1, 2]])], 5: [({'widths': [400, 350, 450, 150], 'available': 800, 'active_index': 2, 'row_height': 120}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 120, [0, 1, 2, 3]]), ({'widths': [400, 400, 250, 500], 'available': 800, 'active_index': 2, 'row_height': 120}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 120, [0, 1, 2, 3]]), ({'widths': [400, 350, 450, 150], 'available': 800, 'active_index': 0, 'row_height': 120}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 120, [2, 3, 0, 1]]), ({'widths': [400, 350, 450, 150], 'available': 800, 'active_index': 3, 'row_height': 120}, [[[0, 1], [2, 3]], 450, 1, [[0, 1], [2, 3]], 120, [0, 1, 2, 3]]), ({'widths': [400, 350, 450, 150], 'available': 1500, 'active_index': 2, 'row_height': 120}, [[[0, 1, 2, 3]], 750, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [500, 350, 350, 450], 'available': 800, 'active_index': 2, 'row_height': 120}, [[[0], [1, 2], [3]], 350, 1, [[0], [3], [1, 2]], 240, [0, 3, 1, 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":"9a593670b8ce8623c719c9fc4b8fd544f2b8c146260e756f96bbeeba6fd41655","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\ndef pack(widths, available):\n    rows = [[]]\n    occupied = 0\n    for index, width in enumerate(widths):\n        if rows[-1] and occupied + width > available:\n            rows.append([])\n            occupied = 0\n        rows[-1].append(index)\n        occupied += width\n    return rows\n\nN = 1\nobservations = []\ndef solve(x):\n    r0 = pack(x['widths'],x['available'])\n    r1 = sum(x['widths'][j] for j in next(row for row in pack(x['widths'],x['available']) if x['active_index'] in row) if j<x['active_index'])\n    r2 = next(i for i,row in enumerate(pack(x['widths'],x['available'])) if x['active_index'] in row)\n    r3 = [row for row in pack(x['widths'],x['available']) if x['active_index'] not in row]+[row for row in pack(x['widths'],x['available']) if x['active_index'] in row]\n    r4 = (len(pack(x['widths'],x['available']))-1)*x['row_height']\n    r5 = [t for row in ([row for row in pack(x['widths'],x['available']) if x['active_index'] not in row]+[row for row in pack(x['widths'],x['available']) if x['active_index'] in row]) for t in row]\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: [({'widths': [80, 70, 90, 30], 'available': 160, 'active_index': 2, 'row_height': 24}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]]), ({'widths': [80, 80, 50, 100], 'available': 160, 'active_index': 2, 'row_height': 24}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]]), ({'widths': [80, 70, 90, 30], 'available': 160, 'active_index': 0, 'row_height': 24}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 24, [2, 3, 0, 1]]), ({'widths': [80, 70, 90, 30], 'available': 160, 'active_index': 3, 'row_height': 24}, [[[0, 1], [2, 3]], 90, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]]), ({'widths': [80, 70, 90, 30], 'available': 300, 'active_index': 2, 'row_height': 24}, [[[0, 1, 2, 3]], 150, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [100, 70, 70, 90], 'available': 160, 'active_index': 2, 'row_height': 24}, [[[0], [1, 2], [3]], 70, 1, [[0], [3], [1, 2]], 48, [0, 3, 1, 2]])], 2: [({'widths': [160, 140, 180, 60], 'available': 320, 'active_index': 2, 'row_height': 48}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 48, [0, 1, 2, 3]]), ({'widths': [160, 160, 100, 200], 'available': 320, 'active_index': 2, 'row_height': 48}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 48, [0, 1, 2, 3]]), ({'widths': [160, 140, 180, 60], 'available': 320, 'active_index': 0, 'row_height': 48}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 48, [2, 3, 0, 1]]), ({'widths': [160, 140, 180, 60], 'available': 320, 'active_index': 3, 'row_height': 48}, [[[0, 1], [2, 3]], 180, 1, [[0, 1], [2, 3]], 48, [0, 1, 2, 3]]), ({'widths': [160, 140, 180, 60], 'available': 600, 'active_index': 2, 'row_height': 48}, [[[0, 1, 2, 3]], 300, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [200, 140, 140, 180], 'available': 320, 'active_index': 2, 'row_height': 48}, [[[0], [1, 2], [3]], 140, 1, [[0], [3], [1, 2]], 96, [0, 3, 1, 2]])], 3: [({'widths': [240, 210, 270, 90], 'available': 480, 'active_index': 2, 'row_height': 72}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 72, [0, 1, 2, 3]]), ({'widths': [240, 240, 150, 300], 'available': 480, 'active_index': 2, 'row_height': 72}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 72, [0, 1, 2, 3]]), ({'widths': [240, 210, 270, 90], 'available': 480, 'active_index': 0, 'row_height': 72}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 72, [2, 3, 0, 1]]), ({'widths': [240, 210, 270, 90], 'available': 480, 'active_index': 3, 'row_height': 72}, [[[0, 1], [2, 3]], 270, 1, [[0, 1], [2, 3]], 72, [0, 1, 2, 3]]), ({'widths': [240, 210, 270, 90], 'available': 900, 'active_index': 2, 'row_height': 72}, [[[0, 1, 2, 3]], 450, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [300, 210, 210, 270], 'available': 480, 'active_index': 2, 'row_height': 72}, [[[0], [1, 2], [3]], 210, 1, [[0], [3], [1, 2]], 144, [0, 3, 1, 2]])], 4: [({'widths': [320, 280, 360, 120], 'available': 640, 'active_index': 2, 'row_height': 96}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 96, [0, 1, 2, 3]]), ({'widths': [320, 320, 200, 400], 'available': 640, 'active_index': 2, 'row_height': 96}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 96, [0, 1, 2, 3]]), ({'widths': [320, 280, 360, 120], 'available': 640, 'active_index': 0, 'row_height': 96}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 96, [2, 3, 0, 1]]), ({'widths': [320, 280, 360, 120], 'available': 640, 'active_index': 3, 'row_height': 96}, [[[0, 1], [2, 3]], 360, 1, [[0, 1], [2, 3]], 96, [0, 1, 2, 3]]), ({'widths': [320, 280, 360, 120], 'available': 1200, 'active_index': 2, 'row_height': 96}, [[[0, 1, 2, 3]], 600, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [400, 280, 280, 360], 'available': 640, 'active_index': 2, 'row_height': 96}, [[[0], [1, 2], [3]], 280, 1, [[0], [3], [1, 2]], 192, [0, 3, 1, 2]])], 5: [({'widths': [400, 350, 450, 150], 'available': 800, 'active_index': 2, 'row_height': 120}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 120, [0, 1, 2, 3]]), ({'widths': [400, 400, 250, 500], 'available': 800, 'active_index': 2, 'row_height': 120}, [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 120, [0, 1, 2, 3]]), ({'widths': [400, 350, 450, 150], 'available': 800, 'active_index': 0, 'row_height': 120}, [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 120, [2, 3, 0, 1]]), ({'widths': [400, 350, 450, 150], 'available': 800, 'active_index': 3, 'row_height': 120}, [[[0, 1], [2, 3]], 450, 1, [[0, 1], [2, 3]], 120, [0, 1, 2, 3]]), ({'widths': [400, 350, 450, 150], 'available': 1500, 'active_index': 2, 'row_height': 120}, [[[0, 1, 2, 3]], 750, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]]), ({'widths': [500, 350, 350, 450], 'available': 800, 'active_index': 2, 'row_height': 120}, [[[0], [1, 2], [3]], 350, 1, [[0], [3], [1, 2]], 240, [0, 3, 1, 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-multirow-tab-strip-rowwise-hit-identity","generated_at":"2026-09-29T14:42:55.311092+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: [t for row in ([row for row in pack(x['widths'],x['available']) if x['active_index'] not in row]+[row for row in pack(x['widths'],x['available']) if x['active_index'] in row]) for t in row].","root_cause":"The rowwise hit identity decision uses list(range(len(x['widths']))) instead of [t for row in ([row for row in pack(x['widths'],x['available']) if x['active_index'] not in row]+[row for row in pack(x['widths'],x['available']) if x['active_index'] in row]) for t in row].","sha256":"57c34ac70e1624cf24f127b8e264be5c7a9923966b94d365746afa9aac593567","title":"Multirow tab strip: rowwise hit identity · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":44.978,"exit_code":1,"observations":[{"actual":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[3,2,1,0]],"check":"workspace regression 0","expected":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[0,1,2,3]],"passed":false},{"actual":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[3,2,1,0]],"check":"workspace regression 1","expected":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[0,1,2,3]],"passed":false},{"actual":[[[0,1],[2,3]],0,0,[[2,3],[0,1]],24,[3,2,1,0]],"check":"workspace regression 2","expected":[[[0,1],[2,3]],0,0,[[2,3],[0,1]],24,[2,3,0,1]],"passed":false},{"actual":[[[0,1],[2,3]],90,1,[[0,1],[2,3]],24,[3,2,1,0]],"check":"workspace regression 3","expected":[[[0,1],[2,3]],90,1,[[0,1],[2,3]],24,[0,1,2,3]],"passed":false},{"actual":[[[0,1,2,3]],150,0,[[0,1,2,3]],0,[3,2,1,0]],"check":"workspace regression 4","expected":[[[0,1,2,3]],150,0,[[0,1,2,3]],0,[0,1,2,3]],"passed":false},{"actual":[[[0],[1,2],[3]],70,1,[[0],[3],[1,2]],48,[3,2,1,0]],"check":"workspace regression 5","expected":[[[0],[1,2],[3]],70,1,[[0],[3],[1,2]],48,[0,3,1,2]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"workspace regression 0\", \"actual\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [3, 2, 1, 0]], \"expected\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"passed\": false}, {\"check\": \"workspace regression 1\", \"actual\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [3, 2, 1, 0]], \"expected\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"passed\": false}, {\"check\": \"workspace regression 2\", \"actual\": [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 24, [3, 2, 1, 0]], \"expected\": [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 24, [2, 3, 0, 1]], \"passed\": false}, {\"check\": \"workspace regression 3\", \"actual\": [[[0, 1], [2, 3]], 90, 1, [[0, 1], [2, 3]], 24, [3, 2, 1, 0]], \"expected\": [[[0, 1], [2, 3]], 90, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"passed\": false}, {\"check\": \"workspace regression 4\", \"actual\": [[[0, 1, 2, 3]], 150, 0, [[0, 1, 2, 3]], 0, [3, 2, 1, 0]], \"expected\": [[[0, 1, 2, 3]], 150, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]], \"passed\": false}, {\"check\": \"workspace regression 5\", \"actual\": [[[0], [1, 2], [3]], 70, 1, [[0], [3], [1, 2]], 48, [3, 2, 1, 0]], \"expected\": [[[0], [1, 2], [3]], 70, 1, [[0], [3], [1, 2]], 48, [0, 3, 1, 2]], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.355,"exit_code":1,"observations":[{"actual":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[0,1,2,3]],"check":"workspace regression 0","expected":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[0,1,2,3]],"passed":true},{"actual":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[0,1,2,3]],"check":"workspace regression 1","expected":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[0,1,2,3]],"passed":true},{"actual":[[[0,1],[2,3]],0,0,[[2,3],[0,1]],24,[0,1,2,3]],"check":"workspace regression 2","expected":[[[0,1],[2,3]],0,0,[[2,3],[0,1]],24,[2,3,0,1]],"passed":false},{"actual":[[[0,1],[2,3]],90,1,[[0,1],[2,3]],24,[0,1,2,3]],"check":"workspace regression 3","expected":[[[0,1],[2,3]],90,1,[[0,1],[2,3]],24,[0,1,2,3]],"passed":true},{"actual":[[[0,1,2,3]],150,0,[[0,1,2,3]],0,[0,1,2,3]],"check":"workspace regression 4","expected":[[[0,1,2,3]],150,0,[[0,1,2,3]],0,[0,1,2,3]],"passed":true},{"actual":[[[0],[1,2],[3]],70,1,[[0],[3],[1,2]],48,[0,1,2,3]],"check":"workspace regression 5","expected":[[[0],[1,2],[3]],70,1,[[0],[3],[1,2]],48,[0,3,1,2]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"workspace regression 0\", \"actual\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"expected\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"passed\": true}, {\"check\": \"workspace regression 1\", \"actual\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"expected\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"passed\": true}, {\"check\": \"workspace regression 2\", \"actual\": [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 24, [0, 1, 2, 3]], \"expected\": [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 24, [2, 3, 0, 1]], \"passed\": false}, {\"check\": \"workspace regression 3\", \"actual\": [[[0, 1], [2, 3]], 90, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"expected\": [[[0, 1], [2, 3]], 90, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"passed\": true}, {\"check\": \"workspace regression 4\", \"actual\": [[[0, 1, 2, 3]], 150, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]], \"expected\": [[[0, 1, 2, 3]], 150, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]], \"passed\": true}, {\"check\": \"workspace regression 5\", \"actual\": [[[0], [1, 2], [3]], 70, 1, [[0], [3], [1, 2]], 48, [0, 1, 2, 3]], \"expected\": [[[0], [1, 2], [3]], 70, 1, [[0], [3], [1, 2]], 48, [0, 3, 1, 2]], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.626,"exit_code":0,"observations":[{"actual":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[0,1,2,3]],"check":"workspace regression 0","expected":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[0,1,2,3]],"passed":true},{"actual":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[0,1,2,3]],"check":"workspace regression 1","expected":[[[0,1],[2,3]],0,1,[[0,1],[2,3]],24,[0,1,2,3]],"passed":true},{"actual":[[[0,1],[2,3]],0,0,[[2,3],[0,1]],24,[2,3,0,1]],"check":"workspace regression 2","expected":[[[0,1],[2,3]],0,0,[[2,3],[0,1]],24,[2,3,0,1]],"passed":true},{"actual":[[[0,1],[2,3]],90,1,[[0,1],[2,3]],24,[0,1,2,3]],"check":"workspace regression 3","expected":[[[0,1],[2,3]],90,1,[[0,1],[2,3]],24,[0,1,2,3]],"passed":true},{"actual":[[[0,1,2,3]],150,0,[[0,1,2,3]],0,[0,1,2,3]],"check":"workspace regression 4","expected":[[[0,1,2,3]],150,0,[[0,1,2,3]],0,[0,1,2,3]],"passed":true},{"actual":[[[0],[1,2],[3]],70,1,[[0],[3],[1,2]],48,[0,3,1,2]],"check":"workspace regression 5","expected":[[[0],[1,2],[3]],70,1,[[0],[3],[1,2]],48,[0,3,1,2]],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"workspace regression 0\", \"actual\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"expected\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"passed\": true}, {\"check\": \"workspace regression 1\", \"actual\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"expected\": [[[0, 1], [2, 3]], 0, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"passed\": true}, {\"check\": \"workspace regression 2\", \"actual\": [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 24, [2, 3, 0, 1]], \"expected\": [[[0, 1], [2, 3]], 0, 0, [[2, 3], [0, 1]], 24, [2, 3, 0, 1]], \"passed\": true}, {\"check\": \"workspace regression 3\", \"actual\": [[[0, 1], [2, 3]], 90, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"expected\": [[[0, 1], [2, 3]], 90, 1, [[0, 1], [2, 3]], 24, [0, 1, 2, 3]], \"passed\": true}, {\"check\": \"workspace regression 4\", \"actual\": [[[0, 1, 2, 3]], 150, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]], \"expected\": [[[0, 1, 2, 3]], 150, 0, [[0, 1, 2, 3]], 0, [0, 1, 2, 3]], \"passed\": true}, {\"check\": \"workspace regression 5\", \"actual\": [[[0], [1, 2], [3]], 70, 1, [[0], [3], [1, 2]], 48, [0, 3, 1, 2]], \"expected\": [[[0], [1, 2], [3]], 70, 1, [[0], [3], [1, 2]], 48, [0, 3, 1, 2]], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}