FA-35381 / Tab interfaces / Open access
Close batch: pinned veto · case 01
The tab workspace reports an incorrect pinned veto.
ROOT CAUSE
The pinned veto decision uses [] instead of [t for t in x['requested'] if t in x['pins']].
VERIFIED REPAIR
Use the stipulated workspace rule: [t for t in x['requested'] if t in x['pins']].
Unsuccessful approach: The partial repair x['pins'] if x['requested']==x['pins'] else [] still violates a workspace boundary or normal case.
Case contract
Close requested clean unpinned tabs atomically; retain dirty and pinned tabs, select most recent surviving tab and preserve surviving history.
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['requested'] if t not in x['dirty'] and t not in x['pins']]
r1 = [t for t in x['requested'] if t in x['dirty']]
r2 = []
r3 = [t for t in x['tabs'] if t not in x['requested'] or t in x['dirty'] or t in x['pins']]
r4 = next((t for t in x['history'] if t not in x['requested'] or t in x['dirty'] or t in x['pins']),None)
r5 = [t for t in x['history'] if t not in x['requested'] or t in x['dirty'] or t in x['pins']]
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', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'b', ['b', 'd', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['b'], ['a'], ['c'], ['a', 'c', 'd'], 'a', ['a', 'd', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c']}, [['a', 'c'], ['b'], ['b'], ['b', 'd'], 'b', ['b', 'd']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['a', 'd'], [], [], ['b', 'c'], 'b', ['b', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c']}, [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'd', ['d', 'b', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['a', 'b'], [], ['c'], ['c', 'd'], 'd', ['d', 'c']])], 2: [({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0'], 'b', ['b', 'd', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0'], 'a', ['a', 'd', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0'], 'b', ['b', 'd', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a', 'd'], [], [], ['b', 'c', 'background0'], 'b', ['b', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0'], 'd', ['d', 'b', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0'], 'd', ['d', 'c', 'background0']])], 3: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1'], 'b', ['b', 'd', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0', 'background1'], 'a', ['a', 'd', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0', 'background1'], 'b', ['b', 'd', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a', 'd'], [], [], ['b', 'c', 'background0', 'background1'], 'b', ['b', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0', 'background1']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1'], 'd', ['d', 'b', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0', 'background1'], 'd', ['d', 'c', 'background0', 'background1']])], 4: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2'], 'b', ['b', 'd', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0', 'background1', 'background2'], 'a', ['a', 'd', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0', 'background1', 'background2'], 'b', ['b', 'd', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a', 'd'], [], [], ['b', 'c', 'background0', 'background1', 'background2'], 'b', ['b', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0', 'background1', 'background2']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2'], 'd', ['d', 'b', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0', 'background1', 'background2'], 'd', ['d', 'c', 'background0', 'background1', 'background2']])], 5: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'b', ['b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'a', ['a', 'd', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0', 'background1', 'background2', 'background3'], 'b', ['b', 'd', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a', 'd'], [], [], ['b', 'c', 'background0', 'background1', 'background2', 'background3'], 'b', ['b', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'd', ['d', 'b', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0', 'background1', 'background2', 'background3'], 'd', ['d', 'c', 'background0', 'background1', 'background2', 'background3']])]}
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'], ['b'], [], ['b', 'c', 'd'], 'b', ['b', 'd', 'c']] | [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'b', ['b', 'd', 'c']] | Failed |
| workspace regression 1 | [['b'], ['a'], [], ['a', 'c', 'd'], 'a', ['a', 'd', 'c']] | [['b'], ['a'], ['c'], ['a', 'c', 'd'], 'a', ['a', 'd', 'c']] | Failed |
| workspace regression 2 | [['a', 'c'], ['b'], [], ['b', 'd'], 'b', ['b', 'd']] | [['a', 'c'], ['b'], ['b'], ['b', 'd'], 'b', ['b', 'd']] | Failed |
| workspace regression 3 | [['a', 'd'], [], [], ['b', 'c'], 'b', ['b', 'c']] | [['a', 'd'], [], [], ['b', 'c'], 'b', ['b', 'c']] | Passed |
| workspace regression 4 | [['a'], ['b'], [], ['b', 'c', 'd'], 'd', ['d', 'b', 'c']] | [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'd', ['d', 'b', 'c']] | Failed |
| workspace regression 5 | [['a', 'b'], [], [], ['c', 'd'], 'd', ['d', 'c']] | [['a', 'b'], [], ['c'], ['c', 'd'], 'd', ['d', 'c']] | Failed |
SHA-256 / 027af2db938d5e024376b4f6aace58f0b1f450c1fc3cbdf607ede0adaf5744f6
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['requested'] if t not in x['dirty'] and t not in x['pins']]
r1 = [t for t in x['requested'] if t in x['dirty']]
r2 = x['pins'] if x['requested']==x['pins'] else []
r3 = [t for t in x['tabs'] if t not in x['requested'] or t in x['dirty'] or t in x['pins']]
r4 = next((t for t in x['history'] if t not in x['requested'] or t in x['dirty'] or t in x['pins']),None)
r5 = [t for t in x['history'] if t not in x['requested'] or t in x['dirty'] or t in x['pins']]
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', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'b', ['b', 'd', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['b'], ['a'], ['c'], ['a', 'c', 'd'], 'a', ['a', 'd', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c']}, [['a', 'c'], ['b'], ['b'], ['b', 'd'], 'b', ['b', 'd']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['a', 'd'], [], [], ['b', 'c'], 'b', ['b', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c']}, [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'd', ['d', 'b', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['a', 'b'], [], ['c'], ['c', 'd'], 'd', ['d', 'c']])], 2: [({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0'], 'b', ['b', 'd', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0'], 'a', ['a', 'd', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0'], 'b', ['b', 'd', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a', 'd'], [], [], ['b', 'c', 'background0'], 'b', ['b', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0'], 'd', ['d', 'b', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0'], 'd', ['d', 'c', 'background0']])], 3: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1'], 'b', ['b', 'd', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0', 'background1'], 'a', ['a', 'd', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0', 'background1'], 'b', ['b', 'd', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a', 'd'], [], [], ['b', 'c', 'background0', 'background1'], 'b', ['b', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0', 'background1']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1'], 'd', ['d', 'b', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0', 'background1'], 'd', ['d', 'c', 'background0', 'background1']])], 4: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2'], 'b', ['b', 'd', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0', 'background1', 'background2'], 'a', ['a', 'd', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0', 'background1', 'background2'], 'b', ['b', 'd', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a', 'd'], [], [], ['b', 'c', 'background0', 'background1', 'background2'], 'b', ['b', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0', 'background1', 'background2']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2'], 'd', ['d', 'b', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0', 'background1', 'background2'], 'd', ['d', 'c', 'background0', 'background1', 'background2']])], 5: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'b', ['b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'a', ['a', 'd', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0', 'background1', 'background2', 'background3'], 'b', ['b', 'd', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a', 'd'], [], [], ['b', 'c', 'background0', 'background1', 'background2', 'background3'], 'b', ['b', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'd', ['d', 'b', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0', 'background1', 'background2', 'background3'], 'd', ['d', 'c', 'background0', 'background1', 'background2', 'background3']])]}
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'], ['b'], [], ['b', 'c', 'd'], 'b', ['b', 'd', 'c']] | [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'b', ['b', 'd', 'c']] | Failed |
| workspace regression 1 | [['b'], ['a'], [], ['a', 'c', 'd'], 'a', ['a', 'd', 'c']] | [['b'], ['a'], ['c'], ['a', 'c', 'd'], 'a', ['a', 'd', 'c']] | Failed |
| workspace regression 2 | [['a', 'c'], ['b'], [], ['b', 'd'], 'b', ['b', 'd']] | [['a', 'c'], ['b'], ['b'], ['b', 'd'], 'b', ['b', 'd']] | Failed |
| workspace regression 3 | [['a', 'd'], [], [], ['b', 'c'], 'b', ['b', 'c']] | [['a', 'd'], [], [], ['b', 'c'], 'b', ['b', 'c']] | Passed |
| workspace regression 4 | [['a'], ['b'], [], ['b', 'c', 'd'], 'd', ['d', 'b', 'c']] | [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'd', ['d', 'b', 'c']] | Failed |
| workspace regression 5 | [['a', 'b'], [], [], ['c', 'd'], 'd', ['d', 'c']] | [['a', 'b'], [], ['c'], ['c', 'd'], 'd', ['d', 'c']] | Failed |
SHA-256 / d9167fd8cacd2bd5cc7183e62eb3b34c418a0b897091f909811ab023ee5128a5
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['requested'] if t not in x['dirty'] and t not in x['pins']]
r1 = [t for t in x['requested'] if t in x['dirty']]
r2 = [t for t in x['requested'] if t in x['pins']]
r3 = [t for t in x['tabs'] if t not in x['requested'] or t in x['dirty'] or t in x['pins']]
r4 = next((t for t in x['history'] if t not in x['requested'] or t in x['dirty'] or t in x['pins']),None)
r5 = [t for t in x['history'] if t not in x['requested'] or t in x['dirty'] or t in x['pins']]
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', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'b', ['b', 'd', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['b'], ['a'], ['c'], ['a', 'c', 'd'], 'a', ['a', 'd', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c']}, [['a', 'c'], ['b'], ['b'], ['b', 'd'], 'b', ['b', 'd']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['a', 'd'], [], [], ['b', 'c'], 'b', ['b', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c']}, [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'd', ['d', 'b', 'c']]), ({'tabs': ['a', 'b', 'c', 'd'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c']}, [['a', 'b'], [], ['c'], ['c', 'd'], 'd', ['d', 'c']])], 2: [({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0'], 'b', ['b', 'd', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0'], 'a', ['a', 'd', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0'], 'b', ['b', 'd', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a', 'd'], [], [], ['b', 'c', 'background0'], 'b', ['b', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0'], 'd', ['d', 'b', 'c', 'background0']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0'], 'd', ['d', 'c', 'background0']])], 3: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1'], 'b', ['b', 'd', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0', 'background1'], 'a', ['a', 'd', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0', 'background1'], 'b', ['b', 'd', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a', 'd'], [], [], ['b', 'c', 'background0', 'background1'], 'b', ['b', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0', 'background1']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1'], 'd', ['d', 'b', 'c', 'background0', 'background1']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0', 'background1'], 'd', ['d', 'c', 'background0', 'background1']])], 4: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2'], 'b', ['b', 'd', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0', 'background1', 'background2'], 'a', ['a', 'd', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0', 'background1', 'background2'], 'b', ['b', 'd', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a', 'd'], [], [], ['b', 'c', 'background0', 'background1', 'background2'], 'b', ['b', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0', 'background1', 'background2']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2'], 'd', ['d', 'b', 'c', 'background0', 'background1', 'background2']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0', 'background1', 'background2'], 'd', ['d', 'c', 'background0', 'background1', 'background2']])], 5: [({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'b', ['b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['a'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['b'], ['a'], ['c'], ['a', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'a', ['a', 'd', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['b'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a', 'c'], ['b'], ['b'], ['b', 'd', 'background0', 'background1', 'background2', 'background3'], 'b', ['b', 'd', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'd'], 'dirty': ['b'], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a', 'd'], [], [], ['b', 'c', 'background0', 'background1', 'background2', 'background3'], 'b', ['b', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': ['b'], 'pins': ['c'], 'history': ['d', 'a', 'b', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a'], ['b'], ['c'], ['b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'd', ['d', 'b', 'c', 'background0', 'background1', 'background2', 'background3']]), ({'tabs': ['a', 'b', 'c', 'd', 'background0', 'background1', 'background2', 'background3'], 'requested': ['a', 'b', 'c'], 'dirty': [], 'pins': ['c'], 'history': ['a', 'b', 'd', 'c', 'background0', 'background1', 'background2', 'background3']}, [['a', 'b'], [], ['c'], ['c', 'd', 'background0', 'background1', 'background2', 'background3'], 'd', ['d', 'c', 'background0', 'background1', 'background2', 'background3']])]}
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'], ['b'], ['c'], ['b', 'c', 'd'], 'b', ['b', 'd', 'c']] | [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'b', ['b', 'd', 'c']] | Passed |
| workspace regression 1 | [['b'], ['a'], ['c'], ['a', 'c', 'd'], 'a', ['a', 'd', 'c']] | [['b'], ['a'], ['c'], ['a', 'c', 'd'], 'a', ['a', 'd', 'c']] | Passed |
| workspace regression 2 | [['a', 'c'], ['b'], ['b'], ['b', 'd'], 'b', ['b', 'd']] | [['a', 'c'], ['b'], ['b'], ['b', 'd'], 'b', ['b', 'd']] | Passed |
| workspace regression 3 | [['a', 'd'], [], [], ['b', 'c'], 'b', ['b', 'c']] | [['a', 'd'], [], [], ['b', 'c'], 'b', ['b', 'c']] | Passed |
| workspace regression 4 | [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'd', ['d', 'b', 'c']] | [['a'], ['b'], ['c'], ['b', 'c', 'd'], 'd', ['d', 'b', 'c']] | Passed |
| workspace regression 5 | [['a', 'b'], [], ['c'], ['c', 'd'], 'd', ['d', 'c']] | [['a', 'b'], [], ['c'], ['c', 'd'], 'd', ['d', 'c']] | Passed |
SHA-256 / b33f924ba3fd080946ed3a20f157d2f58c9b0d22597d5b2caf1c07359609093f
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:41.016206+00:00.
Case digest / 0e30ce95dd37540e5b678723c188b9dc762ac8e98705da55fc71e8494c8fce16