FAILURE MAP
← Case archive

FA-25381 / Filter interfaces / Open access

Operator menus intersect field support with globally enabled operations · case 01

Operator menus intersect field support with globally enabled operations is violated by the widget projection.

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

ROOT CAUSE

The operator-options decision uses `list(d['operators'])` instead of the stipulated predicate-row-schema projection.

VERIFIED REPAIR

Implement the declared operator-options projection: `[x for x in d['operators'] if x in d['supported']]`.

Unsuccessful approach: The attempted correction `list(d['supported'])` still violates the explicit contract fixtures.

Case contract

A filter-builder row uses schema capability lists to determine available operators and reset incompatible operands when its field changes. This example checks: Operator menus intersect field support with globally enabled operations.

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 {'operator-options':(list(d['operators'])), 'retain-operator':(d['op'] if d['op'] in d['supported'] else d['default']), 'operand-reset':(d['value'] if d['old_type']==d['new_type'] else None), 'unknown-field':(d['field'] not in d['fields']), 'nullable-op':('missing' in d['supported'] and d['nullable']), 'row-complete':(d['field'] in d['fields'] and d['op'] in d['supported'] and (d['op']=='missing' or d['value'] is not None))}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False})], 2: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': True})], 3: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': True})], 4: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False})], 5: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False})]}
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{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq', 'missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Failed
contract fixture 1{'nullable-op': True, 'operand-reset': None, 'operator-options': ['eq', 'missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': True, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Failed
contract fixture 2{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq', 'missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Failed
contract fixture 3{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq', 'missing'], 'retain-operator': 'eq', 'row-complete': True, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': True, 'unknown-field': False}Failed
contract fixture 4{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq', 'missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Failed
contract fixture 5{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq', 'missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Failed
contract fixture 6{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['eq', 'missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Failed
contract fixture 7{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq', 'missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Failed
contract fixture 8{'nullable-op': True, 'operand-reset': None, 'operator-options': ['eq', 'missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': True, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Failed
contract fixture 9{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['eq', 'missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Failed

SHA-256 / 22a8e04dacbf5a50c8e631dbb080d770273d87e2277b619d25fc54ee70f7b4bd

2 / The unsuccessful fix

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

N = 1
observations = []
def solve(d):
    return {'operator-options':(list(d['supported'])), 'retain-operator':(d['op'] if d['op'] in d['supported'] else d['default']), 'operand-reset':(d['value'] if d['old_type']==d['new_type'] else None), 'unknown-field':(d['field'] not in d['fields']), 'nullable-op':('missing' in d['supported'] and d['nullable']), 'row-complete':(d['field'] in d['fields'] and d['op'] in d['supported'] and (d['op']=='missing' or d['value'] is not None))}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False})], 2: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': True})], 3: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': True})], 4: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False})], 5: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False})]}
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{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Passed
contract fixture 1{'nullable-op': True, 'operand-reset': None, 'operator-options': ['missing', 'in'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': True, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Failed
contract fixture 2{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Passed
contract fixture 3{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': True, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': True, 'unknown-field': False}Passed
contract fixture 4{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Passed
contract fixture 5{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Passed
contract fixture 6{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Passed
contract fixture 7{'nullable-op': False, 'operand-reset': None, 'operator-options': ['missing', 'in'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Failed
contract fixture 8{'nullable-op': True, 'operand-reset': None, 'operator-options': ['missing', 'in'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': True, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Failed
contract fixture 9{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['missing', 'in'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Failed

SHA-256 / 4581f825e303120789d2f9066ef1556e45a87197c6a5e4b21a282a2dc197dcaa

3 / The verified repair

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

N = 1
observations = []
def solve(d):
    return {'operator-options':([x for x in d['operators'] if x in d['supported']]), 'retain-operator':(d['op'] if d['op'] in d['supported'] else d['default']), 'operand-reset':(d['value'] if d['old_type']==d['new_type'] else None), 'unknown-field':(d['field'] not in d['fields']), 'nullable-op':('missing' in d['supported'] and d['nullable']), 'row-complete':(d['field'] in d['fields'] and d['op'] in d['supported'] and (d['op']=='missing' or d['value'] is not None))}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False})], 2: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': True})], 3: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': True})], 4: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': 0, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False})], 5: [({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': 0, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'eq', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': True}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': True, 'nullable-op': True, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['missing', 'in'], 'op': 'missing', 'default': 'eq', 'value': 0, 'old_type': 'number', 'new_type': 'text', 'field': 'a', 'fields': ['a'], 'nullable': False}, {'operator-options': ['missing'], 'retain-operator': 'missing', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': True}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'number', 'field': 'a', 'fields': ['a'], 'nullable': True}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': False, 'nullable-op': False, 'row-complete': False}), ({'operators': ['eq', 'missing'], 'supported': ['eq'], 'op': 'eq', 'default': 'eq', 'value': None, 'old_type': 'number', 'new_type': 'text', 'field': 'z', 'fields': ['a'], 'nullable': False}, {'operator-options': ['eq'], 'retain-operator': 'eq', 'operand-reset': None, 'unknown-field': True, 'nullable-op': False, 'row-complete': False})]}
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{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Passed
contract fixture 1{'nullable-op': True, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': True, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Passed
contract fixture 2{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Passed
contract fixture 3{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': True, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': True, 'unknown-field': False}Passed
contract fixture 4{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Passed
contract fixture 5{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Passed
contract fixture 6{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['eq'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Passed
contract fixture 7{'nullable-op': False, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': False, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Passed
contract fixture 8{'nullable-op': True, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}{'nullable-op': True, 'operand-reset': None, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': False}Passed
contract fixture 9{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}{'nullable-op': False, 'operand-reset': 0, 'operator-options': ['missing'], 'retain-operator': 'eq', 'row-complete': False, 'unknown-field': True}Passed

SHA-256 / 4718e9b3755cb0dc3daf3dd80b498c001ed76011536e6e13282deaa323c8ef27

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

Case digest / 365a76ab5c1e007f3065afc55df8c5b3062cde9ebd36bc0aee6986279f37cabd