{"abstract":"Nodes without relations disappear from snapshot results.","category":"Accessibility interaction semantics","checks":6,"contract":"Input [node_ids,relations] relations [source,kind,target]. Kind label_for maps inverse labelled_by, description_for maps described_by, controls maps controlled_by, details maps details_for. Unknown types ignored. Resolve only existing distinct nodes. For each node output direct and inverse [kind,other_id] pairs, deduping while preserving relation encounter order. Direct is appended before inverse. Nodes with no links are retained in input order; input node IDs are unique. Forward and reverse kinds remain distinct even for reciprocal declarations.","contract_signature":"data","evaluation_group":"s3-accessibility-inverse-relations","failed_approach":"The local repair substitutes for node in sorted(nodes)] but still mishandles the regression fixtures.","family":"s3-accessibility-inverse-relations-isolated-retention","id":"FA-54291","implementations":{"attempt":{"sha256":"012a72c46df06155695e35c2f5cdeb0987723714853dce82b8cf4bcbadc26d23","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(data):\n    nodes,relations = data\n    inverse = {'label_for':'labelled_by','description_for':'described_by','controls':'controlled_by','details':'details_for'}\n    result = {node:[] for node in nodes}\n    for source,kind,target in relations:\n        if kind not in inverse or source not in result or target not in result or source == target: continue\n        forward = [kind,target]\n        backward = [inverse[kind],source]\n        if forward not in result[source]: result[source].append(forward)\n        if backward not in result[target]: result[target].append(backward)\n    return [[node,result[node]] for node in sorted(nodes)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('contract fixture 1', solve([['a','b',str(N),'alone'],[['a','label_for','b'],['a','description_for','b'],['b','controls',str(N)],['a','details',str(N)]]],), [['a',[['label_for','b'],['description_for','b'],['details',str(N)]]],['b',[['labelled_by','a'],['described_by','a'],['controls',str(N)]]],[str(N),[['controlled_by','b'],['details_for','a']]],['alone',[]]])\ncheck('contract fixture 2', solve([['a','b'],[['a','controls','b'],['b','controls','a']]],), [['a',[['controls','b'],['controlled_by','b']]],['b',[['controlled_by','a'],['controls','a']]]])\ncheck('contract fixture 3', solve([['a','b'],[['a','controls','b'],['a','controls','b']]],), [['a',[['controls','b']]],['b',[['controlled_by','a']]]])\ncheck('contract fixture 4', solve([['a'],[['a','controls','a'],['a','unknown','a'],['a','controls','missing'],['missing','details','a']]],), [['a',[]]])\ncheck('contract fixture 5', solve([['z','a'],[]],), [['z',[]],['a',[]]])\ncheck('contract fixture 6', solve([[],[]],), [])\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":"c5421dea2437cb133e5d554ae2deb7d3666a9cacd7933131272909f25499db36","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(data):\n    nodes,relations = data\n    inverse = {'label_for':'labelled_by','description_for':'described_by','controls':'controlled_by','details':'details_for'}\n    result = {node:[] for node in nodes}\n    for source,kind,target in relations:\n        if kind not in inverse or source not in result or target not in result or source == target: continue\n        forward = [kind,target]\n        backward = [inverse[kind],source]\n        if forward not in result[source]: result[source].append(forward)\n        if backward not in result[target]: result[target].append(backward)\n    return [[node,result[node]] for node in nodes if result[node]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('contract fixture 1', solve([['a','b',str(N),'alone'],[['a','label_for','b'],['a','description_for','b'],['b','controls',str(N)],['a','details',str(N)]]],), [['a',[['label_for','b'],['description_for','b'],['details',str(N)]]],['b',[['labelled_by','a'],['described_by','a'],['controls',str(N)]]],[str(N),[['controlled_by','b'],['details_for','a']]],['alone',[]]])\ncheck('contract fixture 2', solve([['a','b'],[['a','controls','b'],['b','controls','a']]],), [['a',[['controls','b'],['controlled_by','b']]],['b',[['controlled_by','a'],['controls','a']]]])\ncheck('contract fixture 3', solve([['a','b'],[['a','controls','b'],['a','controls','b']]],), [['a',[['controls','b']]],['b',[['controlled_by','a']]]])\ncheck('contract fixture 4', solve([['a'],[['a','controls','a'],['a','unknown','a'],['a','controls','missing'],['missing','details','a']]],), [['a',[]]])\ncheck('contract fixture 5', solve([['z','a'],[]],), [['z',[]],['a',[]]])\ncheck('contract fixture 6', solve([[],[]],), [])\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":"Stipulated finite adapter contract, not a claim of platform accessibility or ARIA conformance. 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":"s3-accessibility-inverse-relations-isolated-retention","generated_at":"2026-09-29T14:45:47.060213+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Offline accessibility bridge model with explicit policy; useful for testing semantic API adapters independently of browser implementations.","root_cause":"The isolated retention decision in the inverse relations adapter violates its declared contract.","sha256":"1493786523e4c1c4aadd698c348e5aa830c9f71ceb4eeea897475c240bbab7d1","title":"Nodes without relations disappear from snapshot results · 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":41.311,"exit_code":1,"observations":[{"actual":[["1",[["controlled_by","b"],["details_for","a"]]],["a",[["label_for","b"],["description_for","b"],["details","1"]]],["alone",[]],["b",[["labelled_by","a"],["described_by","a"],["controls","1"]]]],"check":"contract fixture 1","expected":[["a",[["label_for","b"],["description_for","b"],["details","1"]]],["b",[["labelled_by","a"],["described_by","a"],["controls","1"]]],["1",[["controlled_by","b"],["details_for","a"]]],["alone",[]]],"passed":false},{"actual":[["a",[["controls","b"],["controlled_by","b"]]],["b",[["controlled_by","a"],["controls","a"]]]],"check":"contract fixture 2","expected":[["a",[["controls","b"],["controlled_by","b"]]],["b",[["controlled_by","a"],["controls","a"]]]],"passed":true},{"actual":[["a",[["controls","b"]]],["b",[["controlled_by","a"]]]],"check":"contract fixture 3","expected":[["a",[["controls","b"]]],["b",[["controlled_by","a"]]]],"passed":true},{"actual":[["a",[]]],"check":"contract fixture 4","expected":[["a",[]]],"passed":true},{"actual":[["a",[]],["z",[]]],"check":"contract fixture 5","expected":[["z",[]],["a",[]]],"passed":false},{"actual":[],"check":"contract fixture 6","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"contract fixture 1\", \"actual\": [[\"1\", [[\"controlled_by\", \"b\"], [\"details_for\", \"a\"]]], [\"a\", [[\"label_for\", \"b\"], [\"description_for\", \"b\"], [\"details\", \"1\"]]], [\"alone\", []], [\"b\", [[\"labelled_by\", \"a\"], [\"described_by\", \"a\"], [\"controls\", \"1\"]]]], \"expected\": [[\"a\", [[\"label_for\", \"b\"], [\"description_for\", \"b\"], [\"details\", \"1\"]]], [\"b\", [[\"labelled_by\", \"a\"], [\"described_by\", \"a\"], [\"controls\", \"1\"]]], [\"1\", [[\"controlled_by\", \"b\"], [\"details_for\", \"a\"]]], [\"alone\", []]], \"passed\": false}, {\"check\": \"contract fixture 2\", \"actual\": [[\"a\", [[\"controls\", \"b\"], [\"controlled_by\", \"b\"]]], [\"b\", [[\"controlled_by\", \"a\"], [\"controls\", \"a\"]]]], \"expected\": [[\"a\", [[\"controls\", \"b\"], [\"controlled_by\", \"b\"]]], [\"b\", [[\"controlled_by\", \"a\"], [\"controls\", \"a\"]]]], \"passed\": true}, {\"check\": \"contract fixture 3\", \"actual\": [[\"a\", [[\"controls\", \"b\"]]], [\"b\", [[\"controlled_by\", \"a\"]]]], \"expected\": [[\"a\", [[\"controls\", \"b\"]]], [\"b\", [[\"controlled_by\", \"a\"]]]], \"passed\": true}, {\"check\": \"contract fixture 4\", \"actual\": [[\"a\", []]], \"expected\": [[\"a\", []]], \"passed\": true}, {\"check\": \"contract fixture 5\", \"actual\": [[\"a\", []], [\"z\", []]], \"expected\": [[\"z\", []], [\"a\", []]], \"passed\": false}, {\"check\": \"contract fixture 6\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.462,"exit_code":1,"observations":[{"actual":[["a",[["label_for","b"],["description_for","b"],["details","1"]]],["b",[["labelled_by","a"],["described_by","a"],["controls","1"]]],["1",[["controlled_by","b"],["details_for","a"]]]],"check":"contract fixture 1","expected":[["a",[["label_for","b"],["description_for","b"],["details","1"]]],["b",[["labelled_by","a"],["described_by","a"],["controls","1"]]],["1",[["controlled_by","b"],["details_for","a"]]],["alone",[]]],"passed":false},{"actual":[["a",[["controls","b"],["controlled_by","b"]]],["b",[["controlled_by","a"],["controls","a"]]]],"check":"contract fixture 2","expected":[["a",[["controls","b"],["controlled_by","b"]]],["b",[["controlled_by","a"],["controls","a"]]]],"passed":true},{"actual":[["a",[["controls","b"]]],["b",[["controlled_by","a"]]]],"check":"contract fixture 3","expected":[["a",[["controls","b"]]],["b",[["controlled_by","a"]]]],"passed":true},{"actual":[],"check":"contract fixture 4","expected":[["a",[]]],"passed":false},{"actual":[],"check":"contract fixture 5","expected":[["z",[]],["a",[]]],"passed":false},{"actual":[],"check":"contract fixture 6","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"contract fixture 1\", \"actual\": [[\"a\", [[\"label_for\", \"b\"], [\"description_for\", \"b\"], [\"details\", \"1\"]]], [\"b\", [[\"labelled_by\", \"a\"], [\"described_by\", \"a\"], [\"controls\", \"1\"]]], [\"1\", [[\"controlled_by\", \"b\"], [\"details_for\", \"a\"]]]], \"expected\": [[\"a\", [[\"label_for\", \"b\"], [\"description_for\", \"b\"], [\"details\", \"1\"]]], [\"b\", [[\"labelled_by\", \"a\"], [\"described_by\", \"a\"], [\"controls\", \"1\"]]], [\"1\", [[\"controlled_by\", \"b\"], [\"details_for\", \"a\"]]], [\"alone\", []]], \"passed\": false}, {\"check\": \"contract fixture 2\", \"actual\": [[\"a\", [[\"controls\", \"b\"], [\"controlled_by\", \"b\"]]], [\"b\", [[\"controlled_by\", \"a\"], [\"controls\", \"a\"]]]], \"expected\": [[\"a\", [[\"controls\", \"b\"], [\"controlled_by\", \"b\"]]], [\"b\", [[\"controlled_by\", \"a\"], [\"controls\", \"a\"]]]], \"passed\": true}, {\"check\": \"contract fixture 3\", \"actual\": [[\"a\", [[\"controls\", \"b\"]]], [\"b\", [[\"controlled_by\", \"a\"]]]], \"expected\": [[\"a\", [[\"controls\", \"b\"]]], [\"b\", [[\"controlled_by\", \"a\"]]]], \"passed\": true}, {\"check\": \"contract fixture 4\", \"actual\": [], \"expected\": [[\"a\", []]], \"passed\": false}, {\"check\": \"contract fixture 5\", \"actual\": [], \"expected\": [[\"z\", []], [\"a\", []]], \"passed\": false}, {\"check\": \"contract fixture 6\", \"actual\": [], \"expected\": [], \"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."}}