FAILURE MAP
← Case archive

FA-10096 / Deployment models / Open access

Deployment promotion gate: Mandatory deployment approval is ignored · case 01

Mandatory deployment approval is ignored.

Verified by executionVariant 1 · 9 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The implementation substitutes True for (not state['approval_required'] or state['approved']), so mandatory deployment approval is ignored.

THE FAILURE

The implementation substitutes True for (not state['approval_required'] or state['approved']), so mandatory deployment approval is ignored.

Unsuccessful approach: The attempted repair substitutes state['approved']. Fixture 1 still yields False instead of True.

Case contract

Promote only if desired revision matches tested revision, all required checks pass, minimum healthy replicas is reached, approval is present when required, and no freeze is active.

Why this case matters

An offline model of deployment promotion gate, 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(state):
    return state['revision'] == state['tested'] and all(state['checks']) and state['healthy'] >= state['minimum'] and True and not state['frozen']
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 2, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), True)
check('fixture 2', solve({'revision': 'r2', 'tested': 'r1', 'checks': [True], 'healthy': 2, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), False)
check('fixture 3', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True, False], 'healthy': 2, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), False)
check('fixture 4', solve({'revision': 'r1', 'tested': 'r1', 'checks': [], 'healthy': 2, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), True)
check('fixture 5', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 1, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), False)
check('fixture 6', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 3, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), True)
check('fixture 7', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 2, 'minimum': 2, 'approval_required': True, 'approved': False, 'frozen': False}), False)
check('fixture 8', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 2, 'minimum': 2, 'approval_required': True, 'approved': True, 'frozen': False}), True)
check('fixture 9', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 2, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': True}), False)
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 fixtureActualExpectedOutcome
fixture 1TrueTruePassed
fixture 2FalseFalsePassed
fixture 3FalseFalsePassed
fixture 4TrueTruePassed
fixture 5FalseFalsePassed
fixture 6TrueTruePassed
fixture 7TrueFalseFailed
fixture 8TrueTruePassed
fixture 9FalseFalsePassed

SHA-256 / a015f3c0486248933a7626c90c51b73ef430e54b4bd83f6ebbe12fcde43526a5

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(state):
    return state['revision'] == state['tested'] and all(state['checks']) and state['healthy'] >= state['minimum'] and state['approved'] and not state['frozen']
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 2, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), True)
check('fixture 2', solve({'revision': 'r2', 'tested': 'r1', 'checks': [True], 'healthy': 2, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), False)
check('fixture 3', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True, False], 'healthy': 2, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), False)
check('fixture 4', solve({'revision': 'r1', 'tested': 'r1', 'checks': [], 'healthy': 2, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), True)
check('fixture 5', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 1, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), False)
check('fixture 6', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 3, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': False}), True)
check('fixture 7', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 2, 'minimum': 2, 'approval_required': True, 'approved': False, 'frozen': False}), False)
check('fixture 8', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 2, 'minimum': 2, 'approval_required': True, 'approved': True, 'frozen': False}), True)
check('fixture 9', solve({'revision': 'r1', 'tested': 'r1', 'checks': [True], 'healthy': 2, 'minimum': 2, 'approval_required': False, 'approved': False, 'frozen': True}), False)
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 fixtureActualExpectedOutcome
fixture 1FalseTrueFailed
fixture 2FalseFalsePassed
fixture 3FalseFalsePassed
fixture 4FalseTrueFailed
fixture 5FalseFalsePassed
fixture 6FalseTrueFailed
fixture 7FalseFalsePassed
fixture 8TrueTruePassed
fixture 9FalseFalsePassed

SHA-256 / 4516e10e933722b86479945a5311daae4d75d5bc7a9a9da7c2056949c56ebff9

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 9 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:35.872090+00:00.

Case digest / bcadc1cab60df0e1bb93ced1ede6c62a75958f0e50712618c89c2d78edb54a6a