FAILURE MAP
← Case archive

FA-33301 / Menu interactions / Open access

Radial menu center invokes a ring command · case 01

Radial menu center invokes a ring command.

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

ROOT CAUSE

The radial-menu-hit model applies `'ring'` at its center operation instead of the stipulated transformation.

VERIFIED REPAIR

Apply `None if p['radius']<p['inner'] else 'ring'` at center.

Unsuccessful approach: The attempted repair `None if p['radius']>p['inner'] else 'ring'` still violates the center 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 '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 contractringNoneFailed
outer contractFalseFalsePassed
angle contract1111Passed
sector contract00Passed
empty-sector contractNoneNonePassed
gap contractFalseFalsePassed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 4f051a0c5b39bfc621328b2060e5b2a578c591dd8ffeffc9eabee0024a13b726

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'][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 contractringNoneFailed
outer contractFalseFalsePassed
angle contract1111Passed
sector contract00Passed
empty-sector contractNoneNonePassed
gap contractFalseFalsePassed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / a61b5cff975e8222db5643abcad0d08c5851db93dd6a1d5c11d2e10d1e5b17ae

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.020657+00:00.

Case digest / 985daed31c54e786c687306e72081a2c041af7404ff165c46b3193702875f817