FAILURE MAP
← Case archive

FA-33321 / Menu interactions / Open access

Unused radial sector wraps onto an existing command · case 01

Unused radial sector wraps onto an existing command.

Verified by executionVariant 1 · 7 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The radial-menu-hit model applies `p['commands'][p['sector']%len(p['commands'])]` at its empty-sector operation instead of the stipulated transformation.

VERIFIED REPAIR

Apply `p['commands'][p['sector']] if p['sector']<len(p['commands']) else None` at empty-sector.

Unsuccessful approach: The attempted repair `p['commands'][-1]` still violates the empty-sector oracle.

Case contract

A radial menu has half-open angular sectors, an inactive central disk and a bounded outer radius; only displayed command sectors are hittable.

Why this case matters

Cascading and context menus require coherent command and session state as content changes.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
import unicodedata
N = 1
observations = []
def solve(action, p):
    if action == 'center':
        return None if p['radius']<p['inner'] else 'ring'
    if action == 'outer':
        return p['radius']<=p['outer']
    if action == 'angle':
        return (p['degrees']-p['rotation'])%360
    if action == 'sector':
        return int(p['angle']//(360/p['count']))
    if action == 'empty-sector':
        return p['commands'][p['sector']%len(p['commands'])]
    if action == 'gap':
        return p['local']>=p['gap']/2 and p['local']<p['width']-p['gap']/2
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('center contract', solve('center', {'radius':N,'inner':N+2}), None)
check('outer contract', solve('outer', {'radius':N+10,'outer':N+9}), False)
check('angle contract', solve('angle', {'degrees':N+30,'rotation':20}), N+10)
check('sector contract', solve('sector', {'angle':80+N,'count':4}), 0)
check('empty-sector contract', solve('empty-sector', {'commands':[N,N+1],'sector':3}), None)
check('gap contract', solve('gap', {'local':N/10,'gap':4,'width':90}), False)
check('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})
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 fixtureActualExpectedOutcome
center contractNoneNonePassed
outer contractFalseFalsePassed
angle contract1111Passed
sector contract00Passed
empty-sector contract2NoneFailed
gap contractFalseFalsePassed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 9691348eac0475f9567c03a4c648c93ac4a14b2dddcf3f70c982724b6cdfbcac

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
import unicodedata
N = 1
observations = []
def solve(action, p):
    if action == 'center':
        return None if p['radius']<p['inner'] else 'ring'
    if action == 'outer':
        return p['radius']<=p['outer']
    if action == 'angle':
        return (p['degrees']-p['rotation'])%360
    if action == 'sector':
        return int(p['angle']//(360/p['count']))
    if action == 'empty-sector':
        return p['commands'][-1]
    if action == 'gap':
        return p['local']>=p['gap']/2 and p['local']<p['width']-p['gap']/2
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('center contract', solve('center', {'radius':N,'inner':N+2}), None)
check('outer contract', solve('outer', {'radius':N+10,'outer':N+9}), False)
check('angle contract', solve('angle', {'degrees':N+30,'rotation':20}), N+10)
check('sector contract', solve('sector', {'angle':80+N,'count':4}), 0)
check('empty-sector contract', solve('empty-sector', {'commands':[N,N+1],'sector':3}), None)
check('gap contract', solve('gap', {'local':N/10,'gap':4,'width':90}), False)
check('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})
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 fixtureActualExpectedOutcome
center contractNoneNonePassed
outer contractFalseFalsePassed
angle contract1111Passed
sector contract00Passed
empty-sector contract2NoneFailed
gap contractFalseFalsePassed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / c1c01e50d92cb526a11b74836264280410d9932857928f4d56413c2e5db68b4f

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json
import math
import unicodedata
N = 1
observations = []
def solve(action, p):
    if action == 'center':
        return None if p['radius']<p['inner'] else 'ring'
    if action == 'outer':
        return p['radius']<=p['outer']
    if action == 'angle':
        return (p['degrees']-p['rotation'])%360
    if action == 'sector':
        return int(p['angle']//(360/p['count']))
    if action == 'empty-sector':
        return p['commands'][p['sector']] if p['sector']<len(p['commands']) else None
    if action == 'gap':
        return p['local']>=p['gap']/2 and p['local']<p['width']-p['gap']/2
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('center contract', solve('center', {'radius':N,'inner':N+2}), None)
check('outer contract', solve('outer', {'radius':N+10,'outer':N+9}), False)
check('angle contract', solve('angle', {'degrees':N+30,'rotation':20}), N+10)
check('sector contract', solve('sector', {'angle':80+N,'count':4}), 0)
check('empty-sector contract', solve('empty-sector', {'commands':[N,N+1],'sector':3}), None)
check('gap contract', solve('gap', {'local':N/10,'gap':4,'width':90}), False)
check('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})
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 fixtureActualExpectedOutcome
center contractNoneNonePassed
outer contractFalseFalsePassed
angle contract1111Passed
sector contract00Passed
empty-sector contractNoneNonePassed
gap contractFalseFalsePassed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 3c277bc3a44c873d7e4c62420912c9bd779b6a52d5dcad71e6abb24396bee9dd

Verification & scope

Offline supplied-valid-payload model; excludes DOM, keyboard, focus, selection, announcements and browser conformance. 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:21.195014+00:00.

Case digest / 02eafc22986469570a98817990a53dc3a5cc47610d5373dd2ab25020155f223c