FAILURE MAP
← Case archive

FA-33671 / Menu interactions / Open access

Menu provider error is attributed to the root menu provider · case 01

Menu provider error is attributed to the root menu provider.

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

ROOT CAUSE

The menu-provider-error-boundary model applies `{'provider':p['root'],'code':p['code'],'generation':p['generation']}` at its error-record operation instead of the stipulated transformation.

VERIFIED REPAIR

Apply `{'provider':p['provider'],'code':p['code'],'generation':p['generation']}` at error-record.

Unsuccessful approach: The attempted repair `{'provider':p['provider'],'code':None,'generation':p['generation']}` still violates the error-record oracle.

Case contract

A failed menu provider is isolated to its owned section; fallback content and error records are distinct, and recovery clears only that provider error.

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 == 'isolate':
        return [x for x in p['rows'] if x['provider']!=p['failed']]
    if action == 'fallback':
        return p['fallback'] if p['failed'] else p['content']
    if action == 'error-record':
        return {'provider':p['root'],'code':p['code'],'generation':p['generation']}
    if action == 'recovery':
        return {k:v for k,v in p['errors'].items() if k!=p['provider']}
    if action == 'fatal':
        return p['fallback'] if not p['fatal'] else []
    if action == 'retry-budget':
        return max(0,p['budget']-p['attempts'])
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('isolate contract', solve('isolate', {'rows':[{'provider':'a','id':N},{'provider':'b','id':N+1}],'failed':'a'}), [{'provider':'b','id':N+1}])
check('fallback contract', solve('fallback', {'failed':True,'fallback':[N],'content':[N+1]}), [N])
check('error-record contract', solve('error-record', {'provider':'child','root':'root','code':'parse','generation':N}), {'provider':'child','code':'parse','generation':N})
check('recovery contract', solve('recovery', {'errors':{'a':N,'b':N+1},'provider':'a'}), {'b':N+1})
check('fatal contract', solve('fatal', {'fallback':[N],'fatal':True}), [])
check('retry-budget contract', solve('retry-budget', {'budget':N+4,'attempts':3}), N+1)
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
isolate contract[{'id': 2, 'provider': 'b'}][{'id': 2, 'provider': 'b'}]Passed
fallback contract[1][1]Passed
error-record contract{'code': 'parse', 'generation': 1, 'provider': 'root'}{'code': 'parse', 'generation': 1, 'provider': 'child'}Failed
recovery contract{'b': 2}{'b': 2}Passed
fatal contract[][]Passed
retry-budget contract22Passed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 9e8f3f29589625e102385e70554912185d00dea8a32cf7832ca2b20dbcac58ac

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 == 'isolate':
        return [x for x in p['rows'] if x['provider']!=p['failed']]
    if action == 'fallback':
        return p['fallback'] if p['failed'] else p['content']
    if action == 'error-record':
        return {'provider':p['provider'],'code':None,'generation':p['generation']}
    if action == 'recovery':
        return {k:v for k,v in p['errors'].items() if k!=p['provider']}
    if action == 'fatal':
        return p['fallback'] if not p['fatal'] else []
    if action == 'retry-budget':
        return max(0,p['budget']-p['attempts'])
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('isolate contract', solve('isolate', {'rows':[{'provider':'a','id':N},{'provider':'b','id':N+1}],'failed':'a'}), [{'provider':'b','id':N+1}])
check('fallback contract', solve('fallback', {'failed':True,'fallback':[N],'content':[N+1]}), [N])
check('error-record contract', solve('error-record', {'provider':'child','root':'root','code':'parse','generation':N}), {'provider':'child','code':'parse','generation':N})
check('recovery contract', solve('recovery', {'errors':{'a':N,'b':N+1},'provider':'a'}), {'b':N+1})
check('fatal contract', solve('fatal', {'fallback':[N],'fatal':True}), [])
check('retry-budget contract', solve('retry-budget', {'budget':N+4,'attempts':3}), N+1)
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
isolate contract[{'id': 2, 'provider': 'b'}][{'id': 2, 'provider': 'b'}]Passed
fallback contract[1][1]Passed
error-record contract{'code': None, 'generation': 1, 'provider': 'child'}{'code': 'parse', 'generation': 1, 'provider': 'child'}Failed
recovery contract{'b': 2}{'b': 2}Passed
fatal contract[][]Passed
retry-budget contract22Passed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 70347cb33ab597d5965a6f75b4eb71ae33cc1ae210d836fdc7874610f4954647

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json
import math
import unicodedata
N = 1
observations = []
def solve(action, p):
    if action == 'isolate':
        return [x for x in p['rows'] if x['provider']!=p['failed']]
    if action == 'fallback':
        return p['fallback'] if p['failed'] else p['content']
    if action == 'error-record':
        return {'provider':p['provider'],'code':p['code'],'generation':p['generation']}
    if action == 'recovery':
        return {k:v for k,v in p['errors'].items() if k!=p['provider']}
    if action == 'fatal':
        return p['fallback'] if not p['fatal'] else []
    if action == 'retry-budget':
        return max(0,p['budget']-p['attempts'])
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('isolate contract', solve('isolate', {'rows':[{'provider':'a','id':N},{'provider':'b','id':N+1}],'failed':'a'}), [{'provider':'b','id':N+1}])
check('fallback contract', solve('fallback', {'failed':True,'fallback':[N],'content':[N+1]}), [N])
check('error-record contract', solve('error-record', {'provider':'child','root':'root','code':'parse','generation':N}), {'provider':'child','code':'parse','generation':N})
check('recovery contract', solve('recovery', {'errors':{'a':N,'b':N+1},'provider':'a'}), {'b':N+1})
check('fatal contract', solve('fatal', {'fallback':[N],'fatal':True}), [])
check('retry-budget contract', solve('retry-budget', {'budget':N+4,'attempts':3}), N+1)
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
isolate contract[{'id': 2, 'provider': 'b'}][{'id': 2, 'provider': 'b'}]Passed
fallback contract[1][1]Passed
error-record contract{'code': 'parse', 'generation': 1, 'provider': 'child'}{'code': 'parse', 'generation': 1, 'provider': 'child'}Passed
recovery contract{'b': 2}{'b': 2}Passed
fatal contract[][]Passed
retry-budget contract22Passed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 44cff4c146a29b2f1b1931cddf3828115c1b1f56dc741a80369330057c847753

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:24.599799+00:00.

Case digest / 8a6e6832dbe7d897aac640523e820f4e04de4f6d8f53ef9c3ac0263ebe8cb657