FAILURE MAP
← Case archive

FA-99766 / Tool call schema validation / Open access

Inclusive minimum rejects equality · case 01

Inclusive minimum rejects equality.

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

ROOT CAUSE

The lower comparison accidentally makes the declared inclusive endpoint exclusive.

THE FAILURE

The lower comparison accidentally makes the declared inclusive endpoint exclusive.

Unsuccessful approach: Adding one to the inclusive minimum handles integer values but incorrectly rejects valid fractional values between the endpoint and endpoint plus one.

Case contract

A numeric value satisfies an inclusive minimum when value >= minimum.

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, minimum):
    return value > minimum
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('above endpoint',solve(N+1,N),True)
check('at endpoint',solve(N,N),True)
check('below endpoint',solve(N-1,N),False)
check('negative endpoint',solve(-N,-N),True)
check('zero endpoint',solve(0,0),True)
check('far below',solve(-N-4,N),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
above endpointTrueTruePassed
at endpointFalseTrueFailed
below endpointFalseFalsePassed
negative endpointFalseTrueFailed
zero endpointFalseTrueFailed
far belowFalseFalsePassed

SHA-256 / 013d88ebcaa16ded5a3c8216896f08dcb95433d30588036f3fd9fb1529b35157

2 / The unsuccessful fix

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

N = 1
observations = []
def solve(value, minimum):
    return value >= minimum+1
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('above endpoint',solve(N+1,N),True)
check('at endpoint',solve(N,N),True)
check('below endpoint',solve(N-1,N),False)
check('negative endpoint',solve(-N,-N),True)
check('zero endpoint',solve(0,0),True)
check('far below',solve(-N-4,N),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
above endpointTrueTruePassed
at endpointFalseTrueFailed
below endpointFalseFalsePassed
negative endpointFalseTrueFailed
zero endpointFalseTrueFailed
far belowFalseFalsePassed

SHA-256 / ef2992ed7123621bd2d41a87a76c873bd2a00a88f2f9dc95dedece43f8da93e7

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.064597+00:00.

Case digest / ab203ef0c0c44d47cda070bdc3c758156751075d7da51639debb38472bc0df04