{"abstract":"Hiding root removes the only current breadcrumb.","category":"Client navigation","checks":7,"contract":"Append current after ancestors; optionally hide a distinct root; collapse long paths preserving root and recent tail within budget; only ancestors are links. Budget is at least two.","contract_signature":"ancestors, current, max_items, include_root","evaluation_group":"xi-breadcrumb","failed_approach":"Reversing the flag hides roots when explicitly requested.","family":"xi-breadcrumb-root-policy","id":"FA-8636","implementations":{"attempt":{"sha256":"97f264e6e81431a22ea891ce8b16d5528e1582134222b5827f8554f38bb90feb","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(ancestors, current, max_items, include_root):\n    chain = list(ancestors) + [current]\n    if include_root and len(chain) > 1: chain = chain[1:]\n    if len(chain) > max_items:\n        chain = [chain[0], '…'] + chain[-(max_items-2):] if max_items > 2 else chain[-max_items:]\n    return [(x, i != len(chain)-1) for i, x in enumerate(chain)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('normal', solve(['root','parent'], 'current', 5, True), [('root', True), ('parent', True), ('current', False)])\ncheck('only current', solve([], 'current', 5, False), [('current', False)])\ncheck('hide root', solve(['root','parent'], 'current', 5, False), [('parent', True), ('current', False)])\ncheck('collapsed', solve(['root','a','b','c'], 'current', 4, True), [('root', True), ('…', True), ('c', True), ('current', False)])\ncheck('small budget', solve(['root','a','b'], 'current', 2, True), [('b', True), ('current', False)])\ncheck('parameterized ancestor depth', solve(list(range(N)),N,N+2,True), [(i,i!=N) for i in range(N+1)])\nfor repetition in range(N):\n    check('repeat small budget', solve(['root','a','b'], 'current', 2, True), [('b', True), ('current', False)])\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"d447429784bf4345685f1c96d309bd33bb979fc33f5d0714e7ae3d546c9a61c7","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(ancestors, current, max_items, include_root):\n    chain = list(ancestors) + [current]\n    if not include_root: chain = chain[1:]\n    if len(chain) > max_items:\n        chain = [chain[0], '…'] + chain[-(max_items-2):] if max_items > 2 else chain[-max_items:]\n    return [(x, i != len(chain)-1) for i, x in enumerate(chain)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('normal', solve(['root','parent'], 'current', 5, True), [('root', True), ('parent', True), ('current', False)])\ncheck('only current', solve([], 'current', 5, False), [('current', False)])\ncheck('hide root', solve(['root','parent'], 'current', 5, False), [('parent', True), ('current', False)])\ncheck('collapsed', solve(['root','a','b','c'], 'current', 4, True), [('root', True), ('…', True), ('c', True), ('current', False)])\ncheck('small budget', solve(['root','a','b'], 'current', 2, True), [('b', True), ('current', False)])\ncheck('parameterized ancestor depth', solve(list(range(N)),N,N+2,True), [(i,i!=N) for i in range(N+1)])\nfor repetition in range(N):\n    check('repeat small budget', solve(['root','a','b'], 'current', 2, True), [('b', True), ('current', False)])\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":" 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.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"xi-breadcrumb-root-policy","generated_at":"2026-09-29T14:38:23.239034+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic model of breadcrumb ancestor rendering; this isolates one interface invariant without requiring a browser.","root_cause":"The root policy operation uses `if not include_root:` where the contract requires `if not include_root and len(chain) > 1:`.","sha256":"a10b051b908612da33dc2389142eab7924f83414f2f105191020ce2a2c754b04","title":"Breadcrumb ancestor rendering: Hiding root removes the only current breadcrumb · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":37.481,"exit_code":1,"observations":[{"actual":[["parent",true],["current",false]],"check":"normal","expected":[["root",true],["parent",true],["current",false]],"passed":false},{"actual":[["current",false]],"check":"only current","expected":[["current",false]],"passed":true},{"actual":[["root",true],["parent",true],["current",false]],"check":"hide root","expected":[["parent",true],["current",false]],"passed":false},{"actual":[["a",true],["b",true],["c",true],["current",false]],"check":"collapsed","expected":[["root",true],["…",true],["c",true],["current",false]],"passed":false},{"actual":[["b",true],["current",false]],"check":"small budget","expected":[["b",true],["current",false]],"passed":true},{"actual":[[1,false]],"check":"parameterized ancestor depth","expected":[[0,true],[1,false]],"passed":false},{"actual":[["b",true],["current",false]],"check":"repeat small budget","expected":[["b",true],["current",false]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal\", \"actual\": [[\"parent\", true], [\"current\", false]], \"expected\": [[\"root\", true], [\"parent\", true], [\"current\", false]], \"passed\": false}, {\"check\": \"only current\", \"actual\": [[\"current\", false]], \"expected\": [[\"current\", false]], \"passed\": true}, {\"check\": \"hide root\", \"actual\": [[\"root\", true], [\"parent\", true], [\"current\", false]], \"expected\": [[\"parent\", true], [\"current\", false]], \"passed\": false}, {\"check\": \"collapsed\", \"actual\": [[\"a\", true], [\"b\", true], [\"c\", true], [\"current\", false]], \"expected\": [[\"root\", true], [\"…\", true], [\"c\", true], [\"current\", false]], \"passed\": false}, {\"check\": \"small budget\", \"actual\": [[\"b\", true], [\"current\", false]], \"expected\": [[\"b\", true], [\"current\", false]], \"passed\": true}, {\"check\": \"parameterized ancestor depth\", \"actual\": [[1, false]], \"expected\": [[0, true], [1, false]], \"passed\": false}, {\"check\": \"repeat small budget\", \"actual\": [[\"b\", true], [\"current\", false]], \"expected\": [[\"b\", true], [\"current\", false]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.147,"exit_code":1,"observations":[{"actual":[["root",true],["parent",true],["current",false]],"check":"normal","expected":[["root",true],["parent",true],["current",false]],"passed":true},{"actual":[],"check":"only current","expected":[["current",false]],"passed":false},{"actual":[["parent",true],["current",false]],"check":"hide root","expected":[["parent",true],["current",false]],"passed":true},{"actual":[["root",true],["…",true],["c",true],["current",false]],"check":"collapsed","expected":[["root",true],["…",true],["c",true],["current",false]],"passed":true},{"actual":[["b",true],["current",false]],"check":"small budget","expected":[["b",true],["current",false]],"passed":true},{"actual":[[0,true],[1,false]],"check":"parameterized ancestor depth","expected":[[0,true],[1,false]],"passed":true},{"actual":[["b",true],["current",false]],"check":"repeat small budget","expected":[["b",true],["current",false]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"normal\", \"actual\": [[\"root\", true], [\"parent\", true], [\"current\", false]], \"expected\": [[\"root\", true], [\"parent\", true], [\"current\", false]], \"passed\": true}, {\"check\": \"only current\", \"actual\": [], \"expected\": [[\"current\", false]], \"passed\": false}, {\"check\": \"hide root\", \"actual\": [[\"parent\", true], [\"current\", false]], \"expected\": [[\"parent\", true], [\"current\", false]], \"passed\": true}, {\"check\": \"collapsed\", \"actual\": [[\"root\", true], [\"…\", true], [\"c\", true], [\"current\", false]], \"expected\": [[\"root\", true], [\"…\", true], [\"c\", true], [\"current\", false]], \"passed\": true}, {\"check\": \"small budget\", \"actual\": [[\"b\", true], [\"current\", false]], \"expected\": [[\"b\", true], [\"current\", false]], \"passed\": true}, {\"check\": \"parameterized ancestor depth\", \"actual\": [[0, true], [1, false]], \"expected\": [[0, true], [1, false]], \"passed\": true}, {\"check\": \"repeat small budget\", \"actual\": [[\"b\", true], [\"current\", false]], \"expected\": [[\"b\", true], [\"current\", false]], \"passed\": true}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}