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) <noreply@anthropic.com>
This commit is contained in:
johba 2026-03-22 06:02:20 +00:00
parent e2963cbcba
commit abac7f7ed7

View file

@ -834,7 +834,7 @@ for fname in sorted(os.listdir(output_dir)):
f'candidate_{int(cand_str):03d}.push3' f'candidate_{int(cand_str):03d}.push3'
) )
if os.path.exists(push3_path): 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)) qualifying.append((fitness, push3_path, gen_idx, cand_str, flags))
except (json.JSONDecodeError, ValueError, TypeError, AttributeError): except (json.JSONDecodeError, ValueError, TypeError, AttributeError):
pass pass