FA-28486 / HTTP redirects / Open access
Resolve stored redirect chains with per-entry freshness and provenance: fresh prefix · case 01
Resolve stored redirect chains with per-entry freshness and provenance: the fresh prefix branch emits an incorrect decision.
ROOT CAUSE
The fresh-prefix decision uses '[t for t,f in zip(targets,fresh) if f]'; this violates the stipulated controller policy.
THE FAILURE
The fresh-prefix decision uses '[t for t,f in zip(targets,fresh) if f]'; this violates the stipulated controller policy.
Unsuccessful approach: The partial repair uses 'targets if all(fresh) else []' and still fails an explicit boundary or control.
Case contract
Resolve stored redirect chains with per-entry freshness and provenance. 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, targets, fresh, network, blocked, now, inserted):
return {'request': request, 'decision': [targets, next((i for i,f in enumerate(fresh) if not f),None), all(fresh), max(0,now-inserted), 'network' if network else 'cache', blocked and not network, targets[0] if targets else None, len(targets), not targets, [t for t,f in zip(targets,fresh) if f]]}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['/b', '/c'], [True, False], False, False, 20, 10), {'request': '/requests/' + str(N) + '/0', 'decision': [['/b', '/c'], 1, False, 10, 'cache', False, '/b', 2, False, ['/b']]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['/b'], [True], True, False, 10, 10), {'request': '/requests/' + str(N) + '/1', 'decision': [['/b'], None, True, 0, 'network', False, '/b', 1, False, ['/b']]})
check('fixture 3', solve('/requests/' + str(N) + '/2', [], [], True, False, 0, 0), {'request': '/requests/' + str(N) + '/2', 'decision': [[], None, True, 0, 'network', False, None, 0, True, []]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['/z', '/a'], [True, True], False, True, 30, 5), {'request': '/requests/' + str(N) + '/3', 'decision': [['/z', '/a'], None, True, 25, 'cache', True, '/z', 2, False, ['/z', '/a']]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['/a', '/a'], [False, True], False, False, 8, 9), {'request': '/requests/' + str(N) + '/4', 'decision': [['/a', '/a'], 0, False, 0, 'cache', False, '/a', 2, False, []]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['/q'], [False], True, True, 100, 80), {'request': '/requests/' + str(N) + '/5', 'decision': [['/q'], 0, False, 20, 'network', False, '/q', 1, False, []]})
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': [['/b', '/c'], 1, False, 10, 'cache', False, '/b', 2, False, ['/b']], 'request': '/requests/1/0'} | {'decision': [['/b', '/c'], 1, False, 10, 'cache', False, '/b', 2, False, ['/b']], 'request': '/requests/1/0'} | Passed |
| fixture 2 | {'decision': [['/b'], None, True, 0, 'network', False, '/b', 1, False, ['/b']], 'request': '/requests/1/1'} | {'decision': [['/b'], None, True, 0, 'network', False, '/b', 1, False, ['/b']], 'request': '/requests/1/1'} | Passed |
| fixture 3 | {'decision': [[], None, True, 0, 'network', False, None, 0, True, []], 'request': '/requests/1/2'} | {'decision': [[], None, True, 0, 'network', False, None, 0, True, []], 'request': '/requests/1/2'} | Passed |
| fixture 4 | {'decision': [['/z', '/a'], None, True, 25, 'cache', True, '/z', 2, False, ['/z', '/a']], 'request': '/requests/1/3'} | {'decision': [['/z', '/a'], None, True, 25, 'cache', True, '/z', 2, False, ['/z', '/a']], 'request': '/requests/1/3'} | Passed |
| fixture 5 | {'decision': [['/a', '/a'], 0, False, 0, 'cache', False, '/a', 2, False, ['/a']], 'request': '/requests/1/4'} | {'decision': [['/a', '/a'], 0, False, 0, 'cache', False, '/a', 2, False, []], 'request': '/requests/1/4'} | Failed |
| fixture 6 | {'decision': [['/q'], 0, False, 20, 'network', False, '/q', 1, False, []], 'request': '/requests/1/5'} | {'decision': [['/q'], 0, False, 20, 'network', False, '/q', 1, False, []], 'request': '/requests/1/5'} | Passed |
SHA-256 / e4f453124f09fef6a3b29f38d7f2bc977964bd2f35385bc48209b29fcc8ae541
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, targets, fresh, network, blocked, now, inserted):
return {'request': request, 'decision': [targets, next((i for i,f in enumerate(fresh) if not f),None), all(fresh), max(0,now-inserted), 'network' if network else 'cache', blocked and not network, targets[0] if targets else None, len(targets), not targets, targets if all(fresh) else []]}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve('/requests/' + str(N) + '/0', ['/b', '/c'], [True, False], False, False, 20, 10), {'request': '/requests/' + str(N) + '/0', 'decision': [['/b', '/c'], 1, False, 10, 'cache', False, '/b', 2, False, ['/b']]})
check('fixture 2', solve('/requests/' + str(N) + '/1', ['/b'], [True], True, False, 10, 10), {'request': '/requests/' + str(N) + '/1', 'decision': [['/b'], None, True, 0, 'network', False, '/b', 1, False, ['/b']]})
check('fixture 3', solve('/requests/' + str(N) + '/2', [], [], True, False, 0, 0), {'request': '/requests/' + str(N) + '/2', 'decision': [[], None, True, 0, 'network', False, None, 0, True, []]})
check('fixture 4', solve('/requests/' + str(N) + '/3', ['/z', '/a'], [True, True], False, True, 30, 5), {'request': '/requests/' + str(N) + '/3', 'decision': [['/z', '/a'], None, True, 25, 'cache', True, '/z', 2, False, ['/z', '/a']]})
check('fixture 5', solve('/requests/' + str(N) + '/4', ['/a', '/a'], [False, True], False, False, 8, 9), {'request': '/requests/' + str(N) + '/4', 'decision': [['/a', '/a'], 0, False, 0, 'cache', False, '/a', 2, False, []]})
check('fixture 6', solve('/requests/' + str(N) + '/5', ['/q'], [False], True, True, 100, 80), {'request': '/requests/' + str(N) + '/5', 'decision': [['/q'], 0, False, 20, 'network', False, '/q', 1, False, []]})
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': [['/b', '/c'], 1, False, 10, 'cache', False, '/b', 2, False, []], 'request': '/requests/1/0'} | {'decision': [['/b', '/c'], 1, False, 10, 'cache', False, '/b', 2, False, ['/b']], 'request': '/requests/1/0'} | Failed |
| fixture 2 | {'decision': [['/b'], None, True, 0, 'network', False, '/b', 1, False, ['/b']], 'request': '/requests/1/1'} | {'decision': [['/b'], None, True, 0, 'network', False, '/b', 1, False, ['/b']], 'request': '/requests/1/1'} | Passed |
| fixture 3 | {'decision': [[], None, True, 0, 'network', False, None, 0, True, []], 'request': '/requests/1/2'} | {'decision': [[], None, True, 0, 'network', False, None, 0, True, []], 'request': '/requests/1/2'} | Passed |
| fixture 4 | {'decision': [['/z', '/a'], None, True, 25, 'cache', True, '/z', 2, False, ['/z', '/a']], 'request': '/requests/1/3'} | {'decision': [['/z', '/a'], None, True, 25, 'cache', True, '/z', 2, False, ['/z', '/a']], 'request': '/requests/1/3'} | Passed |
| fixture 5 | {'decision': [['/a', '/a'], 0, False, 0, 'cache', False, '/a', 2, False, []], 'request': '/requests/1/4'} | {'decision': [['/a', '/a'], 0, False, 0, 'cache', False, '/a', 2, False, []], 'request': '/requests/1/4'} | Passed |
| fixture 6 | {'decision': [['/q'], 0, False, 20, 'network', False, '/q', 1, False, []], 'request': '/requests/1/5'} | {'decision': [['/q'], 0, False, 20, 'network', False, '/q', 1, False, []], 'request': '/requests/1/5'} | Passed |
SHA-256 / 8e245c5d9ff453f709a7759c3b4091952e15f3ce2f163b908ca043395117e625
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:34.424484+00:00.
Case digest / 3057672a4d0a6015604f2d22d0674a6721d5d8665102baa7f38a73bc3e4d1e91