FA-33281 / Menu interactions / Open access
Compact menu sheet shows ancestor pages alongside the active page · case 01
Compact menu sheet shows ancestor pages alongside the active page.
ROOT CAUSE
The touch-submenu-sheet model applies `p` at its visible operation instead of the stipulated transformation.
THE FAILURE
The touch-submenu-sheet model applies `p` at its visible operation instead of the stipulated transformation.
Unsuccessful approach: The attempted repair `p[:1]` still violates the visible oracle.
Case contract
A compact touch menu displays one submenu sheet at a time with a reversible page stack; dismissal removes the entire stack and back preserves the context.
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 == 'push':
return p['stack']+[p['page']]
if action == 'back':
return p[:-1] if len(p)>1 else p
if action == 'visible':
return p
if action == 'dismiss':
return []
if action == 'back-context':
return {'stack':p['stack'][:-1],'context':p['context']}
if action == 'root-back':
return 'dismiss' if len(p)==1 else 'pop'
return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('push contract', solve('push', {'stack':['root'],'page':'child'+str(N)}), ['root','child'+str(N)])
check('back contract', solve('back', ['root','child'+str(N)]), ['root'])
check('visible contract', solve('visible', ['root','child'+str(N)]), ['child'+str(N)])
check('dismiss contract', solve('dismiss', ['root','a','b'+str(N)]), [])
check('back-context contract', solve('back-context', {'stack':['r','a'],'context':N,'ambient':N+1}), {'stack':['r'],'context':N})
check('root-back contract', solve('root-back', ['root'+str(N)]), 'dismiss')
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| push contract | ['root', 'child1'] | ['root', 'child1'] | Passed |
| back contract | ['root'] | ['root'] | Passed |
| visible contract | ['root', 'child1'] | ['child1'] | Failed |
| dismiss contract | [] | [] | Passed |
| back-context contract | {'context': 1, 'stack': ['r']} | {'context': 1, 'stack': ['r']} | Passed |
| root-back contract | dismiss | dismiss | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
SHA-256 / adf67f017a843cfae9bfa9e1d4fbcbfbbb26b038daf328a74e4c747b8007145b
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 == 'push':
return p['stack']+[p['page']]
if action == 'back':
return p[:-1] if len(p)>1 else p
if action == 'visible':
return p[:1]
if action == 'dismiss':
return []
if action == 'back-context':
return {'stack':p['stack'][:-1],'context':p['context']}
if action == 'root-back':
return 'dismiss' if len(p)==1 else 'pop'
return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('push contract', solve('push', {'stack':['root'],'page':'child'+str(N)}), ['root','child'+str(N)])
check('back contract', solve('back', ['root','child'+str(N)]), ['root'])
check('visible contract', solve('visible', ['root','child'+str(N)]), ['child'+str(N)])
check('dismiss contract', solve('dismiss', ['root','a','b'+str(N)]), [])
check('back-context contract', solve('back-context', {'stack':['r','a'],'context':N,'ambient':N+1}), {'stack':['r'],'context':N})
check('root-back contract', solve('root-back', ['root'+str(N)]), 'dismiss')
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| push contract | ['root', 'child1'] | ['root', 'child1'] | Passed |
| back contract | ['root'] | ['root'] | Passed |
| visible contract | ['root'] | ['child1'] | Failed |
| dismiss contract | [] | [] | Passed |
| back-context contract | {'context': 1, 'stack': ['r']} | {'context': 1, 'stack': ['r']} | Passed |
| root-back contract | dismiss | dismiss | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
SHA-256 / d7f4a9ace875066b1394b790064055562ed093a8bc8d9bc09cb702d1da713355
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.001378+00:00.
Case digest / 0f4d31cde783925cf3693909e5d4298de96893a8541b645ca01acd405b0ccf49