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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower(), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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:
Evaluate configured destination-host permissions with label boundaries: the trailing root dot branch emits an incorrect decision.

Evaluate configured destination-host permissions with label boundaries. 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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.').endswith(a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), host.lower().rstrip('.') in allowed, any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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:
Evaluate configured destination-host permissions with label boundaries: the suffix label boundary branch emits an incorrect decision.

Evaluate configured destination-host permissions with label boundaries. 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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.').endswith(a) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), host.lower().rstrip('.') in allowed, host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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:
Evaluate configured destination-host permissions with label boundaries: the subdomain option branch emits an incorrect decision.

Evaluate configured destination-host permissions with label boundaries. 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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), True, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), not blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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:
Evaluate configured destination-host permissions with label boundaries: the deny list precedence branch emits an incorrect decision.

Evaluate configured destination-host permissions with label boundaries. 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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, True, len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(blocked), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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:
Evaluate configured destination-host permissions with label boundaries: the empty allowlist denies branch emits an incorrect decision.

Evaluate configured destination-host permissions with label boundaries. 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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), host.count('.')+1, host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(set(host.rstrip('.').split('.'))), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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:
Evaluate configured destination-host permissions with label boundaries: the label depth report branch emits an incorrect decision.

Evaluate configured destination-host permissions with label boundaries. 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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host == source_host, host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.').endswith(source_host), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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:
Evaluate configured destination-host permissions with label boundaries: the source destination identity branch emits an incorrect decision.

Evaluate configured destination-host permissions with label boundaries. 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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().split('.')[:-1], [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().split('.'), [x for x in blocked if x == host.lower().rstrip('.') ], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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:
Evaluate configured destination-host permissions with label boundaries: the parent domain walk branch emits an incorrect decision.

Evaluate configured destination-host permissions with label boundaries. 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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], blocked, max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [], max((a for a in allowed if host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a)), key=len, default=None)]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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:
Evaluate configured destination-host permissions with label boundaries: the explicit block report branch emits an incorrect decision.

