From abac7f7ed77896c2467f75ef71b75b7c5d1b2d77 Mon Sep 17 00:00:00 2001 From: johba Date: Sun, 22 Mar 2026 06:02:20 +0000 Subject: [PATCH] fix: use None instead of '' for absent fitness_flags to match schema Review feedback: d.get('fitness_flags') without a default preserves the null vs absent distinction mandated by the manifest schema (string | null). Co-Authored-By: Claude Opus 4.6 (1M context) --- tools/push3-evolution/evolve.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/push3-evolution/evolve.sh b/tools/push3-evolution/evolve.sh index db0067c..8833080 100755 --- a/tools/push3-evolution/evolve.sh +++ b/tools/push3-evolution/evolve.sh @@ -834,7 +834,7 @@ for fname in sorted(os.listdir(output_dir)): f'candidate_{int(cand_str):03d}.push3' ) if os.path.exists(push3_path): - flags = d.get('fitness_flags', '') + flags = d.get('fitness_flags') qualifying.append((fitness, push3_path, gen_idx, cand_str, flags)) except (json.JSONDecodeError, ValueError, TypeError, AttributeError): pass