FAILURE MAP
← Case archive

FA-26211 / Filter interfaces / Open access

The active breadcrumb identifies the final actual drilldown step · case 01

The active breadcrumb identifies the final actual drilldown step is violated by the widget projection.

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

ROOT CAUSE

The active-crumb decision uses `len(d['trail'])` instead of the stipulated drilldown-trail projection.

VERIFIED REPAIR

Implement the declared active-crumb projection: `len(d['trail'])-1 if d['trail'] else None`.

Unsuccessful approach: The attempted correction `0 if d['trail'] else None` 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: The active breadcrumb identifies the final actual drilldown step.

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['global_filters']+d['trail']), 'branch-after-back':(d['trail'][:d['index']+1]+[d['new']]), 'active-crumb':(len(d['trail'])), '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': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], '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': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], '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': 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': [], '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': 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': [], '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': [], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'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 fixtureActualExpectedOutcome
contract fixture 0{'active-crumb': 0, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': [], 'root-reset': []}{'active-crumb': None, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': [], 'root-reset': []}Failed
contract fixture 1{'active-crumb': 3, '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']}Failed
contract fixture 2{'active-crumb': 0, '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']}Failed
contract fixture 3{'active-crumb': 1, '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': []}Failed
contract fixture 4{'active-crumb': 1, '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']}Failed
contract fixture 5{'active-crumb': 1, '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': []}Failed
contract fixture 6{'active-crumb': 1, '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']}Failed
contract fixture 7{'active-crumb': 3, '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': []}Failed
contract fixture 8{'active-crumb': 3, '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': []}Failed
contract fixture 9{'active-crumb': 3, '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']}Failed

SHA-256 / 730a6885662a79e017b054ac0da38c4cab9f400916c6203aed1a1dffac32e26f

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']), 'branch-after-back':(d['trail'][:d['index']+1]+[d['new']]), 'active-crumb':(0 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': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], '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': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], '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': 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': [], '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': 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': [], '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': [], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'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 fixtureActualExpectedOutcome
contract fixture 0{'active-crumb': None, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': [], 'root-reset': []}{'active-crumb': None, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': [], 'root-reset': []}Passed
contract fixture 1{'active-crumb': 0, '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']}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': 0, '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': []}Failed
contract fixture 8{'active-crumb': 0, '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': []}Failed
contract fixture 9{'active-crumb': 0, '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']}Failed

SHA-256 / e745e0af404482ed70fd4b4b782f77e389c029f71aad0f2aa8c3d830d46dced2

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': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], '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': [], 'new': 'y'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], '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': 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': [], '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': 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': [], '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': [], 'index': 1, 'global_filters': [], 'new': 'x'}, {'breadcrumb-cut': [], 'root-reset': [], 'effective-constraints': [], 'branch-after-back': ['x'], 'active-crumb': None, 'drilldown-depth': 0}), ({'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 fixtureActualExpectedOutcome
contract fixture 0{'active-crumb': None, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': [], 'root-reset': []}{'active-crumb': None, 'branch-after-back': ['x'], 'breadcrumb-cut': [], 'drilldown-depth': 0, 'effective-constraints': [], 'root-reset': []}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 / d4fcb56edf432a3c2b0a75a7035d5feb1829b5f52f8f547e00a799fd402c7c9a

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

Case digest / 1ba826c8f4d7f26f4335ee17afa0e0313105e485eed30a7445d6b88d81021c84