Evaluate configured destination-host permissions with label boundaries. 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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], allowed[0] if allowed else None]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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, host, allowed, subdomains, source_host, blocked):
    return {'request': request, 'decision': [host.lower().rstrip('.'), any(host.lower().rstrip('.') == a or host.lower().rstrip('.').endswith('.'+a) for a in allowed), any(host.lower().rstrip('.') == a or (subdomains and host.lower().rstrip('.').endswith('.'+a)) for a in allowed), host.lower().rstrip('.') not in blocked, bool(allowed), len(host.rstrip('.').split('.')), host.lower().rstrip('.') == source_host.lower().rstrip('.'), host.lower().rstrip('.').split('.')[1:], [x for x in blocked if x == host.lower().rstrip('.') ], host if host in allowed else None]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', 'api.example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/0', 'decision': ['api.example.test', True, True, True, True, 3, False, ['example', 'test'], [], 'example.test']})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'evil-example.test', ['example.test'], True, 'example.test', []), {'request': '/requests/' + str(N) + '/1', 'decision': ['evil-example.test', False, False, True, True, 2, False, ['test'], [], None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'example.test', ['example.test'], False, 'example.test', ['example.test']), {'request': '/requests/' + str(N) + '/2', 'decision': ['example.test', True, True, False, True, 2, True, ['test'], ['example.test'], 'example.test']})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'EXAMPLE.TEST.', ['example.test'], False, 'other.test', []), {'request': '/requests/' + str(N) + '/3', 'decision': ['example.test', True, True, True, True, 2, False, ['test'], [], 'example.test']})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'a.b.example.test', ['example.test'], False, 'example.test', []), {'request': '/requests/' + str(N) + '/4', 'decision': ['a.b.example.test', True, False, True, True, 4, False, ['b', 'example', 'test'], [], 'example.test']})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'other.test', [], True, 'other.test', ['unrelated.test']), {'request': '/requests/' + str(N) + '/5', 'decision': ['other.test', False, False, True, False, 2, True, ['test'], [], None]})
check('fixture 7', solve('/requests/' + str(N) + '/6', 'example.example.test', ['example.test'], True, 'EXAMPLE.EXAMPLE.TEST.', []), {'request': '/requests/' + str(N) + '/6', 'decision': ['example.example.test', True, True, True, True, 3, True, ['example', 'test'], [], 'example.test']})
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:
Evaluate configured destination-host permissions with label boundaries: the most specific allow match branch emits an incorrect decision.

Evaluate configured destination-host permissions with label boundaries. 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, path, internal, external, query, trailing, absolute):
    return {'request': request, 'decision': [path.startswith(internal), path[len(internal):] if path == internal or path.startswith(internal.rstrip('/')+'/') else path, external or '/', ('?' + query) if query else '', path+'/' if trailing and not path.endswith('/') else path, 'absolute' if absolute else 'relative', path[1:] if internal == '/' else path, external.rstrip('/') + '/' + path.lstrip('/'), ('/' + external.lstrip('/')) if external else '/', path.startswith(internal.rstrip('/')+'/') or path == internal]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', '/app/a', '/app', '/public', 'x=1', False, False), {'request': '/requests/' + str(N) + '/0', 'decision': [True, '/a', '/public', '?x=1', '/app/a', 'relative', '/app/a', '/public/app/a', '/public', True]})
check('fixture 2', solve('/requests/' + str(N) + '/1', '/apple/a', '/app', '/public', '', False, False), {'request': '/requests/' + str(N) + '/1', 'decision': [False, '/apple/a', '/public', '', '/apple/a', 'relative', '/apple/a', '/public/apple/a', '/public', False]})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/app', '/app', '/public', 'q=', True, False), {'request': '/requests/' + str(N) + '/2', 'decision': [True, '', '/public', '?q=', '/app/', 'relative', '/app', '/public/app', '/public', True]})
check('fixture 4', solve('/requests/' + str(N) + '/3', '/app/a/app', '/app', '/v2', 'k=1&k=2', True, True), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '/a/app', '/v2', '?k=1&k=2', '/app/a/app/', 'absolute', '/app/a/app', '/v2/app/a/app', '/v2', True]})
check('fixture 5', solve('/requests/' + str(N) + '/4', '/', '/', '/edge', '', False, True), {'request': '/requests/' + str(N) + '/4', 'decision': [True, '', '/edge', '', '/', 'absolute', '', '/edge/', '/edge', True]})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/app/a', '/app', '', 'x=2', False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [True, '/a', '/', '?x=2', '/app/a', 'absolute', '/app/a', '/app/a', '/', True]})
check('fixture 7', solve('/requests/' + str(N) + '/6', '/app/a/', '/app', '/public/', '', True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [True, '/a/', '/public/', '', '/app/a/', 'relative', '/app/a/', '/public/app/a/', '/public/', True]})
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, path, internal, external, query, trailing, absolute):
    return {'request': request, 'decision': [path == internal, path[len(internal):] if path == internal or path.startswith(internal.rstrip('/')+'/') else path, external or '/', ('?' + query) if query else '', path+'/' if trailing and not path.endswith('/') else path, 'absolute' if absolute else 'relative', path[1:] if internal == '/' else path, external.rstrip('/') + '/' + path.lstrip('/'), ('/' + external.lstrip('/')) if external else '/', path.startswith(internal.rstrip('/')+'/') or path == internal]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', '/app/a', '/app', '/public', 'x=1', False, False), {'request': '/requests/' + str(N) + '/0', 'decision': [True, '/a', '/public', '?x=1', '/app/a', 'relative', '/app/a', '/public/app/a', '/public', True]})
check('fixture 2', solve('/requests/' + str(N) + '/1', '/apple/a', '/app', '/public', '', False, False), {'request': '/requests/' + str(N) + '/1', 'decision': [False, '/apple/a', '/public', '', '/apple/a', 'relative', '/apple/a', '/public/apple/a', '/public', False]})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/app', '/app', '/public', 'q=', True, False), {'request': '/requests/' + str(N) + '/2', 'decision': [True, '', '/public', '?q=', '/app/', 'relative', '/app', '/public/app', '/public', True]})
check('fixture 4', solve('/requests/' + str(N) + '/3', '/app/a/app', '/app', '/v2', 'k=1&k=2', True, True), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '/a/app', '/v2', '?k=1&k=2', '/app/a/app/', 'absolute', '/app/a/app', '/v2/app/a/app', '/v2', True]})
check('fixture 5', solve('/requests/' + str(N) + '/4', '/', '/', '/edge', '', False, True), {'request': '/requests/' + str(N) + '/4', 'decision': [True, '', '/edge', '', '/', 'absolute', '', '/edge/', '/edge', True]})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/app/a', '/app', '', 'x=2', False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [True, '/a', '/', '?x=2', '/app/a', 'absolute', '/app/a', '/app/a', '/', True]})
check('fixture 7', solve('/requests/' + str(N) + '/6', '/app/a/', '/app', '/public/', '', True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [True, '/a/', '/public/', '', '/app/a/', 'relative', '/app/a/', '/public/app/a/', '/public/', True]})
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:
Translate a redirect between internal and public application mounts: the mount boundary branch emits an incorrect decision.

