FA-99831 / Tool call schema validation / Open access
Dependent required condition is triggered by absent key · case 01
Dependent required condition is triggered by absent key.
ROOT CAUSE
The dependency rule is applied in the reverse direction.
THE FAILURE
The dependency rule is applied in the reverse direction.
Unsuccessful approach: Requiring dependencies unconditionally rejects valid objects without the trigger.
Case contract
If trigger is present, every dependency key must also be present; without trigger the object is valid.
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(obj, trigger, dependencies):
return all(k in obj for k in dependencies) if trigger not in obj else True
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('trigger with dependencies',solve({'a':1,'b':0},'a',['b']),True)
check('trigger missing dependency',solve({'a':1},'a',['b']),False)
check('no trigger',solve({'b':1},'a',['b']),True)
check('no trigger no deps',solve({},'a',['b']),True)
check('trigger empty deps',solve({'a':None},'a',[]),True)
check('one missing among many',solve({'a':1,'b':2},'a',['b','c']),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 |
|---|---|---|---|
| trigger with dependencies | True | True | Passed |
| trigger missing dependency | True | False | Failed |
| no trigger | True | True | Passed |
| no trigger no deps | False | True | Failed |
| trigger empty deps | True | True | Passed |
| one missing among many | True | False | Failed |
SHA-256 / 6788fef5185a40c8bc3e9d759f04bfe33cb0378b04014e15aec10dec55e1bd94
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(obj, trigger, dependencies):
return all(k in obj for k in dependencies)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('trigger with dependencies',solve({'a':1,'b':0},'a',['b']),True)
check('trigger missing dependency',solve({'a':1},'a',['b']),False)
check('no trigger',solve({'b':1},'a',['b']),True)
check('no trigger no deps',solve({},'a',['b']),True)
check('trigger empty deps',solve({'a':None},'a',[]),True)
check('one missing among many',solve({'a':1,'b':2},'a',['b','c']),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 |
|---|---|---|---|
| trigger with dependencies | True | True | Passed |
| trigger missing dependency | False | False | Passed |
| no trigger | True | True | Passed |
| no trigger no deps | False | True | Failed |
| trigger empty deps | True | True | Passed |
| one missing among many | False | False | Passed |
SHA-256 / eabb185ebd2d521f5e22104c552183205972e68cc77ec8f36b1648a10750e3ec
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.523289+00:00.
Case digest / f84caab9884e596043cae834375917790170acb9e102a2fa0020bf1c165a08cf