broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(x):
    r0 = [x['namespace']+':'+p for p in x['panes']]
    r1 = {t:x['namespace']+':'+p for t,p in x['owners'].items()}
    r2 = x['namespace']+':'+x['selected']
    r3 = [[x['namespace']+':'+p for p in edge] for edge in x['edges']]
    r4 = [x['namespace']+':'+t for t in x['tabs']]
    r5 = list(x['owners'])
    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: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']])], 2: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']])], 3: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']])], 4: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']])], 5: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']])]}
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(x):
    r0 = [x['namespace']+':'+p for p in x['panes']]
    r1 = {t:x['namespace']+':'+p for t,p in x['owners'].items()}
    r2 = x['namespace']+':'+x['selected']
    r3 = [[x['namespace']+':'+p for p in edge] for edge in x['edges']]
    r4 = x['panes']
    r5 = list(x['owners'])
    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: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']])], 2: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']])], 3: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']])], 4: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']])], 5: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']])]}
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)

prompt:
The tab workspace reports an incorrect document tab id retention.

Importing a saved workspace namespaces pane IDs and rewrites tab ownership, selected-pane references and split edges consistently; tab/document IDs remain stable.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(x):
    r0 = [x['namespace']+':'+p for p in x['panes']]
    r1 = {t:x['namespace']+':'+p for t,p in x['owners'].items()}
    r2 = x['namespace']+':'+x['selected']
    r3 = [[x['namespace']+':'+p for p in edge] for edge in x['edges']]
    r4 = x['tabs']
    r5 = list(x['owners'].values())
    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: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']])], 2: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']])], 3: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']])], 4: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']])], 5: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']])]}
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)

meaning: Fixture-count band, not measured model difficulty

