FA-36011 / Tab interfaces / Open access
Pin group interaction: pinned slot · case 01
The tab workspace reports an incorrect pinned slot.
ROOT CAUSE
The pinned slot decision uses 0 instead of len(x['pins']).
VERIFIED REPAIR
Use the stipulated workspace rule: len(x['pins']).
Unsuccessful approach: The partial repair len(x['tabs'])-1 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 = 0
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'], 0, 1, False, 'a'] | [['a'], ['p', 'b'], 1, 1, False, 'a'] | Failed |
| workspace regression 1 | [['b'], ['p', 'a'], 0, 1, False, 'a'] | [['b'], ['p', 'a'], 1, 1, False, 'a'] | Failed |
| workspace regression 2 | [[], ['p', 'b'], 0, 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'], ['p', 'b'], 0, 1, False, 'b'] | [['a'], ['p', 'b'], 1, 1, False, 'b'] | Failed |
| workspace regression 5 | [['a', 'c'], ['p', 'b'], 0, 2, False, 'a'] | [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'] | Failed |
SHA-256 / ed204b39bce1466f41eba04ffe6ccd84f13db1236e7db38416b6d9d8ba1d1351
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['tabs'])-1
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'], 3, 1, False, 'a'] | [['a'], ['p', 'b'], 1, 1, False, 'a'] | Failed |
| workspace regression 1 | [['b'], ['p', 'a'], 3, 1, False, 'a'] | [['b'], ['p', 'a'], 1, 1, False, 'a'] | Failed |
| workspace regression 2 | [[], ['p', 'b'], 3, 0, True, 'a'] | [[], ['p', 'b'], 1, 0, True, 'a'] | Failed |
| workspace regression 3 | [['a'], ['b'], 3, 1, False, 'a'] | [['a'], ['b'], 0, 1, False, 'a'] | Failed |
| workspace regression 4 | [['a'], ['p', 'b'], 3, 1, False, 'b'] | [['a'], ['p', 'b'], 1, 1, False, 'b'] | Failed |
| workspace regression 5 | [['a', 'c'], ['p', 'b'], 3, 2, False, 'a'] | [['a', 'c'], ['p', 'b'], 1, 2, False, 'a'] | Failed |
SHA-256 / 8829f27ab7be8e2746caf10c2103bcebb3c8542ddc1af5f13fbe751f842383ba
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.038061+00:00.
Case digest / 98c62a03d8bb542b21c46fc58f27d27f696cb202450d54241c0f12e244da5087