FAILURE MAP
← Case archive

FA-97061 / Recipe scaling and nutrition / Open access

Yeast type converter: conversion direction · case 01

21 g of fresh yeast converts to 63 g of instant.

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

ROOT CAUSE

The source ratio multiplies and the target ratio divides, inverting the conversion.

VERIFIED REPAIR

Divide by the source ratio, multiply by the target ratio.

Unsuccessful approach: Stopping at instant-equivalent grams ignores the target yeast form.

Case contract

Types (trimmed, case-insensitive) instant, active dry, fresh with grams per 1 g instant: 1, 5/4, 3. Unknown -> "error: yeast type". grams = amount/ratio[from]*ratio[to], printed half-up to 0.1 (float). tsp: None for fresh; else grams/3.1 in quarter teaspoons half-up: 0 -> "less than 1/4", <4 quarters -> "q/4", whole -> "n", else "n q/4" (quarters not reduced). bloom is True only when converting to active dry.

Why this case matters

Bakers substitute yeast forms and need both weight and spoon measures.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
from fractions import Fraction
N = 1
observations = []
def solve(amount_g, from_type, to_type):
    R = {'instant': Fraction(1), 'active dry': Fraction(5, 4), 'fresh': Fraction(3)}
    f, t = from_type.strip().lower(), to_type.strip().lower()
    if f not in R or t not in R:
        return 'error: yeast type'
    g = Fraction(str(amount_g)) * R[f] / R[t]
    grams = math.floor(g * 10 + Fraction(1, 2)) / 10
    out = {'grams': grams}
    if t == 'fresh':
        out['tsp'] = None
    else:
        q = math.floor(g / Fraction(31, 10) * 4 + Fraction(1, 2))
        if q == 0:
            out['tsp'] = 'less than 1/4'
        elif q < 4:
            out['tsp'] = '%d/4' % q
        elif q % 4 == 0:
            out['tsp'] = '%d' % (q // 4)
        else:
            out['tsp'] = '%d %d/4' % divmod(q, 4)
    out['bloom'] = t == 'active dry'
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['instant to active dry', [7, 'instant', 'active dry'], {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['fresh to instant', [21, 'fresh', 'instant'], {'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}],
  ['unknown type', [7, 'rapid', 'instant'], 'error: yeast type'],
  ['regression: conversion direction', [2.5, 'active dry', ' Instant'],
   {'bloom': False, 'grams': 2.0, 'tsp': '3/4'}],
  ['repair check: conversion direction', [0.5, 'active dry', 'active dry'],
   {'bloom': True, 'grams': 0.5, 'tsp': '1/4'}],
  ['generated control 1', [21, 'rapid', 'rapid'], 'error: yeast type'],
  ['generated control 2', [12.4, 'active dry', 'fresh'], {'bloom': False, 'grams': 29.8, 'tsp': None}],
  ['generated control 3', [6.2, 'instant', 'instant'], {'bloom': False, 'grams': 6.2, 'tsp': '2'}]],
 [['fresh to instant', [21, 'fresh', 'instant'], {'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}],
  ['unknown type', [7, 'rapid', 'instant'], 'error: yeast type'],
  ['same type', [3.1, 'instant', 'instant'], {'bloom': False, 'grams': 3.1, 'tsp': '1'}],
  ['regression: conversion direction', [0.3, 'active dry', 'fresh'],
   {'bloom': False, 'grams': 0.7, 'tsp': None}],
  ['repair check: conversion direction', [1, ' Instant', 'fresh'],
   {'bloom': False, 'grams': 3.0, 'tsp': None}],
  ['generated control 1', [12.4, ' Instant', ' Instant'], {'bloom': False, 'grams': 12.4, 'tsp': '4'}],
  ['generated control 2', [6.2, 'FRESH', 'fresh'], {'bloom': False, 'grams': 6.2, 'tsp': None}],
  ['generated control 3', [2.5, 'FRESH', ' Instant'], {'bloom': False, 'grams': 0.8, 'tsp': '1/4'}]],
 [['unknown type', [7, 'rapid', 'instant'], 'error: yeast type'],
  ['same type', [3.1, 'instant', 'instant'], {'bloom': False, 'grams': 3.1, 'tsp': '1'}],
  ['tiny amount', [0.3, 'instant', 'instant'], {'bloom': False, 'grams': 0.3, 'tsp': 'less than 1/4'}],
  ['regression: conversion direction', [0.3, 'fresh', 'active dry'],
   {'bloom': True, 'grams': 0.1, 'tsp': 'less than 1/4'}],
  ['repair check: conversion direction', [7, ' Instant', 'active dry'],
   {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['generated control 1', [4, 'active dry', 'rapid'], 'error: yeast type'],
  ['generated control 2', [1, 'rapid', 'FRESH'], 'error: yeast type'],
  ['generated control 3', [6.2, 'active dry', ' Instant'], {'bloom': False, 'grams': 5.0, 'tsp': '1 2/4'}]],
 [['same type', [3.1, 'instant', 'instant'], {'bloom': False, 'grams': 3.1, 'tsp': '1'}],
  ['tiny amount', [0.3, 'instant', 'instant'], {'bloom': False, 'grams': 0.3, 'tsp': 'less than 1/4'}],
  ['instant to active dry', [7, 'instant', 'active dry'], {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['regression: conversion direction', [10, 'FRESH', ' Instant'], {'bloom': False, 'grams': 3.3, 'tsp': '1'}],
  ['repair check: conversion direction', [10, 'fresh', 'FRESH'],
   {'bloom': False, 'grams': 10.0, 'tsp': None}],
  ['generated control 1', [6.2, 'FRESH', ' Instant'], {'bloom': False, 'grams': 2.1, 'tsp': '3/4'}],
  ['generated control 2', [12.4, 'FRESH', 'fresh'], {'bloom': False, 'grams': 12.4, 'tsp': None}],
  ['generated control 3', [10, 'active dry', 'FRESH'], {'bloom': False, 'grams': 24.0, 'tsp': None}]],
 [['tiny amount', [0.3, 'instant', 'instant'], {'bloom': False, 'grams': 0.3, 'tsp': 'less than 1/4'}],
  ['instant to active dry', [7, 'instant', 'active dry'], {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['fresh to instant', [21, 'fresh', 'instant'], {'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}],
  ['regression: conversion direction', [6.2, 'instant', 'fresh'],
   {'bloom': False, 'grams': 18.6, 'tsp': None}],
  ['repair check: conversion direction', [0.5, 'FRESH', 'FRESH'],
   {'bloom': False, 'grams': 0.5, 'tsp': None}],
  ['generated control 1', [1, 'rapid', 'instant'], 'error: yeast type'],
  ['generated control 2', [1, ' Instant', 'active dry'], {'bloom': True, 'grams': 1.3, 'tsp': '2/4'}],
  ['generated control 3', [2.5, 'instant', 'active dry'], {'bloom': True, 'grams': 3.1, 'tsp': '1'}]]]
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
instant to active dry{'bloom': True, 'grams': 5.6, 'tsp': '1 3/4'}{'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}Failed
fresh to instant{'bloom': False, 'grams': 63.0, 'tsp': '20 1/4'}{'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}Failed
unknown typeerror: yeast typeerror: yeast typePassed
regression: conversion direction{'bloom': False, 'grams': 3.1, 'tsp': '1'}{'bloom': False, 'grams': 2.0, 'tsp': '3/4'}Failed
repair check: conversion direction{'bloom': True, 'grams': 0.5, 'tsp': '1/4'}{'bloom': True, 'grams': 0.5, 'tsp': '1/4'}Passed
generated control 1error: yeast typeerror: yeast typePassed
generated control 2{'bloom': False, 'grams': 5.2, 'tsp': None}{'bloom': False, 'grams': 29.8, 'tsp': None}Failed
generated control 3{'bloom': False, 'grams': 6.2, 'tsp': '2'}{'bloom': False, 'grams': 6.2, 'tsp': '2'}Passed

SHA-256 / 881fb7c6811212ec2fa43c3067573965f6e342667be41c8c2b2165e6c5604b9d

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
from fractions import Fraction
N = 1
observations = []
def solve(amount_g, from_type, to_type):
    R = {'instant': Fraction(1), 'active dry': Fraction(5, 4), 'fresh': Fraction(3)}
    f, t = from_type.strip().lower(), to_type.strip().lower()
    if f not in R or t not in R:
        return 'error: yeast type'
    g = Fraction(str(amount_g)) / R[f]
    grams = math.floor(g * 10 + Fraction(1, 2)) / 10
    out = {'grams': grams}
    if t == 'fresh':
        out['tsp'] = None
    else:
        q = math.floor(g / Fraction(31, 10) * 4 + Fraction(1, 2))
        if q == 0:
            out['tsp'] = 'less than 1/4'
        elif q < 4:
            out['tsp'] = '%d/4' % q
        elif q % 4 == 0:
            out['tsp'] = '%d' % (q // 4)
        else:
            out['tsp'] = '%d %d/4' % divmod(q, 4)
    out['bloom'] = t == 'active dry'
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['instant to active dry', [7, 'instant', 'active dry'], {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['fresh to instant', [21, 'fresh', 'instant'], {'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}],
  ['unknown type', [7, 'rapid', 'instant'], 'error: yeast type'],
  ['regression: conversion direction', [2.5, 'active dry', ' Instant'],
   {'bloom': False, 'grams': 2.0, 'tsp': '3/4'}],
  ['repair check: conversion direction', [0.5, 'active dry', 'active dry'],
   {'bloom': True, 'grams': 0.5, 'tsp': '1/4'}],
  ['generated control 1', [21, 'rapid', 'rapid'], 'error: yeast type'],
  ['generated control 2', [12.4, 'active dry', 'fresh'], {'bloom': False, 'grams': 29.8, 'tsp': None}],
  ['generated control 3', [6.2, 'instant', 'instant'], {'bloom': False, 'grams': 6.2, 'tsp': '2'}]],
 [['fresh to instant', [21, 'fresh', 'instant'], {'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}],
  ['unknown type', [7, 'rapid', 'instant'], 'error: yeast type'],
  ['same type', [3.1, 'instant', 'instant'], {'bloom': False, 'grams': 3.1, 'tsp': '1'}],
  ['regression: conversion direction', [0.3, 'active dry', 'fresh'],
   {'bloom': False, 'grams': 0.7, 'tsp': None}],
  ['repair check: conversion direction', [1, ' Instant', 'fresh'],
   {'bloom': False, 'grams': 3.0, 'tsp': None}],
  ['generated control 1', [12.4, ' Instant', ' Instant'], {'bloom': False, 'grams': 12.4, 'tsp': '4'}],
  ['generated control 2', [6.2, 'FRESH', 'fresh'], {'bloom': False, 'grams': 6.2, 'tsp': None}],
  ['generated control 3', [2.5, 'FRESH', ' Instant'], {'bloom': False, 'grams': 0.8, 'tsp': '1/4'}]],
 [['unknown type', [7, 'rapid', 'instant'], 'error: yeast type'],
  ['same type', [3.1, 'instant', 'instant'], {'bloom': False, 'grams': 3.1, 'tsp': '1'}],
  ['tiny amount', [0.3, 'instant', 'instant'], {'bloom': False, 'grams': 0.3, 'tsp': 'less than 1/4'}],
  ['regression: conversion direction', [0.3, 'fresh', 'active dry'],
   {'bloom': True, 'grams': 0.1, 'tsp': 'less than 1/4'}],
  ['repair check: conversion direction', [7, ' Instant', 'active dry'],
   {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['generated control 1', [4, 'active dry', 'rapid'], 'error: yeast type'],
  ['generated control 2', [1, 'rapid', 'FRESH'], 'error: yeast type'],
  ['generated control 3', [6.2, 'active dry', ' Instant'], {'bloom': False, 'grams': 5.0, 'tsp': '1 2/4'}]],
 [['same type', [3.1, 'instant', 'instant'], {'bloom': False, 'grams': 3.1, 'tsp': '1'}],
  ['tiny amount', [0.3, 'instant', 'instant'], {'bloom': False, 'grams': 0.3, 'tsp': 'less than 1/4'}],
  ['instant to active dry', [7, 'instant', 'active dry'], {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['regression: conversion direction', [10, 'FRESH', ' Instant'], {'bloom': False, 'grams': 3.3, 'tsp': '1'}],
  ['repair check: conversion direction', [10, 'fresh', 'FRESH'],
   {'bloom': False, 'grams': 10.0, 'tsp': None}],
  ['generated control 1', [6.2, 'FRESH', ' Instant'], {'bloom': False, 'grams': 2.1, 'tsp': '3/4'}],
  ['generated control 2', [12.4, 'FRESH', 'fresh'], {'bloom': False, 'grams': 12.4, 'tsp': None}],
  ['generated control 3', [10, 'active dry', 'FRESH'], {'bloom': False, 'grams': 24.0, 'tsp': None}]],
 [['tiny amount', [0.3, 'instant', 'instant'], {'bloom': False, 'grams': 0.3, 'tsp': 'less than 1/4'}],
  ['instant to active dry', [7, 'instant', 'active dry'], {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['fresh to instant', [21, 'fresh', 'instant'], {'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}],
  ['regression: conversion direction', [6.2, 'instant', 'fresh'],
   {'bloom': False, 'grams': 18.6, 'tsp': None}],
  ['repair check: conversion direction', [0.5, 'FRESH', 'FRESH'],
   {'bloom': False, 'grams': 0.5, 'tsp': None}],
  ['generated control 1', [1, 'rapid', 'instant'], 'error: yeast type'],
  ['generated control 2', [1, ' Instant', 'active dry'], {'bloom': True, 'grams': 1.3, 'tsp': '2/4'}],
  ['generated control 3', [2.5, 'instant', 'active dry'], {'bloom': True, 'grams': 3.1, 'tsp': '1'}]]]
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
instant to active dry{'bloom': True, 'grams': 7.0, 'tsp': '2 1/4'}{'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}Failed
fresh to instant{'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}{'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}Passed
unknown typeerror: yeast typeerror: yeast typePassed
regression: conversion direction{'bloom': False, 'grams': 2.0, 'tsp': '3/4'}{'bloom': False, 'grams': 2.0, 'tsp': '3/4'}Passed
repair check: conversion direction{'bloom': True, 'grams': 0.4, 'tsp': '1/4'}{'bloom': True, 'grams': 0.5, 'tsp': '1/4'}Failed
generated control 1error: yeast typeerror: yeast typePassed
generated control 2{'bloom': False, 'grams': 9.9, 'tsp': None}{'bloom': False, 'grams': 29.8, 'tsp': None}Failed
generated control 3{'bloom': False, 'grams': 6.2, 'tsp': '2'}{'bloom': False, 'grams': 6.2, 'tsp': '2'}Passed

SHA-256 / 3d4fff9c6093caf96c78b0ab1d1f6b4bfffe4951ca8fcf33445b5d4b68e44871

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json
import math
from fractions import Fraction
N = 1
observations = []
def solve(amount_g, from_type, to_type):
    R = {'instant': Fraction(1), 'active dry': Fraction(5, 4), 'fresh': Fraction(3)}
    f, t = from_type.strip().lower(), to_type.strip().lower()
    if f not in R or t not in R:
        return 'error: yeast type'
    g = Fraction(str(amount_g)) / R[f] * R[t]
    grams = math.floor(g * 10 + Fraction(1, 2)) / 10
    out = {'grams': grams}
    if t == 'fresh':
        out['tsp'] = None
    else:
        q = math.floor(g / Fraction(31, 10) * 4 + Fraction(1, 2))
        if q == 0:
            out['tsp'] = 'less than 1/4'
        elif q < 4:
            out['tsp'] = '%d/4' % q
        elif q % 4 == 0:
            out['tsp'] = '%d' % (q // 4)
        else:
            out['tsp'] = '%d %d/4' % divmod(q, 4)
    out['bloom'] = t == 'active dry'
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['instant to active dry', [7, 'instant', 'active dry'], {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['fresh to instant', [21, 'fresh', 'instant'], {'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}],
  ['unknown type', [7, 'rapid', 'instant'], 'error: yeast type'],
  ['regression: conversion direction', [2.5, 'active dry', ' Instant'],
   {'bloom': False, 'grams': 2.0, 'tsp': '3/4'}],
  ['repair check: conversion direction', [0.5, 'active dry', 'active dry'],
   {'bloom': True, 'grams': 0.5, 'tsp': '1/4'}],
  ['generated control 1', [21, 'rapid', 'rapid'], 'error: yeast type'],
  ['generated control 2', [12.4, 'active dry', 'fresh'], {'bloom': False, 'grams': 29.8, 'tsp': None}],
  ['generated control 3', [6.2, 'instant', 'instant'], {'bloom': False, 'grams': 6.2, 'tsp': '2'}]],
 [['fresh to instant', [21, 'fresh', 'instant'], {'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}],
  ['unknown type', [7, 'rapid', 'instant'], 'error: yeast type'],
  ['same type', [3.1, 'instant', 'instant'], {'bloom': False, 'grams': 3.1, 'tsp': '1'}],
  ['regression: conversion direction', [0.3, 'active dry', 'fresh'],
   {'bloom': False, 'grams': 0.7, 'tsp': None}],
  ['repair check: conversion direction', [1, ' Instant', 'fresh'],
   {'bloom': False, 'grams': 3.0, 'tsp': None}],
  ['generated control 1', [12.4, ' Instant', ' Instant'], {'bloom': False, 'grams': 12.4, 'tsp': '4'}],
  ['generated control 2', [6.2, 'FRESH', 'fresh'], {'bloom': False, 'grams': 6.2, 'tsp': None}],
  ['generated control 3', [2.5, 'FRESH', ' Instant'], {'bloom': False, 'grams': 0.8, 'tsp': '1/4'}]],
 [['unknown type', [7, 'rapid', 'instant'], 'error: yeast type'],
  ['same type', [3.1, 'instant', 'instant'], {'bloom': False, 'grams': 3.1, 'tsp': '1'}],
  ['tiny amount', [0.3, 'instant', 'instant'], {'bloom': False, 'grams': 0.3, 'tsp': 'less than 1/4'}],
  ['regression: conversion direction', [0.3, 'fresh', 'active dry'],
   {'bloom': True, 'grams': 0.1, 'tsp': 'less than 1/4'}],
  ['repair check: conversion direction', [7, ' Instant', 'active dry'],
   {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['generated control 1', [4, 'active dry', 'rapid'], 'error: yeast type'],
  ['generated control 2', [1, 'rapid', 'FRESH'], 'error: yeast type'],
  ['generated control 3', [6.2, 'active dry', ' Instant'], {'bloom': False, 'grams': 5.0, 'tsp': '1 2/4'}]],
 [['same type', [3.1, 'instant', 'instant'], {'bloom': False, 'grams': 3.1, 'tsp': '1'}],
  ['tiny amount', [0.3, 'instant', 'instant'], {'bloom': False, 'grams': 0.3, 'tsp': 'less than 1/4'}],
  ['instant to active dry', [7, 'instant', 'active dry'], {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['regression: conversion direction', [10, 'FRESH', ' Instant'], {'bloom': False, 'grams': 3.3, 'tsp': '1'}],
  ['repair check: conversion direction', [10, 'fresh', 'FRESH'],
   {'bloom': False, 'grams': 10.0, 'tsp': None}],
  ['generated control 1', [6.2, 'FRESH', ' Instant'], {'bloom': False, 'grams': 2.1, 'tsp': '3/4'}],
  ['generated control 2', [12.4, 'FRESH', 'fresh'], {'bloom': False, 'grams': 12.4, 'tsp': None}],
  ['generated control 3', [10, 'active dry', 'FRESH'], {'bloom': False, 'grams': 24.0, 'tsp': None}]],
 [['tiny amount', [0.3, 'instant', 'instant'], {'bloom': False, 'grams': 0.3, 'tsp': 'less than 1/4'}],
  ['instant to active dry', [7, 'instant', 'active dry'], {'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}],
  ['fresh to instant', [21, 'fresh', 'instant'], {'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}],
  ['regression: conversion direction', [6.2, 'instant', 'fresh'],
   {'bloom': False, 'grams': 18.6, 'tsp': None}],
  ['repair check: conversion direction', [0.5, 'FRESH', 'FRESH'],
   {'bloom': False, 'grams': 0.5, 'tsp': None}],
  ['generated control 1', [1, 'rapid', 'instant'], 'error: yeast type'],
  ['generated control 2', [1, ' Instant', 'active dry'], {'bloom': True, 'grams': 1.3, 'tsp': '2/4'}],
  ['generated control 3', [2.5, 'instant', 'active dry'], {'bloom': True, 'grams': 3.1, 'tsp': '1'}]]]
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
instant to active dry{'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}{'bloom': True, 'grams': 8.8, 'tsp': '2 3/4'}Passed
fresh to instant{'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}{'bloom': False, 'grams': 7.0, 'tsp': '2 1/4'}Passed
unknown typeerror: yeast typeerror: yeast typePassed
regression: conversion direction{'bloom': False, 'grams': 2.0, 'tsp': '3/4'}{'bloom': False, 'grams': 2.0, 'tsp': '3/4'}Passed
repair check: conversion direction{'bloom': True, 'grams': 0.5, 'tsp': '1/4'}{'bloom': True, 'grams': 0.5, 'tsp': '1/4'}Passed
generated control 1error: yeast typeerror: yeast typePassed
generated control 2{'bloom': False, 'grams': 29.8, 'tsp': None}{'bloom': False, 'grams': 29.8, 'tsp': None}Passed
generated control 3{'bloom': False, 'grams': 6.2, 'tsp': '2'}{'bloom': False, 'grams': 6.2, 'tsp': '2'}Passed

SHA-256 / 7af696f920c605d45895483770d4684babd0d32fd8f58063e784699ec3dc4d78

Verification & scope

A deterministic toy contract stated in full here; it is a bounded teaching model, not an authoritative reference or standards implementation. 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:52:28.458095+00:00.

Case digest / dc8e4c776ea2d2e5c9f8a1411b2428ec6b60ac9b21bbf031cd597c702c57a869