FA-32401 / Menu interactions / Open access
Context command re-reads the hovered document target · case 01
Context command re-reads the hovered document target.
ROOT CAUSE
The context-capture model applies `p['hover']` at its target operation instead of the stipulated transformation.
THE FAILURE
The context-capture model applies `p['hover']` at its target operation instead of the stipulated transformation.
Unsuccessful approach: The attempted repair `p['active']` still violates the target oracle.
Case contract
A context-menu invocation snapshots target, document coordinates, revision, capabilities, document objects and parsing locale.
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 == 'target':
return p['hover']
if action == 'point':
return [p['client'][0]+p['scroll'][0],p['client'][1]+p['scroll'][1]]
if action == 'revision':
return p['snapshot']==p['current']
if action == 'capabilities':
return sorted(set(p['captured']) & set(p['current']))
if action == 'objects':
return list(p['captured'])
if action == 'locale':
return p['opened']
return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('target contract', solve('target', {'captured':'doc'+str(N),'hover':'other','active':'third'}), 'doc'+str(N))
check('point contract', solve('point', {'client':[N,2*N],'scroll':[3*N,4*N]}), [4*N,6*N])
check('revision contract', solve('revision', {'snapshot':N,'current':N+1}), False)
check('capabilities contract', solve('capabilities', {'captured':['read','delete'+str(N)],'current':['read','share']}), ['read'])
check('objects contract', solve('objects', {'captured':['a'+str(N),'b'],'current':['c']}), ['a'+str(N),'b'])
check('locale contract', solve('locale', {'opened':'locale'+str(N),'ambient':'other','default':'default'}), 'locale'+str(N))
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 |
|---|---|---|---|
| target contract | other | doc1 | Failed |
| point contract | [4, 6] | [4, 6] | Passed |
| revision contract | False | False | Passed |
| capabilities contract | ['read'] | ['read'] | Passed |
| objects contract | ['a1', 'b'] | ['a1', 'b'] | Passed |
| locale contract | locale1 | locale1 | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
SHA-256 / 81618f323b272a649d1540967a9f99903ba01a03f0e7be7f88bb26aed544c685
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 == 'target':
return p['active']
if action == 'point':
return [p['client'][0]+p['scroll'][0],p['client'][1]+p['scroll'][1]]
if action == 'revision':
return p['snapshot']==p['current']
if action == 'capabilities':
return sorted(set(p['captured']) & set(p['current']))
if action == 'objects':
return list(p['captured'])
if action == 'locale':
return p['opened']
return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('target contract', solve('target', {'captured':'doc'+str(N),'hover':'other','active':'third'}), 'doc'+str(N))
check('point contract', solve('point', {'client':[N,2*N],'scroll':[3*N,4*N]}), [4*N,6*N])
check('revision contract', solve('revision', {'snapshot':N,'current':N+1}), False)
check('capabilities contract', solve('capabilities', {'captured':['read','delete'+str(N)],'current':['read','share']}), ['read'])
check('objects contract', solve('objects', {'captured':['a'+str(N),'b'],'current':['c']}), ['a'+str(N),'b'])
check('locale contract', solve('locale', {'opened':'locale'+str(N),'ambient':'other','default':'default'}), 'locale'+str(N))
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 |
|---|---|---|---|
| target contract | third | doc1 | Failed |
| point contract | [4, 6] | [4, 6] | Passed |
| revision contract | False | False | Passed |
| capabilities contract | ['read'] | ['read'] | Passed |
| objects contract | ['a1', 'b'] | ['a1', 'b'] | Passed |
| locale contract | locale1 | locale1 | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
SHA-256 / e092c9814b7f20befc6f4a89ab05b05c65e394f102e0cd2354721e69bf2ae254
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:12.127310+00:00.
Case digest / 540f14a62d3f52ef3dc165c899023a9a8c92651ef48a569e03c39e58c4151b3c