FA-25511 / Filter interfaces / Open access
Boolean captions distinguish no restriction from false restriction · case 01
Boolean captions distinguish no restriction from false restriction is violated by the widget projection.
ROOT CAUSE
The choice-caption decision uses `'Yes' if d['choice']=='true' else 'Any'` instead of the stipulated boolean-facet projection.
THE FAILURE
The choice-caption decision uses `'Yes' if d['choice']=='true' else 'Any'` instead of the stipulated boolean-facet projection.
Unsuccessful approach: The attempted correction `'Yes' if bool(d['choice']) else 'No'` still violates the explicit contract fixtures.
Case contract
A boolean filter has any/true/false states; false is an active constraint, and the UI does not coerce string labels into booleans. This example checks: Boolean captions distinguish no restriction from false restriction.
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 {'active-false':(d['choice']!='any'), 'typed-operand':(None if d['choice']=='any' else d['choice']=='true'), 'choice-caption':('Yes' if d['choice']=='true' else 'Any'), 'invert':({'any':'any','true':'false','false':'true'}[d['choice']]), 'hydrate':({'true':'true','false':'false'}.get(d['raw'],'any')), 'false-badge':('negative' if d['choice']=='false' else ('positive' if d['choice']=='true' else 'neutral'))}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'choice': 'false', 'raw': ''}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': 'yes'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'true', 'raw': 'false'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'false', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'yes'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': '0'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'false', 'raw': 'true'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'true', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'false'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'false', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'yes'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': '0'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': ''}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'})], 2: [({'choice': 'false', 'raw': 'true'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'true', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': '0'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': ''}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': 'true'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'true', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': 'false'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'false', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': 'yes'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': '0'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'true', 'raw': ''}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'true'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'true', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'false'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'false', 'false-badge': 'positive'})], 3: [({'choice': 'false', 'raw': 'false'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'false', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': '0'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'true', 'raw': 'true'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'true', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'false'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'false', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'yes'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': '0'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'false', 'raw': ''}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'true'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'true', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'yes'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': ''}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'})], 4: [({'choice': 'false', 'raw': 'yes'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': 'false'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'false', 'false-badge': 'neutral'}), ({'choice': 'false', 'raw': '0'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': ''}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': 'true'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'true', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': 'yes'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': '0'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'true', 'raw': ''}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'true'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'true', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'false'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'false', 'false-badge': 'positive'})], 5: [({'choice': 'false', 'raw': '0'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': ''}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'true', 'raw': ''}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'true'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'true', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'false'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'false', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'yes'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': '0'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'false', 'raw': 'true'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'true', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'false'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'false', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'yes'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'})]}
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 | {'active-false': True, 'choice-caption': 'Any', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | {'active-false': True, 'choice-caption': 'No', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | Failed |
| contract fixture 1 | {'active-false': False, 'choice-caption': 'Any', 'false-badge': 'neutral', 'hydrate': 'any', 'invert': 'any', 'typed-operand': None} | {'active-false': False, 'choice-caption': 'Any', 'false-badge': 'neutral', 'hydrate': 'any', 'invert': 'any', 'typed-operand': None} | Passed |
| contract fixture 2 | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'false', 'invert': 'false', 'typed-operand': True} | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'false', 'invert': 'false', 'typed-operand': True} | Passed |
| contract fixture 3 | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'any', 'invert': 'false', 'typed-operand': True} | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'any', 'invert': 'false', 'typed-operand': True} | Passed |
| contract fixture 4 | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'any', 'invert': 'false', 'typed-operand': True} | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'any', 'invert': 'false', 'typed-operand': True} | Passed |
| contract fixture 5 | {'active-false': True, 'choice-caption': 'Any', 'false-badge': 'negative', 'hydrate': 'true', 'invert': 'true', 'typed-operand': False} | {'active-false': True, 'choice-caption': 'No', 'false-badge': 'negative', 'hydrate': 'true', 'invert': 'true', 'typed-operand': False} | Failed |
| contract fixture 6 | {'active-false': True, 'choice-caption': 'Any', 'false-badge': 'negative', 'hydrate': 'false', 'invert': 'true', 'typed-operand': False} | {'active-false': True, 'choice-caption': 'No', 'false-badge': 'negative', 'hydrate': 'false', 'invert': 'true', 'typed-operand': False} | Failed |
| contract fixture 7 | {'active-false': True, 'choice-caption': 'Any', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | {'active-false': True, 'choice-caption': 'No', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | Failed |
| contract fixture 8 | {'active-false': True, 'choice-caption': 'Any', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | {'active-false': True, 'choice-caption': 'No', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | Failed |
| contract fixture 9 | {'active-false': False, 'choice-caption': 'Any', 'false-badge': 'neutral', 'hydrate': 'any', 'invert': 'any', 'typed-operand': None} | {'active-false': False, 'choice-caption': 'Any', 'false-badge': 'neutral', 'hydrate': 'any', 'invert': 'any', 'typed-operand': None} | Passed |
SHA-256 / 802aa99aad5a85697d908fc63d71eaea4cf3d48c8e8aabcc6055af5d6691a5d1
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(d):
return {'active-false':(d['choice']!='any'), 'typed-operand':(None if d['choice']=='any' else d['choice']=='true'), 'choice-caption':('Yes' if bool(d['choice']) else 'No'), 'invert':({'any':'any','true':'false','false':'true'}[d['choice']]), 'hydrate':({'true':'true','false':'false'}.get(d['raw'],'any')), 'false-badge':('negative' if d['choice']=='false' else ('positive' if d['choice']=='true' else 'neutral'))}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'choice': 'false', 'raw': ''}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': 'yes'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'true', 'raw': 'false'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'false', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'yes'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': '0'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'false', 'raw': 'true'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'true', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'false'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'false', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'yes'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': '0'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': ''}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'})], 2: [({'choice': 'false', 'raw': 'true'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'true', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': '0'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': ''}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': 'true'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'true', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': 'false'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'false', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': 'yes'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': '0'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'true', 'raw': ''}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'true'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'true', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'false'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'false', 'false-badge': 'positive'})], 3: [({'choice': 'false', 'raw': 'false'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'false', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': '0'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'true', 'raw': 'true'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'true', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'false'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'false', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'yes'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': '0'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'false', 'raw': ''}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'true'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'true', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'yes'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': ''}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'})], 4: [({'choice': 'false', 'raw': 'yes'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': 'false'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'false', 'false-badge': 'neutral'}), ({'choice': 'false', 'raw': '0'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'any', 'raw': ''}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': 'true'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'true', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': 'yes'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'any', 'raw': '0'}, {'active-false': False, 'typed-operand': None, 'choice-caption': 'Any', 'invert': 'any', 'hydrate': 'any', 'false-badge': 'neutral'}), ({'choice': 'true', 'raw': ''}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'true'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'true', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'false'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'false', 'false-badge': 'positive'})], 5: [({'choice': 'false', 'raw': '0'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': ''}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'}), ({'choice': 'true', 'raw': ''}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'true'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'true', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'false'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'false', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': 'yes'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'true', 'raw': '0'}, {'active-false': True, 'typed-operand': True, 'choice-caption': 'Yes', 'invert': 'false', 'hydrate': 'any', 'false-badge': 'positive'}), ({'choice': 'false', 'raw': 'true'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'true', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'false'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'false', 'false-badge': 'negative'}), ({'choice': 'false', 'raw': 'yes'}, {'active-false': True, 'typed-operand': False, 'choice-caption': 'No', 'invert': 'true', 'hydrate': 'any', 'false-badge': 'negative'})]}
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 | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | {'active-false': True, 'choice-caption': 'No', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | Failed |
| contract fixture 1 | {'active-false': False, 'choice-caption': 'Yes', 'false-badge': 'neutral', 'hydrate': 'any', 'invert': 'any', 'typed-operand': None} | {'active-false': False, 'choice-caption': 'Any', 'false-badge': 'neutral', 'hydrate': 'any', 'invert': 'any', 'typed-operand': None} | Failed |
| contract fixture 2 | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'false', 'invert': 'false', 'typed-operand': True} | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'false', 'invert': 'false', 'typed-operand': True} | Passed |
| contract fixture 3 | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'any', 'invert': 'false', 'typed-operand': True} | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'any', 'invert': 'false', 'typed-operand': True} | Passed |
| contract fixture 4 | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'any', 'invert': 'false', 'typed-operand': True} | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'positive', 'hydrate': 'any', 'invert': 'false', 'typed-operand': True} | Passed |
| contract fixture 5 | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'negative', 'hydrate': 'true', 'invert': 'true', 'typed-operand': False} | {'active-false': True, 'choice-caption': 'No', 'false-badge': 'negative', 'hydrate': 'true', 'invert': 'true', 'typed-operand': False} | Failed |
| contract fixture 6 | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'negative', 'hydrate': 'false', 'invert': 'true', 'typed-operand': False} | {'active-false': True, 'choice-caption': 'No', 'false-badge': 'negative', 'hydrate': 'false', 'invert': 'true', 'typed-operand': False} | Failed |
| contract fixture 7 | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | {'active-false': True, 'choice-caption': 'No', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | Failed |
| contract fixture 8 | {'active-false': True, 'choice-caption': 'Yes', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | {'active-false': True, 'choice-caption': 'No', 'false-badge': 'negative', 'hydrate': 'any', 'invert': 'true', 'typed-operand': False} | Failed |
| contract fixture 9 | {'active-false': False, 'choice-caption': 'Yes', 'false-badge': 'neutral', 'hydrate': 'any', 'invert': 'any', 'typed-operand': None} | {'active-false': False, 'choice-caption': 'Any', 'false-badge': 'neutral', 'hydrate': 'any', 'invert': 'any', 'typed-operand': None} | Failed |
SHA-256 / 4df5d5a6e42b81e9e7dc486ec16b053491e5ada26beb3e84c1896a20e4dbeacd
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:07.374344+00:00.
Case digest / dc40b75daaede0f80d9d29bcd4fde1177994be6aa5364eae4a34103ef492d0ed