fix: CID format change silently drops historical generation JSONL on re-admission (#757)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a9431c87ee
commit
6694b2daa8
2 changed files with 5 additions and 1 deletions
|
|
@ -812,8 +812,11 @@ for fname in sorted(os.listdir(output_dir)):
|
|||
fitness = int(d.get('fitness', 0))
|
||||
if fitness < threshold:
|
||||
continue
|
||||
# cid format: "candidate_XXX" (gen_idx derived from enclosing filename)
|
||||
# Canonical CID format is "candidate_XXX" (zero-padded numeric suffix,
|
||||
# e.g. "candidate_001"); gen_idx is derived from the enclosing filename.
|
||||
# Old runs 1–6 used "gen{N}_c{MMM}" — see manifest.jsonl schema (#720).
|
||||
if not cid.startswith('candidate_'):
|
||||
print(f'WARNING: skipping unrecognised CID format {cid!r} in {fname}')
|
||||
continue
|
||||
cand_str = cid[len('candidate_'):] # numeric suffix, e.g. "001"
|
||||
push3_path = os.path.join(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue