FA-34321 / Notification interfaces / Open access
Notification digest assembly presentation: expand-digest from published · case 01
The expand-digest event leaves a notification in collecting instead of expanded.
ROOT CAUSE
Expanding a published digest reopens collection.
VERIFIED REPAIR
Commit the published / expand-digest transition to expanded; preserve the other explicitly stipulated transitions.
Unsuccessful approach: Returning to ready permits another initial exposure.
Case contract
Notification digest assembly presentation is a bounded visual-notification workflow with mutable policy state {'members': ['a', 'b'], 'sealed': [], 'next_window': [], 'shown': []}. Its default transition relation is {('collecting', 'close-window'): 'sealing', ('sealing', 'seal-success'): 'ready', ('ready', 'show-digest'): 'publishing', ('publishing', 'paint-success'): 'published', ('publishing', 'paint-failure'): 'publish-error', ('publish-error', 'retry-show'): 'publishing', ('published', 'expand-digest'): 'expanded', ('expanded', 'collapse-digest'): 'published', ('sealing', 'late-item'): 'sealing', ('collecting', 'close-empty-window'): 'empty'}; domain inputs can suppress or redirect transitions and update policy fields, as specified in solve. Different-generation events are inert. Batches apply in order. Optional observe returns the selected policy field alongside the phase.
Why this case matters
Visual notification lifecycle ordering can leave an inbox or toast showing the wrong actionable state even when transport succeeds.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(initial, events, generation, payload=None, observe=None):
table = {('collecting', 'close-window'): 'sealing', ('sealing', 'seal-success'): 'ready', ('ready', 'show-digest'): 'publishing', ('publishing', 'paint-success'): 'published', ('publishing', 'paint-failure'): 'publish-error', ('publish-error', 'retry-show'): 'publishing', ('published', 'expand-digest'): 'collecting', ('expanded', 'collapse-digest'): 'published', ('sealing', 'late-item'): 'sealing', ('collecting', 'close-empty-window'): 'empty'}
data = json.loads(json.dumps({'members': ['a', 'b'], 'sealed': [], 'next_window': [], 'shown': []})) if payload is None else {**json.loads(json.dumps({'members': ['a', 'b'], 'sealed': [], 'next_window': [], 'shown': []})), **json.loads(json.dumps(payload))}
state = initial
for delivery in events:
event, event_generation = delivery[:2]
arg = delivery[2] if len(delivery) > 2 else {}
if event_generation == generation:
previous = state
if event == 'close-empty-window' and data['members']: event = 'close-window'
if event == 'late-item': data['next_window'].append(arg.get('item','late'))
if event == 'seal-success': data['sealed'] = data['members'][:]
state = table.get((state, event), state)
if state == 'published': data['shown'] = data['sealed'][:]
if state == 'empty': data['shown'] = []
return {'phase': state, 'value': data[observe]} if observe else state
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('collecting / close-window', solve('collecting', [('close-window', N)], N), 'sealing')
check('sealing / seal-success', solve('sealing', [('seal-success', N)], N), 'ready')
check('ready / show-digest', solve('ready', [('show-digest', N)], N), 'publishing')
check('publishing / paint-success', solve('publishing', [('paint-success', N)], N), 'published')
check('publishing / paint-failure', solve('publishing', [('paint-failure', N)], N), 'publish-error')
check('publish-error / retry-show', solve('publish-error', [('retry-show', N)], N), 'publishing')
check('published / expand-digest', solve('published', [('expand-digest', N)], N), 'expanded')
check('expanded / collapse-digest', solve('expanded', [('collapse-digest', N)], N), 'published')
check('sealing / late-item', solve('sealing', [('late-item', N)], N), 'sealing')
check('collecting / close-empty-window', solve('collecting', [('close-empty-window', N)], N, {'members': []}), 'empty')
check('older notification incarnation', solve('collecting', [('close-window', N - 1)], N), 'collecting')
check('future notification incarnation', solve('collecting', [('close-window', N + 1)], N), 'collecting')
check('unknown event is inert', solve('collecting', [('unknown-event', N)], N), 'collecting')
check('empty delivery batch', solve('collecting', [], N), 'collecting')
check('N stale deliveries before current delivery', solve('collecting', [('close-window', N - 1)] * N + [('close-window', N)], N), 'sealing')
check('trace close-window then seal-success', solve('collecting', [('close-window', N), ('seal-success', N)], N), 'ready')
check('trace close-window then late-item', solve('collecting', [('close-window', N), ('late-item', N)], N), 'sealing')
check('trace seal-success then show-digest', solve('sealing', [('seal-success', N), ('show-digest', N)], N), 'publishing')
check('trace show-digest then paint-success', solve('ready', [('show-digest', N), ('paint-success', N)], N), 'published')
check('trace show-digest then paint-failure', solve('ready', [('show-digest', N), ('paint-failure', N)], N), 'publish-error')
check('trace paint-success then expand-digest', solve('publishing', [('paint-success', N), ('expand-digest', N)], N), 'expanded')
check('trace paint-failure then retry-show', solve('publishing', [('paint-failure', N), ('retry-show', N)], N), 'publishing')
check('trace retry-show then paint-success', solve('publish-error', [('retry-show', N), ('paint-success', N)], N), 'published')
check('trace retry-show then paint-failure', solve('publish-error', [('retry-show', N), ('paint-failure', N)], N), 'publish-error')
check('trace expand-digest then collapse-digest', solve('published', [('expand-digest', N), ('collapse-digest', N)], N), 'published')
check('trace collapse-digest then expand-digest', solve('expanded', [('collapse-digest', N), ('expand-digest', N)], N), 'expanded')
check('trace late-item then seal-success', solve('sealing', [('late-item', N), ('seal-success', N)], N), 'ready')
check('trace late-item then late-item', solve('sealing', [('late-item', N), ('late-item', N)], N), 'sealing')
check('domain state regression 1: members', solve('collecting', [('close-empty-window', N, {})], N, {}, 'members'), {'phase': 'sealing', 'value': ['a', 'b']})
check('domain state regression 2: shown', solve('collecting', [('close-empty-window', N, {})], N, {'members': []}, 'shown'), {'phase': 'empty', 'value': []})
check('domain state regression 3: sealed', solve('sealing', [('seal-success', N, {})], N, {}, 'sealed'), {'phase': 'ready', 'value': ['a', 'b']})
check('domain state regression 4: members', solve('sealing', [('late-item', N, {'item': 'c'})], N, {}, 'members'), {'phase': 'sealing', 'value': ['a', 'b']})
check('domain state regression 5: next_window', solve('sealing', [('late-item', N, {'item': 'c'})], N, {}, 'next_window'), {'phase': 'sealing', 'value': ['c']})
check('domain state regression 6: shown', solve('publishing', [('paint-success', N, {})], N, {'sealed': ['a']}, 'shown'), {'phase': 'published', 'value': ['a']})
check('domain state regression 7: shown', solve('collecting', [('close-window', N, {}), ('late-item', N, {'item': 'c'}), ('seal-success', N, {}), ('show-digest', N, {}), ('paint-success', N, {})], N, {}, 'shown'), {'phase': 'published', 'value': ['a', 'b']})
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 |
|---|---|---|---|
| collecting / close-window | sealing | sealing | Passed |
| sealing / seal-success | ready | ready | Passed |
| ready / show-digest | publishing | publishing | Passed |
| publishing / paint-success | published | published | Passed |
| publishing / paint-failure | publish-error | publish-error | Passed |
| publish-error / retry-show | publishing | publishing | Passed |
| published / expand-digest | collecting | expanded | Failed |
| expanded / collapse-digest | published | published | Passed |
| sealing / late-item | sealing | sealing | Passed |
| collecting / close-empty-window | empty | empty | Passed |
| older notification incarnation | collecting | collecting | Passed |
| future notification incarnation | collecting | collecting | Passed |
| unknown event is inert | collecting | collecting | Passed |
| empty delivery batch | collecting | collecting | Passed |
| N stale deliveries before current delivery | sealing | sealing | Passed |
| trace close-window then seal-success | ready | ready | Passed |
| trace close-window then late-item | sealing | sealing | Passed |
| trace seal-success then show-digest | publishing | publishing | Passed |
| trace show-digest then paint-success | published | published | Passed |
| trace show-digest then paint-failure | publish-error | publish-error | Passed |
| trace paint-success then expand-digest | collecting | expanded | Failed |
| trace paint-failure then retry-show | publishing | publishing | Passed |
| trace retry-show then paint-success | published | published | Passed |
| trace retry-show then paint-failure | publish-error | publish-error | Passed |
| trace expand-digest then collapse-digest | collecting | published | Failed |
| trace collapse-digest then expand-digest | collecting | expanded | Failed |
| trace late-item then seal-success | ready | ready | Passed |
| trace late-item then late-item | sealing | sealing | Passed |
| domain state regression 1: members | {'phase': 'sealing', 'value': ['a', 'b']} | {'phase': 'sealing', 'value': ['a', 'b']} | Passed |
| domain state regression 2: shown | {'phase': 'empty', 'value': []} | {'phase': 'empty', 'value': []} | Passed |
| domain state regression 3: sealed | {'phase': 'ready', 'value': ['a', 'b']} | {'phase': 'ready', 'value': ['a', 'b']} | Passed |
| domain state regression 4: members | {'phase': 'sealing', 'value': ['a', 'b']} | {'phase': 'sealing', 'value': ['a', 'b']} | Passed |
| domain state regression 5: next_window | {'phase': 'sealing', 'value': ['c']} | {'phase': 'sealing', 'value': ['c']} | Passed |
| domain state regression 6: shown | {'phase': 'published', 'value': ['a']} | {'phase': 'published', 'value': ['a']} | Passed |
| domain state regression 7: shown | {'phase': 'published', 'value': ['a', 'b']} | {'phase': 'published', 'value': ['a', 'b']} | Passed |
SHA-256 / 5cd9a5954af9fbc5d6b7f23bbb4a098f423310a3459c5cc802d1b6b48e01c3db
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(initial, events, generation, payload=None, observe=None):
table = {('collecting', 'close-window'): 'sealing', ('sealing', 'seal-success'): 'ready', ('ready', 'show-digest'): 'publishing', ('publishing', 'paint-success'): 'published', ('publishing', 'paint-failure'): 'publish-error', ('publish-error', 'retry-show'): 'publishing', ('published', 'expand-digest'): 'ready', ('expanded', 'collapse-digest'): 'published', ('sealing', 'late-item'): 'sealing', ('collecting', 'close-empty-window'): 'empty'}
data = json.loads(json.dumps({'members': ['a', 'b'], 'sealed': [], 'next_window': [], 'shown': []})) if payload is None else {**json.loads(json.dumps({'members': ['a', 'b'], 'sealed': [], 'next_window': [], 'shown': []})), **json.loads(json.dumps(payload))}
state = initial
for delivery in events:
event, event_generation = delivery[:2]
arg = delivery[2] if len(delivery) > 2 else {}
if event_generation == generation:
previous = state
if event == 'close-empty-window' and data['members']: event = 'close-window'
if event == 'late-item': data['next_window'].append(arg.get('item','late'))
if event == 'seal-success': data['sealed'] = data['members'][:]
state = table.get((state, event), state)
if state == 'published': data['shown'] = data['sealed'][:]
if state == 'empty': data['shown'] = []
return {'phase': state, 'value': data[observe]} if observe else state
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('collecting / close-window', solve('collecting', [('close-window', N)], N), 'sealing')
check('sealing / seal-success', solve('sealing', [('seal-success', N)], N), 'ready')
check('ready / show-digest', solve('ready', [('show-digest', N)], N), 'publishing')
check('publishing / paint-success', solve('publishing', [('paint-success', N)], N), 'published')
check('publishing / paint-failure', solve('publishing', [('paint-failure', N)], N), 'publish-error')
check('publish-error / retry-show', solve('publish-error', [('retry-show', N)], N), 'publishing')
check('published / expand-digest', solve('published', [('expand-digest', N)], N), 'expanded')
check('expanded / collapse-digest', solve('expanded', [('collapse-digest', N)], N), 'published')
check('sealing / late-item', solve('sealing', [('late-item', N)], N), 'sealing')
check('collecting / close-empty-window', solve('collecting', [('close-empty-window', N)], N, {'members': []}), 'empty')
check('older notification incarnation', solve('collecting', [('close-window', N - 1)], N), 'collecting')
check('future notification incarnation', solve('collecting', [('close-window', N + 1)], N), 'collecting')
check('unknown event is inert', solve('collecting', [('unknown-event', N)], N), 'collecting')
check('empty delivery batch', solve('collecting', [], N), 'collecting')
check('N stale deliveries before current delivery', solve('collecting', [('close-window', N - 1)] * N + [('close-window', N)], N), 'sealing')
check('trace close-window then seal-success', solve('collecting', [('close-window', N), ('seal-success', N)], N), 'ready')
check('trace close-window then late-item', solve('collecting', [('close-window', N), ('late-item', N)], N), 'sealing')
check('trace seal-success then show-digest', solve('sealing', [('seal-success', N), ('show-digest', N)], N), 'publishing')
check('trace show-digest then paint-success', solve('ready', [('show-digest', N), ('paint-success', N)], N), 'published')
check('trace show-digest then paint-failure', solve('ready', [('show-digest', N), ('paint-failure', N)], N), 'publish-error')
check('trace paint-success then expand-digest', solve('publishing', [('paint-success', N), ('expand-digest', N)], N), 'expanded')
check('trace paint-failure then retry-show', solve('publishing', [('paint-failure', N), ('retry-show', N)], N), 'publishing')
check('trace retry-show then paint-success', solve('publish-error', [('retry-show', N), ('paint-success', N)], N), 'published')
check('trace retry-show then paint-failure', solve('publish-error', [('retry-show', N), ('paint-failure', N)], N), 'publish-error')
check('trace expand-digest then collapse-digest', solve('published', [('expand-digest', N), ('collapse-digest', N)], N), 'published')
check('trace collapse-digest then expand-digest', solve('expanded', [('collapse-digest', N), ('expand-digest', N)], N), 'expanded')
check('trace late-item then seal-success', solve('sealing', [('late-item', N), ('seal-success', N)], N), 'ready')
check('trace late-item then late-item', solve('sealing', [('late-item', N), ('late-item', N)], N), 'sealing')
check('domain state regression 1: members', solve('collecting', [('close-empty-window', N, {})], N, {}, 'members'), {'phase': 'sealing', 'value': ['a', 'b']})
check('domain state regression 2: shown', solve('collecting', [('close-empty-window', N, {})], N, {'members': []}, 'shown'), {'phase': 'empty', 'value': []})
check('domain state regression 3: sealed', solve('sealing', [('seal-success', N, {})], N, {}, 'sealed'), {'phase': 'ready', 'value': ['a', 'b']})
check('domain state regression 4: members', solve('sealing', [('late-item', N, {'item': 'c'})], N, {}, 'members'), {'phase': 'sealing', 'value': ['a', 'b']})
check('domain state regression 5: next_window', solve('sealing', [('late-item', N, {'item': 'c'})], N, {}, 'next_window'), {'phase': 'sealing', 'value': ['c']})
check('domain state regression 6: shown', solve('publishing', [('paint-success', N, {})], N, {'sealed': ['a']}, 'shown'), {'phase': 'published', 'value': ['a']})
check('domain state regression 7: shown', solve('collecting', [('close-window', N, {}), ('late-item', N, {'item': 'c'}), ('seal-success', N, {}), ('show-digest', N, {}), ('paint-success', N, {})], N, {}, 'shown'), {'phase': 'published', 'value': ['a', 'b']})
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 |
|---|---|---|---|
| collecting / close-window | sealing | sealing | Passed |
| sealing / seal-success | ready | ready | Passed |
| ready / show-digest | publishing | publishing | Passed |
| publishing / paint-success | published | published | Passed |
| publishing / paint-failure | publish-error | publish-error | Passed |
| publish-error / retry-show | publishing | publishing | Passed |
| published / expand-digest | ready | expanded | Failed |
| expanded / collapse-digest | published | published | Passed |
| sealing / late-item | sealing | sealing | Passed |
| collecting / close-empty-window | empty | empty | Passed |
| older notification incarnation | collecting | collecting | Passed |
| future notification incarnation | collecting | collecting | Passed |
| unknown event is inert | collecting | collecting | Passed |
| empty delivery batch | collecting | collecting | Passed |
| N stale deliveries before current delivery | sealing | sealing | Passed |
| trace close-window then seal-success | ready | ready | Passed |
| trace close-window then late-item | sealing | sealing | Passed |
| trace seal-success then show-digest | publishing | publishing | Passed |
| trace show-digest then paint-success | published | published | Passed |
| trace show-digest then paint-failure | publish-error | publish-error | Passed |
| trace paint-success then expand-digest | ready | expanded | Failed |
| trace paint-failure then retry-show | publishing | publishing | Passed |
| trace retry-show then paint-success | published | published | Passed |
| trace retry-show then paint-failure | publish-error | publish-error | Passed |
| trace expand-digest then collapse-digest | ready | published | Failed |
| trace collapse-digest then expand-digest | ready | expanded | Failed |
| trace late-item then seal-success | ready | ready | Passed |
| trace late-item then late-item | sealing | sealing | Passed |
| domain state regression 1: members | {'phase': 'sealing', 'value': ['a', 'b']} | {'phase': 'sealing', 'value': ['a', 'b']} | Passed |
| domain state regression 2: shown | {'phase': 'empty', 'value': []} | {'phase': 'empty', 'value': []} | Passed |
| domain state regression 3: sealed | {'phase': 'ready', 'value': ['a', 'b']} | {'phase': 'ready', 'value': ['a', 'b']} | Passed |
| domain state regression 4: members | {'phase': 'sealing', 'value': ['a', 'b']} | {'phase': 'sealing', 'value': ['a', 'b']} | Passed |
| domain state regression 5: next_window | {'phase': 'sealing', 'value': ['c']} | {'phase': 'sealing', 'value': ['c']} | Passed |
| domain state regression 6: shown | {'phase': 'published', 'value': ['a']} | {'phase': 'published', 'value': ['a']} | Passed |
| domain state regression 7: shown | {'phase': 'published', 'value': ['a', 'b']} | {'phase': 'published', 'value': ['a', 'b']} | Passed |
SHA-256 / 92d9e2d9ac6786776cff5a0b0ed2b6c120c1c9426be4a170900236227dcf302b
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(initial, events, generation, payload=None, observe=None):
table = {('collecting', 'close-window'): 'sealing', ('sealing', 'seal-success'): 'ready', ('ready', 'show-digest'): 'publishing', ('publishing', 'paint-success'): 'published', ('publishing', 'paint-failure'): 'publish-error', ('publish-error', 'retry-show'): 'publishing', ('published', 'expand-digest'): 'expanded', ('expanded', 'collapse-digest'): 'published', ('sealing', 'late-item'): 'sealing', ('collecting', 'close-empty-window'): 'empty'}
data = json.loads(json.dumps({'members': ['a', 'b'], 'sealed': [], 'next_window': [], 'shown': []})) if payload is None else {**json.loads(json.dumps({'members': ['a', 'b'], 'sealed': [], 'next_window': [], 'shown': []})), **json.loads(json.dumps(payload))}
state = initial
for delivery in events:
event, event_generation = delivery[:2]
arg = delivery[2] if len(delivery) > 2 else {}
if event_generation == generation:
previous = state
if event == 'close-empty-window' and data['members']: event = 'close-window'
if event == 'late-item': data['next_window'].append(arg.get('item','late'))
if event == 'seal-success': data['sealed'] = data['members'][:]
state = table.get((state, event), state)
if state == 'published': data['shown'] = data['sealed'][:]
if state == 'empty': data['shown'] = []
return {'phase': state, 'value': data[observe]} if observe else state
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('collecting / close-window', solve('collecting', [('close-window', N)], N), 'sealing')
check('sealing / seal-success', solve('sealing', [('seal-success', N)], N), 'ready')
check('ready / show-digest', solve('ready', [('show-digest', N)], N), 'publishing')
check('publishing / paint-success', solve('publishing', [('paint-success', N)], N), 'published')
check('publishing / paint-failure', solve('publishing', [('paint-failure', N)], N), 'publish-error')
check('publish-error / retry-show', solve('publish-error', [('retry-show', N)], N), 'publishing')
check('published / expand-digest', solve('published', [('expand-digest', N)], N), 'expanded')
check('expanded / collapse-digest', solve('expanded', [('collapse-digest', N)], N), 'published')
check('sealing / late-item', solve('sealing', [('late-item', N)], N), 'sealing')
check('collecting / close-empty-window', solve('collecting', [('close-empty-window', N)], N, {'members': []}), 'empty')
check('older notification incarnation', solve('collecting', [('close-window', N - 1)], N), 'collecting')
check('future notification incarnation', solve('collecting', [('close-window', N + 1)], N), 'collecting')
check('unknown event is inert', solve('collecting', [('unknown-event', N)], N), 'collecting')
check('empty delivery batch', solve('collecting', [], N), 'collecting')
check('N stale deliveries before current delivery', solve('collecting', [('close-window', N - 1)] * N + [('close-window', N)], N), 'sealing')
check('trace close-window then seal-success', solve('collecting', [('close-window', N), ('seal-success', N)], N), 'ready')
check('trace close-window then late-item', solve('collecting', [('close-window', N), ('late-item', N)], N), 'sealing')
check('trace seal-success then show-digest', solve('sealing', [('seal-success', N), ('show-digest', N)], N), 'publishing')
check('trace show-digest then paint-success', solve('ready', [('show-digest', N), ('paint-success', N)], N), 'published')
check('trace show-digest then paint-failure', solve('ready', [('show-digest', N), ('paint-failure', N)], N), 'publish-error')
check('trace paint-success then expand-digest', solve('publishing', [('paint-success', N), ('expand-digest', N)], N), 'expanded')
check('trace paint-failure then retry-show', solve('publishing', [('paint-failure', N), ('retry-show', N)], N), 'publishing')
check('trace retry-show then paint-success', solve('publish-error', [('retry-show', N), ('paint-success', N)], N), 'published')
check('trace retry-show then paint-failure', solve('publish-error', [('retry-show', N), ('paint-failure', N)], N), 'publish-error')
check('trace expand-digest then collapse-digest', solve('published', [('expand-digest', N), ('collapse-digest', N)], N), 'published')
check('trace collapse-digest then expand-digest', solve('expanded', [('collapse-digest', N), ('expand-digest', N)], N), 'expanded')
check('trace late-item then seal-success', solve('sealing', [('late-item', N), ('seal-success', N)], N), 'ready')
check('trace late-item then late-item', solve('sealing', [('late-item', N), ('late-item', N)], N), 'sealing')
check('domain state regression 1: members', solve('collecting', [('close-empty-window', N, {})], N, {}, 'members'), {'phase': 'sealing', 'value': ['a', 'b']})
check('domain state regression 2: shown', solve('collecting', [('close-empty-window', N, {})], N, {'members': []}, 'shown'), {'phase': 'empty', 'value': []})
check('domain state regression 3: sealed', solve('sealing', [('seal-success', N, {})], N, {}, 'sealed'), {'phase': 'ready', 'value': ['a', 'b']})
check('domain state regression 4: members', solve('sealing', [('late-item', N, {'item': 'c'})], N, {}, 'members'), {'phase': 'sealing', 'value': ['a', 'b']})
check('domain state regression 5: next_window', solve('sealing', [('late-item', N, {'item': 'c'})], N, {}, 'next_window'), {'phase': 'sealing', 'value': ['c']})
check('domain state regression 6: shown', solve('publishing', [('paint-success', N, {})], N, {'sealed': ['a']}, 'shown'), {'phase': 'published', 'value': ['a']})
check('domain state regression 7: shown', solve('collecting', [('close-window', N, {}), ('late-item', N, {'item': 'c'}), ('seal-success', N, {}), ('show-digest', N, {}), ('paint-success', N, {})], N, {}, 'shown'), {'phase': 'published', 'value': ['a', 'b']})
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 |
|---|---|---|---|
| collecting / close-window | sealing | sealing | Passed |
| sealing / seal-success | ready | ready | Passed |
| ready / show-digest | publishing | publishing | Passed |
| publishing / paint-success | published | published | Passed |
| publishing / paint-failure | publish-error | publish-error | Passed |
| publish-error / retry-show | publishing | publishing | Passed |
| published / expand-digest | expanded | expanded | Passed |
| expanded / collapse-digest | published | published | Passed |
| sealing / late-item | sealing | sealing | Passed |
| collecting / close-empty-window | empty | empty | Passed |
| older notification incarnation | collecting | collecting | Passed |
| future notification incarnation | collecting | collecting | Passed |
| unknown event is inert | collecting | collecting | Passed |
| empty delivery batch | collecting | collecting | Passed |
| N stale deliveries before current delivery | sealing | sealing | Passed |
| trace close-window then seal-success | ready | ready | Passed |
| trace close-window then late-item | sealing | sealing | Passed |
| trace seal-success then show-digest | publishing | publishing | Passed |
| trace show-digest then paint-success | published | published | Passed |
| trace show-digest then paint-failure | publish-error | publish-error | Passed |
| trace paint-success then expand-digest | expanded | expanded | Passed |
| trace paint-failure then retry-show | publishing | publishing | Passed |
| trace retry-show then paint-success | published | published | Passed |
| trace retry-show then paint-failure | publish-error | publish-error | Passed |
| trace expand-digest then collapse-digest | published | published | Passed |
| trace collapse-digest then expand-digest | expanded | expanded | Passed |
| trace late-item then seal-success | ready | ready | Passed |
| trace late-item then late-item | sealing | sealing | Passed |
| domain state regression 1: members | {'phase': 'sealing', 'value': ['a', 'b']} | {'phase': 'sealing', 'value': ['a', 'b']} | Passed |
| domain state regression 2: shown | {'phase': 'empty', 'value': []} | {'phase': 'empty', 'value': []} | Passed |
| domain state regression 3: sealed | {'phase': 'ready', 'value': ['a', 'b']} | {'phase': 'ready', 'value': ['a', 'b']} | Passed |
| domain state regression 4: members | {'phase': 'sealing', 'value': ['a', 'b']} | {'phase': 'sealing', 'value': ['a', 'b']} | Passed |
| domain state regression 5: next_window | {'phase': 'sealing', 'value': ['c']} | {'phase': 'sealing', 'value': ['c']} | Passed |
| domain state regression 6: shown | {'phase': 'published', 'value': ['a']} | {'phase': 'published', 'value': ['a']} | Passed |
| domain state regression 7: shown | {'phase': 'published', 'value': ['a', 'b']} | {'phase': 'published', 'value': ['a', 'b']} | Passed |
SHA-256 / 46cfa1f268daa20ec839d5150d42fd1434e94e5a1dddc22ad14dd80e0b54b7d0
Verification & scope
Stipulated single-notification state and policy model only. Event delivery and acknowledgements are explicit test inputs. No DOM, accessibility announcements, live timers, networking, actual rendering, or production-platform conformance is simulated. 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:30.714172+00:00.
Case digest / f18484a397326da3ced61cf6408d0c9a339b15b84ea4420888c3771ea424e626