FA-35496 / Tab interfaces / Open access
Panel residency: retained mounted panels · case 01
The tab workspace reports an incorrect retained mounted panels.
ROOT CAUSE
The retained mounted panels decision uses x['loaded'] instead of [t for t in x['tabs'] if t in x['loaded'] and (t in x['keep'] or t==x['selected'])].
VERIFIED REPAIR
Use the stipulated workspace rule: [t for t in x['tabs'] if t in x['loaded'] and (t in x['keep'] or t==x['selected'])].
Unsuccessful approach: The partial repair [t for t in x['loaded'] if t==x['selected']] 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 = x['loaded']
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| workspace regression 0 | [['a'], ['a', 'b'], ['b'], False, False, []] | [['a'], ['a', 'b'], ['b'], False, False, []] | Passed |
| workspace regression 1 | [['b'], ['a', 'b'], [], False, False, ['a']] | [['b'], ['b'], [], False, False, ['a']] | Failed |
| workspace regression 2 | [[], ['a', 'b'], ['b'], True, True, ['a']] | [[], ['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 | [[], ['a', 'b'], ['b'], False, True, ['a']] | [[], ['b'], ['b'], False, True, ['a']] | Failed |
SHA-256 / d587b1fc571c55952d6dad81e7498729be09ed08add98cba09a6cf995daf8c1a
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['loaded'] if 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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| workspace regression 0 | [['a'], ['a'], ['b'], False, False, []] | [['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'], True, True, ['a']] | [[], ['b'], ['b'], True, True, ['a']] | Failed |
| workspace regression 3 | [['a'], ['a'], ['b'], False, False, []] | [['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'], False, False, []] | [['a'], ['a', 'b'], ['b'], False, False, []] | Failed |
| workspace regression 6 | [[], [], ['b'], False, True, ['a']] | [[], ['b'], ['b'], False, True, ['a']] | Failed |
SHA-256 / 42ed8e3369e9936d24c125f673827ae7ac89a057f19f4660ab61a0f5e404808e
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| 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.183218+00:00.
Case digest / 7b5418f8006e3be08f763e21d38551d98140565a37d83f5cf93c71e5934e09f0