FA-34431 / Notification interfaces / Open access
Long-running notification progress: late-progress from complete · case 01
The late-progress event leaves a notification in running instead of complete.
ROOT CAUSE
Late progress revives a completed notification.
THE FAILURE
Late progress revives a completed notification.
Unsuccessful approach: Requeueing from an older progress event creates phantom work.
Case contract
Long-running notification progress is a bounded visual-notification workflow with mutable policy state {'done': 3, 'total': 10, 'job': 2, 'paused_at': None}. Its default transition relation is {('queued', 'worker-start'): 'running', ('running', 'request-pause'): 'pause-pending', ('pause-pending', 'pause-accepted'): 'paused', ('pause-pending', 'pause-rejected'): 'running', ('paused', 'resume-click'): 'resume-pending', ('resume-pending', 'resume-accepted'): 'running', ('running', 'work-complete'): 'complete', ('running', 'work-failed'): 'failed', ('complete', 'late-progress'): 'complete', ('paused', 'work-complete'): 'complete'}; 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 = {('queued', 'worker-start'): 'running', ('running', 'request-pause'): 'pause-pending', ('pause-pending', 'pause-accepted'): 'paused', ('pause-pending', 'pause-rejected'): 'running', ('paused', 'resume-click'): 'resume-pending', ('resume-pending', 'resume-accepted'): 'running', ('running', 'work-complete'): 'complete', ('running', 'work-failed'): 'failed', ('complete', 'late-progress'): 'running', ('paused', 'work-complete'): 'complete'}
data = json.loads(json.dumps({'done': 3, 'total': 10, 'job': 2, 'paused_at': None})) if payload is None else {**json.loads(json.dumps({'done': 3, 'total': 10, 'job': 2, 'paused_at': None})), **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 in ('work-complete','work-failed','late-progress') and arg.get('job',data['job']) != data['job']: event = 'unknown-event'
if event == 'late-progress' and state != 'complete': data['done'] = min(data['total'],max(data['done'],arg.get('done',data['done'])))
if event == 'work-complete' and 'done' in arg and arg['done'] < data['total']: event = 'unknown-event'
state = table.get((state, event), state)
if state == 'complete': data['done'] = data['total']
if state == 'paused': data['paused_at'] = data['done']
if state == 'running': data['paused_at'] = None
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('queued / worker-start', solve('queued', [('worker-start', N)], N), 'running')
check('running / request-pause', solve('running', [('request-pause', N)], N), 'pause-pending')
check('pause-pending / pause-accepted', solve('pause-pending', [('pause-accepted', N)], N), 'paused')
check('pause-pending / pause-rejected', solve('pause-pending', [('pause-rejected', N)], N), 'running')
check('paused / resume-click', solve('paused', [('resume-click', N)], N), 'resume-pending')
check('resume-pending / resume-accepted', solve('resume-pending', [('resume-accepted', N)], N), 'running')
check('running / work-complete', solve('running', [('work-complete', N)], N), 'complete')
check('running / work-failed', solve('running', [('work-failed', N)], N), 'failed')
check('complete / late-progress', solve('complete', [('late-progress', N)], N), 'complete')
check('paused / work-complete', solve('paused', [('work-complete', N)], N), 'complete')
check('older notification incarnation', solve('queued', [('worker-start', N - 1)], N), 'queued')
check('future notification incarnation', solve('queued', [('worker-start', N + 1)], N), 'queued')
check('unknown event is inert', solve('queued', [('unknown-event', N)], N), 'queued')
check('empty delivery batch', solve('queued', [], N), 'queued')
check('N stale deliveries before current delivery', solve('queued', [('worker-start', N - 1)] * N + [('worker-start', N)], N), 'running')
check('trace worker-start then request-pause', solve('queued', [('worker-start', N), ('request-pause', N)], N), 'pause-pending')
check('trace worker-start then work-complete', solve('queued', [('worker-start', N), ('work-complete', N)], N), 'complete')
check('trace worker-start then work-failed', solve('queued', [('worker-start', N), ('work-failed', N)], N), 'failed')
check('trace request-pause then pause-accepted', solve('running', [('request-pause', N), ('pause-accepted', N)], N), 'paused')
check('trace request-pause then pause-rejected', solve('running', [('request-pause', N), ('pause-rejected', N)], N), 'running')
check('trace pause-accepted then resume-click', solve('pause-pending', [('pause-accepted', N), ('resume-click', N)], N), 'resume-pending')
check('trace pause-accepted then work-complete', solve('pause-pending', [('pause-accepted', N), ('work-complete', N)], N), 'complete')
check('trace pause-rejected then request-pause', solve('pause-pending', [('pause-rejected', N), ('request-pause', N)], N), 'pause-pending')
check('trace pause-rejected then work-complete', solve('pause-pending', [('pause-rejected', N), ('work-complete', N)], N), 'complete')
check('trace pause-rejected then work-failed', solve('pause-pending', [('pause-rejected', N), ('work-failed', N)], N), 'failed')
check('trace resume-click then resume-accepted', solve('paused', [('resume-click', N), ('resume-accepted', N)], N), 'running')
check('trace resume-accepted then request-pause', solve('resume-pending', [('resume-accepted', N), ('request-pause', N)], N), 'pause-pending')
check('trace resume-accepted then work-complete', solve('resume-pending', [('resume-accepted', N), ('work-complete', N)], N), 'complete')
check('trace resume-accepted then work-failed', solve('resume-pending', [('resume-accepted', N), ('work-failed', N)], N), 'failed')
check('trace work-complete then late-progress', solve('running', [('work-complete', N), ('late-progress', N)], N), 'complete')
check('trace late-progress then late-progress', solve('complete', [('late-progress', N), ('late-progress', N)], N), 'complete')
check('trace work-complete then late-progress', solve('paused', [('work-complete', N), ('late-progress', N)], N), 'complete')
check('domain state regression 1: done', solve('running', [('work-complete', N, {'job': 1})], N, {}, 'done'), {'phase': 'running', 'value': 3})
check('domain state regression 2: done', solve('running', [('work-complete', N, {'done': 9})], N, {}, 'done'), {'phase': 'running', 'value': 3})
check('domain state regression 3: done', solve('running', [('work-complete', N, {'done': 10})], N, {}, 'done'), {'phase': 'complete', 'value': 10})
check('domain state regression 4: paused_at', solve('pause-pending', [('pause-accepted', N, {})], N, {}, 'paused_at'), {'phase': 'paused', 'value': 3})
check('domain state regression 5: paused_at', solve('resume-pending', [('resume-accepted', N, {})], N, {'paused_at': 3}, 'paused_at'), {'phase': 'running', 'value': None})
check('domain state regression 6: done', solve('complete', [('late-progress', N, {'done': 2})], N, {'done': 10}, 'done'), {'phase': 'complete', 'value': 10})
check('domain state regression 7: done', solve('running', [('request-pause', N, {}), ('pause-accepted', N, {}), ('resume-click', N, {}), ('resume-accepted', N, {}), ('work-complete', N, {'done': 10})], N, {}, 'done'), {'phase': 'complete', 'value': 10})
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 |
|---|---|---|---|
| queued / worker-start | running | running | Passed |
| running / request-pause | pause-pending | pause-pending | Passed |
| pause-pending / pause-accepted | paused | paused | Passed |
| pause-pending / pause-rejected | running | running | Passed |
| paused / resume-click | resume-pending | resume-pending | Passed |
| resume-pending / resume-accepted | running | running | Passed |
| running / work-complete | complete | complete | Passed |
| running / work-failed | failed | failed | Passed |
| complete / late-progress | running | complete | Failed |
| paused / work-complete | complete | complete | Passed |
| older notification incarnation | queued | queued | Passed |
| future notification incarnation | queued | queued | Passed |
| unknown event is inert | queued | queued | Passed |
| empty delivery batch | queued | queued | Passed |
| N stale deliveries before current delivery | running | running | Passed |
| trace worker-start then request-pause | pause-pending | pause-pending | Passed |
| trace worker-start then work-complete | complete | complete | Passed |
| trace worker-start then work-failed | failed | failed | Passed |
| trace request-pause then pause-accepted | paused | paused | Passed |
| trace request-pause then pause-rejected | running | running | Passed |
| trace pause-accepted then resume-click | resume-pending | resume-pending | Passed |
| trace pause-accepted then work-complete | complete | complete | Passed |
| trace pause-rejected then request-pause | pause-pending | pause-pending | Passed |
| trace pause-rejected then work-complete | complete | complete | Passed |
| trace pause-rejected then work-failed | failed | failed | Passed |
| trace resume-click then resume-accepted | running | running | Passed |
| trace resume-accepted then request-pause | pause-pending | pause-pending | Passed |
| trace resume-accepted then work-complete | complete | complete | Passed |
| trace resume-accepted then work-failed | failed | failed | Passed |
| trace work-complete then late-progress | running | complete | Failed |
| trace late-progress then late-progress | running | complete | Failed |
| trace work-complete then late-progress | running | complete | Failed |
| domain state regression 1: done | {'phase': 'running', 'value': 3} | {'phase': 'running', 'value': 3} | Passed |
| domain state regression 2: done | {'phase': 'running', 'value': 3} | {'phase': 'running', 'value': 3} | Passed |
| domain state regression 3: done | {'phase': 'complete', 'value': 10} | {'phase': 'complete', 'value': 10} | Passed |
| domain state regression 4: paused_at | {'phase': 'paused', 'value': 3} | {'phase': 'paused', 'value': 3} | Passed |
| domain state regression 5: paused_at | {'phase': 'running', 'value': None} | {'phase': 'running', 'value': None} | Passed |
| domain state regression 6: done | {'phase': 'running', 'value': 10} | {'phase': 'complete', 'value': 10} | Failed |
| domain state regression 7: done | {'phase': 'complete', 'value': 10} | {'phase': 'complete', 'value': 10} | Passed |
SHA-256 / 0960812d31dc7ca3c392558cdc39c60be14825072b7e4f761ebc9aec745e7973
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 = {('queued', 'worker-start'): 'running', ('running', 'request-pause'): 'pause-pending', ('pause-pending', 'pause-accepted'): 'paused', ('pause-pending', 'pause-rejected'): 'running', ('paused', 'resume-click'): 'resume-pending', ('resume-pending', 'resume-accepted'): 'running', ('running', 'work-complete'): 'complete', ('running', 'work-failed'): 'failed', ('complete', 'late-progress'): 'queued', ('paused', 'work-complete'): 'complete'}
data = json.loads(json.dumps({'done': 3, 'total': 10, 'job': 2, 'paused_at': None})) if payload is None else {**json.loads(json.dumps({'done': 3, 'total': 10, 'job': 2, 'paused_at': None})), **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 in ('work-complete','work-failed','late-progress') and arg.get('job',data['job']) != data['job']: event = 'unknown-event'
if event == 'late-progress' and state != 'complete': data['done'] = min(data['total'],max(data['done'],arg.get('done',data['done'])))
if event == 'work-complete' and 'done' in arg and arg['done'] < data['total']: event = 'unknown-event'
state = table.get((state, event), state)
if state == 'complete': data['done'] = data['total']
if state == 'paused': data['paused_at'] = data['done']
if state == 'running': data['paused_at'] = None
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('queued / worker-start', solve('queued', [('worker-start', N)], N), 'running')
check('running / request-pause', solve('running', [('request-pause', N)], N), 'pause-pending')
check('pause-pending / pause-accepted', solve('pause-pending', [('pause-accepted', N)], N), 'paused')
check('pause-pending / pause-rejected', solve('pause-pending', [('pause-rejected', N)], N), 'running')
check('paused / resume-click', solve('paused', [('resume-click', N)], N), 'resume-pending')
check('resume-pending / resume-accepted', solve('resume-pending', [('resume-accepted', N)], N), 'running')
check('running / work-complete', solve('running', [('work-complete', N)], N), 'complete')
check('running / work-failed', solve('running', [('work-failed', N)], N), 'failed')
check('complete / late-progress', solve('complete', [('late-progress', N)], N), 'complete')
check('paused / work-complete', solve('paused', [('work-complete', N)], N), 'complete')
check('older notification incarnation', solve('queued', [('worker-start', N - 1)], N), 'queued')
check('future notification incarnation', solve('queued', [('worker-start', N + 1)], N), 'queued')
check('unknown event is inert', solve('queued', [('unknown-event', N)], N), 'queued')
check('empty delivery batch', solve('queued', [], N), 'queued')
check('N stale deliveries before current delivery', solve('queued', [('worker-start', N - 1)] * N + [('worker-start', N)], N), 'running')
check('trace worker-start then request-pause', solve('queued', [('worker-start', N), ('request-pause', N)], N), 'pause-pending')
check('trace worker-start then work-complete', solve('queued', [('worker-start', N), ('work-complete', N)], N), 'complete')
check('trace worker-start then work-failed', solve('queued', [('worker-start', N), ('work-failed', N)], N), 'failed')
check('trace request-pause then pause-accepted', solve('running', [('request-pause', N), ('pause-accepted', N)], N), 'paused')
check('trace request-pause then pause-rejected', solve('running', [('request-pause', N), ('pause-rejected', N)], N), 'running')
check('trace pause-accepted then resume-click', solve('pause-pending', [('pause-accepted', N), ('resume-click', N)], N), 'resume-pending')
check('trace pause-accepted then work-complete', solve('pause-pending', [('pause-accepted', N), ('work-complete', N)], N), 'complete')
check('trace pause-rejected then request-pause', solve('pause-pending', [('pause-rejected', N), ('request-pause', N)], N), 'pause-pending')
check('trace pause-rejected then work-complete', solve('pause-pending', [('pause-rejected', N), ('work-complete', N)], N), 'complete')
check('trace pause-rejected then work-failed', solve('pause-pending', [('pause-rejected', N), ('work-failed', N)], N), 'failed')
check('trace resume-click then resume-accepted', solve('paused', [('resume-click', N), ('resume-accepted', N)], N), 'running')
check('trace resume-accepted then request-pause', solve('resume-pending', [('resume-accepted', N), ('request-pause', N)], N), 'pause-pending')
check('trace resume-accepted then work-complete', solve('resume-pending', [('resume-accepted', N), ('work-complete', N)], N), 'complete')
check('trace resume-accepted then work-failed', solve('resume-pending', [('resume-accepted', N), ('work-failed', N)], N), 'failed')
check('trace work-complete then late-progress', solve('running', [('work-complete', N), ('late-progress', N)], N), 'complete')
check('trace late-progress then late-progress', solve('complete', [('late-progress', N), ('late-progress', N)], N), 'complete')
check('trace work-complete then late-progress', solve('paused', [('work-complete', N), ('late-progress', N)], N), 'complete')
check('domain state regression 1: done', solve('running', [('work-complete', N, {'job': 1})], N, {}, 'done'), {'phase': 'running', 'value': 3})
check('domain state regression 2: done', solve('running', [('work-complete', N, {'done': 9})], N, {}, 'done'), {'phase': 'running', 'value': 3})
check('domain state regression 3: done', solve('running', [('work-complete', N, {'done': 10})], N, {}, 'done'), {'phase': 'complete', 'value': 10})
check('domain state regression 4: paused_at', solve('pause-pending', [('pause-accepted', N, {})], N, {}, 'paused_at'), {'phase': 'paused', 'value': 3})
check('domain state regression 5: paused_at', solve('resume-pending', [('resume-accepted', N, {})], N, {'paused_at': 3}, 'paused_at'), {'phase': 'running', 'value': None})
check('domain state regression 6: done', solve('complete', [('late-progress', N, {'done': 2})], N, {'done': 10}, 'done'), {'phase': 'complete', 'value': 10})
check('domain state regression 7: done', solve('running', [('request-pause', N, {}), ('pause-accepted', N, {}), ('resume-click', N, {}), ('resume-accepted', N, {}), ('work-complete', N, {'done': 10})], N, {}, 'done'), {'phase': 'complete', 'value': 10})
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 |
|---|---|---|---|
| queued / worker-start | running | running | Passed |
| running / request-pause | pause-pending | pause-pending | Passed |
| pause-pending / pause-accepted | paused | paused | Passed |
| pause-pending / pause-rejected | running | running | Passed |
| paused / resume-click | resume-pending | resume-pending | Passed |
| resume-pending / resume-accepted | running | running | Passed |
| running / work-complete | complete | complete | Passed |
| running / work-failed | failed | failed | Passed |
| complete / late-progress | queued | complete | Failed |
| paused / work-complete | complete | complete | Passed |
| older notification incarnation | queued | queued | Passed |
| future notification incarnation | queued | queued | Passed |
| unknown event is inert | queued | queued | Passed |
| empty delivery batch | queued | queued | Passed |
| N stale deliveries before current delivery | running | running | Passed |
| trace worker-start then request-pause | pause-pending | pause-pending | Passed |
| trace worker-start then work-complete | complete | complete | Passed |
| trace worker-start then work-failed | failed | failed | Passed |
| trace request-pause then pause-accepted | paused | paused | Passed |
| trace request-pause then pause-rejected | running | running | Passed |
| trace pause-accepted then resume-click | resume-pending | resume-pending | Passed |
| trace pause-accepted then work-complete | complete | complete | Passed |
| trace pause-rejected then request-pause | pause-pending | pause-pending | Passed |
| trace pause-rejected then work-complete | complete | complete | Passed |
| trace pause-rejected then work-failed | failed | failed | Passed |
| trace resume-click then resume-accepted | running | running | Passed |
| trace resume-accepted then request-pause | pause-pending | pause-pending | Passed |
| trace resume-accepted then work-complete | complete | complete | Passed |
| trace resume-accepted then work-failed | failed | failed | Passed |
| trace work-complete then late-progress | queued | complete | Failed |
| trace late-progress then late-progress | queued | complete | Failed |
| trace work-complete then late-progress | queued | complete | Failed |
| domain state regression 1: done | {'phase': 'running', 'value': 3} | {'phase': 'running', 'value': 3} | Passed |
| domain state regression 2: done | {'phase': 'running', 'value': 3} | {'phase': 'running', 'value': 3} | Passed |
| domain state regression 3: done | {'phase': 'complete', 'value': 10} | {'phase': 'complete', 'value': 10} | Passed |
| domain state regression 4: paused_at | {'phase': 'paused', 'value': 3} | {'phase': 'paused', 'value': 3} | Passed |
| domain state regression 5: paused_at | {'phase': 'running', 'value': None} | {'phase': 'running', 'value': None} | Passed |
| domain state regression 6: done | {'phase': 'queued', 'value': 10} | {'phase': 'complete', 'value': 10} | Failed |
| domain state regression 7: done | {'phase': 'complete', 'value': 10} | {'phase': 'complete', 'value': 10} | Passed |
SHA-256 / 76d962b7c6e5aeed5d116586eb90c50cd070246b6da8657e0e3ec7efe78ddf20
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 39 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
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:31.934210+00:00.
Case digest / 2a6e4aee12f7b0a92c0e788eedfa4b6074e47ffaca35620388a79a5d4acb3485