FA-10126 / Deployment models / Open access
Deployment drift report: Resource limit changes are ignored · case 01
Resource limit changes are ignored.
ROOT CAUSE
The implementation substitutes False for desired['limits'] != actual['limits'], so resource limit changes are ignored.
THE FAILURE
The implementation substitutes False for desired['limits'] != actual['limits'], so resource limit changes are ignored.
Unsuccessful approach: The attempted repair substitutes set(desired['limits']) != set(actual['limits']). Fixture 7 still yields [] instead of ['limits'].
Case contract
Compare desired and actual image, environment mapping, replica count, ordered command and resource limits. Return changed fields in fixed schema order.
Why this case matters
An offline model of deployment drift report, 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(desired, actual):
result = []
if desired['image'] != actual['image']: result.append('image')
if desired['env'] != actual['env']: result.append('env')
if desired['replicas'] != actual['replicas']: result.append('replicas')
if desired['command'] != actual['command']: result.append('command')
if False: result.append('limits')
return result
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), [])
check('fixture 2', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v2', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['image'])
check('fixture 3', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '2'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['env'])
check('fixture 4', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 3, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['replicas'])
check('fixture 5', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 1, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['replicas'])
check('fixture 6', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['b', 'a'], 'limits': {'memory': 1}}), ['command'])
check('fixture 7', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 2}}), ['limits'])
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 | ['image'] | ['image'] | Passed |
| fixture 3 | ['env'] | ['env'] | Passed |
| fixture 4 | ['replicas'] | ['replicas'] | Passed |
| fixture 5 | ['replicas'] | ['replicas'] | Passed |
| fixture 6 | ['command'] | ['command'] | Passed |
| fixture 7 | [] | ['limits'] | Failed |
SHA-256 / 33181b981bf3a4d43b96adad8b729876bff2236a56704e60477775bf96741d6d
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(desired, actual):
result = []
if desired['image'] != actual['image']: result.append('image')
if desired['env'] != actual['env']: result.append('env')
if desired['replicas'] != actual['replicas']: result.append('replicas')
if desired['command'] != actual['command']: result.append('command')
if set(desired['limits']) != set(actual['limits']): result.append('limits')
return result
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), [])
check('fixture 2', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v2', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['image'])
check('fixture 3', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '2'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['env'])
check('fixture 4', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 3, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['replicas'])
check('fixture 5', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 1, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['replicas'])
check('fixture 6', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['b', 'a'], 'limits': {'memory': 1}}), ['command'])
check('fixture 7', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 2}}), ['limits'])
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 | ['image'] | ['image'] | Passed |
| fixture 3 | ['env'] | ['env'] | Passed |
| fixture 4 | ['replicas'] | ['replicas'] | Passed |
| fixture 5 | ['replicas'] | ['replicas'] | Passed |
| fixture 6 | ['command'] | ['command'] | Passed |
| fixture 7 | [] | ['limits'] | Failed |
SHA-256 / efd12fd41450a2493f111a2503e54d86168ccd3ea4140ebc470c54827fe514b7
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:36.034045+00:00.
Case digest / 357d4c46752ec80b09a72fa8612c956c69caa2cf9b57d3b6d945c3b053ddba8a