FA-36446 / Tab interfaces / Open access
Vertical strip layout: close button x · case 01
The tab workspace reports an incorrect close button x.
ROOT CAUSE
The close button x decision uses x['pane_width']-x['padding']-x['button_width'] instead of x['strip_width']-x['padding']-x['button_width'].
THE FAILURE
The close button x decision uses x['pane_width']-x['padding']-x['button_width'] instead of x['strip_width']-x['padding']-x['button_width'].
Unsuccessful approach: The partial repair x['strip_width']-x['button_width'] still violates a workspace boundary or normal case.
Case contract
Vertical tab strips consume pane width rather than height, reserve group-header rows, size scroll content from row heights and keep close buttons aligned to the strip trailing edge.
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 = max(0,x['pane_width']-x['strip_width'])
r1 = x['pane_height']
r2 = x['tabs_count']*x['row_height']
r3 = x['headers']*x['header_height']
r4 = max(0,x['tabs_count']*x['row_height']+x['headers']*x['header_height']-x['pane_height'])
r5 = x['pane_width']-x['padding']-x['button_width']
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: [({'pane_width': 500, 'pane_height': 400, 'strip_width': 120, 'row_height': 28, 'tabs_count': 8, 'headers': 2, 'header_height': 20, 'button_width': 16, 'padding': 6}, [380, 400, 224, 40, 0, 98]), ({'pane_width': 500, 'pane_height': 400, 'strip_width': 120, 'row_height': 28, 'tabs_count': 8, 'headers': 0, 'header_height': 20, 'button_width': 16, 'padding': 6}, [380, 400, 224, 0, 0, 98]), ({'pane_width': 500, 'pane_height': 400, 'strip_width': 120, 'row_height': 28, 'tabs_count': 20, 'headers': 2, 'header_height': 20, 'button_width': 16, 'padding': 6}, [380, 400, 560, 40, 200, 98]), ({'pane_width': 500, 'pane_height': 400, 'strip_width': 80, 'row_height': 28, 'tabs_count': 8, 'headers': 2, 'header_height': 20, 'button_width': 16, 'padding': 6}, [420, 400, 224, 40, 0, 58]), ({'pane_width': 500, 'pane_height': 400, 'strip_width': 120, 'row_height': 28, 'tabs_count': 8, 'headers': 2, 'header_height': 20, 'button_width': 16, 'padding': 0}, [380, 400, 224, 40, 0, 104]), ({'pane_width': 500, 'pane_height': 400, 'strip_width': 120, 'row_height': 28, 'tabs_count': 0, 'headers': 2, 'header_height': 20, 'button_width': 16, 'padding': 6}, [380, 400, 0, 40, 0, 98])], 2: [({'pane_width': 1000, 'pane_height': 800, 'strip_width': 240, 'row_height': 56, 'tabs_count': 8, 'headers': 2, 'header_height': 40, 'button_width': 32, 'padding': 12}, [760, 800, 448, 80, 0, 196]), ({'pane_width': 1000, 'pane_height': 800, 'strip_width': 240, 'row_height': 56, 'tabs_count': 8, 'headers': 0, 'header_height': 40, 'button_width': 32, 'padding': 12}, [760, 800, 448, 0, 0, 196]), ({'pane_width': 1000, 'pane_height': 800, 'strip_width': 240, 'row_height': 56, 'tabs_count': 20, 'headers': 2, 'header_height': 40, 'button_width': 32, 'padding': 12}, [760, 800, 1120, 80, 400, 196]), ({'pane_width': 1000, 'pane_height': 800, 'strip_width': 160, 'row_height': 56, 'tabs_count': 8, 'headers': 2, 'header_height': 40, 'button_width': 32, 'padding': 12}, [840, 800, 448, 80, 0, 116]), ({'pane_width': 1000, 'pane_height': 800, 'strip_width': 240, 'row_height': 56, 'tabs_count': 8, 'headers': 2, 'header_height': 40, 'button_width': 32, 'padding': 0}, [760, 800, 448, 80, 0, 208]), ({'pane_width': 1000, 'pane_height': 800, 'strip_width': 240, 'row_height': 56, 'tabs_count': 0, 'headers': 2, 'header_height': 40, 'button_width': 32, 'padding': 12}, [760, 800, 0, 80, 0, 196])], 3: [({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 360, 'row_height': 84, 'tabs_count': 8, 'headers': 2, 'header_height': 60, 'button_width': 48, 'padding': 18}, [1140, 1200, 672, 120, 0, 294]), ({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 360, 'row_height': 84, 'tabs_count': 8, 'headers': 0, 'header_height': 60, 'button_width': 48, 'padding': 18}, [1140, 1200, 672, 0, 0, 294]), ({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 360, 'row_height': 84, 'tabs_count': 20, 'headers': 2, 'header_height': 60, 'button_width': 48, 'padding': 18}, [1140, 1200, 1680, 120, 600, 294]), ({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 240, 'row_height': 84, 'tabs_count': 8, 'headers': 2, 'header_height': 60, 'button_width': 48, 'padding': 18}, [1260, 1200, 672, 120, 0, 174]), ({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 360, 'row_height': 84, 'tabs_count': 8, 'headers': 2, 'header_height': 60, 'button_width': 48, 'padding': 0}, [1140, 1200, 672, 120, 0, 312]), ({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 360, 'row_height': 84, 'tabs_count': 0, 'headers': 2, 'header_height': 60, 'button_width': 48, 'padding': 18}, [1140, 1200, 0, 120, 0, 294])], 4: [({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 480, 'row_height': 112, 'tabs_count': 8, 'headers': 2, 'header_height': 80, 'button_width': 64, 'padding': 24}, [1520, 1600, 896, 160, 0, 392]), ({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 480, 'row_height': 112, 'tabs_count': 8, 'headers': 0, 'header_height': 80, 'button_width': 64, 'padding': 24}, [1520, 1600, 896, 0, 0, 392]), ({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 480, 'row_height': 112, 'tabs_count': 20, 'headers': 2, 'header_height': 80, 'button_width': 64, 'padding': 24}, [1520, 1600, 2240, 160, 800, 392]), ({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 320, 'row_height': 112, 'tabs_count': 8, 'headers': 2, 'header_height': 80, 'button_width': 64, 'padding': 24}, [1680, 1600, 896, 160, 0, 232]), ({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 480, 'row_height': 112, 'tabs_count': 8, 'headers': 2, 'header_height': 80, 'button_width': 64, 'padding': 0}, [1520, 1600, 896, 160, 0, 416]), ({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 480, 'row_height': 112, 'tabs_count': 0, 'headers': 2, 'header_height': 80, 'button_width': 64, 'padding': 24}, [1520, 1600, 0, 160, 0, 392])], 5: [({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 600, 'row_height': 140, 'tabs_count': 8, 'headers': 2, 'header_height': 100, 'button_width': 80, 'padding': 30}, [1900, 2000, 1120, 200, 0, 490]), ({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 600, 'row_height': 140, 'tabs_count': 8, 'headers': 0, 'header_height': 100, 'button_width': 80, 'padding': 30}, [1900, 2000, 1120, 0, 0, 490]), ({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 600, 'row_height': 140, 'tabs_count': 20, 'headers': 2, 'header_height': 100, 'button_width': 80, 'padding': 30}, [1900, 2000, 2800, 200, 1000, 490]), ({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 400, 'row_height': 140, 'tabs_count': 8, 'headers': 2, 'header_height': 100, 'button_width': 80, 'padding': 30}, [2100, 2000, 1120, 200, 0, 290]), ({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 600, 'row_height': 140, 'tabs_count': 8, 'headers': 2, 'header_height': 100, 'button_width': 80, 'padding': 0}, [1900, 2000, 1120, 200, 0, 520]), ({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 600, 'row_height': 140, 'tabs_count': 0, 'headers': 2, 'header_height': 100, 'button_width': 80, 'padding': 30}, [1900, 2000, 0, 200, 0, 490])]}
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 | [380, 400, 224, 40, 0, 478] | [380, 400, 224, 40, 0, 98] | Failed |
| workspace regression 1 | [380, 400, 224, 0, 0, 478] | [380, 400, 224, 0, 0, 98] | Failed |
| workspace regression 2 | [380, 400, 560, 40, 200, 478] | [380, 400, 560, 40, 200, 98] | Failed |
| workspace regression 3 | [420, 400, 224, 40, 0, 478] | [420, 400, 224, 40, 0, 58] | Failed |
| workspace regression 4 | [380, 400, 224, 40, 0, 484] | [380, 400, 224, 40, 0, 104] | Failed |
| workspace regression 5 | [380, 400, 0, 40, 0, 478] | [380, 400, 0, 40, 0, 98] | Failed |
SHA-256 / c723832c4dd665e108fdb9c34d69ecbfb2c4fc5c4e301e6d1b66fbcd31120d4d
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
r0 = max(0,x['pane_width']-x['strip_width'])
r1 = x['pane_height']
r2 = x['tabs_count']*x['row_height']
r3 = x['headers']*x['header_height']
r4 = max(0,x['tabs_count']*x['row_height']+x['headers']*x['header_height']-x['pane_height'])
r5 = x['strip_width']-x['button_width']
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: [({'pane_width': 500, 'pane_height': 400, 'strip_width': 120, 'row_height': 28, 'tabs_count': 8, 'headers': 2, 'header_height': 20, 'button_width': 16, 'padding': 6}, [380, 400, 224, 40, 0, 98]), ({'pane_width': 500, 'pane_height': 400, 'strip_width': 120, 'row_height': 28, 'tabs_count': 8, 'headers': 0, 'header_height': 20, 'button_width': 16, 'padding': 6}, [380, 400, 224, 0, 0, 98]), ({'pane_width': 500, 'pane_height': 400, 'strip_width': 120, 'row_height': 28, 'tabs_count': 20, 'headers': 2, 'header_height': 20, 'button_width': 16, 'padding': 6}, [380, 400, 560, 40, 200, 98]), ({'pane_width': 500, 'pane_height': 400, 'strip_width': 80, 'row_height': 28, 'tabs_count': 8, 'headers': 2, 'header_height': 20, 'button_width': 16, 'padding': 6}, [420, 400, 224, 40, 0, 58]), ({'pane_width': 500, 'pane_height': 400, 'strip_width': 120, 'row_height': 28, 'tabs_count': 8, 'headers': 2, 'header_height': 20, 'button_width': 16, 'padding': 0}, [380, 400, 224, 40, 0, 104]), ({'pane_width': 500, 'pane_height': 400, 'strip_width': 120, 'row_height': 28, 'tabs_count': 0, 'headers': 2, 'header_height': 20, 'button_width': 16, 'padding': 6}, [380, 400, 0, 40, 0, 98])], 2: [({'pane_width': 1000, 'pane_height': 800, 'strip_width': 240, 'row_height': 56, 'tabs_count': 8, 'headers': 2, 'header_height': 40, 'button_width': 32, 'padding': 12}, [760, 800, 448, 80, 0, 196]), ({'pane_width': 1000, 'pane_height': 800, 'strip_width': 240, 'row_height': 56, 'tabs_count': 8, 'headers': 0, 'header_height': 40, 'button_width': 32, 'padding': 12}, [760, 800, 448, 0, 0, 196]), ({'pane_width': 1000, 'pane_height': 800, 'strip_width': 240, 'row_height': 56, 'tabs_count': 20, 'headers': 2, 'header_height': 40, 'button_width': 32, 'padding': 12}, [760, 800, 1120, 80, 400, 196]), ({'pane_width': 1000, 'pane_height': 800, 'strip_width': 160, 'row_height': 56, 'tabs_count': 8, 'headers': 2, 'header_height': 40, 'button_width': 32, 'padding': 12}, [840, 800, 448, 80, 0, 116]), ({'pane_width': 1000, 'pane_height': 800, 'strip_width': 240, 'row_height': 56, 'tabs_count': 8, 'headers': 2, 'header_height': 40, 'button_width': 32, 'padding': 0}, [760, 800, 448, 80, 0, 208]), ({'pane_width': 1000, 'pane_height': 800, 'strip_width': 240, 'row_height': 56, 'tabs_count': 0, 'headers': 2, 'header_height': 40, 'button_width': 32, 'padding': 12}, [760, 800, 0, 80, 0, 196])], 3: [({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 360, 'row_height': 84, 'tabs_count': 8, 'headers': 2, 'header_height': 60, 'button_width': 48, 'padding': 18}, [1140, 1200, 672, 120, 0, 294]), ({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 360, 'row_height': 84, 'tabs_count': 8, 'headers': 0, 'header_height': 60, 'button_width': 48, 'padding': 18}, [1140, 1200, 672, 0, 0, 294]), ({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 360, 'row_height': 84, 'tabs_count': 20, 'headers': 2, 'header_height': 60, 'button_width': 48, 'padding': 18}, [1140, 1200, 1680, 120, 600, 294]), ({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 240, 'row_height': 84, 'tabs_count': 8, 'headers': 2, 'header_height': 60, 'button_width': 48, 'padding': 18}, [1260, 1200, 672, 120, 0, 174]), ({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 360, 'row_height': 84, 'tabs_count': 8, 'headers': 2, 'header_height': 60, 'button_width': 48, 'padding': 0}, [1140, 1200, 672, 120, 0, 312]), ({'pane_width': 1500, 'pane_height': 1200, 'strip_width': 360, 'row_height': 84, 'tabs_count': 0, 'headers': 2, 'header_height': 60, 'button_width': 48, 'padding': 18}, [1140, 1200, 0, 120, 0, 294])], 4: [({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 480, 'row_height': 112, 'tabs_count': 8, 'headers': 2, 'header_height': 80, 'button_width': 64, 'padding': 24}, [1520, 1600, 896, 160, 0, 392]), ({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 480, 'row_height': 112, 'tabs_count': 8, 'headers': 0, 'header_height': 80, 'button_width': 64, 'padding': 24}, [1520, 1600, 896, 0, 0, 392]), ({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 480, 'row_height': 112, 'tabs_count': 20, 'headers': 2, 'header_height': 80, 'button_width': 64, 'padding': 24}, [1520, 1600, 2240, 160, 800, 392]), ({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 320, 'row_height': 112, 'tabs_count': 8, 'headers': 2, 'header_height': 80, 'button_width': 64, 'padding': 24}, [1680, 1600, 896, 160, 0, 232]), ({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 480, 'row_height': 112, 'tabs_count': 8, 'headers': 2, 'header_height': 80, 'button_width': 64, 'padding': 0}, [1520, 1600, 896, 160, 0, 416]), ({'pane_width': 2000, 'pane_height': 1600, 'strip_width': 480, 'row_height': 112, 'tabs_count': 0, 'headers': 2, 'header_height': 80, 'button_width': 64, 'padding': 24}, [1520, 1600, 0, 160, 0, 392])], 5: [({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 600, 'row_height': 140, 'tabs_count': 8, 'headers': 2, 'header_height': 100, 'button_width': 80, 'padding': 30}, [1900, 2000, 1120, 200, 0, 490]), ({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 600, 'row_height': 140, 'tabs_count': 8, 'headers': 0, 'header_height': 100, 'button_width': 80, 'padding': 30}, [1900, 2000, 1120, 0, 0, 490]), ({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 600, 'row_height': 140, 'tabs_count': 20, 'headers': 2, 'header_height': 100, 'button_width': 80, 'padding': 30}, [1900, 2000, 2800, 200, 1000, 490]), ({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 400, 'row_height': 140, 'tabs_count': 8, 'headers': 2, 'header_height': 100, 'button_width': 80, 'padding': 30}, [2100, 2000, 1120, 200, 0, 290]), ({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 600, 'row_height': 140, 'tabs_count': 8, 'headers': 2, 'header_height': 100, 'button_width': 80, 'padding': 0}, [1900, 2000, 1120, 200, 0, 520]), ({'pane_width': 2500, 'pane_height': 2000, 'strip_width': 600, 'row_height': 140, 'tabs_count': 0, 'headers': 2, 'header_height': 100, 'button_width': 80, 'padding': 30}, [1900, 2000, 0, 200, 0, 490])]}
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 | [380, 400, 224, 40, 0, 104] | [380, 400, 224, 40, 0, 98] | Failed |
| workspace regression 1 | [380, 400, 224, 0, 0, 104] | [380, 400, 224, 0, 0, 98] | Failed |
| workspace regression 2 | [380, 400, 560, 40, 200, 104] | [380, 400, 560, 40, 200, 98] | Failed |
| workspace regression 3 | [420, 400, 224, 40, 0, 64] | [420, 400, 224, 40, 0, 58] | Failed |
| workspace regression 4 | [380, 400, 224, 40, 0, 104] | [380, 400, 224, 40, 0, 104] | Passed |
| workspace regression 5 | [380, 400, 0, 40, 0, 104] | [380, 400, 0, 40, 0, 98] | Failed |
SHA-256 / bba7a87af60d58e394cbf60f9e3f28c963fe912c98ba3e0135543c480d57ceca
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 6 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.
Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.
Member access is invitation-based. Sign in with your invited account to inspect the repair.
Sign in to the archive ↗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:51.426120+00:00.
Case digest / cd8184f2219125eec24aa820baa2f8771fde1c33677f7a8a227858a3821b74a7