FAILURE MAP
← Case archive

FA-32696 / Menu interactions / Open access

Moving away from a submenu extends its pointer grace period · case 01

Moving away from a submenu extends its pointer grace period.

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

ROOT CAUSE

The pointer-intent-corridor model applies `p['x']!=p['previous']` at its distance operation instead of the stipulated transformation.

THE FAILURE

The pointer-intent-corridor model applies `p['x']!=p['previous']` at its distance operation instead of the stipulated transformation.

Unsuccessful approach: The attempted repair `abs(p['edge']-p['x'])>abs(p['edge']-p['previous'])` still violates the distance oracle.

Case contract

Submenu pointer intent uses signed direction, bounded time and a declared inclusive triangular corridor; unrelated pointer streams cannot renew it.

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 == 'direction':
        return (p['x']-p['previous'])*p['side']>0
    if action == 'expiry':
        return p['now']<p['deadline']
    if action == 'vertical-band':
        return p['top']<=p['y']<=p['bottom']
    if action == 'pointer-owner':
        return p['pointer']==p['owner']
    if action == 'deadline':
        return p['started']+p['budget']
    if action == 'distance':
        return p['x']!=p['previous']
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('direction contract', solve('direction', {'x':N,'previous':N+2,'side':-1}), True)
check('expiry contract', solve('expiry', {'now':N+10,'deadline':N+10}), False)
check('vertical-band contract', solve('vertical-band', {'top':N+1,'bottom':N+4,'y':N}), False)
check('pointer-owner contract', solve('pointer-owner', {'pointer':N+1,'owner':N}), False)
check('deadline contract', solve('deadline', {'started':N,'now':N+5,'budget':10}), N+10)
check('distance contract', solve('distance', {'edge':N+10,'x':N,'previous':N+2}), False)
check('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})
check('away from left submenu',solve('direction',{'x':N+2,'previous':N,'side':-1}),False)
check('below submenu corridor',solve('vertical-band',{'top':N,'bottom':N+3,'y':N+4}),False)
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
direction contractTrueTruePassed
expiry contractFalseFalsePassed
vertical-band contractFalseFalsePassed
pointer-owner contractFalseFalsePassed
deadline contract1111Passed
distance contractTrueFalseFailed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed
away from left submenuFalseFalsePassed
below submenu corridorFalseFalsePassed

SHA-256 / 5cc9a65471457f71831c47569d5244586144b4c092e70b36bfbe07e615ffb029

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 == 'direction':
        return (p['x']-p['previous'])*p['side']>0
    if action == 'expiry':
        return p['now']<p['deadline']
    if action == 'vertical-band':
        return p['top']<=p['y']<=p['bottom']
    if action == 'pointer-owner':
        return p['pointer']==p['owner']
    if action == 'deadline':
        return p['started']+p['budget']
    if action == 'distance':
        return abs(p['edge']-p['x'])>abs(p['edge']-p['previous'])
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('direction contract', solve('direction', {'x':N,'previous':N+2,'side':-1}), True)
check('expiry contract', solve('expiry', {'now':N+10,'deadline':N+10}), False)
check('vertical-band contract', solve('vertical-band', {'top':N+1,'bottom':N+4,'y':N}), False)
check('pointer-owner contract', solve('pointer-owner', {'pointer':N+1,'owner':N}), False)
check('deadline contract', solve('deadline', {'started':N,'now':N+5,'budget':10}), N+10)
check('distance contract', solve('distance', {'edge':N+10,'x':N,'previous':N+2}), False)
check('unknown operation', solve('unknown', {}), {'error': 'unsupported menu operation'})
check('away from left submenu',solve('direction',{'x':N+2,'previous':N,'side':-1}),False)
check('below submenu corridor',solve('vertical-band',{'top':N,'bottom':N+3,'y':N+4}),False)
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
direction contractTrueTruePassed
expiry contractFalseFalsePassed
vertical-band contractFalseFalsePassed
pointer-owner contractFalseFalsePassed
deadline contract1111Passed
distance contractTrueFalseFailed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed
away from left submenuFalseFalsePassed
below submenu corridorFalseFalsePassed

SHA-256 / 3fa6601c6229c5f5d6b1486e9e500742f4ffe4ebba153619cead47075666aaf2

HELD IN THE MEMBER ARCHIVE

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

This mechanism has 9 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:14.764545+00:00.

Case digest / 9e40839e8936920820bde9277ca8d6a1b7d5e79a61a01928706071809131c539