FA-28191 / HTTP redirects / Open access
Apply redirect interception to the current hop before validating and dispatching the selected target: explicit empty override · case 01
Apply redirect interception to the current hop before validating and dispatching the selected target: the explicit empty override branch emits an incorrect decision.
ROOT CAUSE
The explicit-empty-override decision uses 'override or location'; this violates the stipulated controller policy.
THE FAILURE
The explicit-empty-override decision uses 'override or location'; this violates the stipulated controller policy.
Unsuccessful approach: The partial repair uses 'location' and still fails an explicit boundary or control.
Case contract
Apply redirect interception to the current hop before validating and dispatching the selected target. The explicit fixture inputs and outputs define a bounded offline policy; request identity must accompany the decision.
Why this case matters
Models a redirect controller decision before following a target or exposing a redirect result.
1 / The failure
Exit 1"""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, original, current, location, override, action, status, callback_status, headers, synthetic, cached):
return {'request': request, 'decision': [override or location, status, action == 'follow', current, headers, action == 'follow' and not synthetic, action != 'error', True, urlsplit(location if override is None else override).scheme in ('','http','https'), callback_status if synthetic 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', 'https://a/x', 'https://b/y', '/next', 'https://c/z', 'follow', 302, 200, [['X', '1'], ['X', '2']], False, False), {'request': '/requests/' + str(N) + '/0', 'decision': ['https://c/z', 302, True, 'https://b/y', [['X', '1'], ['X', '2']], True, True, True, True, None]})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'https://a/x', 'https://a/x', '/next', None, 'manual', 307, None, [], False, True), {'request': '/requests/' + str(N) + '/1', 'decision': ['/next', 307, False, 'https://a/x', [], False, True, True, True, None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'https://a/x', 'https://b/y', '/next', '', 'follow', 303, 204, [['Y', 'v']], True, True), {'request': '/requests/' + str(N) + '/2', 'decision': ['', 303, True, 'https://b/y', [['Y', 'v']], False, True, True, True, 204]})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'https://a/x', 'https://b/y', 'https://safe/x', 'file:/local', 'cancel', 301, 201, [], False, False), {'request': '/requests/' + str(N) + '/3', 'decision': ['file:/local', 301, False, 'https://b/y', [], False, True, True, False, None]})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'https://a/x', 'https://b/y', '/next', None, 'error', 308, None, [['X', '1']], False, True), {'request': '/requests/' + str(N) + '/4', 'decision': ['/next', 308, False, 'https://b/y', [['X', '1']], False, False, True, True, None]})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'https://a/x', 'https://b/y', '/next', '/custom', 'manual', 302, 202, [['Z', '1']], True, False), {'request': '/requests/' + str(N) + '/5', 'decision': ['/custom', 302, False, 'https://b/y', [['Z', '1']], False, True, True, True, 202]})
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1 | {'decision': ['https://c/z', 302, True, 'https://b/y', [['X', '1'], ['X', '2']], True, True, True, True, None], 'request': '/requests/1/0'} | {'decision': ['https://c/z', 302, True, 'https://b/y', [['X', '1'], ['X', '2']], True, True, True, True, None], 'request': '/requests/1/0'} | Passed |
| fixture 2 | {'decision': ['/next', 307, False, 'https://a/x', [], False, True, True, True, None], 'request': '/requests/1/1'} | {'decision': ['/next', 307, False, 'https://a/x', [], False, True, True, True, None], 'request': '/requests/1/1'} | Passed |
| fixture 3 | {'decision': ['/next', 303, True, 'https://b/y', [['Y', 'v']], False, True, True, True, 204], 'request': '/requests/1/2'} | {'decision': ['', 303, True, 'https://b/y', [['Y', 'v']], False, True, True, True, 204], 'request': '/requests/1/2'} | Failed |
| fixture 4 | {'decision': ['file:/local', 301, False, 'https://b/y', [], False, True, True, False, None], 'request': '/requests/1/3'} | {'decision': ['file:/local', 301, False, 'https://b/y', [], False, True, True, False, None], 'request': '/requests/1/3'} | Passed |
| fixture 5 | {'decision': ['/next', 308, False, 'https://b/y', [['X', '1']], False, False, True, True, None], 'request': '/requests/1/4'} | {'decision': ['/next', 308, False, 'https://b/y', [['X', '1']], False, False, True, True, None], 'request': '/requests/1/4'} | Passed |
| fixture 6 | {'decision': ['/custom', 302, False, 'https://b/y', [['Z', '1']], False, True, True, True, 202], 'request': '/requests/1/5'} | {'decision': ['/custom', 302, False, 'https://b/y', [['Z', '1']], False, True, True, True, 202], 'request': '/requests/1/5'} | Passed |
SHA-256 / 2c448c626ae470c32421252633f9a267aef4641797cc50be0659fcb9c04e7f4e
2 / The unsuccessful fix
Exit 1"""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, original, current, location, override, action, status, callback_status, headers, synthetic, cached):
return {'request': request, 'decision': [location, status, action == 'follow', current, headers, action == 'follow' and not synthetic, action != 'error', True, urlsplit(location if override is None else override).scheme in ('','http','https'), callback_status if synthetic 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', 'https://a/x', 'https://b/y', '/next', 'https://c/z', 'follow', 302, 200, [['X', '1'], ['X', '2']], False, False), {'request': '/requests/' + str(N) + '/0', 'decision': ['https://c/z', 302, True, 'https://b/y', [['X', '1'], ['X', '2']], True, True, True, True, None]})
check('fixture 2', solve('/requests/' + str(N) + '/1', 'https://a/x', 'https://a/x', '/next', None, 'manual', 307, None, [], False, True), {'request': '/requests/' + str(N) + '/1', 'decision': ['/next', 307, False, 'https://a/x', [], False, True, True, True, None]})
check('fixture 3', solve('/requests/' + str(N) + '/2', 'https://a/x', 'https://b/y', '/next', '', 'follow', 303, 204, [['Y', 'v']], True, True), {'request': '/requests/' + str(N) + '/2', 'decision': ['', 303, True, 'https://b/y', [['Y', 'v']], False, True, True, True, 204]})
check('fixture 4', solve('/requests/' + str(N) + '/3', 'https://a/x', 'https://b/y', 'https://safe/x', 'file:/local', 'cancel', 301, 201, [], False, False), {'request': '/requests/' + str(N) + '/3', 'decision': ['file:/local', 301, False, 'https://b/y', [], False, True, True, False, None]})
check('fixture 5', solve('/requests/' + str(N) + '/4', 'https://a/x', 'https://b/y', '/next', None, 'error', 308, None, [['X', '1']], False, True), {'request': '/requests/' + str(N) + '/4', 'decision': ['/next', 308, False, 'https://b/y', [['X', '1']], False, False, True, True, None]})
check('fixture 6', solve('/requests/' + str(N) + '/5', 'https://a/x', 'https://b/y', '/next', '/custom', 'manual', 302, 202, [['Z', '1']], True, False), {'request': '/requests/' + str(N) + '/5', 'decision': ['/custom', 302, False, 'https://b/y', [['Z', '1']], False, True, True, True, 202]})
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1 | {'decision': ['/next', 302, True, 'https://b/y', [['X', '1'], ['X', '2']], True, True, True, True, None], 'request': '/requests/1/0'} | {'decision': ['https://c/z', 302, True, 'https://b/y', [['X', '1'], ['X', '2']], True, True, True, True, None], 'request': '/requests/1/0'} | Failed |
| fixture 2 | {'decision': ['/next', 307, False, 'https://a/x', [], False, True, True, True, None], 'request': '/requests/1/1'} | {'decision': ['/next', 307, False, 'https://a/x', [], False, True, True, True, None], 'request': '/requests/1/1'} | Passed |
| fixture 3 | {'decision': ['/next', 303, True, 'https://b/y', [['Y', 'v']], False, True, True, True, 204], 'request': '/requests/1/2'} | {'decision': ['', 303, True, 'https://b/y', [['Y', 'v']], False, True, True, True, 204], 'request': '/requests/1/2'} | Failed |
| fixture 4 | {'decision': ['https://safe/x', 301, False, 'https://b/y', [], False, True, True, False, None], 'request': '/requests/1/3'} | {'decision': ['file:/local', 301, False, 'https://b/y', [], False, True, True, False, None], 'request': '/requests/1/3'} | Failed |
| fixture 5 | {'decision': ['/next', 308, False, 'https://b/y', [['X', '1']], False, False, True, True, None], 'request': '/requests/1/4'} | {'decision': ['/next', 308, False, 'https://b/y', [['X', '1']], False, False, True, True, None], 'request': '/requests/1/4'} | Passed |
| fixture 6 | {'decision': ['/next', 302, False, 'https://b/y', [['Z', '1']], False, True, True, True, 202], 'request': '/requests/1/5'} | {'decision': ['/custom', 302, False, 'https://b/y', [['Z', '1']], False, True, True, True, 202], 'request': '/requests/1/5'} | Failed |
SHA-256 / 83b0d21b189a9e7667fed83b226410d3be3a316d3bf46404955db0c0dc65974d
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 6 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.
Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.
Member access is invitation-based. Sign in with your invited account to inspect the repair.
Sign in to the archive ↗Verification & scope
Stipulated offline redirect policy, not a complete HTTP, browser, URL, cache, or security implementation. Numbered variants vary request correlation identity. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.
Observations recorded using Python 3.12.14 at 2026-09-29T14:41:32.071447+00:00.
Case digest / c3392a8130c0afded049d8ed552be45c7fdeed514c16fb9a615535c8ad399201