MUTANTS={# name -> (text in ridge.py or export.py, replacement)
'seam cost: the rows a seam sweeps are not paid (it hops across a receding ridge)':("np.cumsum(0.5 * (cov[:, x - 1] + cov[:, x])) + SEAM_LAM * bins","SEAM_LAM * bins"),
'seams: the separation between seams is ignored':("SEAM_SEP = 0.4 ","SEAM_SEP = 0.0 "),
'elev: curvature and refraction dropped':("drop = d * d / (2 * R_EARTH) * (1 - KREF) if curvature else 0.0","drop = 0.0"),
'coverage: the rows below the first sample are not counted':("prev = np.vstack([np.full((1, a.shape[1]), BOTTOM_DEG), runmax[:-1]])","prev = np.vstack([np.full((1, a.shape[1]), 100.0), runmax[:-1]])"),
'coverage: the rows below the first sample are counted twice':("* PXDEG_V)\n return C","* PXDEG_V); C[0] += np.clip(np.minimum(a[0], TOP_DEG) - BOTTOM_DEG, 0, None) * PXDEG_V\n return C"),
'cards: the hit is not interpolated between samples':("t = np.where(idx > 0, np.clip((rowang - prev) / np.maximum(rm[idx] - prev, 1e-9), 0, 1), 1.0)","t = np.ones_like(rowang)"),
'cards: the blended normal is not renormalised':("nz = np.sqrt(g[2] ** 2 + g[3] ** 2 + g[4] ** 2) + 1e-12","nz = 1.0"),
'wall: no row is flagged (the flag is dropped)':("if i: Wl[i, :, x] = hit & (idx == 0)","if i: Wl[i, :, x] = False"),
'wall: card 0 is flagged too (its ground rows become wall)':("if i: Wl[i, :, x] = hit & (idx == 0)","Wl[i, :, x] = hit & (idx == 0)"),
'wall: albedo takes the face normal, not the face up':("np.where(Wl[i, sl], 1.0, g[4] / nz)","g[4] / nz"),
'wall: the code is not written to the geometry':("if wall is not None: m = np.asarray(wall, bool)","if False: m = np.asarray(wall, bool)"),
'wall: the sheet lights wall rows with their normal':("wall = c['wall']; n_r, n_t = np.where(wall, 0.0, c['n_r']), np.where(wall, 0.0, c['n_t'])","n_r, n_t = c['n_r'], c['n_t']"),
'camera: the sign of r is flipped in the scale':("return [d / (d - r_m) for d in distances]","return [d / (d + r_m) for d in distances]"),
'camera: the scale is clamped (a function of r that is not the formula)':("return [d / (d - r_m) for d in distances]","return [min(d / (d - r_m), 1.2) for d in distances]"),
'camera: the card distance includes wall rows':("ground = (c['alpha'] >= 0.5) & ~c['wall']","ground = (c['alpha'] >= 0.5)"),
'camera: the offset bound is ignored':("if abs(r_m) >= R_FRAC_MAX * min(distances): raise","if False: raise"),
'camera: the frame-bottom coverage check is removed':("if bottom < view['plane_h'] - 1e-6: raise","if False: raise"),
'camera: the 16:9 rest coverage check is removed':("if min(scales) < REST_SCALE_MIN: raise","if False: raise"),
'camera: the preset camera_r_m is ignored':("r_m=float(p.get('camera_r_m', CAMERA_R_M))","r_m=float(CAMERA_R_M)"),
'camera: the manifest writes the default heading range, not the bake\'s':("heading_max_deg=meta['camera']['heading_max_deg']),","heading_max_deg=HEADING_MAX_DEG),"),
line=('KILLED 'ifr.returncodeelse'SURVIVED ')+name+' -> '+(', '.join(fails)or'no fixture failed');print(line,file=sys.stderr,flush=True)# progress: a killed run keeps what finished