FA-13536 / Numerical aggregation / Open access
Recursive exponential level: Observations are consumed from newest to oldest. · case 01
The reduction disagrees with its explicit aggregation oracle.
ROOT CAUSE
Observations are consumed from newest to oldest.
VERIFIED REPAIR
Preserve the recursive exponential level contract at the identified reduction decision.
Unsuccessful approach: Value sorting also changes exponential recency weights.
Case contract
For 0<=p<=q and q>0, initialise the recursive level to the first observation and update y=(p/q)*x+(1-p/q)*y for each later observation. Empty input returns None; return exact Fraction string.
Why this case matters
Exact bounded examples isolate a reduction defect without floating-point or external-service effects.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
from fractions import Fraction
from collections import Counter, defaultdict
import math
import itertools
N = 1
observations = []
def solve(xs, p, q):
if not xs: return None
alpha=Fraction(p,q)
y=Fraction(xs[0])
for x in reversed(xs[1:]):
y=alpha*x+(1-alpha)*y
return str(y)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('regression 1', solve(*([2, 8, 4], 1, 2)), '9/2')
check('regression 2', solve(*([], 1, 2)), None)
check('regression 3', solve(*([7], 1, 3)), '7')
check('regression 4', solve(*([2, 9], 0, 1)), '2')
check('regression 5', solve(*([3, 8, 1], 1, 1)), '1')
check('regression 6', solve(*([-3, 5, -2], 2, 3)), '-5/9')
check('regression 7', solve(*([0, 0, 8], 1, 4)), '2')
check("variable impulse",solve([0,N,0],1,2),str(Fraction(N,4)))
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 |
|---|---|---|---|
| regression 1 | 11/2 | 9/2 | Failed |
| regression 2 | None | None | Passed |
| regression 3 | 7 | 7 | Passed |
| regression 4 | 2 | 2 | Passed |
| regression 5 | 8 | 1 | Failed |
| regression 6 | 23/9 | -5/9 | Failed |
| regression 7 | 3/2 | 2 | Failed |
| variable impulse | 1/2 | 1/4 | Failed |
SHA-256 / 283621b5a5a5e4cd865f045a592896b0dfc7b3bc6d9cdad5e7e0f994cbc459d2
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
from fractions import Fraction
from collections import Counter, defaultdict
import math
import itertools
N = 1
observations = []
def solve(xs, p, q):
if not xs: return None
alpha=Fraction(p,q)
y=Fraction(xs[0])
for x in sorted(xs[1:]):
y=alpha*x+(1-alpha)*y
return str(y)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('regression 1', solve(*([2, 8, 4], 1, 2)), '9/2')
check('regression 2', solve(*([], 1, 2)), None)
check('regression 3', solve(*([7], 1, 3)), '7')
check('regression 4', solve(*([2, 9], 0, 1)), '2')
check('regression 5', solve(*([3, 8, 1], 1, 1)), '1')
check('regression 6', solve(*([-3, 5, -2], 2, 3)), '-5/9')
check('regression 7', solve(*([0, 0, 8], 1, 4)), '2')
check("variable impulse",solve([0,N,0],1,2),str(Fraction(N,4)))
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 |
|---|---|---|---|
| regression 1 | 11/2 | 9/2 | Failed |
| regression 2 | None | None | Passed |
| regression 3 | 7 | 7 | Passed |
| regression 4 | 2 | 2 | Passed |
| regression 5 | 8 | 1 | Failed |
| regression 6 | 23/9 | -5/9 | Failed |
| regression 7 | 2 | 2 | Passed |
| variable impulse | 1/2 | 1/4 | Failed |
SHA-256 / 199ef07faa5d7c104effb3c92959be9666d1ea197d23e8fead17c8d7dfe75fe0
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
from fractions import Fraction
from collections import Counter, defaultdict
import math
import itertools
N = 1
observations = []
def solve(xs, p, q):
if not xs: return None
alpha=Fraction(p,q)
y=Fraction(xs[0])
for x in xs[1:]:
y=alpha*x+(1-alpha)*y
return str(y)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('regression 1', solve(*([2, 8, 4], 1, 2)), '9/2')
check('regression 2', solve(*([], 1, 2)), None)
check('regression 3', solve(*([7], 1, 3)), '7')
check('regression 4', solve(*([2, 9], 0, 1)), '2')
check('regression 5', solve(*([3, 8, 1], 1, 1)), '1')
check('regression 6', solve(*([-3, 5, -2], 2, 3)), '-5/9')
check('regression 7', solve(*([0, 0, 8], 1, 4)), '2')
check("variable impulse",solve([0,N,0],1,2),str(Fraction(N,4)))
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 |
|---|---|---|---|
| regression 1 | 9/2 | 9/2 | Passed |
| regression 2 | None | None | Passed |
| regression 3 | 7 | 7 | Passed |
| regression 4 | 2 | 2 | Passed |
| regression 5 | 1 | 1 | Passed |
| regression 6 | -5/9 | -5/9 | Passed |
| regression 7 | 2 | 2 | Passed |
| variable impulse | 1/4 | 1/4 | Passed |
SHA-256 / 8ace4ea471d2912374f7d4005a5287324b160218f1e1701a2b16830f1b43c189
Verification & scope
Small offline integer/rational inputs only; no performance, statistical inference, or production-library conformance claim. 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:39:08.064198+00:00.
Case digest / 9879fdfb3fb4e59c2a8d15bf67c4d8dd5e2bbf475a0571f944a1bc72dc2261c4