FAILURE MAP
← Case archive

FA-33311 / Menu interactions / Open access

Rotated radial menu hit testing ignores its displayed rotation · case 01

Rotated radial menu hit testing ignores its displayed rotation.

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

ROOT CAUSE

The radial-menu-hit model applies `p['degrees']%360` at its angle operation instead of the stipulated transformation.

THE FAILURE

The radial-menu-hit model applies `p['degrees']%360` at its angle operation instead of the stipulated transformation.

Unsuccessful approach: The attempted repair `(p['degrees']+p['rotation'])%360` still violates the angle 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']%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 contract3111Failed
sector contract00Passed
empty-sector contractNoneNonePassed
gap contractFalseFalsePassed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 7b97b993dc6b4e11bb4a40ca26e05b4e134edd1b4aadeb30f629e286fda139c3

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

SHA-256 / 5c4022f9172eabb5e5a6a15fcfcbe7e758f48c16768ab1f3ba9a4be4f09b63f7

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 7 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

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

Case digest / 110f1d1ac5eddd431a6d13db676d2aa2b4745b56192248846e00f8259b260aa7