broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, chain, methods, state, download, activation, replace, initiator, allows):
    return {'request': request, 'decision': [[] if download else [chain[-1]], methods[-1] not in ('GET','HEAD'), state, 1 if activation else 0, replace, chain[-2] if len(chain)>1 else chain[0], [u for u,ok in zip(chain,allows) if not ok], urlsplit(chain[-1]).netloc, 'download' if download else 'document', {'requested':chain[0],'committed':None if download else chain[-1]}]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['https://a/x', 'https://b/y', 'https://c/z'], ['POST', 'GET', 'GET'], {'view': 'v'}, False, True, False, 'https://start/home', [True, False, True]), {'request': '/requests/' + str(N) + '/0', 'decision': [['https://c/z'], False, {'view': 'v'}, 1, False, 'https://start/home', ['https://b/y'], 'c', 'document', {'requested': 'https://a/x', 'committed': 'https://c/z'}]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['https://a/x'], ['GET'], {'view': 'q'}, False, True, True, 'https://start/home', [True]), {'request': '/requests/' + str(N) + '/1', 'decision': [['https://a/x'], False, {'view': 'q'}, 1, True, 'https://start/home', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/x'}]})
check('fixture 3', solve('/requests/' + str(N) + '/2', ['https://a/x', 'https://b/file'], ['GET', 'GET'], {}, True, False, False, 'https://start/a', [True, True]), {'request': '/requests/' + str(N) + '/2', 'decision': [[], False, {}, 0, False, 'https://start/a', [], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['https://a/x', 'https://b/y'], ['POST', 'POST'], {'form': 'a'}, False, False, True, 'https://start/b', [False, True]), {'request': '/requests/' + str(N) + '/3', 'decision': [['https://b/y'], True, {'form': 'a'}, 0, True, 'https://start/b', ['https://a/x'], 'b', 'document', {'requested': 'https://a/x', 'committed': 'https://b/y'}]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['https://a/x', 'https://a/y'], ['GET', 'HEAD'], {}, False, True, False, 'https://start/c', [True, True]), {'request': '/requests/' + str(N) + '/4', 'decision': [['https://a/y'], False, {}, 1, False, 'https://start/c', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/y'}]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['https://a/x', 'https://b/file'], ['POST', 'GET'], {'download': 'd'}, True, True, True, 'https://start/d', [True, False]), {'request': '/requests/' + str(N) + '/5', 'decision': [[], False, {'download': 'd'}, 1, True, 'https://start/d', ['https://b/file'], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, chain, methods, state, download, activation, replace, initiator, allows):
    return {'request': request, 'decision': [[] if download else [chain[-1]], methods[-1] not in ('GET','HEAD'), state, 1 if activation else 0, replace, chain[0], [u for u,ok in zip(chain,allows) if not ok], urlsplit(chain[-1]).netloc, 'download' if download else 'document', {'requested':chain[0],'committed':None if download else chain[-1]}]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['https://a/x', 'https://b/y', 'https://c/z'], ['POST', 'GET', 'GET'], {'view': 'v'}, False, True, False, 'https://start/home', [True, False, True]), {'request': '/requests/' + str(N) + '/0', 'decision': [['https://c/z'], False, {'view': 'v'}, 1, False, 'https://start/home', ['https://b/y'], 'c', 'document', {'requested': 'https://a/x', 'committed': 'https://c/z'}]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['https://a/x'], ['GET'], {'view': 'q'}, False, True, True, 'https://start/home', [True]), {'request': '/requests/' + str(N) + '/1', 'decision': [['https://a/x'], False, {'view': 'q'}, 1, True, 'https://start/home', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/x'}]})
check('fixture 3', solve('/requests/' + str(N) + '/2', ['https://a/x', 'https://b/file'], ['GET', 'GET'], {}, True, False, False, 'https://start/a', [True, True]), {'request': '/requests/' + str(N) + '/2', 'decision': [[], False, {}, 0, False, 'https://start/a', [], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['https://a/x', 'https://b/y'], ['POST', 'POST'], {'form': 'a'}, False, False, True, 'https://start/b', [False, True]), {'request': '/requests/' + str(N) + '/3', 'decision': [['https://b/y'], True, {'form': 'a'}, 0, True, 'https://start/b', ['https://a/x'], 'b', 'document', {'requested': 'https://a/x', 'committed': 'https://b/y'}]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['https://a/x', 'https://a/y'], ['GET', 'HEAD'], {}, False, True, False, 'https://start/c', [True, True]), {'request': '/requests/' + str(N) + '/4', 'decision': [['https://a/y'], False, {}, 1, False, 'https://start/c', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/y'}]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['https://a/x', 'https://b/file'], ['POST', 'GET'], {'download': 'd'}, True, True, True, 'https://start/d', [True, False]), {'request': '/requests/' + str(N) + '/5', 'decision': [[], False, {'download': 'd'}, 1, True, 'https://start/d', ['https://b/file'], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
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)

prompt:
Commit a redirect chain using terminal document semantics and the original navigation intent: the referrer initiator not intermediate branch emits an incorrect decision.

Commit a redirect chain using terminal document semantics and the original navigation intent. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, chain, methods, state, download, activation, replace, initiator, allows):
    return {'request': request, 'decision': [[] if download else [chain[-1]], methods[-1] not in ('GET','HEAD'), state, 1 if activation else 0, replace, initiator, [chain[-1]] if not allows[-1] else [], urlsplit(chain[-1]).netloc, 'download' if download else 'document', {'requested':chain[0],'committed':None if download else chain[-1]}]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['https://a/x', 'https://b/y', 'https://c/z'], ['POST', 'GET', 'GET'], {'view': 'v'}, False, True, False, 'https://start/home', [True, False, True]), {'request': '/requests/' + str(N) + '/0', 'decision': [['https://c/z'], False, {'view': 'v'}, 1, False, 'https://start/home', ['https://b/y'], 'c', 'document', {'requested': 'https://a/x', 'committed': 'https://c/z'}]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['https://a/x'], ['GET'], {'view': 'q'}, False, True, True, 'https://start/home', [True]), {'request': '/requests/' + str(N) + '/1', 'decision': [['https://a/x'], False, {'view': 'q'}, 1, True, 'https://start/home', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/x'}]})
check('fixture 3', solve('/requests/' + str(N) + '/2', ['https://a/x', 'https://b/file'], ['GET', 'GET'], {}, True, False, False, 'https://start/a', [True, True]), {'request': '/requests/' + str(N) + '/2', 'decision': [[], False, {}, 0, False, 'https://start/a', [], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['https://a/x', 'https://b/y'], ['POST', 'POST'], {'form': 'a'}, False, False, True, 'https://start/b', [False, True]), {'request': '/requests/' + str(N) + '/3', 'decision': [['https://b/y'], True, {'form': 'a'}, 0, True, 'https://start/b', ['https://a/x'], 'b', 'document', {'requested': 'https://a/x', 'committed': 'https://b/y'}]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['https://a/x', 'https://a/y'], ['GET', 'HEAD'], {}, False, True, False, 'https://start/c', [True, True]), {'request': '/requests/' + str(N) + '/4', 'decision': [['https://a/y'], False, {}, 1, False, 'https://start/c', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/y'}]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['https://a/x', 'https://b/file'], ['POST', 'GET'], {'download': 'd'}, True, True, True, 'https://start/d', [True, False]), {'request': '/requests/' + str(N) + '/5', 'decision': [[], False, {'download': 'd'}, 1, True, 'https://start/d', ['https://b/file'], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
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)

meaning: Fixture-count band, not measured model difficulty

deps: stdlib

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, chain, methods, state, download, activation, replace, initiator, allows):
    return {'request': request, 'decision': [[] if download else [chain[-1]], methods[-1] not in ('GET','HEAD'), state, 1 if activation else 0, replace, initiator, [u for u,ok in zip(chain[1:],allows[1:]) if not ok], urlsplit(chain[-1]).netloc, 'download' if download else 'document', {'requested':chain[0],'committed':None if download else chain[-1]}]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['https://a/x', 'https://b/y', 'https://c/z'], ['POST', 'GET', 'GET'], {'view': 'v'}, False, True, False, 'https://start/home', [True, False, True]), {'request': '/requests/' + str(N) + '/0', 'decision': [['https://c/z'], False, {'view': 'v'}, 1, False, 'https://start/home', ['https://b/y'], 'c', 'document', {'requested': 'https://a/x', 'committed': 'https://c/z'}]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['https://a/x'], ['GET'], {'view': 'q'}, False, True, True, 'https://start/home', [True]), {'request': '/requests/' + str(N) + '/1', 'decision': [['https://a/x'], False, {'view': 'q'}, 1, True, 'https://start/home', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/x'}]})
check('fixture 3', solve('/requests/' + str(N) + '/2', ['https://a/x', 'https://b/file'], ['GET', 'GET'], {}, True, False, False, 'https://start/a', [True, True]), {'request': '/requests/' + str(N) + '/2', 'decision': [[], False, {}, 0, False, 'https://start/a', [], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['https://a/x', 'https://b/y'], ['POST', 'POST'], {'form': 'a'}, False, False, True, 'https://start/b', [False, True]), {'request': '/requests/' + str(N) + '/3', 'decision': [['https://b/y'], True, {'form': 'a'}, 0, True, 'https://start/b', ['https://a/x'], 'b', 'document', {'requested': 'https://a/x', 'committed': 'https://b/y'}]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['https://a/x', 'https://a/y'], ['GET', 'HEAD'], {}, False, True, False, 'https://start/c', [True, True]), {'request': '/requests/' + str(N) + '/4', 'decision': [['https://a/y'], False, {}, 1, False, 'https://start/c', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/y'}]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['https://a/x', 'https://b/file'], ['POST', 'GET'], {'download': 'd'}, True, True, True, 'https://start/d', [True, False]), {'request': '/requests/' + str(N) + '/5', 'decision': [[], False, {'download': 'd'}, 1, True, 'https://start/d', ['https://b/file'], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
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)

prompt:
Commit a redirect chain using terminal document semantics and the original navigation intent: the navigation policy every hop branch emits an incorrect decision.

Commit a redirect chain using terminal document semantics and the original navigation intent. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, chain, methods, state, download, activation, replace, initiator, allows):
    return {'request': request, 'decision': [[] if download else [chain[-1]], methods[-1] not in ('GET','HEAD'), state, 1 if activation else 0, replace, initiator, [u for u,ok in zip(chain,allows) if not ok], urlsplit(chain[0]).netloc, 'download' if download else 'document', {'requested':chain[0],'committed':None if download else chain[-1]}]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['https://a/x', 'https://b/y', 'https://c/z'], ['POST', 'GET', 'GET'], {'view': 'v'}, False, True, False, 'https://start/home', [True, False, True]), {'request': '/requests/' + str(N) + '/0', 'decision': [['https://c/z'], False, {'view': 'v'}, 1, False, 'https://start/home', ['https://b/y'], 'c', 'document', {'requested': 'https://a/x', 'committed': 'https://c/z'}]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['https://a/x'], ['GET'], {'view': 'q'}, False, True, True, 'https://start/home', [True]), {'request': '/requests/' + str(N) + '/1', 'decision': [['https://a/x'], False, {'view': 'q'}, 1, True, 'https://start/home', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/x'}]})
check('fixture 3', solve('/requests/' + str(N) + '/2', ['https://a/x', 'https://b/file'], ['GET', 'GET'], {}, True, False, False, 'https://start/a', [True, True]), {'request': '/requests/' + str(N) + '/2', 'decision': [[], False, {}, 0, False, 'https://start/a', [], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['https://a/x', 'https://b/y'], ['POST', 'POST'], {'form': 'a'}, False, False, True, 'https://start/b', [False, True]), {'request': '/requests/' + str(N) + '/3', 'decision': [['https://b/y'], True, {'form': 'a'}, 0, True, 'https://start/b', ['https://a/x'], 'b', 'document', {'requested': 'https://a/x', 'committed': 'https://b/y'}]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['https://a/x', 'https://a/y'], ['GET', 'HEAD'], {}, False, True, False, 'https://start/c', [True, True]), {'request': '/requests/' + str(N) + '/4', 'decision': [['https://a/y'], False, {}, 1, False, 'https://start/c', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/y'}]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['https://a/x', 'https://b/file'], ['POST', 'GET'], {'download': 'd'}, True, True, True, 'https://start/d', [True, False]), {'request': '/requests/' + str(N) + '/5', 'decision': [[], False, {'download': 'd'}, 1, True, 'https://start/d', ['https://b/file'], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, chain, methods, state, download, activation, replace, initiator, allows):
    return {'request': request, 'decision': [[] if download else [chain[-1]], methods[-1] not in ('GET','HEAD'), state, 1 if activation else 0, replace, initiator, [u for u,ok in zip(chain,allows) if not ok], chain[-1], 'download' if download else 'document', {'requested':chain[0],'committed':None if download else chain[-1]}]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['https://a/x', 'https://b/y', 'https://c/z'], ['POST', 'GET', 'GET'], {'view': 'v'}, False, True, False, 'https://start/home', [True, False, True]), {'request': '/requests/' + str(N) + '/0', 'decision': [['https://c/z'], False, {'view': 'v'}, 1, False, 'https://start/home', ['https://b/y'], 'c', 'document', {'requested': 'https://a/x', 'committed': 'https://c/z'}]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['https://a/x'], ['GET'], {'view': 'q'}, False, True, True, 'https://start/home', [True]), {'request': '/requests/' + str(N) + '/1', 'decision': [['https://a/x'], False, {'view': 'q'}, 1, True, 'https://start/home', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/x'}]})
check('fixture 3', solve('/requests/' + str(N) + '/2', ['https://a/x', 'https://b/file'], ['GET', 'GET'], {}, True, False, False, 'https://start/a', [True, True]), {'request': '/requests/' + str(N) + '/2', 'decision': [[], False, {}, 0, False, 'https://start/a', [], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['https://a/x', 'https://b/y'], ['POST', 'POST'], {'form': 'a'}, False, False, True, 'https://start/b', [False, True]), {'request': '/requests/' + str(N) + '/3', 'decision': [['https://b/y'], True, {'form': 'a'}, 0, True, 'https://start/b', ['https://a/x'], 'b', 'document', {'requested': 'https://a/x', 'committed': 'https://b/y'}]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['https://a/x', 'https://a/y'], ['GET', 'HEAD'], {}, False, True, False, 'https://start/c', [True, True]), {'request': '/requests/' + str(N) + '/4', 'decision': [['https://a/y'], False, {}, 1, False, 'https://start/c', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/y'}]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['https://a/x', 'https://b/file'], ['POST', 'GET'], {'download': 'd'}, True, True, True, 'https://start/d', [True, False]), {'request': '/requests/' + str(N) + '/5', 'decision': [[], False, {'download': 'd'}, 1, True, 'https://start/d', ['https://b/file'], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
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)

prompt:
Commit a redirect chain using terminal document semantics and the original navigation intent: the document origin from final hop branch emits an incorrect decision.

Commit a redirect chain using terminal document semantics and the original navigation intent. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, chain, methods, state, download, activation, replace, initiator, allows):
    return {'request': request, 'decision': [[] if download else [chain[-1]], methods[-1] not in ('GET','HEAD'), state, 1 if activation else 0, replace, initiator, [u for u,ok in zip(chain,allows) if not ok], urlsplit(chain[-1]).netloc, 'document', {'requested':chain[0],'committed':None if download else chain[-1]}]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['https://a/x', 'https://b/y', 'https://c/z'], ['POST', 'GET', 'GET'], {'view': 'v'}, False, True, False, 'https://start/home', [True, False, True]), {'request': '/requests/' + str(N) + '/0', 'decision': [['https://c/z'], False, {'view': 'v'}, 1, False, 'https://start/home', ['https://b/y'], 'c', 'document', {'requested': 'https://a/x', 'committed': 'https://c/z'}]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['https://a/x'], ['GET'], {'view': 'q'}, False, True, True, 'https://start/home', [True]), {'request': '/requests/' + str(N) + '/1', 'decision': [['https://a/x'], False, {'view': 'q'}, 1, True, 'https://start/home', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/x'}]})
check('fixture 3', solve('/requests/' + str(N) + '/2', ['https://a/x', 'https://b/file'], ['GET', 'GET'], {}, True, False, False, 'https://start/a', [True, True]), {'request': '/requests/' + str(N) + '/2', 'decision': [[], False, {}, 0, False, 'https://start/a', [], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['https://a/x', 'https://b/y'], ['POST', 'POST'], {'form': 'a'}, False, False, True, 'https://start/b', [False, True]), {'request': '/requests/' + str(N) + '/3', 'decision': [['https://b/y'], True, {'form': 'a'}, 0, True, 'https://start/b', ['https://a/x'], 'b', 'document', {'requested': 'https://a/x', 'committed': 'https://b/y'}]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['https://a/x', 'https://a/y'], ['GET', 'HEAD'], {}, False, True, False, 'https://start/c', [True, True]), {'request': '/requests/' + str(N) + '/4', 'decision': [['https://a/y'], False, {}, 1, False, 'https://start/c', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/y'}]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['https://a/x', 'https://b/file'], ['POST', 'GET'], {'download': 'd'}, True, True, True, 'https://start/d', [True, False]), {'request': '/requests/' + str(N) + '/5', 'decision': [[], False, {'download': 'd'}, 1, True, 'https://start/d', ['https://b/file'], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, chain, methods, state, download, activation, replace, initiator, allows):
    return {'request': request, 'decision': [[] if download else [chain[-1]], methods[-1] not in ('GET','HEAD'), state, 1 if activation else 0, replace, initiator, [u for u,ok in zip(chain,allows) if not ok], urlsplit(chain[-1]).netloc, 'download' if methods[-1] not in ('GET','HEAD') else 'document', {'requested':chain[0],'committed':None if download else chain[-1]}]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['https://a/x', 'https://b/y', 'https://c/z'], ['POST', 'GET', 'GET'], {'view': 'v'}, False, True, False, 'https://start/home', [True, False, True]), {'request': '/requests/' + str(N) + '/0', 'decision': [['https://c/z'], False, {'view': 'v'}, 1, False, 'https://start/home', ['https://b/y'], 'c', 'document', {'requested': 'https://a/x', 'committed': 'https://c/z'}]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['https://a/x'], ['GET'], {'view': 'q'}, False, True, True, 'https://start/home', [True]), {'request': '/requests/' + str(N) + '/1', 'decision': [['https://a/x'], False, {'view': 'q'}, 1, True, 'https://start/home', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/x'}]})
check('fixture 3', solve('/requests/' + str(N) + '/2', ['https://a/x', 'https://b/file'], ['GET', 'GET'], {}, True, False, False, 'https://start/a', [True, True]), {'request': '/requests/' + str(N) + '/2', 'decision': [[], False, {}, 0, False, 'https://start/a', [], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['https://a/x', 'https://b/y'], ['POST', 'POST'], {'form': 'a'}, False, False, True, 'https://start/b', [False, True]), {'request': '/requests/' + str(N) + '/3', 'decision': [['https://b/y'], True, {'form': 'a'}, 0, True, 'https://start/b', ['https://a/x'], 'b', 'document', {'requested': 'https://a/x', 'committed': 'https://b/y'}]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['https://a/x', 'https://a/y'], ['GET', 'HEAD'], {}, False, True, False, 'https://start/c', [True, True]), {'request': '/requests/' + str(N) + '/4', 'decision': [['https://a/y'], False, {}, 1, False, 'https://start/c', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/y'}]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['https://a/x', 'https://b/file'], ['POST', 'GET'], {'download': 'd'}, True, True, True, 'https://start/d', [True, False]), {'request': '/requests/' + str(N) + '/5', 'decision': [[], False, {'download': 'd'}, 1, True, 'https://start/d', ['https://b/file'], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
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)

prompt:
Commit a redirect chain using terminal document semantics and the original navigation intent: the download disposition not method branch emits an incorrect decision.

Commit a redirect chain using terminal document semantics and the original navigation intent. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, chain, methods, state, download, activation, replace, initiator, allows):
    return {'request': request, 'decision': [[] if download else [chain[-1]], methods[-1] not in ('GET','HEAD'), state, 1 if activation else 0, replace, initiator, [u for u,ok in zip(chain,allows) if not ok], urlsplit(chain[-1]).netloc, 'download' if download else 'document', {'requested':chain[-1],'committed':None if download else chain[-1]}]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['https://a/x', 'https://b/y', 'https://c/z'], ['POST', 'GET', 'GET'], {'view': 'v'}, False, True, False, 'https://start/home', [True, False, True]), {'request': '/requests/' + str(N) + '/0', 'decision': [['https://c/z'], False, {'view': 'v'}, 1, False, 'https://start/home', ['https://b/y'], 'c', 'document', {'requested': 'https://a/x', 'committed': 'https://c/z'}]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['https://a/x'], ['GET'], {'view': 'q'}, False, True, True, 'https://start/home', [True]), {'request': '/requests/' + str(N) + '/1', 'decision': [['https://a/x'], False, {'view': 'q'}, 1, True, 'https://start/home', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/x'}]})
check('fixture 3', solve('/requests/' + str(N) + '/2', ['https://a/x', 'https://b/file'], ['GET', 'GET'], {}, True, False, False, 'https://start/a', [True, True]), {'request': '/requests/' + str(N) + '/2', 'decision': [[], False, {}, 0, False, 'https://start/a', [], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['https://a/x', 'https://b/y'], ['POST', 'POST'], {'form': 'a'}, False, False, True, 'https://start/b', [False, True]), {'request': '/requests/' + str(N) + '/3', 'decision': [['https://b/y'], True, {'form': 'a'}, 0, True, 'https://start/b', ['https://a/x'], 'b', 'document', {'requested': 'https://a/x', 'committed': 'https://b/y'}]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['https://a/x', 'https://a/y'], ['GET', 'HEAD'], {}, False, True, False, 'https://start/c', [True, True]), {'request': '/requests/' + str(N) + '/4', 'decision': [['https://a/y'], False, {}, 1, False, 'https://start/c', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/y'}]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['https://a/x', 'https://b/file'], ['POST', 'GET'], {'download': 'd'}, True, True, True, 'https://start/d', [True, False]), {'request': '/requests/' + str(N) + '/5', 'decision': [[], False, {'download': 'd'}, 1, True, 'https://start/d', ['https://b/file'], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, chain, methods, state, download, activation, replace, initiator, allows):
    return {'request': request, 'decision': [[] if download else [chain[-1]], methods[-1] not in ('GET','HEAD'), state, 1 if activation else 0, replace, initiator, [u for u,ok in zip(chain,allows) if not ok], urlsplit(chain[-1]).netloc, 'download' if download else 'document', {'requested':chain[0],'committed':chain[0]}]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['https://a/x', 'https://b/y', 'https://c/z'], ['POST', 'GET', 'GET'], {'view': 'v'}, False, True, False, 'https://start/home', [True, False, True]), {'request': '/requests/' + str(N) + '/0', 'decision': [['https://c/z'], False, {'view': 'v'}, 1, False, 'https://start/home', ['https://b/y'], 'c', 'document', {'requested': 'https://a/x', 'committed': 'https://c/z'}]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['https://a/x'], ['GET'], {'view': 'q'}, False, True, True, 'https://start/home', [True]), {'request': '/requests/' + str(N) + '/1', 'decision': [['https://a/x'], False, {'view': 'q'}, 1, True, 'https://start/home', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/x'}]})
check('fixture 3', solve('/requests/' + str(N) + '/2', ['https://a/x', 'https://b/file'], ['GET', 'GET'], {}, True, False, False, 'https://start/a', [True, True]), {'request': '/requests/' + str(N) + '/2', 'decision': [[], False, {}, 0, False, 'https://start/a', [], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['https://a/x', 'https://b/y'], ['POST', 'POST'], {'form': 'a'}, False, False, True, 'https://start/b', [False, True]), {'request': '/requests/' + str(N) + '/3', 'decision': [['https://b/y'], True, {'form': 'a'}, 0, True, 'https://start/b', ['https://a/x'], 'b', 'document', {'requested': 'https://a/x', 'committed': 'https://b/y'}]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['https://a/x', 'https://a/y'], ['GET', 'HEAD'], {}, False, True, False, 'https://start/c', [True, True]), {'request': '/requests/' + str(N) + '/4', 'decision': [['https://a/y'], False, {}, 1, False, 'https://start/c', [], 'a', 'document', {'requested': 'https://a/x', 'committed': 'https://a/y'}]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['https://a/x', 'https://b/file'], ['POST', 'GET'], {'download': 'd'}, True, True, True, 'https://start/d', [True, False]), {'request': '/requests/' + str(N) + '/5', 'decision': [[], False, {'download': 'd'}, 1, True, 'https://start/d', ['https://b/file'], 'b', 'download', {'requested': 'https://a/x', 'committed': None}]})
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)

prompt:
Commit a redirect chain using terminal document semantics and the original navigation intent: the requested versus committed url branch emits an incorrect decision.

Commit a redirect chain using terminal document semantics and the original navigation intent. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in reversed(list(enumerate(ids))) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [ids.index(fragment) if fragment in ids else 0, unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

prompt:
Apply post-redirect fragment navigation without altering request routing: the first matching id branch emits an incorrect decision.

Apply post-redirect fragment navigation without altering request routing. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), fragment, restore, saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment), restore, saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

prompt:
Apply post-redirect fragment navigation without altering request routing: the decode once for anchor branch emits an incorrect decision.

Apply post-redirect fragment navigation without altering request routing. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore and fragment == "", saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, False, saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

prompt:
Apply post-redirect fragment navigation without altering request routing: the restoration preempts anchor branch emits an incorrect decision.

Apply post-redirect fragment navigation without altering request routing. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll, fragment == '', directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, 0, fragment == '', directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

prompt:
Apply post-redirect fragment navigation without altering request routing: the restore scroll value branch emits an incorrect decision.

Apply post-redirect fragment navigation without altering request routing. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, not ids, directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, fragment in ('','top'), directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

prompt:
Apply post-redirect fragment navigation without altering request routing: the empty anchor document top branch emits an incorrect decision.

Apply post-redirect fragment navigation without altering request routing. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, fragment == '', fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, fragment == '', directive or bool(fragment), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

prompt:
Apply post-redirect fragment navigation without altering request routing: the text directive routing branch emits an incorrect decision.

Apply post-redirect fragment navigation without altering request routing. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), fragment, (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), unquote(fragment), (unquote(fragment) if decoded else fragment) in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

prompt:
Apply post-redirect fragment navigation without altering request routing: the fragment not transmitted branch emits an incorrect decision.

Apply post-redirect fragment navigation without altering request routing. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), '', fragment in ids, saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), '', bool(ids), saved_scroll if fragment not in ids else 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

prompt:
Apply post-redirect fragment navigation without altering request routing: the anchor existence after decode branch emits an incorrect decision.

Apply post-redirect fragment navigation without altering request routing. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, 0, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

source:
"""Failure Map reference implementation. Python standard library only."""
import json
from urllib.parse import urlsplit, unquote, quote
import posixpath
import re
N = 1
observations = []
def solve(request, fragment, ids, saved_scroll, restore, decoded, directive):
    return {'request': request, 'decision': [next((i for i,v in enumerate(ids) if v==fragment),None), unquote(fragment) if decoded else fragment, restore, saved_scroll if restore else 0, fragment == '', directive and fragment.startswith(":~:"), '', (unquote(fragment) if decoded else fragment) in ids, saved_scroll, None if directive else fragment]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'section', ['top', 'section', 'section'], 25, False, True, False), {'request': '/requests/' + str(N) + '/0', 'decision': [1, 'section', False, 0, False, False, '', True, 0, 'section']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'a%20b', ['a b', 'a%20b'], 40, False, True, False), {'request': '/requests/' + str(N) + '/1', 'decision': [1, 'a b', False, 0, False, False, '', True, 0, 'a%20b']})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'missing', ['top'], 15, True, False, False), {'request': '/requests/' + str(N) + '/2', 'decision': [None, 'missing', True, 15, False, False, '', False, 15, 'missing']})
check('fixture 4', solve('/requests/' + str(N) + '/3', '', [], 0, False, True, False), {'request': '/requests/' + str(N) + '/3', 'decision': [None, '', False, 0, True, False, '', False, 0, '']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'top', ['x', 'top'], 80, False, False, False), {'request': '/requests/' + str(N) + '/4', 'decision': [1, 'top', False, 0, False, False, '', True, 0, 'top']})
check('fixture 6', solve('/requests/' + str(N) + '/5', ':~:text=hello', [':~:text=hello'], 5, False, False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [0, ':~:text=hello', False, 0, False, True, '', True, 0, None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'a%20b', ['a b'], 5, False, True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [None, 'a b', False, 0, False, False, '', True, 5, 'a%20b']})
check('fixture 8', solve('/requests/' + str(N) + '/7', 'x%20y', [], 6, False, False, False), {'request': '/requests/' + str(N) + '/7', 'decision': [None, 'x%20y', False, 0, False, False, '', False, 6, 'x%20y']})
check('fixture 9', solve('/requests/' + str(N) + '/8', ':~:text=no', [], 8, False, False, False), {'request': '/requests/' + str(N) + '/8', 'decision': [None, ':~:text=no', False, 0, False, False, '', False, 8, ':~:text=no']})
check('fixture 10', solve('/requests/' + str(N) + '/9', '', ['top'], 9, False, False, False), {'request': '/requests/' + str(N) + '/9', 'decision': [None, '', False, 0, True, False, '', False, 9, '']})
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)

prompt:
Apply post-redirect fragment navigation without altering request routing: the unmatched anchor preserves scroll branch emits an incorrect decision.

Apply post-redirect fragment navigation without altering request routing. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access