FA-26011 / Filter interfaces / Open access
Further typing cannot mutate the in-flight filter snapshot · case 01
Further typing cannot mutate the in-flight filter snapshot is violated by the widget projection.
ROOT CAUSE
The inflight-preserve decision uses `d['latest']` instead of the stipulated apply-queue projection.
THE FAILURE
The inflight-preserve decision uses `d['latest']` instead of the stipulated apply-queue projection.
Unsuccessful approach: The attempted correction `d['queued']` 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: Further typing cannot mutate the in-flight filter snapshot.
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['latest']), 'queued-replace':(d['latest'] if d['busy'] else None), 'ack-match':(d['ack']==d['sent']), 'promote-queued':(d['queued'] if d['ack']==d['sent'] and d['queued'] is not None 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': 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': 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}), ({'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']})], 2: [({'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': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, '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': 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': 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})], 3: [({'inflight': ['a'], 'latest': ['b'], 'queued': None, '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': None, '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': 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': 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': ['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']})], 4: [({'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': 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': 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': 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': 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})], 5: [({'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': 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': 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': 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': 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': 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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| contract fixture 0 | {'ack-match': False, 'failed-retain': None, 'inflight-preserve': ['b'], '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} | Failed |
| contract fixture 1 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['b'], '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']} | Failed |
| contract fixture 2 | {'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['b'], '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']} | Failed |
| contract fixture 3 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['b'], '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']} | Failed |
| contract fixture 4 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['b'], '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} | Failed |
| contract fixture 5 | {'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['b'], '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} | Failed |
| contract fixture 6 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['b'], '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} | Failed |
| contract fixture 7 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['b'], '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']} | Failed |
| contract fixture 8 | {'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['b'], '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']} | Failed |
| contract fixture 9 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['b'], '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']} | Failed |
SHA-256 / 8470e9854669a8c1b4a3b9f1c568fc242507af8ec49cc1e5b100ef717fc4d530
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['queued']), 'queued-replace':(d['latest'] if d['busy'] else None), 'ack-match':(d['ack']==d['sent']), 'promote-queued':(d['queued'] if d['ack']==d['sent'] and d['queued'] is not None 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': 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': 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}), ({'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']})], 2: [({'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': True, 'valid': False}, {'inflight-preserve': ['a'], 'queued-replace': None, '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': 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': 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})], 3: [({'inflight': ['a'], 'latest': ['b'], 'queued': None, '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': None, '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': 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': 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': ['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']})], 4: [({'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': 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': 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': 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': 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})], 5: [({'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': 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': 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': 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': 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': 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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| contract fixture 0 | {'ack-match': False, 'failed-retain': None, 'inflight-preserve': None, '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} | Failed |
| contract fixture 1 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': None, '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']} | Failed |
| contract fixture 2 | {'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': None, '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']} | Failed |
| contract fixture 3 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': None, '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']} | Failed |
| contract fixture 4 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': None, '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} | Failed |
| contract fixture 5 | {'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': None, '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} | Failed |
| contract fixture 6 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': None, '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} | Failed |
| contract fixture 7 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['c'], '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']} | Failed |
| contract fixture 8 | {'ack-match': True, 'failed-retain': ['a'], 'inflight-preserve': ['c'], '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']} | Failed |
| contract fixture 9 | {'ack-match': False, 'failed-retain': ['a'], 'inflight-preserve': ['c'], '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']} | Failed |
SHA-256 / 3c236ab12a0d182e659b0611332ff78375eac7e60061a697473a36a45dc7e362
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:11.993234+00:00.
Case digest / e9149b46ce0eaba8fd09d1f1e861d84a493c633bb826ac33198341f87d48eba6