FAILURE MAP
← Case archive

FA-32856 / Menu interactions / Open access

Menu refresh restores obsolete provider order · case 01

Menu refresh restores obsolete provider order.

Verified by executionVariant 1 · 7 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The menu-snapshot-refresh model applies `[x for x in p['old'] if x in p['new']]` at its new-order operation instead of the stipulated transformation.

THE FAILURE

The menu-snapshot-refresh model applies `[x for x in p['old'] if x in p['new']]` at its new-order operation instead of the stipulated transformation.

Unsuccessful approach: The attempted repair `sorted(set(p['old']) & set(p['new']))` still violates the new-order 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['old'] if x in p['new']]
    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 fixtureActualExpectedOutcome
retain-live contract[2][2]Passed
new-order contract[1, 2][2, 1]Failed
annotation contract{'a': 1}{'a': 1}Passed
provider-version contractFalseFalsePassed
path-valid contractFalseFalsePassed
anchor-id contract22Passed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / d656dceec9f8b5e51e82e6121cfab1d553fc206edd0223d0d2e03df6e10d3035

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 sorted(set(p['old']) & set(p['new']))
    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 fixtureActualExpectedOutcome
retain-live contract[2][2]Passed
new-order contract[1, 2][2, 1]Failed
annotation contract{'a': 1}{'a': 1}Passed
provider-version contractFalseFalsePassed
path-valid contractFalseFalsePassed
anchor-id contract22Passed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 4f8f6519214f53dcfb8ea7beb6afdcc1dfe545e1fa5bb89e11ba94099b1cda0a

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 / b73687eae9a33cfe89b083eb56e3e810758756077ea4abc5f3705fd77a6c4685