Translate a redirect between internal and public application mounts. 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, path, internal, external, query, trailing, absolute):
    return {'request': request, 'decision': [path == internal or path.startswith(internal.rstrip('/')+'/'), path.replace(internal,''), external or '/', ('?' + query) if query else '', path+'/' if trailing and not path.endswith('/') else path, 'absolute' if absolute else 'relative', path[1:] if internal == '/' else path, external.rstrip('/') + '/' + path.lstrip('/'), ('/' + external.lstrip('/')) if external else '/', path.startswith(internal.rstrip('/')+'/') or path == internal]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', '/app/a', '/app', '/public', 'x=1', False, False), {'request': '/requests/' + str(N) + '/0', 'decision': [True, '/a', '/public', '?x=1', '/app/a', 'relative', '/app/a', '/public/app/a', '/public', True]})
check('fixture 2', solve('/requests/' + str(N) + '/1', '/apple/a', '/app', '/public', '', False, False), {'request': '/requests/' + str(N) + '/1', 'decision': [False, '/apple/a', '/public', '', '/apple/a', 'relative', '/apple/a', '/public/apple/a', '/public', False]})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/app', '/app', '/public', 'q=', True, False), {'request': '/requests/' + str(N) + '/2', 'decision': [True, '', '/public', '?q=', '/app/', 'relative', '/app', '/public/app', '/public', True]})
check('fixture 4', solve('/requests/' + str(N) + '/3', '/app/a/app', '/app', '/v2', 'k=1&k=2', True, True), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '/a/app', '/v2', '?k=1&k=2', '/app/a/app/', 'absolute', '/app/a/app', '/v2/app/a/app', '/v2', True]})
check('fixture 5', solve('/requests/' + str(N) + '/4', '/', '/', '/edge', '', False, True), {'request': '/requests/' + str(N) + '/4', 'decision': [True, '', '/edge', '', '/', 'absolute', '', '/edge/', '/edge', True]})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/app/a', '/app', '', 'x=2', False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [True, '/a', '/', '?x=2', '/app/a', 'absolute', '/app/a', '/app/a', '/', True]})
check('fixture 7', solve('/requests/' + str(N) + '/6', '/app/a/', '/app', '/public/', '', True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [True, '/a/', '/public/', '', '/app/a/', 'relative', '/app/a/', '/public/app/a/', '/public/', True]})
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, path, internal, external, query, trailing, absolute):
    return {'request': request, 'decision': [path == internal or path.startswith(internal.rstrip('/')+'/'), path[len(internal):], external or '/', ('?' + query) if query else '', path+'/' if trailing and not path.endswith('/') else path, 'absolute' if absolute else 'relative', path[1:] if internal == '/' else path, external.rstrip('/') + '/' + path.lstrip('/'), ('/' + external.lstrip('/')) if external else '/', path.startswith(internal.rstrip('/')+'/') or path == internal]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', '/app/a', '/app', '/public', 'x=1', False, False), {'request': '/requests/' + str(N) + '/0', 'decision': [True, '/a', '/public', '?x=1', '/app/a', 'relative', '/app/a', '/public/app/a', '/public', True]})
check('fixture 2', solve('/requests/' + str(N) + '/1', '/apple/a', '/app', '/public', '', False, False), {'request': '/requests/' + str(N) + '/1', 'decision': [False, '/apple/a', '/public', '', '/apple/a', 'relative', '/apple/a', '/public/apple/a', '/public', False]})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/app', '/app', '/public', 'q=', True, False), {'request': '/requests/' + str(N) + '/2', 'decision': [True, '', '/public', '?q=', '/app/', 'relative', '/app', '/public/app', '/public', True]})
check('fixture 4', solve('/requests/' + str(N) + '/3', '/app/a/app', '/app', '/v2', 'k=1&k=2', True, True), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '/a/app', '/v2', '?k=1&k=2', '/app/a/app/', 'absolute', '/app/a/app', '/v2/app/a/app', '/v2', True]})
check('fixture 5', solve('/requests/' + str(N) + '/4', '/', '/', '/edge', '', False, True), {'request': '/requests/' + str(N) + '/4', 'decision': [True, '', '/edge', '', '/', 'absolute', '', '/edge/', '/edge', True]})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/app/a', '/app', '', 'x=2', False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [True, '/a', '/', '?x=2', '/app/a', 'absolute', '/app/a', '/app/a', '/', True]})
check('fixture 7', solve('/requests/' + str(N) + '/6', '/app/a/', '/app', '/public/', '', True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [True, '/a/', '/public/', '', '/app/a/', 'relative', '/app/a/', '/public/app/a/', '/public/', True]})
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:
Translate a redirect between internal and public application mounts: the strip leading mount once branch emits an incorrect decision.

