{
  "method":"boundary/core exchange with COBYLA contact repair; family departures permitted",
  "seed":23007,
  "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":"7fbff0f1f22ea7936d1b35fafb2334b9608d0b01e40029b67e00848e7d88c8aa",
  "mec":{"x":-0.0001819080616875258,"y":0.00013448997007248039,"radius":2.948526950912552},
  "max_pair_area":9.997822348073144e-7,
  "inherited_baseline":true,
  "best_new_score":null,
  "best_fresh_score":null,
  "strict_radius":null,
  "structure":{"full_disks":0,"sliding_seams":"No coincident opposite-facing pair was imposed. The 15 individual semicircles use irregular, interlocking flat-edge seams; many contacts intentionally use nearly all of the permitted overlap area.","flats":"mixed orientations; neither all boundary-facing nor all centre-facing","symmetry":"none enforced","family_departures":"The retained result is the supplied published baseline, not a concentric 3+12 or 4+11 ring."},
  "scorer_check":{"implementation":"independent rule-matching 4096-vertex overlap polygons plus independently implemented Welzl MEC and analytic farthest-boundary refinement","rounding":"x, y, and theta rounded to six decimals before every retained score","cases":16,"pair_cases":200,"disagreements":0,"max_radius_diff":1.4033219031261979e-13},
  "runs":[{"seed":230071,"start_kind":"published baseline; boundary/core exchanges","minutes":0.33,"attempts":6,"valid_count":1,"best_radius":2.948526950912552,"score_kind":"official rounded 4096-polygon validation","errors":[]},{"seed":230072,"start_kind":"topo-r1/rings-312-411.structure.relaxed_candidate","minutes":0.33,"attempts":7,"valid_count":1,"best_radius":2.95352958,"score_kind":"official rounded 4096-polygon validation","errors":[]},{"seed":230073,"start_kind":"fresh randomized 3+12","minutes":0.27,"attempts":8,"valid_count":0,"best_radius":null,"score_kind":"official rounded 4096-polygon validation","errors":["No feasible packing was repaired in this short run."]},{"seed":230074,"start_kind":"fresh randomized 4+11","minutes":0.27,"attempts":10,"valid_count":0,"best_radius":null,"score_kind":"official rounded 4096-polygon validation","errors":["No feasible packing was repaired in this short run."]},{"seed":230075,"start_kind":"published baseline; relaxed low-resolution contact screen","minutes":0.38,"attempts":7,"valid_count":1,"best_radius":2.948526950912552,"score_kind":"official rounded 4096-polygon validation","errors":[]}],
  "repo_commit":"78a78626f098cd236f3a09bb2cb242f72951599d",
  "source_urls":["https://www.paradigm.xyz/puzzles/packing/about","https://github.com/benedictbrady/shape-packing-challenge"],
  "commands":["git clone https://github.com/benedictbrady/shape-packing-challenge test/scratch/official","git -C test/scratch/official checkout --detach 78a78626f098cd236f3a09bb2cb242f72951599d","TMPDIR=../tmp ../uv-bin/uv sync","TMPDIR=../tmp ../uv-bin/uv run python run.py","TMPDIR=../tmp ../uv-bin/uv run python exchange_search.py baseline 230071 20","TMPDIR=../tmp ../uv-bin/uv run python exchange_search.py relaxed 230072 20","TMPDIR=../tmp ../uv-bin/uv run python exchange_search.py 312 230073 16","TMPDIR=../tmp ../uv-bin/uv run python exchange_search.py 411 230074 16","TMPDIR=../tmp ../uv-bin/uv run python check_scorers.py","TMPDIR=../tmp ../uv-bin/uv run python run.py baseline.json --save-plot final-fallback.png"],
  "reproducible_source":"# own_scorer.py\nimport math,random,numpy as np\nfrom shapely.geometry import Polygon\nN=4096;TOL=1e-6\ndef poly(s,n=N):\n x,y,t=s;a=np.linspace(t-math.pi/2,t+math.pi/2,n);return Polygon(np.c_[x+np.cos(a),y+np.sin(a)])\ndef overlap(a,b):return math.dist(a[:2],b[:2])<=2 and poly(a).intersection(poly(b)).area>TOL\ndef far(s,c):\n x,y,t=s;q=math.atan2(y-c[1],x-c[0]);d=math.atan2(math.sin(q-t),math.cos(q-t));p=[(x+math.cos(t-math.pi/2),y+math.sin(t-math.pi/2)),(x+math.cos(t+math.pi/2),y+math.sin(t+math.pi/2))];return max(p+([(x+math.cos(q),y+math.sin(q))] if -math.pi/2<=d<=math.pi/2 else []),key=lambda z:math.dist(z,c[:2]))\ndef c2(a,b):return((a[0]+b[0])/2,(a[1]+b[1])/2,math.dist(a,b)/2)\ndef c3(a,b,c):\n d=2*(a[0]*(b[1]-c[1])+b[0]*(c[1]-a[1])+c[0]*(a[1]-b[1]))\n if abs(d)<1e-14:return max((c2(a,b),c2(a,c),c2(b,c)),key=lambda z:z[2])\n A=a[0]*a[0]+a[1]*a[1];B=b[0]*b[0]+b[1]*b[1];C=c[0]*c[0]+c[1]*c[1];x=(A*(b[1]-c[1])+B*(c[1]-a[1])+C*(a[1]-b[1]))/d;y=(A*(c[0]-b[0])+B*(a[0]-c[0])+C*(b[0]-a[0]))/d;return x,y,math.dist((x,y),a)\ndef mec(p):\n p=list(p);random.Random(42).shuffle(p);c=(0,0,0)\n for i,a in enumerate(p):\n  if math.dist(c[:2],a)>c[2]+1e-10:\n   c=(a[0],a[1],0)\n   for j,b in enumerate(p[:i]):\n    if math.dist(c[:2],b)>c[2]+1e-10:\n     c=c2(a,b)\n     for z in p[:j]:\n      if math.dist(c[:2],z)>c[2]+1e-10:c=c3(a,b,z)\n return c\n# exchange_search.py (core)\n# q is 15x3; x=[q.flatten(),cx,cy,R]. COBYLA minimizes R.\ndef constraints(x):\n q=x[:45].reshape(15,3);cx,cy,R=x[45:];ps=[poly(s,80) for s in q];z=[]\n for i in range(15):\n  z+=[R-math.dist(far(q[i],(cx,cy)),(cx,cy))]+[1e-6-ps[i].intersection(ps[j]).area for j in range(i)]\n return np.array(z)\n# Per seeded attempt, move 2..5 positions: outer indices radially inward, core indices outward, perturb theta, lower R, then scipy.optimize.minimize(R,method='COBYLA',constraints=constraints,options={'maxiter':90}). Round all values to 6dp and call the pinned official validate_and_score before retaining it.",
  "notes":"The mandated sample check returned 3.500000. Clean pinned-clone final validation returned VALID and 2.948526950912552 (2.94852695 to eight decimals); a plot was rendered locally from that same invocation. No searched candidate beat the inherited published packing, so this is a verified tie, not a new record. The search results are intentionally separated from the inherited fallback. The primary limitation is that the contact network is already saturated at the official 1e-6 tolerance: the highest measured intersection was 9.997822348073144e-7."
}
