FAILURE MAP
← Case archive

FA-65231 / Epidemic compartment models / Open access

SIR with Erlang-distributed infectious period: removal stage · case 01

Recovered counts rise immediately at stage-1 exit rates.

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

ROOT CAUSE

Removals are taken from the first stage instead of the last.

VERIFIED REPAIR

Restore the removal stage rule: `r += flows[-1]`.

Unsuccessful approach: Averaging all stage flows is not the final-stage exit.

Case contract

Infectious period split into k sequential stages each left at rate k*gamma; seeds start in stage 1; all stages transmit; Euler with dt=0.1 (10 substeps/day); return [total I at day ends including day 0 rounded 3, R rounded 3], None for k<1.

Why this case matters

Compartmental epidemic calculations drive outbreak forecasts, vaccine targets and hospital planning; a single wrong flow, rate conversion or boundary silently changes every downstream number.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(beta, gamma, k, pop, i0, days):
    if k < 1:
        return None
    stages = [0.0] * k
    stages[0] = float(i0)
    s = float(pop - i0)
    r = 0.0
    dt = 0.1
    series = [round(sum(stages), 3)]
    for _ in range(days):
        for _ in range(10):
            i = sum(stages)
            inf = beta * s * i / pop * dt
            flows = [k * gamma * x * dt for x in stages]
            s -= inf
            stages[0] += inf - flows[0]
            for j in range(1, k):
                stages[j] += flows[j - 1] - flows[j]
            r += flows[0]
        series.append(round(sum(stages), 3))
    return [series, round(r, 3)]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0])],
 [('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])],
 [('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])],
 [('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])],
 [('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])]]
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 fixtureActualExpectedOutcome
regression: three stages[[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 76.567][[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]Failed
control: single stage equals SIR[[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032][[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]Passed
regression: many stages[[20.0, 34.937, 55.691, 80.709, 110.985], 112.977][[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]Failed
regression: no transmission[[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.948][[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]Failed
control: invalid kNoneNonePassed
regression: two stages slow[[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 79.841][[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]Failed
control: boundary zero days[[5.0], 0.0][[5.0], 0.0]Passed

SHA-256 / f4a7f025c4789ca707300df36e7984aa27df7e9969d81d278bb2cf2dc4e3dc4d

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(beta, gamma, k, pop, i0, days):
    if k < 1:
        return None
    stages = [0.0] * k
    stages[0] = float(i0)
    s = float(pop - i0)
    r = 0.0
    dt = 0.1
    series = [round(sum(stages), 3)]
    for _ in range(days):
        for _ in range(10):
            i = sum(stages)
            inf = beta * s * i / pop * dt
            flows = [k * gamma * x * dt for x in stages]
            s -= inf
            stages[0] += inf - flows[0]
            for j in range(1, k):
                stages[j] += flows[j - 1] - flows[j]
            r += sum(flows) / k
        series.append(round(sum(stages), 3))
    return [series, round(r, 3)]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0])],
 [('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])],
 [('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])],
 [('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])],
 [('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])]]
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 fixtureActualExpectedOutcome
regression: three stages[[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 49.175][[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]Failed
control: single stage equals SIR[[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032][[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]Passed
regression: many stages[[20.0, 34.937, 55.691, 80.709, 110.985], 69.149][[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]Failed
regression: no transmission[[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.805][[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]Failed
control: invalid kNoneNonePassed
regression: two stages slow[[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 54.949][[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]Failed
control: boundary zero days[[5.0], 0.0][[5.0], 0.0]Passed

SHA-256 / 168c8ace5273cc08746992e589fe8cbec07f8eb7758bf7678e55df95781aecf0

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(beta, gamma, k, pop, i0, days):
    if k < 1:
        return None
    stages = [0.0] * k
    stages[0] = float(i0)
    s = float(pop - i0)
    r = 0.0
    dt = 0.1
    series = [round(sum(stages), 3)]
    for _ in range(days):
        for _ in range(10):
            i = sum(stages)
            inf = beta * s * i / pop * dt
            flows = [k * gamma * x * dt for x in stages]
            s -= inf
            stages[0] += inf - flows[0]
            for j in range(1, k):
                stages[j] += flows[j - 1] - flows[j]
            r += flows[-1]
        series.append(round(sum(stages), 3))
    return [series, round(r, 3)]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0])],
 [('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])],
 [('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])],
 [('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('regression: no transmission',
   (0.0, 0.5, 2, 100, 10, 5),
   [[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])],
 [('regression: three stages',
   (0.5, 0.2, 3, 1000, 10, 6),
   [[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]),
  ('control: single stage equals SIR',
   (0.4, 0.25, 1, 500, 5, 5),
   [[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]),
  ('regression: many stages', (0.6, 0.3, 5, 800, 20, 4), [[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]),
  ('control: invalid k', (0.5, 0.2, 0, 100, 5, 3), None),
  ('regression: two stages slow',
   (0.3, 0.1, 2, 2000, 30, 7),
   [[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]),
  ('control: boundary zero days', (0.5, 0.2, 3, 100, 5, 0), [[5.0], 0.0]),
  ('regression: four stages fast recovery',
   (0.9, 0.5, 4, 300, 6, 5),
   [[6.0, 12.89, 21.627, 33.085, 46.281, 57.492], 51.385])]]
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 fixtureActualExpectedOutcome
regression: three stages[[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589][[10.0, 15.964, 24.203, 35.419, 50.774, 71.593, 99.086], 25.589]Passed
control: single stage equals SIR[[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032][[5.0, 5.776, 6.66, 7.664, 8.798, 10.074], 9.032]Passed
regression: many stages[[20.0, 34.937, 55.691, 80.709, 110.985], 33.142][[20.0, 34.937, 55.691, 80.709, 110.985], 33.142]Passed
regression: no transmission[[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662][[10.0, 7.361, 3.917, 1.837, 0.805, 0.338], 9.662]Passed
control: invalid kNoneNonePassed
regression: two stages slow[[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058][[30.0, 39.545, 50.929, 64.696, 81.433, 101.776, 126.384, 155.912], 30.058]Passed
control: boundary zero days[[5.0], 0.0][[5.0], 0.0]Passed

SHA-256 / 147f167b1673c9402d4dd9a045605c63c60b05540ca136797ab231ba52f3d3c5

Verification & scope

Deterministic bounded teaching model with a stipulated contract; not a validated scientific or public-health modelling library. 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:47:31.994938+00:00.

Case digest / 0104863d075b76c3caa163f5799d5487e12a84161fa047849bd51c781c5f2d97