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
1
STATE.md
1
STATE.md
|
|
@ -40,3 +40,4 @@
|
||||||
- [2026-03-15] No generic flag dispatch: only `token_value_inflation` is ever zero-rated (#723)
|
- [2026-03-15] No generic flag dispatch: only `token_value_inflation` is ever zero-rated (#723)
|
||||||
- [2026-03-15] `llm`-origin entries in manifest have null fitness and no evaluation path (#724): evaluate-seeds.sh scores null-fitness seeds and writes results back to manifest.jsonl
|
- [2026-03-15] `llm`-origin entries in manifest have null fitness and no evaluation path (#724): evaluate-seeds.sh scores null-fitness seeds and writes results back to manifest.jsonl
|
||||||
- [2026-03-15] manifest.jsonl schema has no canonical machine-readable definition (#720)
|
- [2026-03-15] manifest.jsonl schema has no canonical machine-readable definition (#720)
|
||||||
|
- [2026-03-15] CID format change silently drops historical generation JSONL on re-admission (#757): warn on unrecognised CID format instead of silently skipping
|
||||||
|
|
|
||||||
|
|
@ -812,8 +812,11 @@ for fname in sorted(os.listdir(output_dir)):
|
||||||
fitness = int(d.get('fitness', 0))
|
fitness = int(d.get('fitness', 0))
|
||||||
if fitness < threshold:
|
if fitness < threshold:
|
||||||
continue
|
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_'):
|
if not cid.startswith('candidate_'):
|
||||||
|
print(f'WARNING: skipping unrecognised CID format {cid!r} in {fname}')
|
||||||
continue
|
continue
|
||||||
cand_str = cid[len('candidate_'):] # numeric suffix, e.g. "001"
|
cand_str = cid[len('candidate_'):] # numeric suffix, e.g. "001"
|
||||||
push3_path = os.path.join(
|
push3_path = os.path.join(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue