FA-35361 / Tab interfaces / Open access
Pinned partition: active identity · case 01
The tab workspace reports an incorrect active identity.
ROOT CAUSE
The active identity decision uses x['new'] instead of x['active'].
VERIFIED REPAIR
Use the stipulated workspace rule: x['active'].
Unsuccessful approach: The partial repair x['tabs'][0] still violates a workspace boundary or normal case.
Case contract
Insert an unpinned document after all pins, retaining pinned prefix order and active document identity.
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 = len(x['pins'])
r1 = max(len(x['pins']),min(x['requested'],len(x['tabs'])))
r2 = [t for t in x['tabs'] if t in x['pins']]
r3 = [t for t in x['tabs'] if t not in x['pins']]
r4 = x['new']
r5 = False
return [r0,r1,r2,r3,r4,r5]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd'], 'a', False])], 2: [({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0'], 'a', False])], 3: [({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0', 'background1'], 'a', False])], 4: [({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0', 'background1', 'background2'], 'a', False])], 5: [({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0', 'background1', 'background2', 'background3'], 'a', False])]}
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 | [2, 2, ['p', 'q'], ['a', 'b'], 'c', False] | [2, 2, ['p', 'q'], ['a', 'b'], 'a', False] | Failed |
| workspace regression 1 | [2, 3, ['p', 'q'], ['a', 'b'], 'c', False] | [2, 3, ['p', 'q'], ['a', 'b'], 'a', False] | Failed |
| workspace regression 2 | [2, 2, ['p', 'q'], ['a', 'b'], 'c', False] | [2, 2, ['p', 'q'], ['a', 'b'], 'q', False] | Failed |
| workspace regression 3 | [1, 1, ['p'], ['q', 'a', 'b'], 'c', False] | [1, 1, ['p'], ['q', 'a', 'b'], 'a', False] | Failed |
| workspace regression 4 | [2, 4, ['p', 'q'], ['a', 'b'], 'c', False] | [2, 4, ['p', 'q'], ['a', 'b'], 'a', False] | Failed |
| workspace regression 5 | [2, 2, ['p', 'q'], ['a', 'b', 'd'], 'c', False] | [2, 2, ['p', 'q'], ['a', 'b', 'd'], 'a', False] | Failed |
SHA-256 / c2eceff41edeba8ec8ce6d610355b4249b24a808dba861f62e59e4bc845068e8
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
r0 = len(x['pins'])
r1 = max(len(x['pins']),min(x['requested'],len(x['tabs'])))
r2 = [t for t in x['tabs'] if t in x['pins']]
r3 = [t for t in x['tabs'] if t not in x['pins']]
r4 = x['tabs'][0]
r5 = False
return [r0,r1,r2,r3,r4,r5]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd'], 'a', False])], 2: [({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0'], 'a', False])], 3: [({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0', 'background1'], 'a', False])], 4: [({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0', 'background1', 'background2'], 'a', False])], 5: [({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0', 'background1', 'background2', 'background3'], 'a', False])]}
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 | [2, 2, ['p', 'q'], ['a', 'b'], 'p', False] | [2, 2, ['p', 'q'], ['a', 'b'], 'a', False] | Failed |
| workspace regression 1 | [2, 3, ['p', 'q'], ['a', 'b'], 'p', False] | [2, 3, ['p', 'q'], ['a', 'b'], 'a', False] | Failed |
| workspace regression 2 | [2, 2, ['p', 'q'], ['a', 'b'], 'p', False] | [2, 2, ['p', 'q'], ['a', 'b'], 'q', False] | Failed |
| workspace regression 3 | [1, 1, ['p'], ['q', 'a', 'b'], 'p', False] | [1, 1, ['p'], ['q', 'a', 'b'], 'a', False] | Failed |
| workspace regression 4 | [2, 4, ['p', 'q'], ['a', 'b'], 'p', False] | [2, 4, ['p', 'q'], ['a', 'b'], 'a', False] | Failed |
| workspace regression 5 | [2, 2, ['p', 'q'], ['a', 'b', 'd'], 'p', False] | [2, 2, ['p', 'q'], ['a', 'b', 'd'], 'a', False] | Failed |
SHA-256 / 9c1dc0116be0f343d157b60e519c29fa892773ae6bcab698358241c268c9ae0a
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
r0 = len(x['pins'])
r1 = max(len(x['pins']),min(x['requested'],len(x['tabs'])))
r2 = [t for t in x['tabs'] if t in x['pins']]
r3 = [t for t in x['tabs'] if t not in x['pins']]
r4 = x['active']
r5 = False
return [r0,r1,r2,r3,r4,r5]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd'], 'a', False])], 2: [({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0'], 'a', False])], 3: [({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0', 'background1'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0', 'background1'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0', 'background1'], 'a', False])], 4: [({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0', 'background1', 'background2'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0', 'background1', 'background2'], 'a', False])], 5: [({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 3, 'active': 'a'}, [2, 3, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 0, 'active': 'q'}, [2, 2, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'q', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p'], 'new': 'c', 'requested': 0, 'active': 'a'}, [1, 1, ['p'], ['q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 4, 'active': 'a'}, [2, 4, ['p', 'q'], ['a', 'b', 'background0', 'background1', 'background2', 'background3'], 'a', False]), ({'tabs': ['p', 'q', 'a', 'b', 'd', 'background0', 'background1', 'background2', 'background3'], 'pins': ['p', 'q'], 'new': 'c', 'requested': 1, 'active': 'a'}, [2, 2, ['p', 'q'], ['a', 'b', 'd', 'background0', 'background1', 'background2', 'background3'], 'a', False])]}
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 | [2, 2, ['p', 'q'], ['a', 'b'], 'a', False] | [2, 2, ['p', 'q'], ['a', 'b'], 'a', False] | Passed |
| workspace regression 1 | [2, 3, ['p', 'q'], ['a', 'b'], 'a', False] | [2, 3, ['p', 'q'], ['a', 'b'], 'a', False] | Passed |
| workspace regression 2 | [2, 2, ['p', 'q'], ['a', 'b'], 'q', False] | [2, 2, ['p', 'q'], ['a', 'b'], 'q', False] | Passed |
| workspace regression 3 | [1, 1, ['p'], ['q', 'a', 'b'], 'a', False] | [1, 1, ['p'], ['q', 'a', 'b'], 'a', False] | Passed |
| workspace regression 4 | [2, 4, ['p', 'q'], ['a', 'b'], 'a', False] | [2, 4, ['p', 'q'], ['a', 'b'], 'a', False] | Passed |
| workspace regression 5 | [2, 2, ['p', 'q'], ['a', 'b', 'd'], 'a', False] | [2, 2, ['p', 'q'], ['a', 'b', 'd'], 'a', False] | Passed |
SHA-256 / 2f836f8d2a8f0102afe20c67d445368e52a64406c23da5c6cb449ce7f00420cd
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:40.889391+00:00.
Case digest / 1cc2110890e6ce5d1bb9426760e469d498303f0ca9b63cf9f49cf9eba5157271