FAILURE MAP
← Case archive

FA-33701 / Menu interactions / Open access

Confirmed menu intent remains pending for a second execution · case 01

Confirmed menu intent remains pending for a second execution.

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

ROOT CAUSE

The menu-command-confirmation model applies `{'execute':p['intent'],'pending':p['intent']}` at its consume operation instead of the stipulated transformation.

THE FAILURE

The menu-command-confirmation model applies `{'execute':p['intent'],'pending':p['intent']}` at its consume operation instead of the stipulated transformation.

Unsuccessful approach: The attempted repair `{'execute':None,'pending':None}` still violates the consume oracle.

Case contract

A confirmation launched from a menu freezes command intent; confirm executes exactly that intent, cancellation discards it, and stale documents require reconfirmation.

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 == 'intent':
        return {'command':p['command'],'targets':p['captured'],'arguments':p['arguments']}
    if action == 'cancel':
        return None
    if action == 'consume':
        return {'execute':p['intent'],'pending':p['intent']}
    if action == 'revision':
        return 'execute' if p['captured_revision']==p['live_revision'] else 'reconfirm'
    if action == 'destructive-count':
        return sum(x['destructive'] for x in p)
    if action == 'return-menu':
        return p['menu'] if p['menu_live'] else None
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('intent contract', solve('intent', {'command':'delete','captured':[N],'current':[N+1],'arguments':{'permanent':True}}), {'command':'delete','targets':[N],'arguments':{'permanent':True}})
check('cancel contract', solve('cancel', {'pending':{'target':N}}), None)
check('consume contract', solve('consume', {'intent':{'id':N}}), {'execute':{'id':N},'pending':None})
check('revision contract', solve('revision', {'captured_revision':N,'live_revision':N+1}), 'reconfirm')
check('destructive-count contract', solve('destructive-count', [{'destructive':True,'id':N},{'destructive':True,'id':N+1},{'destructive':False,'id':N+2}]), 2)
check('return-menu contract', solve('return-menu', {'menu':N,'menu_live':False,'fallback':'root'}), None)
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
intent contract{'arguments': {'permanent': True}, 'command': 'delete', 'targets': [1]}{'arguments': {'permanent': True}, 'command': 'delete', 'targets': [1]}Passed
cancel contractNoneNonePassed
consume contract{'execute': {'id': 1}, 'pending': {'id': 1}}{'execute': {'id': 1}, 'pending': None}Failed
revision contractreconfirmreconfirmPassed
destructive-count contract22Passed
return-menu contractNoneNonePassed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 7aa894c2f66585b7aad0bc3a408743eb1f068ca553518417e022e810a16f3b85

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 == 'intent':
        return {'command':p['command'],'targets':p['captured'],'arguments':p['arguments']}
    if action == 'cancel':
        return None
    if action == 'consume':
        return {'execute':None,'pending':None}
    if action == 'revision':
        return 'execute' if p['captured_revision']==p['live_revision'] else 'reconfirm'
    if action == 'destructive-count':
        return sum(x['destructive'] for x in p)
    if action == 'return-menu':
        return p['menu'] if p['menu_live'] else None
    return {'error': 'unsupported menu operation'}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('intent contract', solve('intent', {'command':'delete','captured':[N],'current':[N+1],'arguments':{'permanent':True}}), {'command':'delete','targets':[N],'arguments':{'permanent':True}})
check('cancel contract', solve('cancel', {'pending':{'target':N}}), None)
check('consume contract', solve('consume', {'intent':{'id':N}}), {'execute':{'id':N},'pending':None})
check('revision contract', solve('revision', {'captured_revision':N,'live_revision':N+1}), 'reconfirm')
check('destructive-count contract', solve('destructive-count', [{'destructive':True,'id':N},{'destructive':True,'id':N+1},{'destructive':False,'id':N+2}]), 2)
check('return-menu contract', solve('return-menu', {'menu':N,'menu_live':False,'fallback':'root'}), None)
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
intent contract{'arguments': {'permanent': True}, 'command': 'delete', 'targets': [1]}{'arguments': {'permanent': True}, 'command': 'delete', 'targets': [1]}Passed
cancel contractNoneNonePassed
consume contract{'execute': None, 'pending': None}{'execute': {'id': 1}, 'pending': None}Failed
revision contractreconfirmreconfirmPassed
destructive-count contract22Passed
return-menu contractNoneNonePassed
unknown operation{'error': 'unsupported menu operation'}{'error': 'unsupported menu operation'}Passed

SHA-256 / 6d9d4f89d02832b4e2c23a5b753ab76cc64ad26c1233b391f6e8348cbfbc9c9b

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

Case digest / f1ff9e3a8fe4bbeb808f1d369e1aff25f9717daa40fd1c0b3a0fdefce70879f5