Translate a redirect between internal and public application mounts. 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, path, internal, external, query, trailing, absolute):
    return {'request': request, 'decision': [path == internal or path.startswith(internal.rstrip('/')+'/'), path[len(internal):] if path == internal or path.startswith(internal.rstrip('/')+'/') else path, external, ('?' + query) if query else '', path+'/' if trailing and not path.endswith('/') else path, 'absolute' if absolute else 'relative', path[1:] if internal == '/' else path, external.rstrip('/') + '/' + path.lstrip('/'), ('/' + external.lstrip('/')) if external else '/', path.startswith(internal.rstrip('/')+'/') or path == internal]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', '/app/a', '/app', '/public', 'x=1', False, False), {'request': '/requests/' + str(N) + '/0', 'decision': [True, '/a', '/public', '?x=1', '/app/a', 'relative', '/app/a', '/public/app/a', '/public', True]})
check('fixture 2', solve('/requests/' + str(N) + '/1', '/apple/a', '/app', '/public', '', False, False), {'request': '/requests/' + str(N) + '/1', 'decision': [False, '/apple/a', '/public', '', '/apple/a', 'relative', '/apple/a', '/public/apple/a', '/public', False]})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/app', '/app', '/public', 'q=', True, False), {'request': '/requests/' + str(N) + '/2', 'decision': [True, '', '/public', '?q=', '/app/', 'relative', '/app', '/public/app', '/public', True]})
check('fixture 4', solve('/requests/' + str(N) + '/3', '/app/a/app', '/app', '/v2', 'k=1&k=2', True, True), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '/a/app', '/v2', '?k=1&k=2', '/app/a/app/', 'absolute', '/app/a/app', '/v2/app/a/app', '/v2', True]})
check('fixture 5', solve('/requests/' + str(N) + '/4', '/', '/', '/edge', '', False, True), {'request': '/requests/' + str(N) + '/4', 'decision': [True, '', '/edge', '', '/', 'absolute', '', '/edge/', '/edge', True]})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/app/a', '/app', '', 'x=2', False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [True, '/a', '/', '?x=2', '/app/a', 'absolute', '/app/a', '/app/a', '/', True]})
check('fixture 7', solve('/requests/' + str(N) + '/6', '/app/a/', '/app', '/public/', '', True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [True, '/a/', '/public/', '', '/app/a/', 'relative', '/app/a/', '/public/app/a/', '/public/', True]})
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, path, internal, external, query, trailing, absolute):
    return {'request': request, 'decision': [path == internal or path.startswith(internal.rstrip('/')+'/'), path[len(internal):] if path == internal or path.startswith(internal.rstrip('/')+'/') else path, '/', ('?' + query) if query else '', path+'/' if trailing and not path.endswith('/') else path, 'absolute' if absolute else 'relative', path[1:] if internal == '/' else path, external.rstrip('/') + '/' + path.lstrip('/'), ('/' + external.lstrip('/')) if external else '/', path.startswith(internal.rstrip('/')+'/') or path == internal]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', '/app/a', '/app', '/public', 'x=1', False, False), {'request': '/requests/' + str(N) + '/0', 'decision': [True, '/a', '/public', '?x=1', '/app/a', 'relative', '/app/a', '/public/app/a', '/public', True]})
check('fixture 2', solve('/requests/' + str(N) + '/1', '/apple/a', '/app', '/public', '', False, False), {'request': '/requests/' + str(N) + '/1', 'decision': [False, '/apple/a', '/public', '', '/apple/a', 'relative', '/apple/a', '/public/apple/a', '/public', False]})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/app', '/app', '/public', 'q=', True, False), {'request': '/requests/' + str(N) + '/2', 'decision': [True, '', '/public', '?q=', '/app/', 'relative', '/app', '/public/app', '/public', True]})
check('fixture 4', solve('/requests/' + str(N) + '/3', '/app/a/app', '/app', '/v2', 'k=1&k=2', True, True), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '/a/app', '/v2', '?k=1&k=2', '/app/a/app/', 'absolute', '/app/a/app', '/v2/app/a/app', '/v2', True]})
check('fixture 5', solve('/requests/' + str(N) + '/4', '/', '/', '/edge', '', False, True), {'request': '/requests/' + str(N) + '/4', 'decision': [True, '', '/edge', '', '/', 'absolute', '', '/edge/', '/edge', True]})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/app/a', '/app', '', 'x=2', False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [True, '/a', '/', '?x=2', '/app/a', 'absolute', '/app/a', '/app/a', '/', True]})
check('fixture 7', solve('/requests/' + str(N) + '/6', '/app/a/', '/app', '/public/', '', True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [True, '/a/', '/public/', '', '/app/a/', 'relative', '/app/a/', '/public/app/a/', '/public/', True]})
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:
Translate a redirect between internal and public application mounts: the public mount empty branch emits an incorrect decision.

