FA-32851 / Menu interactions / Open access
Refresh preserves menu commands that the provider removed · case 01
Refresh preserves menu commands that the provider removed.
ROOT CAUSE
The menu-snapshot-refresh model applies `p['old']` at its retain-live operation instead of the stipulated transformation.
THE FAILURE
The menu-snapshot-refresh model applies `p['old']` at its retain-live operation instead of the stipulated transformation.
Unsuccessful approach: The attempted repair `p['new']` still violates the retain-live 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 p['old']
if action == 'new-order':
return [x for x in p['new'] if x in p['old']]
if action == 'annotation':
return {x:p['annotations'][x] for x in p['new'] if x in 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 | [1, 2] | [2] | Failed |
| new-order contract | [2, 1] | [2, 1] | Passed |
| annotation contract | {'a': 1} | {'a': 1} | Passed |
| 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 / 4ef466e75b693282c756406dc37b9fe991a0ce2fd72fb4ead76597d8cb81909b
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 p['new']
if action == 'new-order':
return [x for x in p['new'] if x in p['old']]
if action == 'annotation':
return {x:p['annotations'][x] for x in p['new'] if x in 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, 3] | [2] | Failed |
| new-order contract | [2, 1] | [2, 1] | Passed |
| annotation contract | {'a': 1} | {'a': 1} | Passed |
| 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 / e6d833edb914179d85def7bdbe15f8a1e7f6656f5eb57bde52de6cc5a6750793
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 / 8677c6a940e4f97d8446f59540d6e7d4be0dc9d9543426248d4ec420c7f33ba6