FA-7436 / DNS resolution / Open access
Dns response qr bit must mark response · case 01
Dns response qr bit must mark response.
ROOT CAUSE
The faulty implementation uses `identifier_ok` for the dns-response-qr-bit-must-mark-response decision.
VERIFIED REPAIR
Apply the explicit dns-response-qr-bit-must-mark-response contract, including the tested boundary and negative cases.
Unsuccessful approach: The attempted repair uses `qr` and still violates a separate fixture.
Case contract
Bounded offline decision model: dns response qr bit must mark response. 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-response-qr-bit-must-mark-response 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(qr, identifier_ok):
return identifier_ok
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(False, True), False)", "check('fixture 2', solve(True, False), False)", "check('fixture 3', solve(True, True), True)", "check('fixture 4', solve(False, False), 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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 2 | False | False | Passed |
| fixture 3 | True | True | Passed |
| fixture 4 | False | False | Passed |
| fixture 1 | True | False | Failed |
SHA-256 / 5f2a0deb153c2d1c136b4a04ce488a45680e8a6b2278c016eca004ca235c71e8
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(qr, identifier_ok):
return qr
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(False, True), False)", "check('fixture 2', solve(True, False), False)", "check('fixture 3', solve(True, True), True)", "check('fixture 4', solve(False, False), 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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 2 | True | False | Failed |
| fixture 3 | True | True | Passed |
| fixture 4 | False | False | Passed |
| fixture 1 | False | False | Passed |
SHA-256 / d9383facce397fc5146e9089a6874457d470d9f579ac865f4124a6c9d18e9c1c
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(qr, identifier_ok):
return qr and identifier_ok
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(False, True), False)", "check('fixture 2', solve(True, False), False)", "check('fixture 3', solve(True, True), True)", "check('fixture 4', solve(False, False), 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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 2 | False | False | Passed |
| fixture 3 | True | True | Passed |
| fixture 4 | False | False | Passed |
| fixture 1 | False | False | Passed |
SHA-256 / 22c4e4438a709413db058145978735f9827f0a289ada6d89d4861e777d640624
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:12.033050+00:00.
Case digest / a213351a47a81e8a8c04fc876d29b0022c8725bda54a2cc03602da1a4bb362be