FA-26201 / Filter interfaces / Open access
Effective filtering retains all drilldown ancestor constraints · case 01
Effective filtering retains all drilldown ancestor constraints is violated by the widget projection.
ROOT CAUSE
The effective-constraints decision uses `d['trail']` instead of the stipulated drilldown-trail projection.
VERIFIED REPAIR
Implement the declared effective-constraints projection: `d['global_filters']+d['trail']`.
Unsuccessful approach: The attempted correction `d['global_filters']+d['trail'][-1:]` still violates the explicit contract fixtures.
Case contract
A facet drilldown trail records a sequence of scoped constraints; returning to a breadcrumb truncates later drilldowns while preserving independent global filters. This example checks: Effective filtering retains all drilldown ancestor constraints.
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 {'breadcrumb-cut':(d['trail'][:d['index']+1]), 'root-reset':(d['global_filters']), 'effective-constraints':(d['trail']), 'branch-after-back':(d['trail'][:d['index']+1]+[d['new']]), 'active-crumb':(len(d['trail'])-1 if d['trail'] else None), 'drilldown-depth':(len(d['trail']))}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3})], 2: [({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0})], 3: [({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1})], 4: [({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a'], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3})], 5: [({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0})]}
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-crumb': None, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': [], 'root-reset': ['scope']} | {'active-crumb': None, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': ['scope'], 'root-reset': ['scope']} | Failed |
| contract fixture 1 | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': ['scope']} | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['scope', 'a', 'b', 'a'], 'root-reset': ['scope']} | Failed |
| contract fixture 2 | {'active-crumb': None, 'branch-after-back': ['y'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': [], 'root-reset': ['scope']} | {'active-crumb': None, 'branch-after-back': ['y'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': ['scope'], 'root-reset': ['scope']} | Failed |
| contract fixture 3 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | Passed |
| contract fixture 4 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': ['scope']} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | Failed |
| contract fixture 5 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | Passed |
| contract fixture 6 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': ['scope']} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | Failed |
| contract fixture 7 | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': []} | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': []} | Passed |
| contract fixture 8 | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': []} | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': []} | Passed |
| contract fixture 9 | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': ['scope']} | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['scope', 'a', 'b', 'a'], 'root-reset': ['scope']} | Failed |
SHA-256 / 248a50b7e771155dbafe2421af38c8f76a399bb9c6b5a4d728a37724586f7c61
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(d):
return {'breadcrumb-cut':(d['trail'][:d['index']+1]), 'root-reset':(d['global_filters']), 'effective-constraints':(d['global_filters']+d['trail'][-1:]), 'branch-after-back':(d['trail'][:d['index']+1]+[d['new']]), 'active-crumb':(len(d['trail'])-1 if d['trail'] else None), 'drilldown-depth':(len(d['trail']))}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3})], 2: [({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0})], 3: [({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1})], 4: [({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a'], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3})], 5: [({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0})]}
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-crumb': None, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': ['scope'], 'root-reset': ['scope']} | {'active-crumb': None, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': ['scope'], 'root-reset': ['scope']} | Passed |
| contract fixture 1 | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['scope', 'a', 'b', 'a'], 'root-reset': ['scope']} | Failed |
| contract fixture 2 | {'active-crumb': None, 'branch-after-back': ['y'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': ['scope'], 'root-reset': ['scope']} | {'active-crumb': None, 'branch-after-back': ['y'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': ['scope'], 'root-reset': ['scope']} | Passed |
| contract fixture 3 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | Passed |
| contract fixture 4 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | Passed |
| contract fixture 5 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | Passed |
| contract fixture 6 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | Passed |
| contract fixture 7 | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['a'], 'root-reset': []} | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': []} | Failed |
| contract fixture 8 | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['a'], 'root-reset': []} | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': []} | Failed |
| contract fixture 9 | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['scope', 'a', 'b', 'a'], 'root-reset': ['scope']} | Failed |
SHA-256 / aa2a9343bf3733142b57bc2ec748400b2f0c79a8a746a56d283ef06d18b0f864
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(d):
return {'breadcrumb-cut':(d['trail'][:d['index']+1]), 'root-reset':(d['global_filters']), 'effective-constraints':(d['global_filters']+d['trail']), 'branch-after-back':(d['trail'][:d['index']+1]+[d['new']]), 'active-crumb':(len(d['trail'])-1 if d['trail'] else None), 'drilldown-depth':(len(d['trail']))}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = {1: [({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3})], 2: [({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0})], 3: [({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1})], 4: [({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': ['a'], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 2, 'drilldown-depth': 3})], 5: [({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'x'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'x'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a'], 'index': 1, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 0, 'drilldown-depth': 1}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': ['a'], 'root-reset': ['scope'], 'effective-constraints': ['scope', 'a', 'b', 'a'], 'branch-after-back': ['a', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': ['a', 'b', 'a'], 'index': 1, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': ['a', 'b'], 'root-reset': [], 'effective-constraints': ['a', 'b', 'a'], 'branch-after-back': ['a', 'b', 'y'], 'active-crumb': 2, 'drilldown-depth': 3}), ({'trail': [], 'index': 0, 'global_filters': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0}), ({'trail': [], 'index': 0, 'global_filters': ['scope'], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': ['scope'], 'effective-constraints': ['scope'], 'branch-after-back': ['y'], 'active-crumb': None, 'drilldown-depth': 0})]}
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-crumb': None, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': ['scope'], 'root-reset': ['scope']} | {'active-crumb': None, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': ['scope'], 'root-reset': ['scope']} | Passed |
| contract fixture 1 | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['scope', 'a', 'b', 'a'], 'root-reset': ['scope']} | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['scope', 'a', 'b', 'a'], 'root-reset': ['scope']} | Passed |
| contract fixture 2 | {'active-crumb': None, 'branch-after-back': ['y'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': ['scope'], 'root-reset': ['scope']} | {'active-crumb': None, 'branch-after-back': ['y'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': ['scope'], 'root-reset': ['scope']} | Passed |
| contract fixture 3 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | Passed |
| contract fixture 4 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | Passed |
| contract fixture 5 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['a'], 'root-reset': []} | Passed |
| contract fixture 6 | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | {'active-crumb': 0, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 1, 'effective-constraints': ['scope', 'a'], 'root-reset': ['scope']} | Passed |
| contract fixture 7 | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': []} | {'active-crumb': 2, 'branch-after-back': ['a', 'y'], 'breadcrumb-cut': ['a'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': []} | Passed |
| contract fixture 8 | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': []} | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['a', 'b', 'a'], 'root-reset': []} | Passed |
| contract fixture 9 | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['scope', 'a', 'b', 'a'], 'root-reset': ['scope']} | {'active-crumb': 2, 'branch-after-back': ['a', 'b', 'y'], 'breadcrumb-cut': ['a', 'b'], 'drilldown-depth': 3, 'effective-constraints': ['scope', 'a', 'b', 'a'], 'root-reset': ['scope']} | Passed |
SHA-256 / 3f846dce470c58d60942e6af068c189f7be0d68e9a7140ea9cc71e51678c96b2
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:13.747038+00:00.
Case digest / d363759c46511115b7354befec4f660246cc92378df395933b2e6b76354f2efc