FA-91766 / Digital signal filters / Open access
DC blocker never updates its output history · case 01
The feedback path is dead and the blocker becomes a plain first difference.
ROOT CAUSE
Only x[n-1] is updated after each sample.
VERIFIED REPAIR
Update both x[n-1] and y[n-1].
Unsuccessful approach: The attempted repair stores the input in both history slots.
Case contract
Input [R, samples]: y[n] = x[n] - x[n-1] + R y[n-1] with 0 <= R < 1 ("bad-pole"), warm-started so x[-1] = x[0] and y[-1] = 0 (no start-up step). Return exact fraction strings.
Why this case matters
DC blockers remove offsets before further processing; a cold start injects a large transient.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
from fractions import Fraction
N = 1
observations = []
def solve(x):
R, xs = Fraction(x[0]), x[1]
if not 0 <= R < 1:
return 'bad-pole'
if not xs:
return []
xp = xs[0]
yp = Fraction(0)
out = []
for v in xs:
y = v - xp + R * yp
xp = v
out.append(str(y))
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['regression: step', ['1/2', [0, 4, 4, 4]], ['0', '4', '2', '1']], ['regression: random dc blocker 0', ['3/4', [-2, -1, 1, -3]], ['0', '1', '11/4', '-31/16']], ['repair check: constant input warm start', ['9/10', [5, 5, 5]], ['0', '0', '0']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 3', ['9/10', [1, 4, -3, -3, 5, -2]], ['0', '3', '-43/10', '-387/100', '4517/1000', '-29347/10000']], ['regression: random dc blocker 4', ['3/4', [1, 2, 6, 0, -2]], ['0', '1', '19/4', '-39/16', '-245/64']], ['regression: random dc blocker 0', ['3/4', [-2, -1, 1, -3]], ['0', '1', '11/4', '-31/16']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 7', ['1/2', [0, 6, -2, -1, 2, 0]], ['0', '6', '-5', '-3/2', '9/4', '-7/8']], ['regression: random dc blocker 8', ['9/10', [-3, -3, 2, -2, 2, -2]], ['0', '0', '5', '1/2', '89/20', '1/200']], ['regression: random dc blocker 2', ['1/4', [-3, 0, 1, -3]], ['0', '3', '7/4', '-57/16']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 10', ['1/4', [2, 0, 5, -1, 6, 2, 5]], ['0', '-2', '9/2', '-39/8', '185/32', '-327/128', '1209/512']], ['regression: random dc blocker 11', ['1/2', [-1, 0, 6]], ['0', '1', '13/2']], ['regression: random dc blocker 4', ['3/4', [1, 2, 6, 0, -2]], ['0', '1', '19/4', '-39/16', '-245/64']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 13', ['3/4', [2, 2, 3, 5, -1, 6, -2]], ['0', '0', '1', '11/4', '-63/16', '259/64', '-1271/256']], ['regression: random dc blocker 15', ['1/2', [5, 4, 0, 0, -3]], ['0', '-1', '-9/2', '-9/4', '-33/8']], ['regression: random dc blocker 6', ['1/4', [1, 0, 2, 2, -3, 0]], ['0', '-1', '7/4', '7/16', '-313/64', '455/256']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]]]
for label, args, expected in fixtures[N-1]:
check(label, 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 |
|---|---|---|---|
| regression: step | ['0', '4', '0', '0'] | ['0', '4', '2', '1'] | Failed |
| regression: random dc blocker 0 | ['0', '1', '2', '-4'] | ['0', '1', '11/4', '-31/16'] | Failed |
| repair check: constant input warm start | ['0', '0', '0'] | ['0', '0', '0'] | Passed |
| control: pole zero | ['0', '2', '-1'] | ['0', '2', '-1'] | Passed |
| control: bad pole | bad-pole | bad-pole | Passed |
| control: empty | [] | [] | Passed |
| control: random dc blocker 32 | ['0', '0'] | ['0', '0'] | Passed |
SHA-256 / 783a3310e6cb5eabe127ac14f0741068827fff11c44468cb719d996b40f84217
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
from fractions import Fraction
N = 1
observations = []
def solve(x):
R, xs = Fraction(x[0]), x[1]
if not 0 <= R < 1:
return 'bad-pole'
if not xs:
return []
xp = xs[0]
yp = Fraction(0)
out = []
for v in xs:
y = v - xp + R * yp
xp, yp = v, v
out.append(str(y))
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['regression: step', ['1/2', [0, 4, 4, 4]], ['0', '4', '2', '1']], ['regression: random dc blocker 0', ['3/4', [-2, -1, 1, -3]], ['0', '1', '11/4', '-31/16']], ['repair check: constant input warm start', ['9/10', [5, 5, 5]], ['0', '0', '0']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 3', ['9/10', [1, 4, -3, -3, 5, -2]], ['0', '3', '-43/10', '-387/100', '4517/1000', '-29347/10000']], ['regression: random dc blocker 4', ['3/4', [1, 2, 6, 0, -2]], ['0', '1', '19/4', '-39/16', '-245/64']], ['regression: random dc blocker 0', ['3/4', [-2, -1, 1, -3]], ['0', '1', '11/4', '-31/16']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 7', ['1/2', [0, 6, -2, -1, 2, 0]], ['0', '6', '-5', '-3/2', '9/4', '-7/8']], ['regression: random dc blocker 8', ['9/10', [-3, -3, 2, -2, 2, -2]], ['0', '0', '5', '1/2', '89/20', '1/200']], ['regression: random dc blocker 2', ['1/4', [-3, 0, 1, -3]], ['0', '3', '7/4', '-57/16']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 10', ['1/4', [2, 0, 5, -1, 6, 2, 5]], ['0', '-2', '9/2', '-39/8', '185/32', '-327/128', '1209/512']], ['regression: random dc blocker 11', ['1/2', [-1, 0, 6]], ['0', '1', '13/2']], ['regression: random dc blocker 4', ['3/4', [1, 2, 6, 0, -2]], ['0', '1', '19/4', '-39/16', '-245/64']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 13', ['3/4', [2, 2, 3, 5, -1, 6, -2]], ['0', '0', '1', '11/4', '-63/16', '259/64', '-1271/256']], ['regression: random dc blocker 15', ['1/2', [5, 4, 0, 0, -3]], ['0', '-1', '-9/2', '-9/4', '-33/8']], ['regression: random dc blocker 6', ['1/4', [1, 0, 2, 2, -3, 0]], ['0', '-1', '7/4', '7/16', '-313/64', '455/256']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]]]
for label, args, expected in fixtures[N-1]:
check(label, 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 |
|---|---|---|---|
| regression: step | ['0', '4', '2', '2'] | ['0', '4', '2', '1'] | Failed |
| regression: random dc blocker 0 | ['0', '-1/2', '5/4', '-13/4'] | ['0', '1', '11/4', '-31/16'] | Failed |
| repair check: constant input warm start | ['0', '9/2', '9/2'] | ['0', '0', '0'] | Failed |
| control: pole zero | ['0', '2', '-1'] | ['0', '2', '-1'] | Passed |
| control: bad pole | bad-pole | bad-pole | Passed |
| control: empty | [] | [] | Passed |
| control: random dc blocker 32 | ['0', '0'] | ['0', '0'] | Passed |
SHA-256 / 435251646e6efe093b2ba37f7186e9d068f970d5535f788c97c3d33f1fee4313
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
from fractions import Fraction
N = 1
observations = []
def solve(x):
R, xs = Fraction(x[0]), x[1]
if not 0 <= R < 1:
return 'bad-pole'
if not xs:
return []
xp = xs[0]
yp = Fraction(0)
out = []
for v in xs:
y = v - xp + R * yp
xp, yp = v, y
out.append(str(y))
return out
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['regression: step', ['1/2', [0, 4, 4, 4]], ['0', '4', '2', '1']], ['regression: random dc blocker 0', ['3/4', [-2, -1, 1, -3]], ['0', '1', '11/4', '-31/16']], ['repair check: constant input warm start', ['9/10', [5, 5, 5]], ['0', '0', '0']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 3', ['9/10', [1, 4, -3, -3, 5, -2]], ['0', '3', '-43/10', '-387/100', '4517/1000', '-29347/10000']], ['regression: random dc blocker 4', ['3/4', [1, 2, 6, 0, -2]], ['0', '1', '19/4', '-39/16', '-245/64']], ['regression: random dc blocker 0', ['3/4', [-2, -1, 1, -3]], ['0', '1', '11/4', '-31/16']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 7', ['1/2', [0, 6, -2, -1, 2, 0]], ['0', '6', '-5', '-3/2', '9/4', '-7/8']], ['regression: random dc blocker 8', ['9/10', [-3, -3, 2, -2, 2, -2]], ['0', '0', '5', '1/2', '89/20', '1/200']], ['regression: random dc blocker 2', ['1/4', [-3, 0, 1, -3]], ['0', '3', '7/4', '-57/16']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 10', ['1/4', [2, 0, 5, -1, 6, 2, 5]], ['0', '-2', '9/2', '-39/8', '185/32', '-327/128', '1209/512']], ['regression: random dc blocker 11', ['1/2', [-1, 0, 6]], ['0', '1', '13/2']], ['regression: random dc blocker 4', ['3/4', [1, 2, 6, 0, -2]], ['0', '1', '19/4', '-39/16', '-245/64']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]], [['regression: random dc blocker 13', ['3/4', [2, 2, 3, 5, -1, 6, -2]], ['0', '0', '1', '11/4', '-63/16', '259/64', '-1271/256']], ['regression: random dc blocker 15', ['1/2', [5, 4, 0, 0, -3]], ['0', '-1', '-9/2', '-9/4', '-33/8']], ['regression: random dc blocker 6', ['1/4', [1, 0, 2, 2, -3, 0]], ['0', '-1', '7/4', '7/16', '-313/64', '455/256']], ['control: pole zero', ['0', [1, 3, 2]], ['0', '2', '-1']], ['control: bad pole', ['1', [1]], 'bad-pole'], ['control: empty', ['1/2', []], []], ['control: random dc blocker 32', ['9/10', [0, 0]], ['0', '0']]]]
for label, args, expected in fixtures[N-1]:
check(label, 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 |
|---|---|---|---|
| regression: step | ['0', '4', '2', '1'] | ['0', '4', '2', '1'] | Passed |
| regression: random dc blocker 0 | ['0', '1', '11/4', '-31/16'] | ['0', '1', '11/4', '-31/16'] | Passed |
| repair check: constant input warm start | ['0', '0', '0'] | ['0', '0', '0'] | Passed |
| control: pole zero | ['0', '2', '-1'] | ['0', '2', '-1'] | Passed |
| control: bad pole | bad-pole | bad-pole | Passed |
| control: empty | [] | [] | Passed |
| control: random dc blocker 32 | ['0', '0'] | ['0', '0'] | Passed |
SHA-256 / d61ba04e94a7b83ff6243e877846222bbab9d2eabcd7fc15f3bec932e123e63e
Verification & scope
A deterministic bounded teaching model with a stipulated toy contract; exact rational arithmetic or fixed-decimal rounding keeps outputs strict JSON. It is not a production DSP library and claims no standards conformance. 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:38.953405+00:00.
Case digest / 0ae1cf5e6e6518ad46b332345fffdf5cdd04246b7bb36e8fd2a38eae9f7eba6b