FA-25161 / Filter interfaces / Open access
Reverse activation traverses the tri-state cycle backward · case 01
Reverse activation traverses the tri-state cycle backward is violated by the widget projection.
ROOT CAUSE
The reverse-cycle decision uses `{'neutral':'include','include':'exclude','exclude':'neutral'}[d['state']]` instead of the stipulated tristate-facet projection.
VERIFIED REPAIR
Implement the declared reverse-cycle projection: `{'neutral':'exclude','include':'neutral','exclude':'include'}[d['state']]`.
Unsuccessful approach: The attempted correction `'neutral'` still violates the explicit contract fixtures.
Case contract
A facet has neutral/include/exclude states. The UI cycles neutral to include to exclude to neutral, exposes polarity, and serializes inclusion and exclusion separately. This example checks: Reverse activation traverses the tri-state cycle backward.
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 {'cycle':({'neutral':'include','include':'exclude','exclude':'neutral'}[d['state']]), 'negative-operand':(d['value'] if d['state']=='exclude' else None), 'positive-operand':(d['value'] if d['state']=='include' else None), 'exclusion-badge':('minus' if d['state']=='exclude' else ('check' if d['state']=='include' else 'none')), 'reverse-cycle':({'neutral':'include','include':'exclude','exclude':'neutral'}[d['state']]), 'negation-help':('Exclude '+d['value'] if d['state']=='include' else ('Clear '+d['value'] if d['state']=='exclude' else 'Include '+d['value']))}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'})], 2: [({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'})], 3: [({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'})], 4: [({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'})], 5: [({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'}), ({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'})]}
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 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include red', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'include'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include red', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Failed |
| contract fixture 1 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include gold', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'include'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include gold', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Failed |
| contract fixture 2 | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude gold', 'negative-operand': None, 'positive-operand': 'gold', 'reverse-cycle': 'exclude'} | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude gold', 'negative-operand': None, 'positive-operand': 'gold', 'reverse-cycle': 'neutral'} | Failed |
| contract fixture 3 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear red', 'negative-operand': 'red', 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear red', 'negative-operand': 'red', 'positive-operand': None, 'reverse-cycle': 'include'} | Failed |
| contract fixture 4 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear blue', 'negative-operand': 'blue', 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear blue', 'negative-operand': 'blue', 'positive-operand': None, 'reverse-cycle': 'include'} | Failed |
| contract fixture 5 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear green', 'negative-operand': 'green', 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear green', 'negative-operand': 'green', 'positive-operand': None, 'reverse-cycle': 'include'} | Failed |
| contract fixture 6 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear gold', 'negative-operand': 'gold', 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear gold', 'negative-operand': 'gold', 'positive-operand': None, 'reverse-cycle': 'include'} | Failed |
| contract fixture 7 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include blue', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'include'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include blue', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Failed |
| contract fixture 8 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include green', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'include'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include green', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Failed |
| contract fixture 9 | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude red', 'negative-operand': None, 'positive-operand': 'red', 'reverse-cycle': 'exclude'} | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude red', 'negative-operand': None, 'positive-operand': 'red', 'reverse-cycle': 'neutral'} | Failed |
SHA-256 / 402f17d2c4c69f8acfa540a7977ad603a2d6d904c1252bdc6459a7c591b8b5d1
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(d):
return {'cycle':({'neutral':'include','include':'exclude','exclude':'neutral'}[d['state']]), 'negative-operand':(d['value'] if d['state']=='exclude' else None), 'positive-operand':(d['value'] if d['state']=='include' else None), 'exclusion-badge':('minus' if d['state']=='exclude' else ('check' if d['state']=='include' else 'none')), 'reverse-cycle':('neutral'), 'negation-help':('Exclude '+d['value'] if d['state']=='include' else ('Clear '+d['value'] if d['state']=='exclude' else 'Include '+d['value']))}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'})], 2: [({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'})], 3: [({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'})], 4: [({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'})], 5: [({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'}), ({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'})]}
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 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include red', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include red', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Failed |
| contract fixture 1 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include gold', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include gold', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Failed |
| contract fixture 2 | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude gold', 'negative-operand': None, 'positive-operand': 'gold', 'reverse-cycle': 'neutral'} | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude gold', 'negative-operand': None, 'positive-operand': 'gold', 'reverse-cycle': 'neutral'} | Passed |
| contract fixture 3 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear red', 'negative-operand': 'red', 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear red', 'negative-operand': 'red', 'positive-operand': None, 'reverse-cycle': 'include'} | Failed |
| contract fixture 4 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear blue', 'negative-operand': 'blue', 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear blue', 'negative-operand': 'blue', 'positive-operand': None, 'reverse-cycle': 'include'} | Failed |
| contract fixture 5 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear green', 'negative-operand': 'green', 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear green', 'negative-operand': 'green', 'positive-operand': None, 'reverse-cycle': 'include'} | Failed |
| contract fixture 6 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear gold', 'negative-operand': 'gold', 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear gold', 'negative-operand': 'gold', 'positive-operand': None, 'reverse-cycle': 'include'} | Failed |
| contract fixture 7 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include blue', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include blue', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Failed |
| contract fixture 8 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include green', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'neutral'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include green', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Failed |
| contract fixture 9 | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude red', 'negative-operand': None, 'positive-operand': 'red', 'reverse-cycle': 'neutral'} | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude red', 'negative-operand': None, 'positive-operand': 'red', 'reverse-cycle': 'neutral'} | Passed |
SHA-256 / bc07b57d21af5ef16afb936d0a87f025c34652b4bf36f723c0ec2102394c734c
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(d):
return {'cycle':({'neutral':'include','include':'exclude','exclude':'neutral'}[d['state']]), 'negative-operand':(d['value'] if d['state']=='exclude' else None), 'positive-operand':(d['value'] if d['state']=='include' else None), 'exclusion-badge':('minus' if d['state']=='exclude' else ('check' if d['state']=='include' else 'none')), 'reverse-cycle':({'neutral':'exclude','include':'neutral','exclude':'include'}[d['state']]), 'negation-help':('Exclude '+d['value'] if d['state']=='include' else ('Clear '+d['value'] if d['state']=='exclude' else 'Include '+d['value']))}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'})], 2: [({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'})], 3: [({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'})], 4: [({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'}), ({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'blue'}, {'cycle': 'neutral', 'negative-operand': 'blue', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear blue'}), ({'state': 'exclude', 'value': 'green'}, {'cycle': 'neutral', 'negative-operand': 'green', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear green'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'})], 5: [({'state': 'include', 'value': 'red'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'red', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude red'}), ({'state': 'exclude', 'value': 'gold'}, {'cycle': 'neutral', 'negative-operand': 'gold', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear gold'}), ({'state': 'neutral', 'value': 'red'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include red'}), ({'state': 'neutral', 'value': 'blue'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include blue'}), ({'state': 'neutral', 'value': 'green'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include green'}), ({'state': 'neutral', 'value': 'gold'}, {'cycle': 'include', 'negative-operand': None, 'positive-operand': None, 'exclusion-badge': 'none', 'reverse-cycle': 'exclude', 'negation-help': 'Include gold'}), ({'state': 'include', 'value': 'blue'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'blue', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude blue'}), ({'state': 'include', 'value': 'green'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'green', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude green'}), ({'state': 'include', 'value': 'gold'}, {'cycle': 'exclude', 'negative-operand': None, 'positive-operand': 'gold', 'exclusion-badge': 'check', 'reverse-cycle': 'neutral', 'negation-help': 'Exclude gold'}), ({'state': 'exclude', 'value': 'red'}, {'cycle': 'neutral', 'negative-operand': 'red', 'positive-operand': None, 'exclusion-badge': 'minus', 'reverse-cycle': 'include', 'negation-help': 'Clear red'})]}
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 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include red', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include red', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Passed |
| contract fixture 1 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include gold', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include gold', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Passed |
| contract fixture 2 | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude gold', 'negative-operand': None, 'positive-operand': 'gold', 'reverse-cycle': 'neutral'} | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude gold', 'negative-operand': None, 'positive-operand': 'gold', 'reverse-cycle': 'neutral'} | Passed |
| contract fixture 3 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear red', 'negative-operand': 'red', 'positive-operand': None, 'reverse-cycle': 'include'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear red', 'negative-operand': 'red', 'positive-operand': None, 'reverse-cycle': 'include'} | Passed |
| contract fixture 4 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear blue', 'negative-operand': 'blue', 'positive-operand': None, 'reverse-cycle': 'include'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear blue', 'negative-operand': 'blue', 'positive-operand': None, 'reverse-cycle': 'include'} | Passed |
| contract fixture 5 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear green', 'negative-operand': 'green', 'positive-operand': None, 'reverse-cycle': 'include'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear green', 'negative-operand': 'green', 'positive-operand': None, 'reverse-cycle': 'include'} | Passed |
| contract fixture 6 | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear gold', 'negative-operand': 'gold', 'positive-operand': None, 'reverse-cycle': 'include'} | {'cycle': 'neutral', 'exclusion-badge': 'minus', 'negation-help': 'Clear gold', 'negative-operand': 'gold', 'positive-operand': None, 'reverse-cycle': 'include'} | Passed |
| contract fixture 7 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include blue', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include blue', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Passed |
| contract fixture 8 | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include green', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | {'cycle': 'include', 'exclusion-badge': 'none', 'negation-help': 'Include green', 'negative-operand': None, 'positive-operand': None, 'reverse-cycle': 'exclude'} | Passed |
| contract fixture 9 | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude red', 'negative-operand': None, 'positive-operand': 'red', 'reverse-cycle': 'neutral'} | {'cycle': 'exclude', 'exclusion-badge': 'check', 'negation-help': 'Exclude red', 'negative-operand': None, 'positive-operand': 'red', 'reverse-cycle': 'neutral'} | Passed |
SHA-256 / 17f05b607fdeea80590701ddb96e53e1025e9d18f01dac1f027e35abf62a667a
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:04.166210+00:00.
Case digest / 0d2d6c18692b57b721eac5ed435c6543e324c5854081d9f00d8a22dcae7a1738