FAILURE MAP
← Case archive

FA-26026 / Filter interfaces / Open access

Matching completion promotes the queued snapshot rather than current editor contents · case 01

Matching completion promotes the queued snapshot rather than current editor contents is violated by the widget projection.

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

ROOT CAUSE

The promote-queued decision uses `d['queued']` instead of the stipulated apply-queue projection.

THE FAILURE

The promote-queued decision uses `d['queued']` instead of the stipulated apply-queue projection.

Unsuccessful approach: The attempted correction `d['latest'] if d['ack']==d['sent'] else None` still violates the explicit contract fixtures.

Case contract

A filter apply queue coalesces only unsent drafts, preserves the in-flight snapshot, and acknowledges exactly the sent revision before promoting a queued draft. This example checks: Matching completion promotes the queued snapshot rather than current editor contents.

Why this case matters

Filter-widget state and serialization must preserve user constraints while the view changes.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'inflight-preserve':(d['inflight']), 'queued-replace':(d['latest'] if d['busy'] else None), 'ack-match':(d['ack']==d['sent']), 'promote-queued':(d['queued']), 'failed-retain':(d['inflight'] if d['failed'] else None), 'send-now':(d['latest'] if not d['busy'] and d['valid'] else None)}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None})], 2: [({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 2, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 3, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 2, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 2, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 3, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None})], 3: [({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 2, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': None, 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 3, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 1, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 2, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 3, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 1, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 2, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': None, 'failed-retain': None, 'send-now': ['b']})], 4: [({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 2, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 2, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 1, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 3, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 1, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 2, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 3, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 1, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None})], 5: [({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None})]}
for index, (data, expected) in enumerate(fixtures[N]):
    check("contract fixture " + str(index), solve(data), expected)
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
contract fixture 0{'ack-match': False, 'failed-retain': None, 'inflight-preserve': ['a'], 'promote-queued': ['c'], 'queued-replace': None, 'send-now': None}{'ack-match': False, 'failed-retain': None, 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': None}Failed
contract fixture 1{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}Passed
contract fixture 2{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}Passed
contract fixture 3{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}Passed
contract fixture 4{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}Passed
contract fixture 5{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}Passed
contract fixture 6{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': ['c'], 'queued-replace': None, 'send-now': ['b']}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}Failed
contract fixture 7{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': ['c'], 'queued-replace': None, 'send-now': ['b']}{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': ['c'], 'queued-replace': None, 'send-now': ['b']}Passed
contract fixture 8{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': ['c'], 'queued-replace': None, 'send-now': ['b']}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}Failed
contract fixture 9{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': ['c'], 'queued-replace': ['b'], 'send-now': None}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}Failed

SHA-256 / d4170c7563f4ada801cfc06dc51dd58d046c95c4dc63b8f6f52b20d5f0a53be5

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(d):
    return {'inflight-preserve':(d['inflight']), 'queued-replace':(d['latest'] if d['busy'] else None), 'ack-match':(d['ack']==d['sent']), 'promote-queued':(d['latest'] if d['ack']==d['sent'] else None), 'failed-retain':(d['inflight'] if d['failed'] else None), 'send-now':(d['latest'] if not d['busy'] and d['valid'] else None)}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None})], 2: [({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 2, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 3, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 2, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 2, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 3, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None})], 3: [({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 2, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': None, 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 3, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 1, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 2, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 3, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 1, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 2, 'sent': 2, 'failed': False, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': None, 'failed-retain': None, 'send-now': ['b']})], 4: [({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 2, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 2, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 1, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 3, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 1, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 2, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 3, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 1, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None})], 5: [({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': False, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': None, 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': ['c'], 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': False, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': ['c'], 'busy': True, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': True, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': False, 'ack': 3, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': None, 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': ['b']}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 1, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': False, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None}), ({'inflight': ['a'], 'latest': ['b'], 'queued': None, 'busy': True, 'ack': 2, 'sent': 2, 'failed': True, 'valid': True}, {'inflight-preserve': ['a'], 'queued-replace': ['b'], 'ack-match': True, 'promote-queued': None, 'failed-retain': ['a'], 'send-now': None})]}
for index, (data, expected) in enumerate(fixtures[N]):
    check("contract fixture " + str(index), solve(data), expected)
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
contract fixture 0{'ack-match': False, 'failed-retain': None, 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': None}{'ack-match': False, 'failed-retain': None, 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': None}Passed
contract fixture 1{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': ['b'], 'queued-replace': None, 'send-now': ['b']}{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}Failed
contract fixture 2{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}Passed
contract fixture 3{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}Passed
contract fixture 4{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': ['b'], 'queued-replace': ['b'], 'send-now': None}{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}Failed
contract fixture 5{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}Passed
contract fixture 6{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}Passed
contract fixture 7{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': ['b'], 'queued-replace': None, 'send-now': ['b']}{'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': ['c'], 'queued-replace': None, 'send-now': ['b']}Failed
contract fixture 8{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': None, 'send-now': ['b']}Passed
contract fixture 9{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}{'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['a'], 'promote-queued': None, 'queued-replace': ['b'], 'send-now': None}Passed

SHA-256 / 2891589d4ca3e12ace2a5e76d4a7caf764b5db909ad4e17ec062d406959ffdda

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 10 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

Deterministic bounded UI-state model only; no browser, query engine, network, or production-standard conformance is claimed. 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:41:12.162017+00:00.

Case digest / 98b351241c9dc1b0f6a9f594c87090645adde00caa141eabd7c907ef87f40481