FAILURE MAP
← Case archive

FA-5936 / Solid geometry / Open access

Cuboid surface area · case 01

Volume replaces total face area.

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

ROOT CAUSE

Volume replaces total face area.

VERIFIED REPAIR

Apply the specified mathematical contract directly, preserving all terms and boundary cases: return 2*(a*b+b*c+c*a)

Unsuccessful approach: Edge lengths replace pairwise face products.

Case contract

Nonnegative integer dimensions; exact products and ordinary Python real division. Quantities named divided by pi or pi-squared deliberately omit that factor from the returned result. Cuboid surface area. Exact operational definition: 2*(a*b+b*c+c*a)

Why this case matters

Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Solid 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(a, b, c):
    return a*b*c
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (2, 3, 4)', solve(*(2, 3, 4)), 52)
check('fixture 2: (1, 1, 1)', solve(*(1, 1, 1)), 6)
check('fixture 3: (0, 2, 3)', solve(*(0, 2, 3)), 12)
check('fixture 4: (3, 3, 3)', solve(*(3, 3, 3)), 54)
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, 4)2452Failed
fixture 2: (1, 1, 1)16Failed
fixture 3: (0, 2, 3)012Failed
fixture 4: (3, 3, 3)2754Failed

SHA-256 / c5eac6da8c602dddc44d374b0ed858c41db330e7672e616b93f45d428f23f4f5

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(a, b, c):
    return 2*(a+b+c)
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (2, 3, 4)', solve(*(2, 3, 4)), 52)
check('fixture 2: (1, 1, 1)', solve(*(1, 1, 1)), 6)
check('fixture 3: (0, 2, 3)', solve(*(0, 2, 3)), 12)
check('fixture 4: (3, 3, 3)', solve(*(3, 3, 3)), 54)
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, 4)1852Failed
fixture 2: (1, 1, 1)66Passed
fixture 3: (0, 2, 3)1012Failed
fixture 4: (3, 3, 3)1854Failed

SHA-256 / c3c6117dc149b87cddee1f60834a75dc5392dc779faa52ee8d844302fd03d037

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(a, b, c):
    return 2*(a*b+b*c+c*a)
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (2, 3, 4)', solve(*(2, 3, 4)), 52)
check('fixture 2: (1, 1, 1)', solve(*(1, 1, 1)), 6)
check('fixture 3: (0, 2, 3)', solve(*(0, 2, 3)), 12)
check('fixture 4: (3, 3, 3)', solve(*(3, 3, 3)), 54)
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, 4)5252Passed
fixture 2: (1, 1, 1)66Passed
fixture 3: (0, 2, 3)1212Passed
fixture 4: (3, 3, 3)5454Passed

SHA-256 / cd4553171c09d214d29ef09ce595d6a5c936f60ec3fdb1bf45a645f2c4397fda

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

Case digest / 7623f05a2665af1276f2395df409631bbc272c6a801b7f264a4987e90c0afe42