FA-931 / Reliability / Open access
Admit a remote operation retry: An exhausted attempt budget permits one more request · case 01
The retry admission operation is admitted even though an exhausted attempt budget permits one more request.
ROOT CAUSE
The admission path omits the attempt budget invariant while validating the other operation preconditions.
THE FAILURE
The admission path omits the attempt budget invariant while validating the other operation preconditions.
Unsuccessful approach: Adding the attempt budget check repairs the reported defect, but replacing the adjacent remaining deadline check loses that independent invariant.
Case contract
Return a Boolean admission decision for admit a remote operation retry. The record r must satisfy all of: r['retryable_result'] in [408,429,500,502,503,504]; r['attempt_budget'][0] < r['attempt_budget'][1]; r['remaining_deadline'][0]+r['remaining_deadline'][1] <= r['remaining_deadline'][2]; r['idempotency_safe'][0] or bool(r['idempotency_safe'][1]); r['retry_after'][0] >= r['retry_after'][1]. Extra tracing fields are ignored; validation does not mutate the record.
Why this case matters
A deterministic local contract for reliability. Each negative fixture violates exactly one invariant. No transport timing, persistence, cryptographic verification, or full protocol implementation is claimed.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(r):
return (r['retryable_result'] in [408,429,500,502,503,504]) and (r['remaining_deadline'][0]+r['remaining_deadline'][1] <= r['remaining_deadline'][2]) and (r['idempotency_safe'][0] or bool(r['idempotency_safe'][1])) and (r['retry_after'][0] >= r['retry_after'][1])
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
r = {'retryable_result': 503, 'attempt_budget': [2, 3], 'remaining_deadline': [5, 3, 8], 'idempotency_safe': [False, 'op1'], 'retry_after': [10, 10]}
check('valid operation', solve(r), True)
check('A permanent rejection triggers another attempt', solve(dict(r, **{'retryable_result': 400})), False)
check('An exhausted attempt budget permits one more request', solve(dict(r, **{'attempt_budget': [3, 3]})), False)
check('A retry cannot finish within its remaining request deadline', solve(dict(r, **{'remaining_deadline': [5, 4, 8]})), False)
check('A non-idempotent write is retried without an identity key', solve(dict(r, **{'idempotency_safe': [False, '']})), False)
check('A retry ignores the server requested wait period', solve(dict(r, **{'retry_after': [9, 10]})), False)
check('unrelated tracing metadata', solve(dict(r, trace='run-'+str(N))), True)
check('repeat validation is pure', solve(r), True)
invalid = {'retryable_result': 400, 'attempt_budget': [3, 3], 'remaining_deadline': [5, 4, 8], 'idempotency_safe': [False, ''], 'retry_after': [9, 10]}
keys = list(invalid)
pair = {keys[N % len(keys)]: invalid[keys[N % len(keys)]], keys[(N+1) % len(keys)]: invalid[keys[(N+1) % len(keys)]]}
check('two independent violations in variant', solve(dict(r, **pair)), 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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| valid operation | True | True | Passed |
| A permanent rejection triggers another attempt | False | False | Passed |
| An exhausted attempt budget permits one more request | True | False | Failed |
| A retry cannot finish within its remaining request deadline | False | False | Passed |
| A non-idempotent write is retried without an identity key | False | False | Passed |
| A retry ignores the server requested wait period | False | False | Passed |
| unrelated tracing metadata | True | True | Passed |
| repeat validation is pure | True | True | Passed |
| two independent violations in variant | False | False | Passed |
SHA-256 / 6f161d58aec872f86707bd0208849c9a238003cbae66a4fbca4b2e42d59132fb
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(r):
return (r['retryable_result'] in [408,429,500,502,503,504]) and (r['attempt_budget'][0] < r['attempt_budget'][1]) and (r['idempotency_safe'][0] or bool(r['idempotency_safe'][1])) and (r['retry_after'][0] >= r['retry_after'][1])
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
r = {'retryable_result': 503, 'attempt_budget': [2, 3], 'remaining_deadline': [5, 3, 8], 'idempotency_safe': [False, 'op1'], 'retry_after': [10, 10]}
check('valid operation', solve(r), True)
check('A permanent rejection triggers another attempt', solve(dict(r, **{'retryable_result': 400})), False)
check('An exhausted attempt budget permits one more request', solve(dict(r, **{'attempt_budget': [3, 3]})), False)
check('A retry cannot finish within its remaining request deadline', solve(dict(r, **{'remaining_deadline': [5, 4, 8]})), False)
check('A non-idempotent write is retried without an identity key', solve(dict(r, **{'idempotency_safe': [False, '']})), False)
check('A retry ignores the server requested wait period', solve(dict(r, **{'retry_after': [9, 10]})), False)
check('unrelated tracing metadata', solve(dict(r, trace='run-'+str(N))), True)
check('repeat validation is pure', solve(r), True)
invalid = {'retryable_result': 400, 'attempt_budget': [3, 3], 'remaining_deadline': [5, 4, 8], 'idempotency_safe': [False, ''], 'retry_after': [9, 10]}
keys = list(invalid)
pair = {keys[N % len(keys)]: invalid[keys[N % len(keys)]], keys[(N+1) % len(keys)]: invalid[keys[(N+1) % len(keys)]]}
check('two independent violations in variant', solve(dict(r, **pair)), 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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| valid operation | True | True | Passed |
| A permanent rejection triggers another attempt | False | False | Passed |
| An exhausted attempt budget permits one more request | False | False | Passed |
| A retry cannot finish within its remaining request deadline | True | False | Failed |
| A non-idempotent write is retried without an identity key | False | False | Passed |
| A retry ignores the server requested wait period | False | False | Passed |
| unrelated tracing metadata | True | True | Passed |
| repeat validation is pure | True | True | Passed |
| two independent violations in variant | False | False | Passed |
SHA-256 / 95b989c95dddce6788b9b18fc05dadb9ef90f00108f906c4295505a6f32b84c0
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:36:57.233890+00:00.
Case digest / e40e3a07d398e1913c5935ef005990596989a5b86419d727b39ded9dd2936e07