diff --git a/docs/claude/greif-version-inventory-2026-11-17/README.md b/docs/claude/greif-version-inventory-2026-11-17/README.md new file mode 100644 index 000000000..7fcd399d9 --- /dev/null +++ b/docs/claude/greif-version-inventory-2026-11-17/README.md @@ -0,0 +1,7 @@ +# Greif dataset version inventory (Claude, 2026-11-17, read-only) +Method: cd.py reads only each Zenodo data.zip's end-of-central-directory and central directory via HTTP Range (a few MB per version; no member data downloaded). Records: v2 10523313, v3 10854393, v4 11370149, v5 18598121. +Result (part key = <8-digit id>__step_; source = the hash): +- v2: 723 parts / 291 sources; v3: 630 / 251; v4: 629 / 251; v5: 624 / 249. +- v2 has 94 parts not in v4 or v5; 42 of them come from 40 source keys that appear nowhere in v4 or v5 (list: v2-only-parts.txt, flag NEW_SOURCE). +- v3 adds 1 part, from a known source. +Caveats: a new source key is a leak-prevention key, not a verified independent CAD family. Why these parts were dropped after v2 is unknown (possibly simulation or quality problems), and v2's simulation settings and fields may differ from v4/v5. Using these as a fresh hold-out needs a read-only check of their LOG/YML settings and data validity first. diff --git a/docs/claude/greif-version-inventory-2026-11-17/cd.py b/docs/claude/greif-version-inventory-2026-11-17/cd.py new file mode 100644 index 000000000..9229656f1 --- /dev/null +++ b/docs/claude/greif-version-inventory-2026-11-17/cd.py @@ -0,0 +1,17 @@ +import sys,struct,urllib.request +url,size=sys.argv[1],int(sys.argv[2]) +def rng(a,b): + r=urllib.request.Request(url,headers={'Range':f'bytes={a}-{b}'}) + return urllib.request.urlopen(r,timeout=60).read() +tail=rng(size-200000,size-1) +i=tail.rfind(b'PK\x06\x06') # zip64 eocd +if i>=0: + cd_size,cd_off=struct.unpack('