{"method": "Sliding-seam continuation hill-climb: per move 1-3 semicircles slide along own flat seam / pull toward MEC centre / jitter (steps 1e-3..3e-5), rounded to 6 dp, accepted if official semicircles_overlap passes for moved pieces and official compute_mec radius does not increase; improvements re-checked with full validate_and_score.", "seed": {"master": 23006, "derived": "random.Random(23006).randrange(2**31) x4", "baseline": 1245360372, "pairs55": 89965868, "fresh1": 1908192428, "fresh2": 1996416300}, "official_valid": true, "official_score": "2.94852695", "official_score_full": "2.948526950912552", "solution": [{"x": 0.545425, "y": 0.67215, "theta": -0.570778}, {"x": 1.135484, "y": -1.23874, "theta": 2.227365}, {"x": -0.584124, "y": -0.217653, "theta": -1.671787}, {"x": 1.843118, "y": 0.631801, "theta": -0.722762}, {"x": 0.278186, "y": 1.928675, "theta": 2.264578}, {"x": -0.723715, "y": 1.809349, "theta": 3.126118}, {"x": -1.624637, "y": 1.076193, "theta": -2.992325}, {"x": -0.56981, "y": 0.785952, "theta": -1.682231}, {"x": 0.032918, "y": 1.724683, "theta": -0.877015}, {"x": 1.261991, "y": 1.484613, "theta": 0.453135}, {"x": -1.944933, "y": -0.121111, "theta": -2.464295}, {"x": -1.573106, "y": -1.149938, "theta": -1.641622}, {"x": 1.049635, "y": -2.567295, "theta": 1.95895}, {"x": -0.789401, "y": -1.781407, "theta": -0.792106}, {"x": 1.811166, "y": -0.718041, "theta": -0.914204}], "solution_json": "[{\"x\": 0.545425, \"y\": 0.67215, \"theta\": -0.570778}, {\"x\": 1.135484, \"y\": -1.23874, \"theta\": 2.227365}, {\"x\": -0.584124, \"y\": -0.217653, \"theta\": -1.671787}, {\"x\": 1.843118, \"y\": 0.631801, \"theta\": -0.722762}, {\"x\": 0.278186, \"y\": 1.928675, \"theta\": 2.264578}, {\"x\": -0.723715, \"y\": 1.809349, \"theta\": 3.126118}, {\"x\": -1.624637, \"y\": 1.076193, \"theta\": -2.992325}, {\"x\": -0.56981, \"y\": 0.785952, \"theta\": -1.682231}, {\"x\": 0.032918, \"y\": 1.724683, \"theta\": -0.877015}, {\"x\": 1.261991, \"y\": 1.484613, \"theta\": 0.453135}, {\"x\": -1.944933, \"y\": -0.121111, \"theta\": -2.464295}, {\"x\": -1.573106, \"y\": -1.149938, \"theta\": -1.641622}, {\"x\": 1.049635, \"y\": -2.567295, \"theta\": 1.95895}, {\"x\": -0.789401, \"y\": -1.781407, \"theta\": -0.792106}, {\"x\": 1.811166, \"y\": -0.718041, \"theta\": -0.914204}]", "solution_sha256": "6e094dde35234309ceeea918c22eca0facc0ca99a9e2691266afe697d0fdbfb9", "mec": [-0.0001819080616875258, 0.00013448997007248039, 2.948526950912552], "max_pair_area": 9.997822348073146e-07, "inherited_baseline": {"source": "published seed handed in brief", "official_score": "2.94852695", "note": "Reproduces published packing; not a new record"}, "best_new_score": null, "best_fresh_score": "6.45338247", "strict_radius": null, "structure": "Not analysed in depth in this item. Baseline is asymmetric (no rotational/mirror symmetry visible in coordinates); pairs-5-5 family from topo-r1 stayed at 2.95475629 (no seam freed gave a strict decrease). Fresh starts never left the loose spread-out family (radius >6.4) within 7 min: family departure not reached.", "scorer_check": "Official clone 78a78626 via uv; sample run.py printed a valid report; baseline official score 2.94852695; pairs-5-5 2.95475629 reproduced exactly.", "runs": [{"seed": 1245360372, "start_kind": "baseline (inherited published seed)", "minutes": 7.0, "attempts": 2866, "valid_count": 0, "best_radius": "2.94852695", "score_kind": "official validate_and_score on 6-decimal rounded coords", "errors": []}, {"seed": 89965868, "start_kind": "topo-r1/pairs-5-5 handed", "minutes": 7.0, "attempts": 2677, "valid_count": 0, "best_radius": "2.95475629", "score_kind": "official validate_and_score on 6-decimal rounded coords", "errors": []}, {"seed": 1908192428, "start_kind": "fresh five-pair", "minutes": 7.0, "attempts": 601, "valid_count": 109, "best_radius": "6.45338247", "score_kind": "official validate_and_score on 6-decimal rounded coords", "errors": []}, {"seed": 1996416300, "start_kind": "fresh five-pair", "minutes": 7.0, "attempts": 1256, "valid_count": 253, "best_radius": "7.29997154", "score_kind": "official validate_and_score on 6-decimal rounded coords", "errors": []}], "repo_commit": "78a78626f098cd236f3a09bb2cb242f72951599d", "source_urls": ["https://github.com/benedictbrady/shape-packing-challenge", "https://www.paradigm.xyz/puzzles/packing/about"], "commands": ["uv sync", "uv run python run.py", "uv run python slide.py <start.json> <seed> 420 <out.json> <kind>", "python3 fresh.py <seed> <out.json>"], "source_code": "import json,sys,time,math,random\nimport numpy as np\nfrom semicircle_packing.geometry import Semicircle, semicircles_overlap\nfrom semicircle_packing.scoring import validate_and_score, compute_mec\ndef r6(s): return [[round(a,6) for a in r] for r in s]\ndef S(s): return [Semicircle(x=a,y=b,theta=t) for a,b,t in s]\ndef ok_moved(s,idx):\n    sc=S(s)\n    for i in idx:\n        for j in range(15):\n            if j!=i and (j not in idx or j>i) and semicircles_overlap(sc[i],sc[j]): return False\n    return True\ndef run(start,seed,secs,out,kind):\n    rng=random.Random(seed); s=r6(start); best=s\n    res=validate_and_score(S(s)); assert res.valid,res.errors\n    bs=res.score; cur=bs; att=0; val=0; t0=time.time(); lastck=t0\n    while time.time()-t0<secs:\n        att+=1; n=s[:]; sc=S(n)\n        cx,cy,cr=compute_mec(sc)\n        k=rng.choice([1,1,2,3]); idx=rng.sample(range(15),k)\n        step=rng.choice([1e-3,3e-4,1e-4,3e-5])\n        for i in idx:\n            x,y,t=n[i]; mode=rng.random()\n            if mode<0.4: # slide along own flat seam\n                d=rng.gauss(0,step); x+=-math.sin(t)*d; y+=math.cos(t)*d\n            elif mode<0.7: # pull toward centre\n                d=abs(rng.gauss(0,step)); r=math.hypot(x-cx,y-cy)+1e-9; x-=(x-cx)/r*d; y-=(y-cy)/r*d\n                x+=rng.gauss(0,step/3); y+=rng.gauss(0,step/3)\n            else:\n                x+=rng.gauss(0,step); y+=rng.gauss(0,step); t+=rng.gauss(0,step)\n            n[i]=[x,y,t]\n        n=r6(n)\n        if not ok_moved(n,idx): continue\n        R=compute_mec(S(n))[2]\n        if R<=cur+1e-12:\n            s=n; cur=R\n            if R<bs-1e-9:\n                v=validate_and_score(S(n))\n                if v.valid: val+=1; bs=v.score; best=n\n        if time.time()-lastck>60:\n            json.dump(dict(best=best,score=bs),open(out,'w')); lastck=time.time()\n    json.dump(dict(best=best,score=bs,seed=seed,attempts=att,valid_improvements=val,kind=kind,minutes=secs/60),open(out,'w'))\n    print(kind,seed,att,val,\"%.8f\"%bs)\nif __name__==\"__main__\":\n    src,seed,secs,out,kind=sys.argv[1],int(sys.argv[2]),float(sys.argv[3]),sys.argv[4],sys.argv[5]\n    d=json.load(open(src)); st=[[o['x'],o['y'],o['theta']] for o in d] if isinstance(d[0],dict) else d\n    run(st,seed,secs,out,kind)\n\n# fresh.py\nimport json,sys,random,math\nr=random.Random(int(sys.argv[1])); out=[]\npts=[(i*2.3-4.6,j*2.3-4.6) for i in range(5) for j in range(5)]; r.shuffle(pts)\nfor k in range(5):  # 5 pairs = full disks\n    x,y=pts[k]; t=r.uniform(-math.pi,math.pi); out+= [dict(x=x,y=y,theta=t),dict(x=x,y=y,theta=t+math.pi)]\nfor k in range(5,10):\n    x,y=pts[k]; out.append(dict(x=x,y=y,theta=r.uniform(-math.pi,math.pi)))\njson.dump(out,open(sys.argv[2],'w'))\n", "notes": "No improvement: baseline and pairs-5-5 are local optima under small sliding moves at 6-dp resolution (0 accepted strict decreases in ~2800 attempts each). Fresh five-pair starts with this greedy monotone climber are far too slow (needs penalty/compression stage). Returned solution is the inherited published fallback 2.94852695, a tie at best, not below 2.94853 record value as a new result. Plot generated locally (not delivered: only result/sources files permitted). Sample-score expected 3.5 not separately recorded in this result."}