Translate a redirect between internal and public application mounts. 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, path, internal, external, query, trailing, absolute):
    return {'request': request, 'decision': [path == internal or path.startswith(internal.rstrip('/')+'/'), path[len(internal):] if path == internal or path.startswith(internal.rstrip('/')+'/') else path, external or '/', query, path+'/' if trailing and not path.endswith('/') else path, 'absolute' if absolute else 'relative', path[1:] if internal == '/' else path, external.rstrip('/') + '/' + path.lstrip('/'), ('/' + external.lstrip('/')) if external else '/', path.startswith(internal.rstrip('/')+'/') or path == internal]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', '/app/a', '/app', '/public', 'x=1', False, False), {'request': '/requests/' + str(N) + '/0', 'decision': [True, '/a', '/public', '?x=1', '/app/a', 'relative', '/app/a', '/public/app/a', '/public', True]})
check('fixture 2', solve('/requests/' + str(N) + '/1', '/apple/a', '/app', '/public', '', False, False), {'request': '/requests/' + str(N) + '/1', 'decision': [False, '/apple/a', '/public', '', '/apple/a', 'relative', '/apple/a', '/public/apple/a', '/public', False]})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/app', '/app', '/public', 'q=', True, False), {'request': '/requests/' + str(N) + '/2', 'decision': [True, '', '/public', '?q=', '/app/', 'relative', '/app', '/public/app', '/public', True]})
check('fixture 4', solve('/requests/' + str(N) + '/3', '/app/a/app', '/app', '/v2', 'k=1&k=2', True, True), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '/a/app', '/v2', '?k=1&k=2', '/app/a/app/', 'absolute', '/app/a/app', '/v2/app/a/app', '/v2', True]})
check('fixture 5', solve('/requests/' + str(N) + '/4', '/', '/', '/edge', '', False, True), {'request': '/requests/' + str(N) + '/4', 'decision': [True, '', '/edge', '', '/', 'absolute', '', '/edge/', '/edge', True]})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/app/a', '/app', '', 'x=2', False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [True, '/a', '/', '?x=2', '/app/a', 'absolute', '/app/a', '/app/a', '/', True]})
check('fixture 7', solve('/requests/' + str(N) + '/6', '/app/a/', '/app', '/public/', '', True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [True, '/a/', '/public/', '', '/app/a/', 'relative', '/app/a/', '/public/app/a/', '/public/', True]})
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, path, internal, external, query, trailing, absolute):
    return {'request': request, 'decision': [path == internal or path.startswith(internal.rstrip('/')+'/'), path[len(internal):] if path == internal or path.startswith(internal.rstrip('/')+'/') else path, external or '/', '?' + query, path+'/' if trailing and not path.endswith('/') else path, 'absolute' if absolute else 'relative', path[1:] if internal == '/' else path, external.rstrip('/') + '/' + path.lstrip('/'), ('/' + external.lstrip('/')) if external else '/', path.startswith(internal.rstrip('/')+'/') or path == internal]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', '/app/a', '/app', '/public', 'x=1', False, False), {'request': '/requests/' + str(N) + '/0', 'decision': [True, '/a', '/public', '?x=1', '/app/a', 'relative', '/app/a', '/public/app/a', '/public', True]})
check('fixture 2', solve('/requests/' + str(N) + '/1', '/apple/a', '/app', '/public', '', False, False), {'request': '/requests/' + str(N) + '/1', 'decision': [False, '/apple/a', '/public', '', '/apple/a', 'relative', '/apple/a', '/public/apple/a', '/public', False]})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/app', '/app', '/public', 'q=', True, False), {'request': '/requests/' + str(N) + '/2', 'decision': [True, '', '/public', '?q=', '/app/', 'relative', '/app', '/public/app', '/public', True]})
check('fixture 4', solve('/requests/' + str(N) + '/3', '/app/a/app', '/app', '/v2', 'k=1&k=2', True, True), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '/a/app', '/v2', '?k=1&k=2', '/app/a/app/', 'absolute', '/app/a/app', '/v2/app/a/app', '/v2', True]})
check('fixture 5', solve('/requests/' + str(N) + '/4', '/', '/', '/edge', '', False, True), {'request': '/requests/' + str(N) + '/4', 'decision': [True, '', '/edge', '', '/', 'absolute', '', '/edge/', '/edge', True]})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/app/a', '/app', '', 'x=2', False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [True, '/a', '/', '?x=2', '/app/a', 'absolute', '/app/a', '/app/a', '/', True]})
check('fixture 7', solve('/requests/' + str(N) + '/6', '/app/a/', '/app', '/public/', '', True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [True, '/a/', '/public/', '', '/app/a/', 'relative', '/app/a/', '/public/app/a/', '/public/', True]})
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:
Translate a redirect between internal and public application mounts: the query append marker branch emits an incorrect decision.

