FAILURE MAP
← Case archive

FA-5956 / Solid geometry / Open access

Pyramid volume · case 01

Prismatic rather than pyramidal volume is returned.

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

ROOT CAUSE

Prismatic rather than pyramidal volume is returned.

VERIFIED REPAIR

Apply the specified mathematical contract directly, preserving all terms and boundary cases: return base_area*h/3

Unsuccessful approach: A triangle area factor replaces the three-dimensional one-third factor.

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. Pyramid volume. Exact operational definition: base_area*h/3

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(base_area, h):
    return base_area*h
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (12, 3)', solve(*(12, 3)), 12)
check('fixture 2: (4, 6)', solve(*(4, 6)), 8)
check('fixture 3: (0, 5)', solve(*(0, 5)), 0)
check('fixture 4: (7, 0)', solve(*(7, 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: (12, 3)3612Failed
fixture 2: (4, 6)248Failed
fixture 3: (0, 5)00Passed
fixture 4: (7, 0)00Passed

SHA-256 / a7cebce1d7d7428f08c09cf8f29b9f2f80c3e9b12290e78f97dfa839548093e6

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(base_area, h):
    return base_area*h/2
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (12, 3)', solve(*(12, 3)), 12)
check('fixture 2: (4, 6)', solve(*(4, 6)), 8)
check('fixture 3: (0, 5)', solve(*(0, 5)), 0)
check('fixture 4: (7, 0)', solve(*(7, 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: (12, 3)18.012Failed
fixture 2: (4, 6)12.08Failed
fixture 3: (0, 5)0.00Passed
fixture 4: (7, 0)0.00Passed

SHA-256 / 0a3d337b60c114f44a9f5050dc3f59f8312fda9da8eb8f6cefc4e075b704893f

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(base_area, h):
    return base_area*h/3
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (12, 3)', solve(*(12, 3)), 12)
check('fixture 2: (4, 6)', solve(*(4, 6)), 8)
check('fixture 3: (0, 5)', solve(*(0, 5)), 0)
check('fixture 4: (7, 0)', solve(*(7, 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: (12, 3)12.012Passed
fixture 2: (4, 6)8.08Passed
fixture 3: (0, 5)0.00Passed
fixture 4: (7, 0)0.00Passed

SHA-256 / 9f08d5345413c7f0407c8daf844a7b68cf7b994b09eb2752f6891942e3ce52dd

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

Case digest / 288b1216dac67ad11ac755566460b35343e9048a52720926139b59d4c814ba0d