deps: stdlib

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(x):
    r0 = [x['namespace']+':'+p for p in x['panes']]
    r1 = {t:x['namespace']+':'+p for t,p in x['owners'].items()}
    r2 = x['namespace']+':'+x['selected']
    r3 = [[x['namespace']+':'+p for p in edge] for edge in x['edges']]
    r4 = x['tabs']
    r5 = [x['namespace']+':'+t for t in x['owners']]
    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: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b'], ['a', 'b']])], 2: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0'], ['a', 'b']])], 3: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1'], ['a', 'b']])], 4: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2'], ['a', 'b']])], 5: [({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'copy', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['copy:p', 'copy:q'], {'a': 'copy:p', 'b': 'copy:q'}, 'copy:q', [['copy:p', 'copy:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'p', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:p', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q'], 'owners': {'a': 'q', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q'], {'a': 'import:q', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']]), ({'namespace': 'import', 'panes': ['p', 'q', 'r'], 'owners': {'a': 'p', 'b': 'q'}, 'selected': 'q', 'edges': [['p', 'q']], 'tabs': ['a', 'b', 'background0', 'background1', 'background2', 'background3']}, [['import:p', 'import:q', 'import:r'], {'a': 'import:p', 'b': 'import:q'}, 'import:q', [['import:p', 'import:q']], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], ['a', 'b']])]}
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)

prompt:
The tab workspace reports an incorrect owner key retention.

Importing a saved workspace namespaces pane IDs and rewrites tab ownership, selected-pane references and split edges consistently; tab/document IDs remain stable.

split: open-access


prompt:
The tab workspace reports an incorrect panel local x.

An embedded tab panel reports content coordinates after subtracting pane origin and strip height, dividing by zoom, then adding that view scroll offsets.

split: open-access


prompt:
The tab workspace reports an incorrect strip subtracted y.

An embedded tab panel reports content coordinates after subtracting pane origin and strip height, dividing by zoom, then adding that view scroll offsets.

split: open-access


prompt:
The tab workspace reports an incorrect zoomed content x.

An embedded tab panel reports content coordinates after subtracting pane origin and strip height, dividing by zoom, then adding that view scroll offsets.

split: open-access


prompt:
The tab workspace reports an incorrect zoomed content y.

An embedded tab panel reports content coordinates after subtracting pane origin and strip height, dividing by zoom, then adding that view scroll offsets.

split: open-access


prompt:
The tab workspace reports an incorrect visible content width.

An embedded tab panel reports content coordinates after subtracting pane origin and strip height, dividing by zoom, then adding that view scroll offsets.

split: open-access


prompt:
The tab workspace reports an incorrect visible content height.

An embedded tab panel reports content coordinates after subtracting pane origin and strip height, dividing by zoom, then adding that view scroll offsets.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(x):
    r0 = [j for j in x['jobs'] if j[1]=='render']
    r1 = [j for j in x['jobs'] if j[0] in x['mounted'] and j[0] not in x['visible'] and j[1]=='render']
    r2 = [j for j in x['jobs'] if j[0] in x['mounted'] and j[1]=='index']
    r3 = [j for j in x['jobs'] if j[0] in x['closed']]
    r4 = sorted(set(j[0] for j in x['jobs'] if j[0] in x['mounted'] and j[0] not in x['visible'] and j[1]=='render'))
    r5 = [j for j in x['jobs'] if j[0] in x['mounted'] and (j[1]=='index' or j[0] in x['visible'])]
    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: [({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render']], 'visible': ['a'], 'mounted': ['a', 'b'], 'closed': ['c']}, [[['a', 'render']], [['b', 'render']], [['a', 'index'], ['b', 'index']], [['c', 'render']], ['b'], [['a', 'render'], ['a', 'index'], ['b', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render']], 'visible': ['b'], 'mounted': ['a', 'b'], 'closed': ['c']}, [[['b', 'render']], [['a', 'render']], [['a', 'index'], ['b', 'index']], [['c', 'render']], ['a'], [['a', 'index'], ['b', 'render'], ['b', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render']], 'visible': ['a', 'b'], 'mounted': ['a', 'b'], 'closed': ['c']}, [[['a', 'render'], ['b', 'render']], [], [['a', 'index'], ['b', 'index']], [['c', 'render']], [], [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render']], 'visible': ['a'], 'mounted': ['a', 'b', 'c'], 'closed': []}, [[['a', 'render']], [['b', 'render'], ['c', 'render']], [['a', 'index'], ['b', 'index']], [], ['b', 'c'], [['a', 'render'], ['a', 'index'], ['b', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render']], 'visible': [], 'mounted': ['a', 'b'], 'closed': ['c']}, [[], [['a', 'render'], ['b', 'render']], [['a', 'index'], ['b', 'index']], [['c', 'render']], ['a', 'b'], [['a', 'index'], ['b', 'index']]]), ({'jobs': [['a', 'index'], ['b', 'render']], 'visible': ['a'], 'mounted': ['a', 'b'], 'closed': ['c']}, [[], [['b', 'render']], [['a', 'index']], [], ['b'], [['a', 'index']]])], 2: [({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0'], 'closed': ['c']}, [[['a', 'render']], [['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index']], [['c', 'render']], ['b'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index']], 'visible': ['b'], 'mounted': ['a', 'b', 'extra0'], 'closed': ['c']}, [[['b', 'render']], [['a', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index']], [['c', 'render']], ['a'], [['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index']], 'visible': ['a', 'b'], 'mounted': ['a', 'b', 'extra0'], 'closed': ['c']}, [[['a', 'render'], ['b', 'render']], [], [['a', 'index'], ['b', 'index'], ['extra0', 'index']], [['c', 'render']], [], [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'c', 'extra0'], 'closed': []}, [[['a', 'render']], [['b', 'render'], ['c', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index']], [], ['b', 'c'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index']], 'visible': [], 'mounted': ['a', 'b', 'extra0'], 'closed': ['c']}, [[], [['a', 'render'], ['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index']], [['c', 'render']], ['a', 'b'], [['a', 'index'], ['b', 'index'], ['extra0', 'index']]]), ({'jobs': [['a', 'index'], ['b', 'render'], ['extra0', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0'], 'closed': ['c']}, [[], [['b', 'render']], [['a', 'index'], ['extra0', 'index']], [], ['b'], [['a', 'index'], ['extra0', 'index']]])], 3: [({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1'], 'closed': ['c']}, [[['a', 'render']], [['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']], [['c', 'render']], ['b'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': ['b'], 'mounted': ['a', 'b', 'extra0', 'extra1'], 'closed': ['c']}, [[['b', 'render']], [['a', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']], [['c', 'render']], ['a'], [['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': ['a', 'b'], 'mounted': ['a', 'b', 'extra0', 'extra1'], 'closed': ['c']}, [[['a', 'render'], ['b', 'render']], [], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']], [['c', 'render']], [], [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'c', 'extra0', 'extra1'], 'closed': []}, [[['a', 'render']], [['b', 'render'], ['c', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']], [], ['b', 'c'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': [], 'mounted': ['a', 'b', 'extra0', 'extra1'], 'closed': ['c']}, [[], [['a', 'render'], ['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']], [['c', 'render']], ['a', 'b'], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']]]), ({'jobs': [['a', 'index'], ['b', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1'], 'closed': ['c']}, [[], [['b', 'render']], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index']], [], ['b'], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index']]])], 4: [({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2'], 'closed': ['c']}, [[['a', 'render']], [['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [['c', 'render']], ['b'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': ['b'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2'], 'closed': ['c']}, [[['b', 'render']], [['a', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [['c', 'render']], ['a'], [['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': ['a', 'b'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2'], 'closed': ['c']}, [[['a', 'render'], ['b', 'render']], [], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [['c', 'render']], [], [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'c', 'extra0', 'extra1', 'extra2'], 'closed': []}, [[['a', 'render']], [['b', 'render'], ['c', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [], ['b', 'c'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': [], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2'], 'closed': ['c']}, [[], [['a', 'render'], ['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [['c', 'render']], ['a', 'b'], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]]), ({'jobs': [['a', 'index'], ['b', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2'], 'closed': ['c']}, [[], [['b', 'render']], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [], ['b'], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]])], 5: [({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': ['c']}, [[['a', 'render']], [['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [['c', 'render']], ['b'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': ['b'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': ['c']}, [[['b', 'render']], [['a', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [['c', 'render']], ['a'], [['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': ['a', 'b'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': ['c']}, [[['a', 'render'], ['b', 'render']], [], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [['c', 'render']], [], [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'c', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': []}, [[['a', 'render']], [['b', 'render'], ['c', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [], ['b', 'c'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': [], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': ['c']}, [[], [['a', 'render'], ['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [['c', 'render']], ['a', 'b'], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]]), ({'jobs': [['a', 'index'], ['b', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': ['c']}, [[], [['b', 'render']], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [], ['b'], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]])]}
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(x):
    r0 = [j for j in x['jobs'] if j[0] in x['visible']]
    r1 = [j for j in x['jobs'] if j[0] in x['mounted'] and j[0] not in x['visible'] and j[1]=='render']
    r2 = [j for j in x['jobs'] if j[0] in x['mounted'] and j[1]=='index']
    r3 = [j for j in x['jobs'] if j[0] in x['closed']]
    r4 = sorted(set(j[0] for j in x['jobs'] if j[0] in x['mounted'] and j[0] not in x['visible'] and j[1]=='render'))
    r5 = [j for j in x['jobs'] if j[0] in x['mounted'] and (j[1]=='index' or j[0] in x['visible'])]
    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: [({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render']], 'visible': ['a'], 'mounted': ['a', 'b'], 'closed': ['c']}, [[['a', 'render']], [['b', 'render']], [['a', 'index'], ['b', 'index']], [['c', 'render']], ['b'], [['a', 'render'], ['a', 'index'], ['b', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render']], 'visible': ['b'], 'mounted': ['a', 'b'], 'closed': ['c']}, [[['b', 'render']], [['a', 'render']], [['a', 'index'], ['b', 'index']], [['c', 'render']], ['a'], [['a', 'index'], ['b', 'render'], ['b', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render']], 'visible': ['a', 'b'], 'mounted': ['a', 'b'], 'closed': ['c']}, [[['a', 'render'], ['b', 'render']], [], [['a', 'index'], ['b', 'index']], [['c', 'render']], [], [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render']], 'visible': ['a'], 'mounted': ['a', 'b', 'c'], 'closed': []}, [[['a', 'render']], [['b', 'render'], ['c', 'render']], [['a', 'index'], ['b', 'index']], [], ['b', 'c'], [['a', 'render'], ['a', 'index'], ['b', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render']], 'visible': [], 'mounted': ['a', 'b'], 'closed': ['c']}, [[], [['a', 'render'], ['b', 'render']], [['a', 'index'], ['b', 'index']], [['c', 'render']], ['a', 'b'], [['a', 'index'], ['b', 'index']]]), ({'jobs': [['a', 'index'], ['b', 'render']], 'visible': ['a'], 'mounted': ['a', 'b'], 'closed': ['c']}, [[], [['b', 'render']], [['a', 'index']], [], ['b'], [['a', 'index']]])], 2: [({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0'], 'closed': ['c']}, [[['a', 'render']], [['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index']], [['c', 'render']], ['b'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index']], 'visible': ['b'], 'mounted': ['a', 'b', 'extra0'], 'closed': ['c']}, [[['b', 'render']], [['a', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index']], [['c', 'render']], ['a'], [['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index']], 'visible': ['a', 'b'], 'mounted': ['a', 'b', 'extra0'], 'closed': ['c']}, [[['a', 'render'], ['b', 'render']], [], [['a', 'index'], ['b', 'index'], ['extra0', 'index']], [['c', 'render']], [], [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'c', 'extra0'], 'closed': []}, [[['a', 'render']], [['b', 'render'], ['c', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index']], [], ['b', 'c'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index']], 'visible': [], 'mounted': ['a', 'b', 'extra0'], 'closed': ['c']}, [[], [['a', 'render'], ['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index']], [['c', 'render']], ['a', 'b'], [['a', 'index'], ['b', 'index'], ['extra0', 'index']]]), ({'jobs': [['a', 'index'], ['b', 'render'], ['extra0', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0'], 'closed': ['c']}, [[], [['b', 'render']], [['a', 'index'], ['extra0', 'index']], [], ['b'], [['a', 'index'], ['extra0', 'index']]])], 3: [({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1'], 'closed': ['c']}, [[['a', 'render']], [['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']], [['c', 'render']], ['b'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': ['b'], 'mounted': ['a', 'b', 'extra0', 'extra1'], 'closed': ['c']}, [[['b', 'render']], [['a', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']], [['c', 'render']], ['a'], [['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': ['a', 'b'], 'mounted': ['a', 'b', 'extra0', 'extra1'], 'closed': ['c']}, [[['a', 'render'], ['b', 'render']], [], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']], [['c', 'render']], [], [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'c', 'extra0', 'extra1'], 'closed': []}, [[['a', 'render']], [['b', 'render'], ['c', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']], [], ['b', 'c'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': [], 'mounted': ['a', 'b', 'extra0', 'extra1'], 'closed': ['c']}, [[], [['a', 'render'], ['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']], [['c', 'render']], ['a', 'b'], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index']]]), ({'jobs': [['a', 'index'], ['b', 'render'], ['extra0', 'index'], ['extra1', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1'], 'closed': ['c']}, [[], [['b', 'render']], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index']], [], ['b'], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index']]])], 4: [({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2'], 'closed': ['c']}, [[['a', 'render']], [['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [['c', 'render']], ['b'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': ['b'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2'], 'closed': ['c']}, [[['b', 'render']], [['a', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [['c', 'render']], ['a'], [['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': ['a', 'b'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2'], 'closed': ['c']}, [[['a', 'render'], ['b', 'render']], [], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [['c', 'render']], [], [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'c', 'extra0', 'extra1', 'extra2'], 'closed': []}, [[['a', 'render']], [['b', 'render'], ['c', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [], ['b', 'c'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': [], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2'], 'closed': ['c']}, [[], [['a', 'render'], ['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [['c', 'render']], ['a', 'b'], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]]), ({'jobs': [['a', 'index'], ['b', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2'], 'closed': ['c']}, [[], [['b', 'render']], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']], [], ['b'], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index']]])], 5: [({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': ['c']}, [[['a', 'render']], [['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [['c', 'render']], ['b'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': ['b'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': ['c']}, [[['b', 'render']], [['a', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [['c', 'render']], ['a'], [['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': ['a', 'b'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': ['c']}, [[['a', 'render'], ['b', 'render']], [], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [['c', 'render']], [], [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'c', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': []}, [[['a', 'render']], [['b', 'render'], ['c', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [], ['b', 'c'], [['a', 'render'], ['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]]), ({'jobs': [['a', 'render'], ['a', 'index'], ['b', 'render'], ['b', 'index'], ['c', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': [], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': ['c']}, [[], [['a', 'render'], ['b', 'render']], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [['c', 'render']], ['a', 'b'], [['a', 'index'], ['b', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]]), ({'jobs': [['a', 'index'], ['b', 'render'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], 'visible': ['a'], 'mounted': ['a', 'b', 'extra0', 'extra1', 'extra2', 'extra3'], 'closed': ['c']}, [[], [['b', 'render']], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']], [], ['b'], [['a', 'index'], ['extra0', 'index'], ['extra1', 'index'], ['extra2', 'index'], ['extra3', 'index']]])]}
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)

prompt:
The tab workspace reports an incorrect visible render jobs.

Tab panel jobs are classified into visible rendering, background-safe work and paused work. Hidden panes pause render-only jobs but retain explicit background-safe tasks.

split: open-access