FAILURE MAP
← Case archive

FA-36006 / Tab interfaces / Open access

Pin group interaction: pin list append · case 01

The tab workspace reports an incorrect pin list append.

Verified by executionVariant 1 · 6 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The pin list append decision uses [x['pin']]+x['pins'] instead of x['pins']+[x['pin']] if x['pin'] not in x['pins'] else x['pins'].

VERIFIED REPAIR

Use the stipulated workspace rule: x['pins']+[x['pin']] if x['pin'] not in x['pins'] else x['pins'].

Unsuccessful approach: The partial repair x['pins'] still violates a workspace boundary or normal case.

Case contract

Pinning a tab removes it from its group, moves it behind existing pins, shrinks group count and dissolves empty group headers while keeping selection.

Why this case matters

Offline tab/panel workspace behavior; no browser or desktop framework is emulated.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(x):
    r0 = [t for t in x['members'] if t!=x['pin']]
    r1 = [x['pin']]+x['pins']
    r2 = len(x['pins'])
    r3 = sum(t!=x['pin'] for t in x['members'])
    r4 = not any(t!=x['pin'] for t in x['members'])
    r5 = x['active']
    return [r0,r1,r2,r3,r4,r5]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 2: [({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 3: [({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 4: [({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 5: [({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])]}
for i, (inputs, expected) in enumerate(fixtures[N]):
    check("workspace regression "+str(i), solve(inputs), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
workspace regression 0[['a'], ['b', 'p'], 1, 1, False, 'a'][['a'], ['p', 'b'], 1, 1, False, 'a']Failed
workspace regression 1[['b'], ['a', 'p'], 1, 1, False, 'a'][['b'], ['p', 'a'], 1, 1, False, 'a']Failed
workspace regression 2[[], ['b', 'p'], 1, 0, True, 'a'][[], ['p', 'b'], 1, 0, True, 'a']Failed
workspace regression 3[['a'], ['b'], 0, 1, False, 'a'][['a'], ['b'], 0, 1, False, 'a']Passed
workspace regression 4[['a'], ['b', 'p'], 1, 1, False, 'b'][['a'], ['p', 'b'], 1, 1, False, 'b']Failed
workspace regression 5[['a', 'c'], ['b', 'p'], 1, 2, False, 'a'][['a', 'c'], ['p', 'b'], 1, 2, False, 'a']Failed

SHA-256 / d48ef070924242f64d9e9172d440336907714c001d0bd6dc6f6c7a2c7c15ad7a

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(x):
    r0 = [t for t in x['members'] if t!=x['pin']]
    r1 = x['pins']
    r2 = len(x['pins'])
    r3 = sum(t!=x['pin'] for t in x['members'])
    r4 = not any(t!=x['pin'] for t in x['members'])
    r5 = x['active']
    return [r0,r1,r2,r3,r4,r5]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 2: [({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 3: [({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 4: [({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 5: [({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])]}
for i, (inputs, expected) in enumerate(fixtures[N]):
    check("workspace regression "+str(i), solve(inputs), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
workspace regression 0[['a'], ['p'], 1, 1, False, 'a'][['a'], ['p', 'b'], 1, 1, False, 'a']Failed
workspace regression 1[['b'], ['p'], 1, 1, False, 'a'][['b'], ['p', 'a'], 1, 1, False, 'a']Failed
workspace regression 2[[], ['p'], 1, 0, True, 'a'][[], ['p', 'b'], 1, 0, True, 'a']Failed
workspace regression 3[['a'], [], 0, 1, False, 'a'][['a'], ['b'], 0, 1, False, 'a']Failed
workspace regression 4[['a'], ['p'], 1, 1, False, 'b'][['a'], ['p', 'b'], 1, 1, False, 'b']Failed
workspace regression 5[['a', 'c'], ['p'], 1, 2, False, 'a'][['a', 'c'], ['p', 'b'], 1, 2, False, 'a']Failed

SHA-256 / 83a68bef2f861c42fa3889a5d1c25c9b2430244db9c37b8c246d2c1d8f7f90d3

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(x):
    r0 = [t for t in x['members'] if t!=x['pin']]
    r1 = x['pins']+[x['pin']] if x['pin'] not in x['pins'] else x['pins']
    r2 = len(x['pins'])
    r3 = sum(t!=x['pin'] for t in x['members'])
    r4 = not any(t!=x['pin'] for t in x['members'])
    r5 = x['active']
    return [r0,r1,r2,r3,r4,r5]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 2: [({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 3: [({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 4: [({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])], 5: [({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['p', 'b'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'a', 'active': 'a'}, [['b'], ['p', 'a'], 1, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['b'], 'pin': 'b', 'active': 'a'}, [[], ['p', 'b'], 1, 0, True, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': [], 'members': ['a', 'b'], 'pin': 'b', 'active': 'a'}, [['a'], ['b'], 0, 1, False, 'a']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b'], 'pin': 'b', 'active': 'b'}, [['a'], ['p', 'b'], 1, 1, False, 'b']), ({'tabs': ['p', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'members': ['a', 'b', 'c'], 'pin': 'b', 'active': 'a'}, [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'])]}
for i, (inputs, expected) in enumerate(fixtures[N]):
    check("workspace regression "+str(i), solve(inputs), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
workspace regression 0[['a'], ['p', 'b'], 1, 1, False, 'a'][['a'], ['p', 'b'], 1, 1, False, 'a']Passed
workspace regression 1[['b'], ['p', 'a'], 1, 1, False, 'a'][['b'], ['p', 'a'], 1, 1, False, 'a']Passed
workspace regression 2[[], ['p', 'b'], 1, 0, True, 'a'][[], ['p', 'b'], 1, 0, True, 'a']Passed
workspace regression 3[['a'], ['b'], 0, 1, False, 'a'][['a'], ['b'], 0, 1, False, 'a']Passed
workspace regression 4[['a'], ['p', 'b'], 1, 1, False, 'b'][['a'], ['p', 'b'], 1, 1, False, 'b']Passed
workspace regression 5[['a', 'c'], ['p', 'b'], 1, 2, False, 'a'][['a', 'c'], ['p', 'b'], 1, 2, False, 'a']Passed

SHA-256 / f568f77394d8a56e1c299c2a08a5b1219ae1486cba2c536692cf8950600f3d09

Verification & scope

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.

Observations recorded using Python 3.12.14 at 2026-09-29T14:42:46.950615+00:00.

Case digest / c39c59644da103e12f3b30f3208d5f27bda8b34ad24758fb3f254a240fb114ab