FA-32861 / Menu interactions / Open access
Menu refresh carries annotations for deleted commands · case 01
Menu refresh carries annotations for deleted commands.
ROOT CAUSE
The menu-snapshot-refresh model applies `p['annotations']` at its annotation operation instead of the stipulated transformation.
THE FAILURE
The menu-snapshot-refresh model applies `p['annotations']` at its annotation operation instead of the stipulated transformation.
Unsuccessful approach: The attempted repair `{}` still violates the annotation oracle.
Case contract
Refreshing an open menu reconciles immutable command IDs, provider revisions and annotations without confusing display positions with identity.
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 == 'retain-live':
return [x for x in p['old'] if x in p['new']]
if action == 'new-order':
return [x for x in p['new'] if x in p['old']]
if action == 'annotation':
return p['annotations']
if action == 'provider-version':
return p['incoming']>p['current']
if action == 'path-valid':
return all(x in p['parents'] and p['parents'][x]==y for y,x in zip(p['chain'],p['chain'][1:]))
if action == 'anchor-id':
return next((i for i,x in enumerate(p['rows']) if x==p['owner']),None)
return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('retain-live contract', solve('retain-live', {'old':[N,N+1],'new':[N+1,N+2]}), [N+1])
check('new-order contract', solve('new-order', {'old':[N,N+1],'new':[N+1,N]}), [N+1,N])
check('annotation contract', solve('annotation', {'new':['a'],'annotations':{'a':N,'gone':N+1}}), {'a':N})
check('provider-version contract', solve('provider-version', {'incoming':N,'current':N}), False)
check('path-valid contract', solve('path-valid', {'chain':['r','a',str(N)],'parents':{'a':'r',str(N):'other'}}), False)
check('anchor-id contract', solve('anchor-id', {'rows':['x','y','owner'+str(N)],'owner':'owner'+str(N),'old_index':1}), 2)
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 |
|---|---|---|---|
| retain-live contract | [2] | [2] | Passed |
| new-order contract | [2, 1] | [2, 1] | Passed |
| annotation contract | {'a': 1, 'gone': 2} | {'a': 1} | Failed |
| provider-version contract | False | False | Passed |
| path-valid contract | False | False | Passed |
| anchor-id contract | 2 | 2 | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
SHA-256 / dc6e584ffcc1f378845ddc1d39e502b26086a302e8755ca99e21624e31675877
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 == 'retain-live':
return [x for x in p['old'] if x in p['new']]
if action == 'new-order':
return [x for x in p['new'] if x in p['old']]
if action == 'annotation':
return {}
if action == 'provider-version':
return p['incoming']>p['current']
if action == 'path-valid':
return all(x in p['parents'] and p['parents'][x]==y for y,x in zip(p['chain'],p['chain'][1:]))
if action == 'anchor-id':
return next((i for i,x in enumerate(p['rows']) if x==p['owner']),None)
return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('retain-live contract', solve('retain-live', {'old':[N,N+1],'new':[N+1,N+2]}), [N+1])
check('new-order contract', solve('new-order', {'old':[N,N+1],'new':[N+1,N]}), [N+1,N])
check('annotation contract', solve('annotation', {'new':['a'],'annotations':{'a':N,'gone':N+1}}), {'a':N})
check('provider-version contract', solve('provider-version', {'incoming':N,'current':N}), False)
check('path-valid contract', solve('path-valid', {'chain':['r','a',str(N)],'parents':{'a':'r',str(N):'other'}}), False)
check('anchor-id contract', solve('anchor-id', {'rows':['x','y','owner'+str(N)],'owner':'owner'+str(N),'old_index':1}), 2)
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 |
|---|---|---|---|
| retain-live contract | [2] | [2] | Passed |
| new-order contract | [2, 1] | [2, 1] | Passed |
| annotation contract | {} | {'a': 1} | Failed |
| provider-version contract | False | False | Passed |
| path-valid contract | False | False | Passed |
| anchor-id contract | 2 | 2 | Passed |
| unknown operation | {'error': 'unsupported menu operation'} | {'error': 'unsupported menu operation'} | Passed |
SHA-256 / 027df831a627b670e258dc7a1f5e12ac87b61e8684114c443e496a3a6ea7a954
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:16.735334+00:00.
Case digest / 119caa508b5d1f985a783abd9f1b6d9246109d8e3026b3739fa05afb82cc9e73