FAILURE MAP
← Case archive

FA-35516 / Tab interfaces / Open access

Panel residency: unmount candidates · case 01

The tab workspace reports an incorrect unmount candidates.

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

ROOT CAUSE

The unmount candidates decision uses [t for t in x['loaded'] if t!=x['selected']] instead of [t for t in x['loaded'] if t!=x['selected'] and t not in x['keep']].

VERIFIED REPAIR

Use the stipulated workspace rule: [t for t in x['loaded'] if t!=x['selected'] and t not in x['keep']].

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

Case contract

Retained tab panels distinguish loaded, mounted and visible sets. Only the selected loaded panel is visible; kept panels remain mounted but hidden.

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['loaded'] if t==x['selected']]
    r1 = [t for t in x['tabs'] if t in x['loaded'] and (t in x['keep'] or t==x['selected'])]
    r2 = [t for t in x['loaded'] if t!=x['selected'] and t in x['keep']]
    r3 = x['selected'] in x['loading']
    r4 = x['selected'] not in x['loaded']
    r5 = [t for t in x['loaded'] if t!=x['selected']]
    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': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 2: [({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 3: [({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 4: [({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 5: [({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['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'], ['a', 'b'], ['b'], False, False, ['b']][['a'], ['a', 'b'], ['b'], False, False, []]Failed
workspace regression 1[['b'], ['b'], [], False, False, ['a']][['b'], ['b'], [], False, False, ['a']]Passed
workspace regression 2[[], ['b'], ['b'], True, True, ['a', 'b']][[], ['b'], ['b'], True, True, ['a']]Failed
workspace regression 3[['a'], ['a', 'b'], ['b'], False, False, ['b']][['a'], ['a', 'b'], ['b'], False, False, []]Failed
workspace regression 4[['b'], ['b'], [], False, False, []][['b'], ['b'], [], False, False, []]Passed
workspace regression 5[['a'], ['a', 'b'], ['b'], False, False, ['b']][['a'], ['a', 'b'], ['b'], False, False, []]Failed
workspace regression 6[[], ['b'], ['b'], False, True, ['a', 'b']][[], ['b'], ['b'], False, True, ['a']]Failed

SHA-256 / e1b860ad846f52d9bdf491e7f217e8353dd950babd09292de6b2035dd89ec0e2

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['loaded'] if t==x['selected']]
    r1 = [t for t in x['tabs'] if t in x['loaded'] and (t in x['keep'] or t==x['selected'])]
    r2 = [t for t in x['loaded'] if t!=x['selected'] and t in x['keep']]
    r3 = x['selected'] in x['loading']
    r4 = x['selected'] not in x['loaded']
    r5 = []
    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': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 2: [({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 3: [({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 4: [({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 5: [({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['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'], ['a', 'b'], ['b'], False, False, []][['a'], ['a', 'b'], ['b'], False, False, []]Passed
workspace regression 1[['b'], ['b'], [], False, False, []][['b'], ['b'], [], False, False, ['a']]Failed
workspace regression 2[[], ['b'], ['b'], True, True, []][[], ['b'], ['b'], True, True, ['a']]Failed
workspace regression 3[['a'], ['a', 'b'], ['b'], False, False, []][['a'], ['a', 'b'], ['b'], False, False, []]Passed
workspace regression 4[['b'], ['b'], [], False, False, []][['b'], ['b'], [], False, False, []]Passed
workspace regression 5[['a'], ['a', 'b'], ['b'], False, False, []][['a'], ['a', 'b'], ['b'], False, False, []]Passed
workspace regression 6[[], ['b'], ['b'], False, True, []][[], ['b'], ['b'], False, True, ['a']]Failed

SHA-256 / 79d85e70a323ae09f58481dfb13c2cf585a2846121221dd593c94df7f85abd72

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['loaded'] if t==x['selected']]
    r1 = [t for t in x['tabs'] if t in x['loaded'] and (t in x['keep'] or t==x['selected'])]
    r2 = [t for t in x['loaded'] if t!=x['selected'] and t in x['keep']]
    r3 = x['selected'] in x['loading']
    r4 = x['selected'] not in x['loaded']
    r5 = [t for t in x['loaded'] if t!=x['selected'] and t not in x['keep']]
    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': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 2: [({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 3: [({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 4: [({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['a']])], 5: [({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': ['c']}, [[], ['b'], ['b'], True, True, ['a']]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['a', 'b'], 'selected': 'a', 'loading': ['c']}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['b'], 'keep': ['b'], 'selected': 'b', 'loading': ['c']}, [['b'], ['b'], [], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'a', 'loading': []}, [['a'], ['a', 'b'], ['b'], False, False, []]), ({'tabs': ['a', 'b', 'c', 'background0', 'background1', 'background2', 'background3'], 'loaded': ['a', 'b'], 'keep': ['b'], 'selected': 'c', 'loading': []}, [[], ['b'], ['b'], False, True, ['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'], ['a', 'b'], ['b'], False, False, []][['a'], ['a', 'b'], ['b'], False, False, []]Passed
workspace regression 1[['b'], ['b'], [], False, False, ['a']][['b'], ['b'], [], False, False, ['a']]Passed
workspace regression 2[[], ['b'], ['b'], True, True, ['a']][[], ['b'], ['b'], True, True, ['a']]Passed
workspace regression 3[['a'], ['a', 'b'], ['b'], False, False, []][['a'], ['a', 'b'], ['b'], False, False, []]Passed
workspace regression 4[['b'], ['b'], [], False, False, []][['b'], ['b'], [], False, False, []]Passed
workspace regression 5[['a'], ['a', 'b'], ['b'], False, False, []][['a'], ['a', 'b'], ['b'], False, False, []]Passed
workspace regression 6[[], ['b'], ['b'], False, True, ['a']][[], ['b'], ['b'], False, True, ['a']]Passed

SHA-256 / f2a9f3bbf36d85a23332b3a080a139c46a4a5020a3c46434a9da031a62d37b1d

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:42.363146+00:00.

Case digest / 3a5bbdee62a65278d3e8cf5ecda30e5d1939f583481c93e855b7f58d243f809e