chore: final state before the move to gart/gart-databases

Commits the work done since 2026-10-01 that was still local: the four-step
label and flag passes, the triage and recheck files, the v1 exports of
2026-10-06 and 2026-10-07, the split dossiers, and the Lopp PR 234 batch
(scripts, agent prompts, reader and checker files, the flag re-read of
2026-10-17, the review workbook and the import set of the 57 cases added
to stats2 as 506 to 562). Raw HTML and node_modules stay out (.gitignore).

The stats2 material in use was copied to gart/gart-databases (stats2/) on
2026-10-17; README-START-HERE.md now says so. This repo is closed.
This commit is contained in:
StellarCrow
2026-10-17 10:47:37 +02:00
parent 0f7a691151
commit 41766c68a2
3196 changed files with 374809 additions and 485 deletions
+4 -1
View File
@@ -5,10 +5,13 @@ import json, glob, re, collections, datetime
BASE='batches/'
cases=[]
for f in sorted(glob.glob(BASE+'batch-[0-9]*.json')):
n=int(re.search(r'batch-(\d+)',f).group(1))
m=re.search(r'batch-(\d+)\.json$',f)
if not m: continue # part files (batch-35a.json, batch-35b.json) repeat their parent batch
n=int(m.group(1))
for c in json.load(open(f,encoding='utf-8')):
c['_batch']=n; cases.append(c)
byid={c['id']:c for c in cases}
cases=list(byid.values()) # a case rewritten in a later batch counts once, in its latest version
seqs=json.load(open('scenario-sequences.json',encoding='utf-8'))
db=json.load(open('../attacks-export-Gart-website.json',encoding='utf-8'))
recs=db if isinstance(db,list) else db.get('data',db)