FA-32671 / Menu interactions / Open access
Left-opening submenu intent tests movement in the wrong direction · case 01
Left-opening submenu intent tests movement in the wrong direction.
ROOT CAUSE
The pointer-intent-corridor model applies `p['x']>p['previous']` at its direction operation instead of the stipulated transformation.
THE FAILURE
The pointer-intent-corridor model applies `p['x']>p['previous']` at its direction operation instead of the stipulated transformation.
Unsuccessful approach: The attempted repair `p['x']!=p['previous']` still violates the direction 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']
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| direction contract | False | True | Failed |
| expiry contract | False | False | Passed |
| vertical-band contract | False | False | Passed |
| pointer-owner contract | False | False | Passed |
| deadline contract | 11 | 11 | Passed |
| distance contract | False | False | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
| away from left submenu | True | False | Failed |
| below submenu corridor | False | False | Passed |
SHA-256 / 67dce9c50a592cdfcb606c86fe3addbccb4f5787b90577efc1519ccb4110aa78
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']
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| direction contract | True | True | Passed |
| expiry contract | False | False | Passed |
| vertical-band contract | False | False | Passed |
| pointer-owner contract | False | False | Passed |
| deadline contract | 11 | 11 | Passed |
| distance contract | False | False | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
| away from left submenu | True | False | Failed |
| below submenu corridor | False | False | Passed |
SHA-256 / ce09937a12de2be0679575015644c1ef472ce5c4543795bc32c839f491a5504d
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 / 924d8b21e61956fce34fa00301698cf1443852859524d402734937d9c7c33a1d