FA-36026 / Tab interfaces / Open access
Pin group interaction: pin keeps active · case 01
The tab workspace reports an incorrect pin keeps active.
ROOT CAUSE
The pin keeps active decision uses x['pin'] instead of x['active'].
VERIFIED REPAIR
Use the stipulated workspace rule: x['active'].
Unsuccessful approach: The partial repair x['tabs'][0] 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['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['pin']
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| workspace regression 0 | [['a'], ['p', 'b'], 1, 1, False, 'b'] | [['a'], ['p', 'b'], 1, 1, False, 'a'] | Failed |
| 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, 'b'] | [[], ['p', 'b'], 1, 0, True, 'a'] | Failed |
| workspace regression 3 | [['a'], ['b'], 0, 1, False, 'b'] | [['a'], ['b'], 0, 1, False, 'a'] | Failed |
| 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, 'b'] | [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'] | Failed |
SHA-256 / 062d4fdf36ef9e9597b3601075e26da74d10cedc19ac0cfa9804d25a1f165403
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']+[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['tabs'][0]
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| workspace regression 0 | [['a'], ['p', 'b'], 1, 1, False, 'p'] | [['a'], ['p', 'b'], 1, 1, False, 'a'] | Failed |
| workspace regression 1 | [['b'], ['p', 'a'], 1, 1, False, 'p'] | [['b'], ['p', 'a'], 1, 1, False, 'a'] | Failed |
| workspace regression 2 | [[], ['p', 'b'], 1, 0, True, 'p'] | [[], ['p', 'b'], 1, 0, True, 'a'] | Failed |
| workspace regression 3 | [['a'], ['b'], 0, 1, False, 'p'] | [['a'], ['b'], 0, 1, False, 'a'] | Failed |
| workspace regression 4 | [['a'], ['p', 'b'], 1, 1, False, 'p'] | [['a'], ['p', 'b'], 1, 1, False, 'b'] | Failed |
| workspace regression 5 | [['a', 'c'], ['p', 'b'], 1, 2, False, 'p'] | [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'] | Failed |
SHA-256 / 6e63d9c96d710c1ee6d2110722b9907d6ebf8e57d0d21f05eda40a0e84992c45
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| 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:47.223241+00:00.
Case digest / 6a69b075ca9524902666650aa35f9f867e6b16c1c352a2edcfb4bda05f29fdfe