FAILURE MAP
← Case archive

FA-7416 / DNS resolution / Open access

Dns servfail is retryable while nxdomain is terminal · case 01

Dns servfail is retryable while nxdomain is terminal.

Verified by executionVariant 1 · 4 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The faulty implementation uses `rcode != 0` for the dns-servfail-is-retryable-while-nxdomain-is-terminal decision.

VERIFIED REPAIR

Apply the explicit dns-servfail-is-retryable-while-nxdomain-is-terminal contract, including the tested boundary and negative cases.

Unsuccessful approach: The attempted repair uses `rcode == 2` and still violates a separate fixture.

Case contract

Bounded offline decision model: dns servfail is retryable while nxdomain is terminal. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.

Why this case matters

This deterministic dns resolution model isolates the dns-servfail-is-retryable-while-nxdomain-is-terminal policy at a network component boundary.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import ipaddress
import re
from urllib.parse import urlsplit, urljoin
N = 1
observations = []
def solve(rcode):
    return rcode != 0
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(2), True)", "check('fixture 2', solve(5), True)", "check('fixture 3', solve(3), False)", "check('fixture 4', solve(0), False)"]
for _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:
    exec(_line)
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 fixtureActualExpectedOutcome
fixture 2TrueTruePassed
fixture 3TrueFalseFailed
fixture 4FalseFalsePassed
fixture 1TrueTruePassed

SHA-256 / 6a71c9db791c3fb6767fa05d27a153bec99d71eebc9d3f1fdcce6992920c6485

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import ipaddress
import re
from urllib.parse import urlsplit, urljoin
N = 1
observations = []
def solve(rcode):
    return rcode == 2
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(2), True)", "check('fixture 2', solve(5), True)", "check('fixture 3', solve(3), False)", "check('fixture 4', solve(0), False)"]
for _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:
    exec(_line)
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 fixtureActualExpectedOutcome
fixture 2FalseTrueFailed
fixture 3FalseFalsePassed
fixture 4FalseFalsePassed
fixture 1TrueTruePassed

SHA-256 / 352811ad97e74d7a2d68dea7d60aa52203634859cad4b1d66519ef308dce3005

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json
import ipaddress
import re
from urllib.parse import urlsplit, urljoin
N = 1
observations = []
def solve(rcode):
    return rcode in (2,5)
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(2), True)", "check('fixture 2', solve(5), True)", "check('fixture 3', solve(3), False)", "check('fixture 4', solve(0), False)"]
for _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:
    exec(_line)
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 fixtureActualExpectedOutcome
fixture 2TrueTruePassed
fixture 3FalseFalsePassed
fixture 4FalseFalsePassed
fixture 1TrueTruePassed

SHA-256 / a4e6dd6f5ab904aa05e23936875f23a1519fcd5f16998d61461ff2c681c27f04

Verification & scope

Bounded deterministic policy model over validated inputs; not a complete protocol stack or an interoperability claim. The five variants rotate the same explicit fixture set. 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:38:11.736229+00:00.

Case digest / d20022125b1d94ca1306b60780abc95e3749933a51f234f0e2c526abd08bd3d3