FA-9761 / Configuration / Open access
Configuration provenance tracking: Deleted settings retain stale provenance · case 01
Deleted settings retain stale provenance.
ROOT CAUSE
The implementation substitutes pass for sources.pop(key, None), so deleted settings retain stale provenance.
THE FAILURE
The implementation substitutes pass for sources.pop(key, None), so deleted settings retain stale provenance.
Unsuccessful approach: The attempted repair substitutes sources[key] = source. Fixture 3 still yields ({}, {'a': 'user'}) instead of ({}, {}).
Case contract
Return final values and source names. Each present setting replaces prior value and provenance, deletions remove both, and layers with no assignment preserve provenance.
Why this case matters
An offline model of configuration provenance tracking, 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(layers):
values = {}
sources = {}
for source, settings in layers:
for key, value in settings.items():
if value is None:
values.pop(key, None)
pass
else:
values[key] = value
sources[key] = source
return (values, sources)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve([]), ({}, {}))
check('fixture 2', solve([('default', {'a': 1}), ('user', {'a': 2})]), ({'a': 2}, {'a': 'user'}))
check('fixture 3', solve([('default', {'a': 1}), ('user', {'a': None})]), ({}, {}))
check('fixture 4', solve([('default', {'a': 1}), ('user', {})]), ({'a': 1}, {'a': 'default'}))
check('fixture 5', solve([('default', {'a': 1}), ('user', {'a': 1})]), ({'a': 1}, {'a': 'user'}))
check('fixture 6', solve([('default', {'a': 1}), ('user', {'a': False})]), ({'a': False}, {'a': 'user'}))
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 | [{'a': 2}, {'a': 'user'}] | [{'a': 2}, {'a': 'user'}] | Passed |
| fixture 3 | [{}, {'a': 'default'}] | [{}, {}] | Failed |
| fixture 4 | [{'a': 1}, {'a': 'default'}] | [{'a': 1}, {'a': 'default'}] | Passed |
| fixture 5 | [{'a': 1}, {'a': 'user'}] | [{'a': 1}, {'a': 'user'}] | Passed |
| fixture 6 | [{'a': False}, {'a': 'user'}] | [{'a': False}, {'a': 'user'}] | Passed |
SHA-256 / 2e5a9e484c91c4d22eef7bff360006d9d9ae188093e688459a37e6a50ea361ab
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(layers):
values = {}
sources = {}
for source, settings in layers:
for key, value in settings.items():
if value is None:
values.pop(key, None)
sources[key] = source
else:
values[key] = value
sources[key] = source
return (values, sources)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve([]), ({}, {}))
check('fixture 2', solve([('default', {'a': 1}), ('user', {'a': 2})]), ({'a': 2}, {'a': 'user'}))
check('fixture 3', solve([('default', {'a': 1}), ('user', {'a': None})]), ({}, {}))
check('fixture 4', solve([('default', {'a': 1}), ('user', {})]), ({'a': 1}, {'a': 'default'}))
check('fixture 5', solve([('default', {'a': 1}), ('user', {'a': 1})]), ({'a': 1}, {'a': 'user'}))
check('fixture 6', solve([('default', {'a': 1}), ('user', {'a': False})]), ({'a': False}, {'a': 'user'}))
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 | [{'a': 2}, {'a': 'user'}] | [{'a': 2}, {'a': 'user'}] | Passed |
| fixture 3 | [{}, {'a': 'user'}] | [{}, {}] | Failed |
| fixture 4 | [{'a': 1}, {'a': 'default'}] | [{'a': 1}, {'a': 'default'}] | Passed |
| fixture 5 | [{'a': 1}, {'a': 'user'}] | [{'a': 1}, {'a': 'user'}] | Passed |
| fixture 6 | [{'a': False}, {'a': 'user'}] | [{'a': False}, {'a': 'user'}] | Passed |
SHA-256 / 1549773e1279cf824a328bfd0ea09ca3b679d513157175569adaf0dc41f81b96
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 6 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.939034+00:00.
Case digest / 67fbdace4d507ab583a0ae5a3cbaa081828ba186cf230002453315ba0f41e093