FA-87686 / Collision detection broadphase / Open access
Swept bounds use velocity instead of per-step displacement · case 01
Sweeps are dt^-1 times too long, flooding narrowphase with candidates.
ROOT CAUSE
dx, dy are the raw velocity.
THE FAILURE
dx, dy are the raw velocity.
Unsuccessful approach: Scaling only the x component leaves vertical sweeps too long.
Case contract
solve(box, vel, dt, margin, others): CCD broadphase bounds. Swept box = union of box at t and t+dt expanded by margin on all sides. fast = displacement length > half the smaller box extent. Return [swept rounded to 6, fast, sorted ids of others ([id,minx,miny,maxx,maxy]) overlapping the swept box with closed intervals].
Why this case matters
Broadphase stages decide which object pairs ever reach narrowphase; a wrong boundary, ordering or bookkeeping rule silently drops real contacts or floods the solver with false candidates.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(box, vel, dt, margin, others):
dx, dy = vel[0], vel[1]
sw = [min(box[0], box[0] + dx) - margin, min(box[1], box[1] + dy) - margin,
max(box[2], box[2] + dx) + margin, max(box[3], box[3] + dy) + margin]
ext = min(box[2] - box[0], box[3] - box[1])
fast = math.hypot(dx, dy) > 0.5 * ext
hits = sorted(o[0] for o in others if o[1] <= sw[2] and sw[0] <= o[3] and o[2] <= sw[3] and sw[1] <= o[4])
return [[round(c, 6) for c in sw], fast, hits]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[[[[-4, 1, -3, 4], [2, 3], 0.0625, 0.5, [[8, 3, -8, 4, -6], [22, -1, 5, 1, 7]]], [[-4.5, 0.5, -2.375, 4.6875], False, []]], [[[3, 1, 4, 4], [30, -20], 0.0625, 0.5, [[7, -3, 6, -1, 6], [1, -7, 8, -5, 8], [18, 7, -4, 7, -4], [11, -4, 5, -3, 6]]], [[2.5, -0.75, 6.375, 4.5], True, []]], [[[-3, 2, -2, 5], [-2, 3], 0.0625, 0.5, [[21, -4, -7, -4, -5], [3, -1, 7, 0, 7], [8, 2, -3, 2, -1], [5, 7, 0, 9, 1], [14, -4, -4, -4, -2]]], [[-3.625, 1.5, -1.5, 5.6875], False, []]], [[[-1, -3, 0, -2], [0, 0], 0.25, 0.25, [[3, 3, 5, 3, 7], [8, 5, -7, 6, -6], [19, -3, -4, -2, -3]]], [[-1.25, -3.25, 0.25, -1.75], False, []]], [[[-2, -1, -1.5, 0], [-2, -20], 0.25, 0.0, [[1, 8, -7, 9, -6], [16, -5, -2, -3, 0], [3, 3, 8, 5, 9]]], [[-2.5, -6.0, -1.5, 0.0], True, []]], [[[3, 1, 5, 4], [0, 16], 0.125, 0.5, [[29, -7, 2, -5, 3], [22, 2, -4, 3, -4], [7, 5, 2, 7, 3], [19, -3, -6, -1, -6]]], [[2.5, 0.5, 5.5, 6.5], True, [7]]], [[[-1, 3, 1, 4], [-12, -3], 0.125, 0.0, [[19, 0, -7, 2, -7], [28, -5, 0, -5, 1], [3, -3, 8, -3, 8], [15, -1, 3, 0, 5], [27, 6, 3, 7, 3]]], [[-2.5, 2.625, 1.0, 4.0], True, [15]]], [[[-3, 3, -1, 3.5], [0, -3], 0.25, 0.25, [[9, -4, -8, -4, -6], [26, 2, 3, 3, 3], [4, 4, 7, 6, 7], [13, -3, 4, -2, 6], [19, 3, -6, 4, -4]]], [[-3.25, 2.0, -0.75, 3.75], True, []]]], [[[[0, 2, 2, 3], [0, 0], 0.25, 0.0, [[20, -4, -7, -3, -5], [18, -6, 1, -4, 1], [22, 7, 2, 9, 2]]], [[0.0, 2.0, 2.0, 3.0], False, []]], [[[-1, -2, 1, -1.5], [0, 0], 0.25, 0.5, [[19, -5, 0, -5, 1]]], [[-1.5, -2.5, 1.5, -1.0], False, []]], [[[2, -1, 4, 0], [0, 16], 0.25, 0.5, [[12, -8, -4, -8, -4], [19, 7, 2, 7, 2], [16, -2, 2, -2, 4]]], [[1.5, -1.5, 4.5, 4.5], True, []]], [[[4, 3, 4.5, 6], [0, 0], 0.25, 0.25, [[21, -2, 7, 0, 7]]], [[3.75, 2.75, 4.75, 6.25], False, []]], [[[-3, 1, -2.5, 1.5], [2, -3], 0.25, 0.5, [[19, 6, 1, 6, 3], [13, 1, 6, 3, 6], [11, -4, 6, -4, 8], [14, -1, -6, 0, -4]]], [[-3.5, -0.25, -1.5, 2.0], True, []]], [[[1, -3, 3, 0], [8, -3], 0.0625, 0.0, [[27, -7, 7, -7, 8], [5, -3, 0, -2, 2], [21, 2, 2, 2, 3]]], [[1.0, -3.1875, 3.5, 0.0], False, []]], [[[2, 1, 4, 2], [8, -20], 0.125, 0.25, [[11, -1, -5, 0, -5], [17, -8, 1, -8, 2], [20, -5, 4, -5, 6], [27, 2, 3, 4, 5], [2, 6, 8, 6, 8]]], [[1.75, -1.75, 5.25, 2.25], True, []]], [[[3, 4, 3.5, 4.5], [-2, -20], 0.125, 0.5, [[14, 6, 2, 6, 3]]], [[2.25, 1.0, 4.0, 5.0], True, []]]], [[[[-4, 4, -3, 7], [-12, -3], 0.0625, 0.5, [[22, -5, -6, -5, -4]]], [[-5.25, 3.3125, -2.5, 7.5], True, []]], [[[-4, 2, -3.5, 5], [-12, -20], 0.25, 0.25, [[23, -8, 7, -8, 8], [26, 2, -6, 4, -5]]], [[-7.25, -3.25, -3.25, 5.25], True, []]], [[[2, -1, 4, -0.5], [30, -3], 0.125, 0.0, [[29, -4, 6, -2, 7], [26, 1, -2, 1, -2]]], [[2.0, -1.375, 7.75, -0.5], True, []]], [[[2, -1, 2.5, -0.5], [2, -20], 0.0625, 0.0, [[11, -2, 0, -2, 2]]], [[2.0, -2.25, 2.625, -0.5], True, []]], [[[0, -4, 2, -3.5], [0, 0], 0.0625, 0.5, [[25, -1, 7, 0, 8], [19, 0, -5, 0, -4], [1, -3, -8, -1, -8], [10, 2, 0, 3, 0], [15, -3, -1, -2, 0]]], [[-0.5, -4.5, 2.5, -3.0], False, [19]]], [[[-1, 0, -0.5, 3], [0, 0], 0.0625, 0.5, [[12, 1, 5, 1, 5]]], [[-1.5, -0.5, 0.0, 3.5], False, []]], [[[-3, -4, -2, -3], [8, 0], 0.0625, 0.25, [[8, 2, -1, 3, 0], [16, -1, 8, -1, 10]]], [[-3.25, -4.25, -1.25, -2.75], False, []]], [[[4, -4, 6, -3], [0, 0], 0.25, 0.0, [[20, 5, 4, 6, 5], [23, 8, 5, 8, 5], [17, -4, -8, -2, -7], [25, -3, -5, -1, -5]]], [[4.0, -4.0, 6.0, -3.0], False, []]]], [[[[3, 0, 3.5, 3], [0, 0], 0.25, 0.0, [[4, 1, -4, 3, -3], [6, -7, -1, -5, 0]]], [[3.0, 0.0, 3.5, 3.0], False, []]], [[[4, -1, 5, 0], [0, 3], 0.125, 0.5, [[11, 7, -5, 7, -5], [17, -1, -1, 0, 0], [8, -5, 0, -5, 0]]], [[3.5, -1.5, 5.5, 0.875], False, []]], [[[-3, -4, -1, -1], [-12, -20], 0.0625, 0.25, [[11, 5, -8, 6, -7]]], [[-4.0, -5.5, -0.75, -0.75], True, []]], [[[-2, -4, -1.5, -3.5], [30, -3], 0.125, 0.25, [[9, -5, -3, -4, -3], [27, -4, -1, -4, -1], [18, 5, -7, 5, -6]]], [[-2.25, -4.625, 2.5, -3.25], True, []]], [[[1, -3, 3, 0], [0, 3], 0.25, 0.25, [[25, 7, 0, 8, 1], [24, -1, 1, -1, 1], [22, 1, -2, 3, 0]]], [[0.75, -3.25, 3.25, 1.0], False, [22]]], [[[2, -1, 4, 2], [0, 0], 0.125, 0.0, [[8, 5, -4, 7, -2], [14, -3, 4, -3, 6], [28, -6, 5, -4, 6], [16, 3, 4, 3, 4]]], [[2.0, -1.0, 4.0, 2.0], False, []]], [[[-1, -4, 1, -3.5], [8, 3], 0.25, 0.0, [[2, -1, -3, 0, -2], [7, 7, -8, 9, -7]]], [[-1.0, -4.0, 3.0, -2.75], True, [2]]], [[[1, 1, 3, 1.5], [-2, 3], 0.125, 0.25, [[13, 6, -7, 6, -7], [6, 0, 7, 0, 7], [4, -7, -6, -5, -6], [11, -3, -6, -3, -4], [16, -6, 7, -4, 8]]], [[0.5, 0.75, 3.25, 2.125], True, []]]], [[[[-1, 1, -0.5, 2], [0, 0], 0.0625, 0.5, [[27, -3, -8, -2, -8]]], [[-1.5, 0.5, 0.0, 2.5], False, []]], [[[-3, 1, -2.5, 1.5], [0, 3], 0.125, 0.0, [[16, 6, -5, 8, -5]]], [[-3.0, 1.0, -2.5, 1.875], True, []]], [[[-1, -4, 0, -3], [0, -20], 0.25, 0.25, [[18, -7, 3, -7, 3]]], [[-1.25, -9.25, 0.25, -2.75], True, []]], [[[-1, -3, 1, 0], [30, -20], 0.0625, 0.5, [[15, 3, -3, 5, -3], [26, 1, 1, 3, 3], [23, 8, 6, 8, 8]]], [[-1.5, -4.75, 3.375, 0.5], True, [15]]], [[[0, -4, 2, -3], [0, -3], 0.0625, 0.5, [[6, 0, 8, 1, 9], [20, 0, -8, 2, -7], [25, -7, -4, -5, -4], [27, 5, 4, 7, 4], [14, 3, 0, 5, 0]]], [[-0.5, -4.6875, 2.5, -2.5], False, []]], [[[4, 0, 4.5, 3], [0, 0], 0.125, 0.25, [[8, 6, -4, 6, -3], [26, 8, -7, 10, -6]]], [[3.75, -0.25, 4.75, 3.25], False, []]], [[[-1, 1, 1, 2], [0, 0], 0.125, 0.0, [[19, 0, 8, 2, 10], [11, -1, 4, -1, 5], [29, 2, -1, 2, -1]]], [[-1.0, 1.0, 1.0, 2.0], False, []]], [[[3, -3, 3.5, -2], [0, 0], 0.25, 0.0, [[10, 2, -1, 3, 1], [29, -7, -2, -5, -2], [17, -7, -3, -6, -1], [28, -6, -8, -4, -7]]], [[3.0, -3.0, 3.5, -2.0], False, []]]]]
for i, (args, expected) in enumerate(fixtures[N-1]):
check("case %d" % i, solve(*args), expected)
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 |
|---|---|---|---|
| case 0 | [[-4.5, 0.5, -0.5, 7.5], True, [22]] | [[-4.5, 0.5, -2.375, 4.6875], False, []] | Failed |
| case 1 | [[2.5, -19.5, 34.5, 4.5], True, [18]] | [[2.5, -0.75, 6.375, 4.5], True, []] | Failed |
| case 2 | [[-5.5, 1.5, -1.5, 8.5], True, []] | [[-3.625, 1.5, -1.5, 5.6875], False, []] | Failed |
| case 3 | [[-1.25, -3.25, 0.25, -1.75], False, []] | [[-1.25, -3.25, 0.25, -1.75], False, []] | Passed |
| case 4 | [[-4.0, -21.0, -1.5, 0.0], True, [16]] | [[-2.5, -6.0, -1.5, 0.0], True, []] | Failed |
| case 5 | [[2.5, 0.5, 5.5, 20.5], True, [7]] | [[2.5, 0.5, 5.5, 6.5], True, [7]] | Failed |
| case 6 | [[-13.0, 0.0, 1.0, 4.0], True, [15, 28]] | [[-2.5, 2.625, 1.0, 4.0], True, [15]] | Failed |
| case 7 | [[-3.25, -0.25, -0.75, 3.75], True, []] | [[-3.25, 2.0, -0.75, 3.75], True, []] | Failed |
SHA-256 / 27f341a86a923ef11fc3770701f57a3dab66bc8b430e366fea1219eefe0ed77a
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(box, vel, dt, margin, others):
dx, dy = vel[0] * dt, vel[1]
sw = [min(box[0], box[0] + dx) - margin, min(box[1], box[1] + dy) - margin,
max(box[2], box[2] + dx) + margin, max(box[3], box[3] + dy) + margin]
ext = min(box[2] - box[0], box[3] - box[1])
fast = math.hypot(dx, dy) > 0.5 * ext
hits = sorted(o[0] for o in others if o[1] <= sw[2] and sw[0] <= o[3] and o[2] <= sw[3] and sw[1] <= o[4])
return [[round(c, 6) for c in sw], fast, hits]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[[[[-4, 1, -3, 4], [2, 3], 0.0625, 0.5, [[8, 3, -8, 4, -6], [22, -1, 5, 1, 7]]], [[-4.5, 0.5, -2.375, 4.6875], False, []]], [[[3, 1, 4, 4], [30, -20], 0.0625, 0.5, [[7, -3, 6, -1, 6], [1, -7, 8, -5, 8], [18, 7, -4, 7, -4], [11, -4, 5, -3, 6]]], [[2.5, -0.75, 6.375, 4.5], True, []]], [[[-3, 2, -2, 5], [-2, 3], 0.0625, 0.5, [[21, -4, -7, -4, -5], [3, -1, 7, 0, 7], [8, 2, -3, 2, -1], [5, 7, 0, 9, 1], [14, -4, -4, -4, -2]]], [[-3.625, 1.5, -1.5, 5.6875], False, []]], [[[-1, -3, 0, -2], [0, 0], 0.25, 0.25, [[3, 3, 5, 3, 7], [8, 5, -7, 6, -6], [19, -3, -4, -2, -3]]], [[-1.25, -3.25, 0.25, -1.75], False, []]], [[[-2, -1, -1.5, 0], [-2, -20], 0.25, 0.0, [[1, 8, -7, 9, -6], [16, -5, -2, -3, 0], [3, 3, 8, 5, 9]]], [[-2.5, -6.0, -1.5, 0.0], True, []]], [[[3, 1, 5, 4], [0, 16], 0.125, 0.5, [[29, -7, 2, -5, 3], [22, 2, -4, 3, -4], [7, 5, 2, 7, 3], [19, -3, -6, -1, -6]]], [[2.5, 0.5, 5.5, 6.5], True, [7]]], [[[-1, 3, 1, 4], [-12, -3], 0.125, 0.0, [[19, 0, -7, 2, -7], [28, -5, 0, -5, 1], [3, -3, 8, -3, 8], [15, -1, 3, 0, 5], [27, 6, 3, 7, 3]]], [[-2.5, 2.625, 1.0, 4.0], True, [15]]], [[[-3, 3, -1, 3.5], [0, -3], 0.25, 0.25, [[9, -4, -8, -4, -6], [26, 2, 3, 3, 3], [4, 4, 7, 6, 7], [13, -3, 4, -2, 6], [19, 3, -6, 4, -4]]], [[-3.25, 2.0, -0.75, 3.75], True, []]]], [[[[0, 2, 2, 3], [0, 0], 0.25, 0.0, [[20, -4, -7, -3, -5], [18, -6, 1, -4, 1], [22, 7, 2, 9, 2]]], [[0.0, 2.0, 2.0, 3.0], False, []]], [[[-1, -2, 1, -1.5], [0, 0], 0.25, 0.5, [[19, -5, 0, -5, 1]]], [[-1.5, -2.5, 1.5, -1.0], False, []]], [[[2, -1, 4, 0], [0, 16], 0.25, 0.5, [[12, -8, -4, -8, -4], [19, 7, 2, 7, 2], [16, -2, 2, -2, 4]]], [[1.5, -1.5, 4.5, 4.5], True, []]], [[[4, 3, 4.5, 6], [0, 0], 0.25, 0.25, [[21, -2, 7, 0, 7]]], [[3.75, 2.75, 4.75, 6.25], False, []]], [[[-3, 1, -2.5, 1.5], [2, -3], 0.25, 0.5, [[19, 6, 1, 6, 3], [13, 1, 6, 3, 6], [11, -4, 6, -4, 8], [14, -1, -6, 0, -4]]], [[-3.5, -0.25, -1.5, 2.0], True, []]], [[[1, -3, 3, 0], [8, -3], 0.0625, 0.0, [[27, -7, 7, -7, 8], [5, -3, 0, -2, 2], [21, 2, 2, 2, 3]]], [[1.0, -3.1875, 3.5, 0.0], False, []]], [[[2, 1, 4, 2], [8, -20], 0.125, 0.25, [[11, -1, -5, 0, -5], [17, -8, 1, -8, 2], [20, -5, 4, -5, 6], [27, 2, 3, 4, 5], [2, 6, 8, 6, 8]]], [[1.75, -1.75, 5.25, 2.25], True, []]], [[[3, 4, 3.5, 4.5], [-2, -20], 0.125, 0.5, [[14, 6, 2, 6, 3]]], [[2.25, 1.0, 4.0, 5.0], True, []]]], [[[[-4, 4, -3, 7], [-12, -3], 0.0625, 0.5, [[22, -5, -6, -5, -4]]], [[-5.25, 3.3125, -2.5, 7.5], True, []]], [[[-4, 2, -3.5, 5], [-12, -20], 0.25, 0.25, [[23, -8, 7, -8, 8], [26, 2, -6, 4, -5]]], [[-7.25, -3.25, -3.25, 5.25], True, []]], [[[2, -1, 4, -0.5], [30, -3], 0.125, 0.0, [[29, -4, 6, -2, 7], [26, 1, -2, 1, -2]]], [[2.0, -1.375, 7.75, -0.5], True, []]], [[[2, -1, 2.5, -0.5], [2, -20], 0.0625, 0.0, [[11, -2, 0, -2, 2]]], [[2.0, -2.25, 2.625, -0.5], True, []]], [[[0, -4, 2, -3.5], [0, 0], 0.0625, 0.5, [[25, -1, 7, 0, 8], [19, 0, -5, 0, -4], [1, -3, -8, -1, -8], [10, 2, 0, 3, 0], [15, -3, -1, -2, 0]]], [[-0.5, -4.5, 2.5, -3.0], False, [19]]], [[[-1, 0, -0.5, 3], [0, 0], 0.0625, 0.5, [[12, 1, 5, 1, 5]]], [[-1.5, -0.5, 0.0, 3.5], False, []]], [[[-3, -4, -2, -3], [8, 0], 0.0625, 0.25, [[8, 2, -1, 3, 0], [16, -1, 8, -1, 10]]], [[-3.25, -4.25, -1.25, -2.75], False, []]], [[[4, -4, 6, -3], [0, 0], 0.25, 0.0, [[20, 5, 4, 6, 5], [23, 8, 5, 8, 5], [17, -4, -8, -2, -7], [25, -3, -5, -1, -5]]], [[4.0, -4.0, 6.0, -3.0], False, []]]], [[[[3, 0, 3.5, 3], [0, 0], 0.25, 0.0, [[4, 1, -4, 3, -3], [6, -7, -1, -5, 0]]], [[3.0, 0.0, 3.5, 3.0], False, []]], [[[4, -1, 5, 0], [0, 3], 0.125, 0.5, [[11, 7, -5, 7, -5], [17, -1, -1, 0, 0], [8, -5, 0, -5, 0]]], [[3.5, -1.5, 5.5, 0.875], False, []]], [[[-3, -4, -1, -1], [-12, -20], 0.0625, 0.25, [[11, 5, -8, 6, -7]]], [[-4.0, -5.5, -0.75, -0.75], True, []]], [[[-2, -4, -1.5, -3.5], [30, -3], 0.125, 0.25, [[9, -5, -3, -4, -3], [27, -4, -1, -4, -1], [18, 5, -7, 5, -6]]], [[-2.25, -4.625, 2.5, -3.25], True, []]], [[[1, -3, 3, 0], [0, 3], 0.25, 0.25, [[25, 7, 0, 8, 1], [24, -1, 1, -1, 1], [22, 1, -2, 3, 0]]], [[0.75, -3.25, 3.25, 1.0], False, [22]]], [[[2, -1, 4, 2], [0, 0], 0.125, 0.0, [[8, 5, -4, 7, -2], [14, -3, 4, -3, 6], [28, -6, 5, -4, 6], [16, 3, 4, 3, 4]]], [[2.0, -1.0, 4.0, 2.0], False, []]], [[[-1, -4, 1, -3.5], [8, 3], 0.25, 0.0, [[2, -1, -3, 0, -2], [7, 7, -8, 9, -7]]], [[-1.0, -4.0, 3.0, -2.75], True, [2]]], [[[1, 1, 3, 1.5], [-2, 3], 0.125, 0.25, [[13, 6, -7, 6, -7], [6, 0, 7, 0, 7], [4, -7, -6, -5, -6], [11, -3, -6, -3, -4], [16, -6, 7, -4, 8]]], [[0.5, 0.75, 3.25, 2.125], True, []]]], [[[[-1, 1, -0.5, 2], [0, 0], 0.0625, 0.5, [[27, -3, -8, -2, -8]]], [[-1.5, 0.5, 0.0, 2.5], False, []]], [[[-3, 1, -2.5, 1.5], [0, 3], 0.125, 0.0, [[16, 6, -5, 8, -5]]], [[-3.0, 1.0, -2.5, 1.875], True, []]], [[[-1, -4, 0, -3], [0, -20], 0.25, 0.25, [[18, -7, 3, -7, 3]]], [[-1.25, -9.25, 0.25, -2.75], True, []]], [[[-1, -3, 1, 0], [30, -20], 0.0625, 0.5, [[15, 3, -3, 5, -3], [26, 1, 1, 3, 3], [23, 8, 6, 8, 8]]], [[-1.5, -4.75, 3.375, 0.5], True, [15]]], [[[0, -4, 2, -3], [0, -3], 0.0625, 0.5, [[6, 0, 8, 1, 9], [20, 0, -8, 2, -7], [25, -7, -4, -5, -4], [27, 5, 4, 7, 4], [14, 3, 0, 5, 0]]], [[-0.5, -4.6875, 2.5, -2.5], False, []]], [[[4, 0, 4.5, 3], [0, 0], 0.125, 0.25, [[8, 6, -4, 6, -3], [26, 8, -7, 10, -6]]], [[3.75, -0.25, 4.75, 3.25], False, []]], [[[-1, 1, 1, 2], [0, 0], 0.125, 0.0, [[19, 0, 8, 2, 10], [11, -1, 4, -1, 5], [29, 2, -1, 2, -1]]], [[-1.0, 1.0, 1.0, 2.0], False, []]], [[[3, -3, 3.5, -2], [0, 0], 0.25, 0.0, [[10, 2, -1, 3, 1], [29, -7, -2, -5, -2], [17, -7, -3, -6, -1], [28, -6, -8, -4, -7]]], [[3.0, -3.0, 3.5, -2.0], False, []]]]]
for i, (args, expected) in enumerate(fixtures[N-1]):
check("case %d" % i, solve(*args), expected)
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 |
|---|---|---|---|
| case 0 | [[-4.5, 0.5, -2.375, 7.5], True, []] | [[-4.5, 0.5, -2.375, 4.6875], False, []] | Failed |
| case 1 | [[2.5, -19.5, 6.375, 4.5], True, []] | [[2.5, -0.75, 6.375, 4.5], True, []] | Failed |
| case 2 | [[-3.625, 1.5, -1.5, 8.5], True, []] | [[-3.625, 1.5, -1.5, 5.6875], False, []] | Failed |
| case 3 | [[-1.25, -3.25, 0.25, -1.75], False, []] | [[-1.25, -3.25, 0.25, -1.75], False, []] | Passed |
| case 4 | [[-2.5, -21.0, -1.5, 0.0], True, []] | [[-2.5, -6.0, -1.5, 0.0], True, []] | Failed |
| case 5 | [[2.5, 0.5, 5.5, 20.5], True, [7]] | [[2.5, 0.5, 5.5, 6.5], True, [7]] | Failed |
| case 6 | [[-2.5, 0.0, 1.0, 4.0], True, [15]] | [[-2.5, 2.625, 1.0, 4.0], True, [15]] | Failed |
| case 7 | [[-3.25, -0.25, -0.75, 3.75], True, []] | [[-3.25, 2.0, -0.75, 3.75], True, []] | Failed |
SHA-256 / 17c26ae8a6b016957921bfb2bff9ac894f12623ad9adcee8130aeae2da6f3b4a
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 8 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
A deterministic bounded teaching model with stipulated toy conventions; not a production physics engine or spatial index. 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:51:01.152678+00:00.
Case digest / 25303fe9a9c9139ae256831d86d6e729dc7842f1724a4cb8a43c41fcf9f28ddf