FA-7171 / Network routing / Open access
Ipv4 network broadcast address is not allocated to host · case 01
Ipv4 network broadcast address is not allocated to host.
ROOT CAUSE
The faulty implementation uses `ipaddress.ip_address(address) in ipaddress.ip_network(network)` for the ipv4-network-broadcast-address-is-not-allocated-to-host decision.
THE FAILURE
The faulty implementation uses `ipaddress.ip_address(address) in ipaddress.ip_network(network)` for the ipv4-network-broadcast-address-is-not-allocated-to-host decision.
Unsuccessful approach: The attempted repair uses `ipaddress.ip_address(address) != ipaddress.ip_network(network).broadcast_address` and still violates a separate fixture.
Case contract
Bounded offline decision model: ipv4 network broadcast address is not allocated to host. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.
Why this case matters
This deterministic network routing model isolates the ipv4-network-broadcast-address-is-not-allocated-to-host 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(address, network):
return ipaddress.ip_address(address) in ipaddress.ip_network(network)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('192.0.2.255', '192.0.2.0/24'), False)", "check('fixture 2', solve('192.0.2.0', '192.0.2.0/24'), False)", "check('fixture 3', solve('192.0.2.1', '192.0.2.0/24'), True)", "check('fixture 4', solve('192.0.3.1', '192.0.2.0/24'), 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 | True | False | Failed |
SHA-256 / 4b39b98903e45eadd6992c2f32d4169133492849573b3fd0640c8800706ced07
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(address, network):
return ipaddress.ip_address(address) != ipaddress.ip_network(network).broadcast_address
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('192.0.2.255', '192.0.2.0/24'), False)", "check('fixture 2', solve('192.0.2.0', '192.0.2.0/24'), False)", "check('fixture 3', solve('192.0.2.1', '192.0.2.0/24'), True)", "check('fixture 4', solve('192.0.3.1', '192.0.2.0/24'), 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 | True | False | Failed |
| fixture 1 | False | False | Passed |
SHA-256 / 0ba0a6b6e07b3cc805ca93da539ebf4b7a88ba0eae94b73c578c46ab1d93b3df
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:09.105044+00:00.
Case digest / 91be7497a6e2c6784a1cd9714bdde375f9dec01e65302d662378efdb0fb0968c