Translate a redirect between internal and public application mounts. 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, path, internal, external, query, trailing, absolute):
    return {'request': request, 'decision': [path == internal or path.startswith(internal.rstrip('/')+'/'), path[len(internal):] if path == internal or path.startswith(internal.rstrip('/')+'/') else path, external or '/', ('?' + query) if query else '', path+'/' if trailing else path, 'absolute' if absolute else 'relative', path[1:] if internal == '/' else path, external.rstrip('/') + '/' + path.lstrip('/'), ('/' + external.lstrip('/')) if external else '/', path.startswith(internal.rstrip('/')+'/') or path == internal]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', '/app/a', '/app', '/public', 'x=1', False, False), {'request': '/requests/' + str(N) + '/0', 'decision': [True, '/a', '/public', '?x=1', '/app/a', 'relative', '/app/a', '/public/app/a', '/public', True]})
check('fixture 2', solve('/requests/' + str(N) + '/1', '/apple/a', '/app', '/public', '', False, False), {'request': '/requests/' + str(N) + '/1', 'decision': [False, '/apple/a', '/public', '', '/apple/a', 'relative', '/apple/a', '/public/apple/a', '/public', False]})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/app', '/app', '/public', 'q=', True, False), {'request': '/requests/' + str(N) + '/2', 'decision': [True, '', '/public', '?q=', '/app/', 'relative', '/app', '/public/app', '/public', True]})
check('fixture 4', solve('/requests/' + str(N) + '/3', '/app/a/app', '/app', '/v2', 'k=1&k=2', True, True), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '/a/app', '/v2', '?k=1&k=2', '/app/a/app/', 'absolute', '/app/a/app', '/v2/app/a/app', '/v2', True]})
check('fixture 5', solve('/requests/' + str(N) + '/4', '/', '/', '/edge', '', False, True), {'request': '/requests/' + str(N) + '/4', 'decision': [True, '', '/edge', '', '/', 'absolute', '', '/edge/', '/edge', True]})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/app/a', '/app', '', 'x=2', False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [True, '/a', '/', '?x=2', '/app/a', 'absolute', '/app/a', '/app/a', '/', True]})
check('fixture 7', solve('/requests/' + str(N) + '/6', '/app/a/', '/app', '/public/', '', True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [True, '/a/', '/public/', '', '/app/a/', 'relative', '/app/a/', '/public/app/a/', '/public/', True]})
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, path, internal, external, query, trailing, absolute):
    return {'request': request, 'decision': [path == internal or path.startswith(internal.rstrip('/')+'/'), path[len(internal):] if path == internal or path.startswith(internal.rstrip('/')+'/') else path, external or '/', ('?' + query) if query else '', path.rstrip('/'), 'absolute' if absolute else 'relative', path[1:] if internal == '/' else path, external.rstrip('/') + '/' + path.lstrip('/'), ('/' + external.lstrip('/')) if external else '/', path.startswith(internal.rstrip('/')+'/') or path == internal]}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', '/app/a', '/app', '/public', 'x=1', False, False), {'request': '/requests/' + str(N) + '/0', 'decision': [True, '/a', '/public', '?x=1', '/app/a', 'relative', '/app/a', '/public/app/a', '/public', True]})
