FAILURE MAP
← Case archive

FA-7366 / DNS resolution / Open access

Dns zero ttl answer can serve current query without caching · case 01

Dns zero ttl answer can serve current query without caching.

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

ROOT CAUSE

The faulty implementation uses `ttl > 0` for the dns-zero-ttl-answer-can-serve-current-query-without-caching decision.

THE FAILURE

The faulty implementation uses `ttl > 0` for the dns-zero-ttl-answer-can-serve-current-query-without-caching decision.

Unsuccessful approach: The attempted repair uses `True` and still violates a separate fixture.

Case contract

Bounded offline decision model: dns zero ttl answer can serve current query without caching. 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-zero-ttl-answer-can-serve-current-query-without-caching 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(ttl, current):
    return ttl > 0
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(0, True), True)", "check('fixture 2', solve(0, False), False)", "check('fixture 3', solve(1, False), True)", "check('fixture 4', solve(1, True), True)"]
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 2FalseFalsePassed
fixture 3TrueTruePassed
fixture 4TrueTruePassed
fixture 1FalseTrueFailed

SHA-256 / 1a6bb9eca48dd5a1cf9e1e1e51fa18ed1160935fec048f597c3a6eab021521fd

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(ttl, current):
    return True
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(0, True), True)", "check('fixture 2', solve(0, False), False)", "check('fixture 3', solve(1, False), True)", "check('fixture 4', solve(1, True), True)"]
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 2TrueFalseFailed
fixture 3TrueTruePassed
fixture 4TrueTruePassed
fixture 1TrueTruePassed

SHA-256 / 94cf39470f429fca975c6947ab7de7e2d27ff28c711dce876de08e687c8de225

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 4 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

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.243413+00:00.

Case digest / d10ed424e2be7900e1ddb9da2a31dfe7fc1b70130470a34e94c744e6731f48f5