FAILURE MAP
← Case archive

FA-5846 / Planar geometry / Open access

Clockwise quarter turn · case 01

The rotation sign implements a counterclockwise turn.

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

ROOT CAUSE

The rotation sign implements a counterclockwise turn.

VERIFIED REPAIR

Apply the specified mathematical contract directly, preserving all terms and boundary cases: return (point[1],-point[0])

Unsuccessful approach: Swapping axes reflects the point without the required sign change.

Case contract

Integer coordinates and lengths, with exact arithmetic except for indicated division results. Lengths are nonnegative. Rectangles are (xmin,ymin,xmax,ymax) with ordered bounds; coordinate vectors have matching dimensions. Clockwise quarter turn. Exact operational definition: (point[1],-point[0])

Why this case matters

Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Planar geometry results depend on the stated convention.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
import calendar
import statistics
import itertools
from fractions import Fraction
from datetime import date, datetime, timedelta, timezone
from decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR

N = 1
observations = []
def solve(point):
    return (-point[1],point[0])
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: ((2, 3),)', solve(*((2, 3),)), (3, -2))
check('fixture 2: ((0, 1),)', solve(*((0, 1),)), (1, 0))
check('fixture 3: ((-2, 0),)', solve(*((-2, 0),)), (0, 2))
check('fixture 4: ((0, 0),)', solve(*((0, 0),)), (0, 0))
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 1: ((2, 3),)[-3, 2][3, -2]Failed
fixture 2: ((0, 1),)[-1, 0][1, 0]Failed
fixture 3: ((-2, 0),)[0, -2][0, 2]Failed
fixture 4: ((0, 0),)[0, 0][0, 0]Passed

SHA-256 / 0265c2ee34465fb43d7e9acafd4e3d61e1338aa9fa580b51068c2eeeeffaf0ab

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
import calendar
import statistics
import itertools
from fractions import Fraction
from datetime import date, datetime, timedelta, timezone
from decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR

N = 1
observations = []
def solve(point):
    return (point[1],point[0])
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: ((2, 3),)', solve(*((2, 3),)), (3, -2))
check('fixture 2: ((0, 1),)', solve(*((0, 1),)), (1, 0))
check('fixture 3: ((-2, 0),)', solve(*((-2, 0),)), (0, 2))
check('fixture 4: ((0, 0),)', solve(*((0, 0),)), (0, 0))
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 1: ((2, 3),)[3, 2][3, -2]Failed
fixture 2: ((0, 1),)[1, 0][1, 0]Passed
fixture 3: ((-2, 0),)[0, -2][0, 2]Failed
fixture 4: ((0, 0),)[0, 0][0, 0]Passed

SHA-256 / f76b322ad582a7e73bf36a3ec42d11f94d30469f1b1ce69ce91c468878e19109

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json
import math
import calendar
import statistics
import itertools
from fractions import Fraction
from datetime import date, datetime, timedelta, timezone
from decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR

N = 1
observations = []
def solve(point):
    return (point[1],-point[0])
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: ((2, 3),)', solve(*((2, 3),)), (3, -2))
check('fixture 2: ((0, 1),)', solve(*((0, 1),)), (1, 0))
check('fixture 3: ((-2, 0),)', solve(*((-2, 0),)), (0, 2))
check('fixture 4: ((0, 0),)', solve(*((0, 0),)), (0, 0))
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 1: ((2, 3),)[3, -2][3, -2]Passed
fixture 2: ((0, 1),)[1, 0][1, 0]Passed
fixture 3: ((-2, 0),)[0, 2][0, 2]Passed
fixture 4: ((0, 0),)[0, 0][0, 0]Passed

SHA-256 / c0d9864f6186439f3ef1c5736a02802762c7c2388923491bbaf5ffd1598ff64f

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

Case digest / 4184ea027986327ea0995494f3c68670291bfc3036c5e4ab920b4551524292ba