FA-99826 / Tool call schema validation / Open access
All-of schema accepts when one constraint fails · case 01
All-of schema accepts when one constraint fails.
ROOT CAUSE
Only one constraint is applied.
THE FAILURE
Only one constraint is applied.
Unsuccessful approach: Using any-match accepts values that satisfy just one constraint.
Case contract
All-of is valid only when every predicate validates the value; empty constraint list passes.
Why this case matters
Tool argument validation prevents malformed structured payloads from entering a deterministic downstream operation.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(value, predicates):
return not predicates or predicates[0](value)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('all pass',solve(N,[lambda x:x>0,lambda x:x%2==N%2]),True)
check('first fails',solve(-N,[lambda x:x>0,lambda x:type(x)is int]),False)
check('later fails',solve(N,[lambda x:type(x)is int,lambda x:x<N]),False)
check('empty conjunction',solve(None,[]),True)
check('singleton pass',solve('x',[lambda x:x=='x']),True)
check('singleton fail',solve('y',[lambda x:x=='x']),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 |
|---|---|---|---|
| all pass | True | True | Passed |
| first fails | False | False | Passed |
| later fails | True | False | Failed |
| empty conjunction | True | True | Passed |
| singleton pass | True | True | Passed |
| singleton fail | False | False | Passed |
SHA-256 / f945aace2ca7408db325ca49324686434a483b7920f019148546684a88294d59
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(value, predicates):
return any(p(value) for p in predicates)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('all pass',solve(N,[lambda x:x>0,lambda x:x%2==N%2]),True)
check('first fails',solve(-N,[lambda x:x>0,lambda x:type(x)is int]),False)
check('later fails',solve(N,[lambda x:type(x)is int,lambda x:x<N]),False)
check('empty conjunction',solve(None,[]),True)
check('singleton pass',solve('x',[lambda x:x=='x']),True)
check('singleton fail',solve('y',[lambda x:x=='x']),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 |
|---|---|---|---|
| all pass | True | True | Passed |
| first fails | True | False | Failed |
| later fails | True | False | Failed |
| empty conjunction | False | True | Failed |
| singleton pass | True | True | Passed |
| singleton fail | False | False | Passed |
SHA-256 / aec2d5a5f237366b3597b11a0ee3ff5bc147b1187c517b5b69e6390f4e15cd5c
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
Self-contained toy JSON-like schema contract over in-memory Python values; no compatibility with a production schema standard or callable binding is claimed. 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-30T16:48:28.520250+00:00.
Case digest / ca67733c2b032912d9c28ce01c8a43348a59a56bb2e1832a88408a6133126545