FAILURE MAP
← Case archive

FA-61401 / Options payoff and settlement / Open access

Contract adjustment for splits and special dividends: a dividend exactly at the threshold is not adjusted · case 01

A 12.5-cent special dividend leaves strikes unchanged.

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

ROOT CAUSE

The threshold comparison is strict.

VERIFIED REPAIR

Adjust when the amount is at least 0.125 per share.

Unsuccessful approach: Comparing mills against 12.5 adjusts nearly every dividend.

Case contract

Inputs strike, contracts, deliverable, action and value. split [new, old]: if new is a multiple of old (ratio r), strike becomes strike/r rounded half-up to cents and contracts become contracts*r; otherwise the deliverable becomes floor(deliverable*new/old) with strike and contracts unchanged. special_div of at least 0.125 per share reduces the strike by the amount (rounded half-up to cents). Other actions, including ordinary_div, change nothing. Return [strike, contracts, deliverable].

Why this case matters

Option expiry, exercise and settlement engines move cash and shares; a wrong branch misstates obligations.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(strike, contracts, deliverable, action, value):
    k = round(strike * 100)
    if action == 'split':
        new, old = value
        if new % old == 0:
            r = new // old
            k = (2 * k + r) // (2 * r)
            contracts = contracts * r
        else:
            deliverable = deliverable * new // old
    elif action == 'special_div':
        amt = round(value * 1000)
        if amt > 125:
            k = (k * 10 - amt + 5) // 10
    return [k / 100, contracts, deliverable]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['regression special dividend threshold 1', [101.01, 10, 100, 'special_div', 0.125], [100.89, 10, 100]], ['regression special dividend threshold 2', [12.5, 3, 150, 'special_div', 0.125], [12.38, 3, 150]], ['partial repair probe 1', [150.05, 3, 100, 'special_div', 0.1], [150.05, 3, 100]], ['partial repair probe 2', [150.05, 10, 100, 'special_div', 0.124], [150.05, 10, 100]], ['boundary control 1', [40, 1, 100, 'split', [3, 2]], [40.0, 1, 150]], ['boundary control 2', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['normal control 1', [12.5, 3, 150, 'special_div', 0.01], [12.5, 3, 150]], ['normal control 2', [150.05, 1, 150, 'ordinary_div', 2.375], [150.05, 1, 150]]], [['regression special dividend threshold 1', [87.75, 1, 150, 'special_div', 0.125], [87.63, 1, 150]], ['regression special dividend threshold 2', [40, 1, 150, 'special_div', 0.125], [39.88, 1, 150]], ['partial repair probe 1', [87.75, 3, 100, 'special_div', 0.1], [87.75, 3, 100]], ['partial repair probe 2', [150.05, 1, 100, 'special_div', 0.124], [150.05, 1, 100]], ['boundary control 1', [40, 1, 100, 'ordinary_div', 1.0], [40.0, 1, 100]], ['boundary control 2', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['normal control 1', [12.5, 3, 100, 'merger', 0.5], [12.5, 3, 100]], ['normal control 2', [87.75, 3, 150, 'split', [3, 1]], [29.25, 9, 150]]], [['regression special dividend threshold 1', [87.75, 10, 100, 'special_div', 0.125], [87.63, 10, 100]], ['regression special dividend threshold 2', [33.33, 1, 100, 'special_div', 0.125], [33.21, 1, 100]], ['partial repair probe 1', [101.01, 10, 150, 'special_div', 0.1], [101.01, 10, 150]], ['partial repair probe 2', [150.05, 1, 150, 'special_div', 0.124], [150.05, 1, 150]], ['boundary control 1', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['boundary control 2', [40, 1, 100, 'split', [3, 2]], [40.0, 1, 150]], ['normal control 1', [87.75, 3, 100, 'split', [5, 4]], [87.75, 3, 125]], ['normal control 2', [12.5, 1, 100, 'split', [1, 2]], [12.5, 1, 50]]], [['regression special dividend threshold 1', [40, 1, 100, 'special_div', 0.125], [39.88, 1, 100]], ['regression special dividend threshold 2', [12.5, 10, 100, 'special_div', 0.125], [12.38, 10, 100]], ['partial repair probe 1', [25.25, 1, 150, 'special_div', 0.1], [25.25, 1, 150]], ['partial repair probe 2', [33.33, 1, 150, 'special_div', 0.124], [33.33, 1, 150]], ['boundary control 1', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['boundary control 2', [40, 1, 100, 'ordinary_div', 1.0], [40.0, 1, 100]], ['normal control 1', [25.25, 3, 100, 'ordinary_div', 0.5], [25.25, 3, 100]], ['normal control 2', [47.5, 10, 100, 'merger', 0.5], [47.5, 10, 100]]], [['regression special dividend threshold 1', [12.5, 1, 100, 'special_div', 0.125], [12.38, 1, 100]], ['regression special dividend threshold 2', [40, 3, 150, 'special_div', 0.125], [39.88, 3, 150]], ['partial repair probe 1', [25.25, 10, 150, 'special_div', 0.124], [25.25, 10, 150]], ['partial repair probe 2', [101.01, 1, 100, 'special_div', 0.1], [101.01, 1, 100]], ['boundary control 1', [40, 1, 100, 'split', [3, 2]], [40.0, 1, 150]], ['boundary control 2', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['normal control 1', [87.75, 3, 100, 'merger', 0.124], [87.75, 3, 100]], ['normal control 2', [25.25, 10, 150, 'special_div', 1.25], [24.0, 10, 150]]]]
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 special dividend threshold 1[101.01, 10, 100][100.89, 10, 100]Failed
regression special dividend threshold 2[12.5, 3, 150][12.38, 3, 150]Failed
partial repair probe 1[150.05, 3, 100][150.05, 3, 100]Passed
partial repair probe 2[150.05, 10, 100][150.05, 10, 100]Passed
boundary control 1[40.0, 1, 150][40.0, 1, 150]Passed
boundary control 2[12.63, 2, 100][12.63, 2, 100]Passed
normal control 1[12.5, 3, 150][12.5, 3, 150]Passed
normal control 2[150.05, 1, 150][150.05, 1, 150]Passed

SHA-256 / 987971ef4fe972f6a77a20927eeb243e07b607258ac570ffb9b47d8a4cb694d1

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(strike, contracts, deliverable, action, value):
    k = round(strike * 100)
    if action == 'split':
        new, old = value
        if new % old == 0:
            r = new // old
            k = (2 * k + r) // (2 * r)
            contracts = contracts * r
        else:
            deliverable = deliverable * new // old
    elif action == 'special_div':
        amt = round(value * 1000)
        if amt >= 12.5:
            k = (k * 10 - amt + 5) // 10
    return [k / 100, contracts, deliverable]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['regression special dividend threshold 1', [101.01, 10, 100, 'special_div', 0.125], [100.89, 10, 100]], ['regression special dividend threshold 2', [12.5, 3, 150, 'special_div', 0.125], [12.38, 3, 150]], ['partial repair probe 1', [150.05, 3, 100, 'special_div', 0.1], [150.05, 3, 100]], ['partial repair probe 2', [150.05, 10, 100, 'special_div', 0.124], [150.05, 10, 100]], ['boundary control 1', [40, 1, 100, 'split', [3, 2]], [40.0, 1, 150]], ['boundary control 2', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['normal control 1', [12.5, 3, 150, 'special_div', 0.01], [12.5, 3, 150]], ['normal control 2', [150.05, 1, 150, 'ordinary_div', 2.375], [150.05, 1, 150]]], [['regression special dividend threshold 1', [87.75, 1, 150, 'special_div', 0.125], [87.63, 1, 150]], ['regression special dividend threshold 2', [40, 1, 150, 'special_div', 0.125], [39.88, 1, 150]], ['partial repair probe 1', [87.75, 3, 100, 'special_div', 0.1], [87.75, 3, 100]], ['partial repair probe 2', [150.05, 1, 100, 'special_div', 0.124], [150.05, 1, 100]], ['boundary control 1', [40, 1, 100, 'ordinary_div', 1.0], [40.0, 1, 100]], ['boundary control 2', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['normal control 1', [12.5, 3, 100, 'merger', 0.5], [12.5, 3, 100]], ['normal control 2', [87.75, 3, 150, 'split', [3, 1]], [29.25, 9, 150]]], [['regression special dividend threshold 1', [87.75, 10, 100, 'special_div', 0.125], [87.63, 10, 100]], ['regression special dividend threshold 2', [33.33, 1, 100, 'special_div', 0.125], [33.21, 1, 100]], ['partial repair probe 1', [101.01, 10, 150, 'special_div', 0.1], [101.01, 10, 150]], ['partial repair probe 2', [150.05, 1, 150, 'special_div', 0.124], [150.05, 1, 150]], ['boundary control 1', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['boundary control 2', [40, 1, 100, 'split', [3, 2]], [40.0, 1, 150]], ['normal control 1', [87.75, 3, 100, 'split', [5, 4]], [87.75, 3, 125]], ['normal control 2', [12.5, 1, 100, 'split', [1, 2]], [12.5, 1, 50]]], [['regression special dividend threshold 1', [40, 1, 100, 'special_div', 0.125], [39.88, 1, 100]], ['regression special dividend threshold 2', [12.5, 10, 100, 'special_div', 0.125], [12.38, 10, 100]], ['partial repair probe 1', [25.25, 1, 150, 'special_div', 0.1], [25.25, 1, 150]], ['partial repair probe 2', [33.33, 1, 150, 'special_div', 0.124], [33.33, 1, 150]], ['boundary control 1', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['boundary control 2', [40, 1, 100, 'ordinary_div', 1.0], [40.0, 1, 100]], ['normal control 1', [25.25, 3, 100, 'ordinary_div', 0.5], [25.25, 3, 100]], ['normal control 2', [47.5, 10, 100, 'merger', 0.5], [47.5, 10, 100]]], [['regression special dividend threshold 1', [12.5, 1, 100, 'special_div', 0.125], [12.38, 1, 100]], ['regression special dividend threshold 2', [40, 3, 150, 'special_div', 0.125], [39.88, 3, 150]], ['partial repair probe 1', [25.25, 10, 150, 'special_div', 0.124], [25.25, 10, 150]], ['partial repair probe 2', [101.01, 1, 100, 'special_div', 0.1], [101.01, 1, 100]], ['boundary control 1', [40, 1, 100, 'split', [3, 2]], [40.0, 1, 150]], ['boundary control 2', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['normal control 1', [87.75, 3, 100, 'merger', 0.124], [87.75, 3, 100]], ['normal control 2', [25.25, 10, 150, 'special_div', 1.25], [24.0, 10, 150]]]]
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 special dividend threshold 1[100.89, 10, 100][100.89, 10, 100]Passed
regression special dividend threshold 2[12.38, 3, 150][12.38, 3, 150]Passed
partial repair probe 1[149.95, 3, 100][150.05, 3, 100]Failed
partial repair probe 2[149.93, 10, 100][150.05, 10, 100]Failed
boundary control 1[40.0, 1, 150][40.0, 1, 150]Passed
boundary control 2[12.63, 2, 100][12.63, 2, 100]Passed
normal control 1[12.5, 3, 150][12.5, 3, 150]Passed
normal control 2[150.05, 1, 150][150.05, 1, 150]Passed

SHA-256 / 86b2ca84090bba836c643af7e239b32ad9086c4c611be15c38aac0fa7fd615c1

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(strike, contracts, deliverable, action, value):
    k = round(strike * 100)
    if action == 'split':
        new, old = value
        if new % old == 0:
            r = new // old
            k = (2 * k + r) // (2 * r)
            contracts = contracts * r
        else:
            deliverable = deliverable * new // old
    elif action == 'special_div':
        amt = round(value * 1000)
        if amt >= 125:
            k = (k * 10 - amt + 5) // 10
    return [k / 100, contracts, deliverable]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['regression special dividend threshold 1', [101.01, 10, 100, 'special_div', 0.125], [100.89, 10, 100]], ['regression special dividend threshold 2', [12.5, 3, 150, 'special_div', 0.125], [12.38, 3, 150]], ['partial repair probe 1', [150.05, 3, 100, 'special_div', 0.1], [150.05, 3, 100]], ['partial repair probe 2', [150.05, 10, 100, 'special_div', 0.124], [150.05, 10, 100]], ['boundary control 1', [40, 1, 100, 'split', [3, 2]], [40.0, 1, 150]], ['boundary control 2', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['normal control 1', [12.5, 3, 150, 'special_div', 0.01], [12.5, 3, 150]], ['normal control 2', [150.05, 1, 150, 'ordinary_div', 2.375], [150.05, 1, 150]]], [['regression special dividend threshold 1', [87.75, 1, 150, 'special_div', 0.125], [87.63, 1, 150]], ['regression special dividend threshold 2', [40, 1, 150, 'special_div', 0.125], [39.88, 1, 150]], ['partial repair probe 1', [87.75, 3, 100, 'special_div', 0.1], [87.75, 3, 100]], ['partial repair probe 2', [150.05, 1, 100, 'special_div', 0.124], [150.05, 1, 100]], ['boundary control 1', [40, 1, 100, 'ordinary_div', 1.0], [40.0, 1, 100]], ['boundary control 2', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['normal control 1', [12.5, 3, 100, 'merger', 0.5], [12.5, 3, 100]], ['normal control 2', [87.75, 3, 150, 'split', [3, 1]], [29.25, 9, 150]]], [['regression special dividend threshold 1', [87.75, 10, 100, 'special_div', 0.125], [87.63, 10, 100]], ['regression special dividend threshold 2', [33.33, 1, 100, 'special_div', 0.125], [33.21, 1, 100]], ['partial repair probe 1', [101.01, 10, 150, 'special_div', 0.1], [101.01, 10, 150]], ['partial repair probe 2', [150.05, 1, 150, 'special_div', 0.124], [150.05, 1, 150]], ['boundary control 1', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['boundary control 2', [40, 1, 100, 'split', [3, 2]], [40.0, 1, 150]], ['normal control 1', [87.75, 3, 100, 'split', [5, 4]], [87.75, 3, 125]], ['normal control 2', [12.5, 1, 100, 'split', [1, 2]], [12.5, 1, 50]]], [['regression special dividend threshold 1', [40, 1, 100, 'special_div', 0.125], [39.88, 1, 100]], ['regression special dividend threshold 2', [12.5, 10, 100, 'special_div', 0.125], [12.38, 10, 100]], ['partial repair probe 1', [25.25, 1, 150, 'special_div', 0.1], [25.25, 1, 150]], ['partial repair probe 2', [33.33, 1, 150, 'special_div', 0.124], [33.33, 1, 150]], ['boundary control 1', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['boundary control 2', [40, 1, 100, 'ordinary_div', 1.0], [40.0, 1, 100]], ['normal control 1', [25.25, 3, 100, 'ordinary_div', 0.5], [25.25, 3, 100]], ['normal control 2', [47.5, 10, 100, 'merger', 0.5], [47.5, 10, 100]]], [['regression special dividend threshold 1', [12.5, 1, 100, 'special_div', 0.125], [12.38, 1, 100]], ['regression special dividend threshold 2', [40, 3, 150, 'special_div', 0.125], [39.88, 3, 150]], ['partial repair probe 1', [25.25, 10, 150, 'special_div', 0.124], [25.25, 10, 150]], ['partial repair probe 2', [101.01, 1, 100, 'special_div', 0.1], [101.01, 1, 100]], ['boundary control 1', [40, 1, 100, 'split', [3, 2]], [40.0, 1, 150]], ['boundary control 2', [25.25, 1, 100, 'split', [2, 1]], [12.63, 2, 100]], ['normal control 1', [87.75, 3, 100, 'merger', 0.124], [87.75, 3, 100]], ['normal control 2', [25.25, 10, 150, 'special_div', 1.25], [24.0, 10, 150]]]]
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 special dividend threshold 1[100.89, 10, 100][100.89, 10, 100]Passed
regression special dividend threshold 2[12.38, 3, 150][12.38, 3, 150]Passed
partial repair probe 1[150.05, 3, 100][150.05, 3, 100]Passed
partial repair probe 2[150.05, 10, 100][150.05, 10, 100]Passed
boundary control 1[40.0, 1, 150][40.0, 1, 150]Passed
boundary control 2[12.63, 2, 100][12.63, 2, 100]Passed
normal control 1[12.5, 3, 150][12.5, 3, 150]Passed
normal control 2[150.05, 1, 150][150.05, 1, 150]Passed

SHA-256 / dcb7f97a9bf699f503f444e11efcdefa4c56196add7787ffef068997f09fef3b

Verification & scope

A deterministic toy contract stated explicitly in the contract field; no claim of conformance to any exchange or clearing rulebook. 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:54.862222+00:00.

Case digest / 0efd073f20b036de1b4a62e5507269442bb602177fbe0a83da30a928b35fb54f