check('fixture 2', solve('/requests/' + str(N) + '/1', '/apple/a', '/app', '/public', '', False, False), {'request': '/requests/' + str(N) + '/1', 'decision': [False, '/apple/a', '/public', '', '/apple/a', 'relative', '/apple/a', '/public/apple/a', '/public', False]})
check('fixture 3', solve('/requests/' + str(N) + '/2', '/app', '/app', '/public', 'q=', True, False), {'request': '/requests/' + str(N) + '/2', 'decision': [True, '', '/public', '?q=', '/app/', 'relative', '/app', '/public/app', '/public', True]})
check('fixture 4', solve('/requests/' + str(N) + '/3', '/app/a/app', '/app', '/v2', 'k=1&k=2', True, True), {'request': '/requests/' + str(N) + '/3', 'decision': [True, '/a/app', '/v2', '?k=1&k=2', '/app/a/app/', 'absolute', '/app/a/app', '/v2/app/a/app', '/v2', True]})
check('fixture 5', solve('/requests/' + str(N) + '/4', '/', '/', '/edge', '', False, True), {'request': '/requests/' + str(N) + '/4', 'decision': [True, '', '/edge', '', '/', 'absolute', '', '/edge/', '/edge', True]})
check('fixture 6', solve('/requests/' + str(N) + '/5', '/app/a', '/app', '', 'x=2', False, True), {'request': '/requests/' + str(N) + '/5', 'decision': [True, '/a', '/', '?x=2', '/app/a', 'absolute', '/app/a', '/app/a', '/', True]})
check('fixture 7', solve('/requests/' + str(N) + '/6', '/app/a/', '/app', '/public/', '', True, False), {'request': '/requests/' + str(N) + '/6', 'decision': [True, '/a/', '/public/', '', '/app/a/', 'relative', '/app/a/', '/public/app/a/', '/public/', True]})
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:
Translate a redirect between internal and public application mounts: the preserve terminal slash branch emits an incorrect decision.

Translate a redirect between internal and public application mounts. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.

split: open-access