FA-9676 / Configuration / Open access
Profile inheritance expansion: False child values fail to override parents · case 01
False child values fail to override parents.
ROOT CAUSE
The implementation substitutes if k != 'parent' and v for if k != 'parent', so false child values fail to override parents.
THE FAILURE
The implementation substitutes if k != 'parent' and v for if k != 'parent', so false child values fail to override parents.
Unsuccessful approach: The attempted repair substitutes if k != 'parent' and v is not False. Fixture 6 still yields {'x': True} instead of {'x': False}.
Case contract
Resolve parent chains before child values, reject missing profiles, reject cycles, remove the reserved parent field, and allow explicit false values to override.
Why this case matters
An offline model of profile inheritance expansion, suitable for testing build and release tooling without external services.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(profiles, name):
chain = []
seen = set()
while name is not None:
if name in seen: return 'cycle'
if name not in profiles: return 'missing'
seen.add(name)
chain.append(profiles[name])
name = profiles[name].get('parent')
result = {}
for profile in reversed(chain):
result.update({k:v for k,v in profile.items() if k != 'parent' and v})
return result
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({}, None), {})
check('fixture 2', solve({}, 'x'), 'missing')
check('fixture 3', solve({'a': {'x': 1}}, 'a'), {'x': 1})
check('fixture 4', solve({'a': {'x': 1, 'y': 4}, 'b': {'parent': 'a', 'x': 2}}, 'b'), {'x': 2, 'y': 4})
check('fixture 5', solve({'a': {'parent': 'b'}, 'b': {'parent': 'a'}}, 'a'), 'cycle')
check('fixture 6', solve({'a': {'x': True}, 'b': {'parent': 'a', 'x': False}}, 'b'), {'x': False})
check('fixture 7', solve({'a': {'parent': 'absent'}}, 'a'), 'missing')
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 | {} | {} | Passed |
| fixture 2 | missing | missing | Passed |
| fixture 3 | {'x': 1} | {'x': 1} | Passed |
| fixture 4 | {'x': 2, 'y': 4} | {'x': 2, 'y': 4} | Passed |
| fixture 5 | cycle | cycle | Passed |
| fixture 6 | {'x': True} | {'x': False} | Failed |
| fixture 7 | missing | missing | Passed |
SHA-256 / 10b5699b7a09be22b79b0373ce6eba7411b47d998db018c4f816a58261b67569
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(profiles, name):
chain = []
seen = set()
while name is not None:
if name in seen: return 'cycle'
if name not in profiles: return 'missing'
seen.add(name)
chain.append(profiles[name])
name = profiles[name].get('parent')
result = {}
for profile in reversed(chain):
result.update({k:v for k,v in profile.items() if k != 'parent' and v is not False})
return result
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({}, None), {})
check('fixture 2', solve({}, 'x'), 'missing')
check('fixture 3', solve({'a': {'x': 1}}, 'a'), {'x': 1})
check('fixture 4', solve({'a': {'x': 1, 'y': 4}, 'b': {'parent': 'a', 'x': 2}}, 'b'), {'x': 2, 'y': 4})
check('fixture 5', solve({'a': {'parent': 'b'}, 'b': {'parent': 'a'}}, 'a'), 'cycle')
check('fixture 6', solve({'a': {'x': True}, 'b': {'parent': 'a', 'x': False}}, 'b'), {'x': False})
check('fixture 7', solve({'a': {'parent': 'absent'}}, 'a'), 'missing')
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 | {} | {} | Passed |
| fixture 2 | missing | missing | Passed |
| fixture 3 | {'x': 1} | {'x': 1} | Passed |
| fixture 4 | {'x': 2, 'y': 4} | {'x': 2, 'y': 4} | Passed |
| fixture 5 | cycle | cycle | Passed |
| fixture 6 | {'x': True} | {'x': False} | Failed |
| fixture 7 | missing | missing | Passed |
SHA-256 / ed48d2d81fd733d4c5ba2d25f07abb7df50e7621b85b26a9c8e497d20b010c0d
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 7 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
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:32.097773+00:00.
Case digest / 258bba7d340bc41fe963aa272eb1a9fdcdeaad8b79d54282760d602cc7eadd72