FA-59626 / Subscription proration billing / Open access
Annual plan proration across leap years: term length · case 01
Terms that include Feb 29 prorate at a daily rate that sums to more than the annual price.
ROOT CAUSE
Every term is assumed to have 365 days.
VERIFIED REPAIR
Restore the contract rule at the term length step: use `total = (e - s).days`.
Unsuccessful approach: The attempt checks whether the start year is leap, which is wrong for terms starting after February or spanning the next February.
Case contract
Input {price, start (annual term start), from, to (exclusive)}. The term is [start, same date next year); a Feb 29 start ends on Mar 1. The requested range is clipped to the term; days = max(0, clipped length). Amount = price*days/term_days half-up. Return [term_days, amount].
Why this case matters
Annual terms have 365 or 366 days depending on whether they contain Feb 29, which changes the daily rate.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import datetime
import calendar
N = 1
observations = []
def solve(x):
s = datetime.date(*x['start'])
try:
e = s.replace(year=s.year + 1)
except ValueError:
e = datetime.date(s.year + 1, 3, 1)
f = max(datetime.date(*x['from']), s)
t = min(datetime.date(*x['to']), e)
days = max(0, (t - f).days)
total = 365
return [total, (x['price'] * days * 2 + total) // (2 * total)]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression', {'price': 36600, 'start': [2023, 6, 28], 'from': [2024, 5, 21], 'to': [2024, 9, 14]}, [366, 3800]), ('regression', {'price': 36600, 'start': [2024, 1, 24], 'from': [2024, 4, 28], 'to': [2024, 5, 27]}, [366, 2900]), ('partial-repair probe', {'price': 617594, 'start': [2024, 4, 7], 'from': [2024, 5, 22], 'to': [2024, 7, 8]}, [365, 79526]), ('partial-repair probe', {'price': 975972, 'start': [2023, 4, 12], 'from': [2023, 10, 30], 'to': [2024, 1, 23]}, [366, 226660]), ('normal control', {'price': 119900, 'start': [2022, 1, 5], 'from': [2022, 2, 1], 'to': [2022, 5, 13]}, [365, 33178]), ('normal control', {'price': 119900, 'start': [2025, 7, 19], 'from': [2025, 8, 25], 'to': [2026, 1, 13]}, [365, 46318]), ('normal control', {'price': 401416, 'start': [2025, 2, 14], 'from': [2026, 1, 26], 'to': [2026, 2, 15]}, [365, 20896]), ('normal control', {'price': 36500, 'start': [2025, 4, 22], 'from': [2025, 10, 5], 'to': [2026, 2, 9]}, [365, 12700])], [('regression', {'price': 975972, 'start': [2023, 4, 12], 'from': [2023, 10, 30], 'to': [2024, 1, 23]}, [366, 226660]), ('regression', {'price': 36600, 'start': [2024, 1, 24], 'from': [2024, 4, 28], 'to': [2024, 5, 27]}, [366, 2900]), ('partial-repair probe', {'price': 505919, 'start': [2023, 11, 8], 'from': [2024, 5, 2], 'to': [2024, 8, 16]}, [366, 146523]), ('partial-repair probe', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('normal control', {'price': 100385, 'start': [2025, 10, 15], 'from': [2026, 10, 7], 'to': [2026, 10, 15]}, [365, 2200]), ('normal control', {'price': 36500, 'start': [2022, 5, 14], 'from': [2022, 8, 4], 'to': [2022, 11, 25]}, [365, 11300]), ('normal control', {'price': 835323, 'start': [2022, 3, 25], 'from': [2023, 1, 26], 'to': [2023, 6, 21]}, [365, 132736]), ('normal control', {'price': 36600, 'start': [2023, 1, 26], 'from': [2023, 10, 15], 'to': [2024, 3, 11]}, [365, 10328])], [('regression', {'price': 505919, 'start': [2023, 11, 8], 'from': [2024, 5, 2], 'to': [2024, 8, 16]}, [366, 146523]), ('regression', {'price': 975972, 'start': [2023, 4, 12], 'from': [2023, 10, 30], 'to': [2024, 1, 23]}, [366, 226660]), ('partial-repair probe', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('partial-repair probe', {'price': 36600, 'start': [2023, 4, 2], 'from': [2024, 2, 21], 'to': [2024, 5, 8]}, [366, 4100]), ('normal control', {'price': 36500, 'start': [2023, 2, 11], 'from': [2023, 11, 18], 'to': [2024, 3, 12]}, [365, 8500]), ('normal control', {'price': 119900, 'start': [2022, 10, 30], 'from': [2023, 10, 17], 'to': [2023, 10, 22]}, [365, 1642]), ('normal control', {'price': 36500, 'start': [2022, 2, 26], 'from': [2023, 1, 27], 'to': [2023, 5, 30]}, [365, 3000]), ('normal control', {'price': 36500, 'start': [2025, 11, 17], 'from': [2026, 9, 5], 'to': [2027, 3, 8]}, [365, 7300])], [('regression', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('regression', {'price': 505919, 'start': [2023, 11, 8], 'from': [2024, 5, 2], 'to': [2024, 8, 16]}, [366, 146523]), ('partial-repair probe', {'price': 119900, 'start': [2024, 6, 29], 'from': [2024, 9, 5], 'to': [2025, 3, 15]}, [365, 62742]), ('partial-repair probe', {'price': 36600, 'start': [2023, 8, 24], 'from': [2024, 4, 5], 'to': [2024, 5, 29]}, [366, 5400]), ('normal control', {'price': 119900, 'start': [2025, 10, 17], 'from': [2026, 10, 6], 'to': [2026, 10, 7]}, [365, 328]), ('normal control', {'price': 119900, 'start': [2025, 1, 2], 'from': [2025, 9, 22], 'to': [2025, 9, 22]}, [365, 0]), ('normal control', {'price': 36600, 'start': [2022, 8, 24], 'from': [2022, 10, 17], 'to': [2022, 12, 26]}, [365, 7019]), ('normal control', {'price': 36500, 'start': [2022, 11, 10], 'from': [2023, 9, 22], 'to': [2024, 1, 1]}, [365, 4900])], [('regression', {'price': 36600, 'start': [2023, 4, 2], 'from': [2024, 2, 21], 'to': [2024, 5, 8]}, [366, 4100]), ('regression', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('partial-repair probe', {'price': 36600, 'start': [2023, 5, 5], 'from': [2023, 7, 11], 'to': [2023, 7, 15]}, [366, 400]), ('partial-repair probe', {'price': 119900, 'start': [2023, 8, 26], 'from': [2023, 12, 8], 'to': [2023, 12, 16]}, [366, 2621]), ('normal control', {'price': 36500, 'start': [2022, 1, 31], 'from': [2022, 12, 24], 'to': [2023, 1, 10]}, [365, 1700]), ('normal control', {'price': 964155, 'start': [2022, 10, 13], 'from': [2023, 2, 27], 'to': [2023, 4, 11]}, [365, 113585]), ('normal control', {'price': 382740, 'start': [2022, 5, 28], 'from': [2022, 9, 1], 'to': [2022, 9, 17]}, [365, 16778]), ('normal control', {'price': 119900, 'start': [2022, 5, 10], 'from': [2023, 3, 14], 'to': [2023, 9, 22]}, [365, 18724])]]
for i, (label, args, expected) in enumerate(fixtures[N-1]):
check("%s %d" % (label, 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 |
|---|---|---|---|
| regression 0 | [365, 3810] | [366, 3800] | Failed |
| regression 1 | [365, 2908] | [366, 2900] | Failed |
| partial-repair probe 2 | [365, 79526] | [365, 79526] | Passed |
| partial-repair probe 3 | [365, 227281] | [366, 226660] | Failed |
| normal control 4 | [365, 33178] | [365, 33178] | Passed |
| normal control 5 | [365, 46318] | [365, 46318] | Passed |
| normal control 6 | [365, 20896] | [365, 20896] | Passed |
| normal control 7 | [365, 12700] | [365, 12700] | Passed |
SHA-256 / 536989464cefb9a3ae1a2abd719aa1961ddb29e90146d51dd26462718e889ffb
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import datetime
import calendar
N = 1
observations = []
def solve(x):
s = datetime.date(*x['start'])
try:
e = s.replace(year=s.year + 1)
except ValueError:
e = datetime.date(s.year + 1, 3, 1)
f = max(datetime.date(*x['from']), s)
t = min(datetime.date(*x['to']), e)
days = max(0, (t - f).days)
total = 366 if calendar.isleap(s.year) else 365
return [total, (x['price'] * days * 2 + total) // (2 * total)]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression', {'price': 36600, 'start': [2023, 6, 28], 'from': [2024, 5, 21], 'to': [2024, 9, 14]}, [366, 3800]), ('regression', {'price': 36600, 'start': [2024, 1, 24], 'from': [2024, 4, 28], 'to': [2024, 5, 27]}, [366, 2900]), ('partial-repair probe', {'price': 617594, 'start': [2024, 4, 7], 'from': [2024, 5, 22], 'to': [2024, 7, 8]}, [365, 79526]), ('partial-repair probe', {'price': 975972, 'start': [2023, 4, 12], 'from': [2023, 10, 30], 'to': [2024, 1, 23]}, [366, 226660]), ('normal control', {'price': 119900, 'start': [2022, 1, 5], 'from': [2022, 2, 1], 'to': [2022, 5, 13]}, [365, 33178]), ('normal control', {'price': 119900, 'start': [2025, 7, 19], 'from': [2025, 8, 25], 'to': [2026, 1, 13]}, [365, 46318]), ('normal control', {'price': 401416, 'start': [2025, 2, 14], 'from': [2026, 1, 26], 'to': [2026, 2, 15]}, [365, 20896]), ('normal control', {'price': 36500, 'start': [2025, 4, 22], 'from': [2025, 10, 5], 'to': [2026, 2, 9]}, [365, 12700])], [('regression', {'price': 975972, 'start': [2023, 4, 12], 'from': [2023, 10, 30], 'to': [2024, 1, 23]}, [366, 226660]), ('regression', {'price': 36600, 'start': [2024, 1, 24], 'from': [2024, 4, 28], 'to': [2024, 5, 27]}, [366, 2900]), ('partial-repair probe', {'price': 505919, 'start': [2023, 11, 8], 'from': [2024, 5, 2], 'to': [2024, 8, 16]}, [366, 146523]), ('partial-repair probe', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('normal control', {'price': 100385, 'start': [2025, 10, 15], 'from': [2026, 10, 7], 'to': [2026, 10, 15]}, [365, 2200]), ('normal control', {'price': 36500, 'start': [2022, 5, 14], 'from': [2022, 8, 4], 'to': [2022, 11, 25]}, [365, 11300]), ('normal control', {'price': 835323, 'start': [2022, 3, 25], 'from': [2023, 1, 26], 'to': [2023, 6, 21]}, [365, 132736]), ('normal control', {'price': 36600, 'start': [2023, 1, 26], 'from': [2023, 10, 15], 'to': [2024, 3, 11]}, [365, 10328])], [('regression', {'price': 505919, 'start': [2023, 11, 8], 'from': [2024, 5, 2], 'to': [2024, 8, 16]}, [366, 146523]), ('regression', {'price': 975972, 'start': [2023, 4, 12], 'from': [2023, 10, 30], 'to': [2024, 1, 23]}, [366, 226660]), ('partial-repair probe', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('partial-repair probe', {'price': 36600, 'start': [2023, 4, 2], 'from': [2024, 2, 21], 'to': [2024, 5, 8]}, [366, 4100]), ('normal control', {'price': 36500, 'start': [2023, 2, 11], 'from': [2023, 11, 18], 'to': [2024, 3, 12]}, [365, 8500]), ('normal control', {'price': 119900, 'start': [2022, 10, 30], 'from': [2023, 10, 17], 'to': [2023, 10, 22]}, [365, 1642]), ('normal control', {'price': 36500, 'start': [2022, 2, 26], 'from': [2023, 1, 27], 'to': [2023, 5, 30]}, [365, 3000]), ('normal control', {'price': 36500, 'start': [2025, 11, 17], 'from': [2026, 9, 5], 'to': [2027, 3, 8]}, [365, 7300])], [('regression', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('regression', {'price': 505919, 'start': [2023, 11, 8], 'from': [2024, 5, 2], 'to': [2024, 8, 16]}, [366, 146523]), ('partial-repair probe', {'price': 119900, 'start': [2024, 6, 29], 'from': [2024, 9, 5], 'to': [2025, 3, 15]}, [365, 62742]), ('partial-repair probe', {'price': 36600, 'start': [2023, 8, 24], 'from': [2024, 4, 5], 'to': [2024, 5, 29]}, [366, 5400]), ('normal control', {'price': 119900, 'start': [2025, 10, 17], 'from': [2026, 10, 6], 'to': [2026, 10, 7]}, [365, 328]), ('normal control', {'price': 119900, 'start': [2025, 1, 2], 'from': [2025, 9, 22], 'to': [2025, 9, 22]}, [365, 0]), ('normal control', {'price': 36600, 'start': [2022, 8, 24], 'from': [2022, 10, 17], 'to': [2022, 12, 26]}, [365, 7019]), ('normal control', {'price': 36500, 'start': [2022, 11, 10], 'from': [2023, 9, 22], 'to': [2024, 1, 1]}, [365, 4900])], [('regression', {'price': 36600, 'start': [2023, 4, 2], 'from': [2024, 2, 21], 'to': [2024, 5, 8]}, [366, 4100]), ('regression', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('partial-repair probe', {'price': 36600, 'start': [2023, 5, 5], 'from': [2023, 7, 11], 'to': [2023, 7, 15]}, [366, 400]), ('partial-repair probe', {'price': 119900, 'start': [2023, 8, 26], 'from': [2023, 12, 8], 'to': [2023, 12, 16]}, [366, 2621]), ('normal control', {'price': 36500, 'start': [2022, 1, 31], 'from': [2022, 12, 24], 'to': [2023, 1, 10]}, [365, 1700]), ('normal control', {'price': 964155, 'start': [2022, 10, 13], 'from': [2023, 2, 27], 'to': [2023, 4, 11]}, [365, 113585]), ('normal control', {'price': 382740, 'start': [2022, 5, 28], 'from': [2022, 9, 1], 'to': [2022, 9, 17]}, [365, 16778]), ('normal control', {'price': 119900, 'start': [2022, 5, 10], 'from': [2023, 3, 14], 'to': [2023, 9, 22]}, [365, 18724])]]
for i, (label, args, expected) in enumerate(fixtures[N-1]):
check("%s %d" % (label, 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 |
|---|---|---|---|
| regression 0 | [365, 3810] | [366, 3800] | Failed |
| regression 1 | [366, 2900] | [366, 2900] | Passed |
| partial-repair probe 2 | [366, 79309] | [365, 79526] | Failed |
| partial-repair probe 3 | [365, 227281] | [366, 226660] | Failed |
| normal control 4 | [365, 33178] | [365, 33178] | Passed |
| normal control 5 | [365, 46318] | [365, 46318] | Passed |
| normal control 6 | [365, 20896] | [365, 20896] | Passed |
| normal control 7 | [365, 12700] | [365, 12700] | Passed |
SHA-256 / cc77505056a758431e7d43b31a7802a34af4a38da8ed0c497fad04cfeca2b517
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
import datetime
import calendar
N = 1
observations = []
def solve(x):
s = datetime.date(*x['start'])
try:
e = s.replace(year=s.year + 1)
except ValueError:
e = datetime.date(s.year + 1, 3, 1)
f = max(datetime.date(*x['from']), s)
t = min(datetime.date(*x['to']), e)
days = max(0, (t - f).days)
total = (e - s).days
return [total, (x['price'] * days * 2 + total) // (2 * total)]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression', {'price': 36600, 'start': [2023, 6, 28], 'from': [2024, 5, 21], 'to': [2024, 9, 14]}, [366, 3800]), ('regression', {'price': 36600, 'start': [2024, 1, 24], 'from': [2024, 4, 28], 'to': [2024, 5, 27]}, [366, 2900]), ('partial-repair probe', {'price': 617594, 'start': [2024, 4, 7], 'from': [2024, 5, 22], 'to': [2024, 7, 8]}, [365, 79526]), ('partial-repair probe', {'price': 975972, 'start': [2023, 4, 12], 'from': [2023, 10, 30], 'to': [2024, 1, 23]}, [366, 226660]), ('normal control', {'price': 119900, 'start': [2022, 1, 5], 'from': [2022, 2, 1], 'to': [2022, 5, 13]}, [365, 33178]), ('normal control', {'price': 119900, 'start': [2025, 7, 19], 'from': [2025, 8, 25], 'to': [2026, 1, 13]}, [365, 46318]), ('normal control', {'price': 401416, 'start': [2025, 2, 14], 'from': [2026, 1, 26], 'to': [2026, 2, 15]}, [365, 20896]), ('normal control', {'price': 36500, 'start': [2025, 4, 22], 'from': [2025, 10, 5], 'to': [2026, 2, 9]}, [365, 12700])], [('regression', {'price': 975972, 'start': [2023, 4, 12], 'from': [2023, 10, 30], 'to': [2024, 1, 23]}, [366, 226660]), ('regression', {'price': 36600, 'start': [2024, 1, 24], 'from': [2024, 4, 28], 'to': [2024, 5, 27]}, [366, 2900]), ('partial-repair probe', {'price': 505919, 'start': [2023, 11, 8], 'from': [2024, 5, 2], 'to': [2024, 8, 16]}, [366, 146523]), ('partial-repair probe', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('normal control', {'price': 100385, 'start': [2025, 10, 15], 'from': [2026, 10, 7], 'to': [2026, 10, 15]}, [365, 2200]), ('normal control', {'price': 36500, 'start': [2022, 5, 14], 'from': [2022, 8, 4], 'to': [2022, 11, 25]}, [365, 11300]), ('normal control', {'price': 835323, 'start': [2022, 3, 25], 'from': [2023, 1, 26], 'to': [2023, 6, 21]}, [365, 132736]), ('normal control', {'price': 36600, 'start': [2023, 1, 26], 'from': [2023, 10, 15], 'to': [2024, 3, 11]}, [365, 10328])], [('regression', {'price': 505919, 'start': [2023, 11, 8], 'from': [2024, 5, 2], 'to': [2024, 8, 16]}, [366, 146523]), ('regression', {'price': 975972, 'start': [2023, 4, 12], 'from': [2023, 10, 30], 'to': [2024, 1, 23]}, [366, 226660]), ('partial-repair probe', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('partial-repair probe', {'price': 36600, 'start': [2023, 4, 2], 'from': [2024, 2, 21], 'to': [2024, 5, 8]}, [366, 4100]), ('normal control', {'price': 36500, 'start': [2023, 2, 11], 'from': [2023, 11, 18], 'to': [2024, 3, 12]}, [365, 8500]), ('normal control', {'price': 119900, 'start': [2022, 10, 30], 'from': [2023, 10, 17], 'to': [2023, 10, 22]}, [365, 1642]), ('normal control', {'price': 36500, 'start': [2022, 2, 26], 'from': [2023, 1, 27], 'to': [2023, 5, 30]}, [365, 3000]), ('normal control', {'price': 36500, 'start': [2025, 11, 17], 'from': [2026, 9, 5], 'to': [2027, 3, 8]}, [365, 7300])], [('regression', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('regression', {'price': 505919, 'start': [2023, 11, 8], 'from': [2024, 5, 2], 'to': [2024, 8, 16]}, [366, 146523]), ('partial-repair probe', {'price': 119900, 'start': [2024, 6, 29], 'from': [2024, 9, 5], 'to': [2025, 3, 15]}, [365, 62742]), ('partial-repair probe', {'price': 36600, 'start': [2023, 8, 24], 'from': [2024, 4, 5], 'to': [2024, 5, 29]}, [366, 5400]), ('normal control', {'price': 119900, 'start': [2025, 10, 17], 'from': [2026, 10, 6], 'to': [2026, 10, 7]}, [365, 328]), ('normal control', {'price': 119900, 'start': [2025, 1, 2], 'from': [2025, 9, 22], 'to': [2025, 9, 22]}, [365, 0]), ('normal control', {'price': 36600, 'start': [2022, 8, 24], 'from': [2022, 10, 17], 'to': [2022, 12, 26]}, [365, 7019]), ('normal control', {'price': 36500, 'start': [2022, 11, 10], 'from': [2023, 9, 22], 'to': [2024, 1, 1]}, [365, 4900])], [('regression', {'price': 36600, 'start': [2023, 4, 2], 'from': [2024, 2, 21], 'to': [2024, 5, 8]}, [366, 4100]), ('regression', {'price': 36600, 'start': [2023, 7, 11], 'from': [2024, 5, 20], 'to': [2024, 7, 20]}, [366, 5200]), ('partial-repair probe', {'price': 36600, 'start': [2023, 5, 5], 'from': [2023, 7, 11], 'to': [2023, 7, 15]}, [366, 400]), ('partial-repair probe', {'price': 119900, 'start': [2023, 8, 26], 'from': [2023, 12, 8], 'to': [2023, 12, 16]}, [366, 2621]), ('normal control', {'price': 36500, 'start': [2022, 1, 31], 'from': [2022, 12, 24], 'to': [2023, 1, 10]}, [365, 1700]), ('normal control', {'price': 964155, 'start': [2022, 10, 13], 'from': [2023, 2, 27], 'to': [2023, 4, 11]}, [365, 113585]), ('normal control', {'price': 382740, 'start': [2022, 5, 28], 'from': [2022, 9, 1], 'to': [2022, 9, 17]}, [365, 16778]), ('normal control', {'price': 119900, 'start': [2022, 5, 10], 'from': [2023, 3, 14], 'to': [2023, 9, 22]}, [365, 18724])]]
for i, (label, args, expected) in enumerate(fixtures[N-1]):
check("%s %d" % (label, 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 |
|---|---|---|---|
| regression 0 | [366, 3800] | [366, 3800] | Passed |
| regression 1 | [366, 2900] | [366, 2900] | Passed |
| partial-repair probe 2 | [365, 79526] | [365, 79526] | Passed |
| partial-repair probe 3 | [366, 226660] | [366, 226660] | Passed |
| normal control 4 | [365, 33178] | [365, 33178] | Passed |
| normal control 5 | [365, 46318] | [365, 46318] | Passed |
| normal control 6 | [365, 20896] | [365, 20896] | Passed |
| normal control 7 | [365, 12700] | [365, 12700] | Passed |
SHA-256 / 7b34393811d274daa7e3fa6ca0e4e935646eda47248295db4ba732e1988503a3
Verification & scope
A deterministic teaching model of a stipulated billing rule. It makes no claim to reproduce any billing provider's exact behaviour and is not billing software. 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:46:38.136944+00:00.
Case digest / 0fdf192346b95f54ded2babab255f9117c639a33a4843093e2d6ec11ae73b655