{"method":"Basin hopping: amplitudes 0.05, 0.15, 0.4; position swaps every 7 and orientation swaps every 11 attempts; fixed-R L-BFGS-B feasibility then exact-support SLSQP shrink. Separate feasible incumbent and occasional infeasible walker. Contact-specific area allowances and six-decimal official checks.","seed":23005,"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":"[\n  {\"x\": 0.545425, \"y\": 0.672150, \"theta\": -0.570778},\n  {\"x\": 1.135484, \"y\": -1.238740, \"theta\": 2.227365},\n  {\"x\": -0.584124, \"y\": -0.217653, \"theta\": -1.671787},\n  {\"x\": 1.843118, \"y\": 0.631801, \"theta\": -0.722762},\n  {\"x\": 0.278186, \"y\": 1.928675, \"theta\": 2.264578},\n  {\"x\": -0.723715, \"y\": 1.809349, \"theta\": 3.126118},\n  {\"x\": -1.624637, \"y\": 1.076193, \"theta\": -2.992325},\n  {\"x\": -0.569810, \"y\": 0.785952, \"theta\": -1.682231},\n  {\"x\": 0.032918, \"y\": 1.724683, \"theta\": -0.877015},\n  {\"x\": 1.261991, \"y\": 1.484613, \"theta\": 0.453135},\n  {\"x\": -1.944933, \"y\": -0.121111, \"theta\": -2.464295},\n  {\"x\": -1.573106, \"y\": -1.149938, \"theta\": -1.641622},\n  {\"x\": 1.049635, \"y\": -2.567295, \"theta\": 1.958950},\n  {\"x\": -0.789401, \"y\": -1.781407, \"theta\": -0.792106},\n  {\"x\": 1.811166, \"y\": -0.718041, \"theta\": -0.914204}\n]\n","solution_sha256":"5dffe6db0b5f323e0fb487a3ba7330151e78ec29592a668a33f711fe6bee7019","mec":{"x":-0.0001819080616875258,"y":0.00013448997007248039,"radius":2.948526950912552},"max_pair_area":9.997822348073144e-07,"selected_origin":"inherited_baseline","inherited_baseline":{"official_valid":true,"official_score":"2.94852695","official_score_full":2.948526950912552,"maximum_polygon_pair_area":9.997822348073144e-07,"published_packing_provided_by_requester":true,"solution":"See top-level solution; returned unchanged."},"best_new_score":2.9485285423028933,"best_new_solution":[{"x":0.544862,"y":0.672689,"theta":-0.569626},{"x":1.137151,"y":-1.237511,"theta":2.228565},{"x":-1.571546,"y":-1.151958,"theta":-1.640462},{"x":1.842542,"y":0.633878,"theta":-0.721523},{"x":0.276147,"y":1.928861,"theta":2.265949},{"x":-0.725614,"y":1.808382,"theta":3.127285},{"x":-1.625718,"y":1.074152,"theta":-2.991226},{"x":-0.570576,"y":0.785093,"theta":-1.681356},{"x":0.030988,"y":1.72439,"theta":-0.875644},{"x":1.260384,"y":1.485999,"theta":0.454496},{"x":-1.944607,"y":-0.12356,"theta":-2.463147},{"x":-0.583701,"y":-0.218522,"theta":-1.670524},{"x":1.052896,"y":-2.56617,"theta":1.960149},{"x":-0.787082,"y":-1.782489,"theta":-0.79093},{"x":1.812209,"y":-0.716004,"theta":-0.913027}],"best_new_origin":"baseline-r4","best_fresh_score":2.954218129951988,"best_fresh_solution":[{"x":0.581074,"y":-0.045086,"theta":-5.306156},{"x":-1.749544,"y":-0.870668,"theta":2.977815},{"x":0.07457,"y":-0.909613,"theta":-0.265724},{"x":-0.880475,"y":-1.744629,"theta":-2.878746},{"x":-0.660484,"y":-0.413433,"theta":2.143101},{"x":1.408713,"y":1.354436,"theta":1.986781},{"x":1.860464,"y":-0.598031,"theta":0.362737},{"x":0.198015,"y":-1.94416,"theta":-1.167302},{"x":-0.577897,"y":1.58478,"theta":-1.137015},{"x":1.895302,"y":0.476232,"theta":1.162872},{"x":1.160662,"y":-1.572206,"theta":0.118762},{"x":0.197968,"y":1.944165,"theta":-4.278607},{"x":0.002047,"y":-1.176086,"theta":2.875868},{"x":-1.949909,"y":0.1297,"theta":1.968292},{"x":-1.793892,"y":2.123524,"theta":-0.869346}],"strict_radius":2.9486866568392642,"strict_witness":{"minutes":0.02772433733722816,"official_valid":true,"radius":2.9486866568392642,"min_signed_gap":2.2617132189872713e-06,"max_exact_pair_area":0.0,"solution":[{"x":0.545714,"y":0.672044,"theta":-0.570945},{"x":1.135777,"y":-1.238935,"theta":2.227385},{"x":-0.583951,"y":-0.217882,"theta":-1.671922},{"x":1.843465,"y":0.631677,"theta":-0.722746},{"x":0.278341,"y":1.928705,"theta":2.265322},{"x":-0.723678,"y":1.809328,"theta":3.125755},{"x":-1.624636,"y":1.076074,"theta":-2.992295},{"x":-0.569724,"y":0.785812,"theta":-1.682398},{"x":0.033202,"y":1.724507,"theta":-0.87627},{"x":1.262312,"y":1.48457,"theta":0.453165},{"x":-1.944906,"y":-0.121326,"theta":-2.464256},{"x":-1.573008,"y":-1.150228,"theta":-1.641625},{"x":1.050013,"y":-2.567533,"theta":1.959001},{"x":-0.789157,"y":-1.781743,"theta":-0.792688},{"x":1.811519,"y":-0.718176,"theta":-0.914208}]},"structure":{"indexing":"zero-based; labels match solution array","full_disks":0,"sliding_seams":[{"indices":[8,4],"centre_distance":0.31901273938198765,"opposite_angle_error_radians":3.464102071859543e-07,"normal_offset":4.730659698137796e-07},{"indices":[14,1],"centre_distance":0.8530378735583785,"opposite_angle_error_radians":2.365358979350418e-05,"normal_offset":1.6987247092370428e-05}],"outer_arc_contacts":[3,4,5,6,9,10,11,13,14],"outer_flat_endpoint_contacts":[12],"symmetry":"No symmetry imposed or observed. The uniquely farthest disk centre rules out nontrivial rotations. Reflection through that radial axis fails: the best centre assignment has maximum error 1.1645880783 for the inherited packing.","flats":"Two approximate back-to-back sliding seams, between 4/8 and 1/14. The other flats cut irregular internal gaps; piece 12 faces inward with its diameter endpoints on the enclosure.","explanation":"The inherited packing is 0.000003049087448 below the displayed 2.94853 threshold, but is the supplied published packing, not a new record. No newly searched packing improved its official radius.","plot_svg":"<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"360pt\" height=\"360pt\" viewBox=\"0 0 360 360\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"><defs><style type=\"text/css\">*{stroke-linejoin: round; stroke-linecap: butt}</style></defs><g id=\"figure_1\"><g id=\"patch_1\"><path d=\"M 0 360 \nL 360 360 \nL 360 0 \nL 0 0 \nz\n\" style=\"fill: #ffffff\"/></g><g id=\"axes_1\"><g id=\"patch_2\"><path d=\"M 178.497223 200.267818 \nC 190.960926 208.270347 206.109281 210.996832 220.581093 207.842305 \nC 235.052905 204.687779 247.692325 195.90419 255.694854 183.440487 \nC 263.697384 170.976784 266.423868 155.828429 263.269342 141.356617 \nC 260.114815 126.884805 251.331227 114.245385 238.867523 106.242856 \nL 208.682373 153.255337 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #8dd3c7; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_3\"><path d=\"M 285.90138 225.91194 \nC 276.860324 214.179776 263.514763 206.511506 248.825878 204.608605 \nC 234.136993 202.705704 219.27797 206.720155 207.545806 215.761212 \nC 195.813642 224.802268 188.145372 238.147829 186.242471 252.836714 \nC 184.33957 267.525599 188.354021 282.384622 197.395078 294.116786 \nL 241.648229 260.014363 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #8dd3c7; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_4\"><path d=\"M 89.991807 197.334878 \nC 88.498512 212.071039 92.925012 226.812561 102.289132 238.288519 \nC 111.653253 249.764478 125.207091 257.0583 139.943252 258.551595 \nC 154.679413 260.04489 169.420935 255.61839 180.896894 246.25427 \nC 192.372852 236.890149 199.666674 223.336311 201.159969 208.60015 \nL 145.575888 202.967514 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #ffffb3; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_5\"><path d=\"M 244.227988 197.410118 \nC 255.336439 207.207398 269.897385 212.195908 284.679969 211.268771 \nC 299.462553 210.341634 313.286105 203.572899 323.083386 192.464449 \nC 332.880666 181.355999 337.869176 166.795053 336.942039 152.012469 \nC 336.014902 137.229885 329.246167 123.406332 318.137717 113.609052 \nL 281.182853 155.509585 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #bebada; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_6\"><path d=\"M 236.705819 47.329636 \nC 227.234534 35.941962 213.612918 28.775514 198.863407 27.420422 \nC 184.113895 26.06533 169.414515 30.629824 158.02684 40.101109 \nC 146.639165 49.572394 139.472718 63.194009 138.117626 77.943521 \nC 136.762534 92.693033 141.327027 107.392413 150.798312 118.780088 \nL 193.752066 83.054862 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #fb8072; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_7\"><path d=\"M 138.641629 33.8594 \nC 123.831773 33.630204 109.522196 39.299629 98.88798 49.609713 \nC 88.253764 59.919797 82.144254 74.047085 81.915058 88.856941 \nC 81.685863 103.666797 87.355287 117.976374 97.665371 128.61059 \nC 107.975455 139.244806 122.102743 145.354316 136.912599 145.583512 \nL 137.777114 89.721456 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #80b1d3; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_8\"><path d=\"M 79.13527 75.434463 \nC 64.488342 77.637159 51.302282 85.576567 42.502881 97.491051 \nC 33.703481 109.405535 29.993538 124.343496 32.196234 138.990424 \nC 34.39893 153.637352 42.338338 166.823412 54.252822 175.622813 \nC 66.167306 184.422214 81.105267 188.132156 95.752196 185.92946 \nL 87.443733 130.681961 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #80b1d3; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_9\"><path d=\"M 90.85337 140.684523 \nC 89.206255 155.404285 93.478555 170.191233 102.722312 181.764362 \nC 111.966069 193.337492 125.442993 200.77247 140.162755 202.419585 \nC 154.882517 204.066701 169.669464 199.7944 181.242594 190.550643 \nC 192.815724 181.306886 200.250702 167.829962 201.897817 153.1102 \nL 146.375593 146.897362 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #fdb462; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_10\"><path d=\"M 137.095485 130.17685 \nC 146.566766 141.564528 160.188379 148.73098 174.93789 150.086077 \nC 189.687402 151.441174 204.386783 146.876686 215.774461 137.405405 \nC 227.162139 127.934124 234.328591 114.312511 235.683688 99.562999 \nC 237.038785 84.813488 232.474297 70.114106 223.003016 58.726428 \nL 180.04925 94.451639 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #b3de69; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_11\"><path d=\"M 273.174587 158.094468 \nC 286.491413 151.610139 296.697802 140.089028 301.529107 126.087497 \nC 306.360413 112.085967 305.430764 96.722304 298.946435 83.405478 \nC 292.462107 70.088652 280.940996 59.882263 266.939465 55.050958 \nC 252.937934 50.219652 237.574272 51.149301 224.257446 57.63363 \nL 248.716016 107.864049 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #fccde5; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_12\"><path d=\"M 34.536843 154.037047 \nC 22.994598 163.319339 15.604596 176.820978 14.006568 191.546149 \nC 12.408539 206.271321 16.730119 221.043942 26.012411 232.586187 \nC 35.294703 244.128432 48.796341 251.518435 63.521513 253.116463 \nC 78.246685 254.714491 93.019306 250.392912 104.561551 241.11062 \nL 69.549197 197.573833 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #d9d9d9; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_13\"><path d=\"M 34.594028 251.099473 \nC 33.545861 265.873968 38.414958 280.475279 48.120938 291.663591 \nC 57.826918 302.851903 71.594575 309.733617 86.369071 310.781784 \nC 101.143566 311.829951 115.744877 306.960854 126.933189 297.254874 \nC 138.121501 287.548893 145.003215 273.781236 146.051382 259.006741 \nL 90.322705 255.053107 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #d9d9d9; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_14\"><path d=\"M 288.564591 313.093856 \nC 282.958684 299.384072 272.124646 288.451094 258.46639 282.720787 \nC 244.808134 276.990481 229.41653 276.920519 215.706746 282.526426 \nC 201.996962 288.132333 191.063984 298.96637 185.333677 312.624626 \nC 179.60337 326.282882 179.533409 341.674487 185.139316 355.384271 \nL 236.851953 334.239064 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #bc80bd; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_15\"><path d=\"M 94.338048 329.571775 \nC 104.740963 340.115196 118.921268 346.100622 133.732564 346.199975 \nC 148.543861 346.299329 162.803186 340.504674 173.346607 330.101759 \nC 183.890029 319.698844 189.875455 305.518539 189.974808 290.707243 \nC 190.074161 275.895946 184.279507 261.636621 173.876592 251.0932 \nL 134.10732 290.332487 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #ccebc5; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_16\"><path d=\"M 235.14539 265.027033 \nC 244.186723 276.758984 257.532466 284.426938 272.221396 286.329491 \nC 286.910326 288.232044 301.769254 284.217242 313.501204 275.175908 \nC 325.233155 266.134574 332.901109 252.788832 334.803662 238.099902 \nC 336.706216 223.410972 332.691413 208.552044 323.650079 196.820093 \nL 279.397734 230.923563 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: #ffed6f; stroke: #444444; stroke-width: 0.75; stroke-linejoin: miter\"/></g><g id=\"patch_17\"><path d=\"M 178.2 355.5305 \nC 221.887039 355.5305 263.790652 338.173456 294.682054 307.282054 \nC 325.573456 276.390652 342.9305 234.487039 342.9305 190.8 \nC 342.9305 147.112961 325.573456 105.209348 294.682054 74.317946 \nC 263.790652 43.426544 221.887039 26.0695 178.2 26.0695 \nC 134.512961 26.0695 92.609348 43.426544 61.717946 74.317946 \nC 30.826544 105.209348 13.4695 147.112961 13.4695 190.8 \nC 13.4695 234.487039 30.826544 276.390652 61.717946 307.282054 \nC 92.609348 338.173456 134.512961 355.5305 178.2 355.5305 \nL 178.2 355.5305 \nz\n\" clip-path=\"url(#pf3fbbd519e)\" style=\"fill: none; stroke: #b82025; stroke-width: 1.4; stroke-linejoin: miter\"/></g><g id=\"text_1\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"229.83799\" y=\"168.916779\">0</text></g><g id=\"text_2\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"226.302139\" y=\"242.17857\">1</text></g><g id=\"text_3\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"143.041202\" y=\"230.058475\">2</text></g><g id=\"text_4\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"300.038092\" y=\"174.217399\">3</text></g><g id=\"text_5\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"177.675714\" y=\"65.803798\">4</text></g><g id=\"text_6\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"112.639189\" y=\"91.410549\">5</text></g><g id=\"text_7\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"62.582358\" y=\"136.498895\">6</text></g><g id=\"text_8\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"143.579816\" y=\"173.960487\">7</text></g><g id=\"text_9\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"196.125595\" y=\"115.858959\">8</text></g><g id=\"text_10\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"271.319705\" y=\"98.935817\">9</text></g><g id=\"text_11\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"49.957643\" y=\"215.407517\">10</text></g><g id=\"text_12\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"88.54357\" y=\"282.209136\">11</text></g><g id=\"text_13\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"227.33661\" y=\"313.046502\">12</text></g><g id=\"text_14\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"151.764999\" y=\"310.306785\">13</text></g><g id=\"text_15\"><text style=\"font-size: 8px; font-family: sans-serif; text-anchor: middle\" x=\"294.744296\" y=\"252.915243\">14</text></g><g id=\"text_16\"><text style=\"font-size: 10px; font-family: sans-serif; text-anchor: middle\" x=\"178.2\" y=\"15.6\">15 unit semicircles | official R = 2.94852695</text></g></g></g><defs><clipPath id=\"pf3fbbd519e\"><rect x=\"9\" y=\"21.6\" width=\"338.4\" height=\"338.4\"/></clipPath></defs></svg>\n"},"scorer_check":{"pair_cases":250,"pair_disagreements":0,"pair_disagreement_details":[],"max_abs_area_difference":1.8838154169920074e-07,"mec_cases":50,"max_radius_diff":8.046896482483135e-12,"baseline_exact_vs_polygon_threshold_disagreements":[{"pair":[3,1],"exact_area":1.0013726919055888e-06,"polygon_area":9.995940255022126e-07},{"pair":[8,7],"exact_area":1.0001613965516382e-06,"polygon_area":9.990352164717346e-07},{"pair":[9,3],"exact_area":1.000720521587839e-06,"polygon_area":9.995983747504644e-07},{"pair":[9,8],"exact_area":1.000816950297691e-06,"polygon_area":9.996957770875647e-07},{"pair":[11,2],"exact_area":1.0007704081341218e-06,"polygon_area":9.996466942501982e-07},{"pair":[13,1],"exact_area":1.0003480671490206e-06,"polygon_area":9.985677175080471e-07}],"rounded_before_all_checks":true,"jacobian_max_abs_error":1.0088159196897095e-09,"fast_polygon_full_packing_check":{"cases":50,"disagreements":0,"details":[],"official_valid_count":22,"seed":1233406738,"max_reflection_center_error_at_forced_axis":1.1645880783201916},"method":"Signed support separation; exact clipped circular-arc/diameter Green integrals; independent point MEC with analytic farthest-point upper bounds. Official 4096-point polygons decide validity.","initial_issue":"An initial nonsmooth SLSQP MEC routine stalled on a test case (maximum error 1.79584e-5); it was replaced by the bounded farthest-point refinement before the final comparison. All retained search scores were always official."},"runs":[{"seed":2647084326,"start_kind":"baseline","minutes":6.758160915567229,"attempts":473,"valid_count":424,"best_radius":2.948530709427873,"score_kind":"official after six-decimal rounding","errors":[],"label":"baseline-r1","temperature":0.006,"position_swaps":67,"orientation_swaps":42,"infeasible_walker_accepts":null,"amplitude_best_official":null,"exact_area_target":9.65e-07},{"seed":394843667,"start_kind":"baseline","minutes":3.700839622000543,"attempts":230,"valid_count":204,"best_radius":2.9485303639393297,"score_kind":"official after six-decimal rounding","errors":["Command ended with exit 143. Last checkpoint is at 3.70084 minutes; exact final elapsed time and attempts were not retained. The last validated incumbent was recovered. Command cap: 420 seconds."],"label":"baseline-r2","temperature":0.006,"position_swaps":32,"orientation_swaps":20,"infeasible_walker_accepts":null,"amplitude_best_official":null,"minutes_kind":"last completed checkpoint","exact_area_target":9.65e-07},{"seed":3862367326,"start_kind":"baseline","minutes":5.93041117786585,"attempts":341,"valid_count":309,"best_radius":2.9485303639393297,"score_kind":"official after six-decimal rounding","errors":[],"label":"baseline-r3","temperature":0.02,"position_swaps":48,"orientation_swaps":30,"infeasible_walker_accepts":0,"amplitude_best_official":{"0.05":2.9485303639393297,"0.15":2.9486808569238847,"0.4":2.9486806432922714},"exact_area_target":9.65e-07},{"seed":850545047,"start_kind":"baseline","minutes":3.004394143881897,"attempts":152,"valid_count":141,"best_radius":2.9485285423028933,"score_kind":"official after six-decimal rounding","errors":[],"label":"baseline-r4","temperature":0.012,"position_swaps":21,"orientation_swaps":13,"infeasible_walker_accepts":0,"amplitude_best_official":{"0.05":2.9486808330350867,"0.15":2.9485285423028933,"0.4":2.948680886731861},"exact_area_target":9.85e-07},{"seed":999470580,"start_kind":"fresh","minutes":4.753786246719149,"attempts":272,"valid_count":219,"best_radius":2.954218129951988,"score_kind":"official after six-decimal rounding","errors":[],"label":"fresh-r1","temperature":0.006,"position_swaps":38,"orientation_swaps":24,"infeasible_walker_accepts":null,"amplitude_best_official":null,"exact_area_target":9.65e-07},{"seed":3598436128,"start_kind":"fresh","minutes":4.7589833170486,"attempts":337,"valid_count":307,"best_radius":2.972087259844082,"score_kind":"official after six-decimal rounding","errors":[],"label":"fresh-r2","temperature":0.006,"position_swaps":48,"orientation_swaps":30,"infeasible_walker_accepts":null,"amplitude_best_official":null,"exact_area_target":9.65e-07},{"seed":684465942,"start_kind":"baseline: allowance/rounding repair pilot","minutes":null,"attempts":null,"valid_count":null,"best_radius":null,"score_kind":"official; no improvement retained","errors":["Final telemetry file was overwritten by the second repair pilot. Requested duration was 115 seconds; exact count and elapsed time were not preserved."]},{"seed":3400098842,"start_kind":"baseline: allowance/rounding repair","minutes":1.2667530900333077,"attempts":4700,"valid_count":0,"best_radius":null,"score_kind":"official after six-decimal rounding; excludes inherited incumbent","errors":[]}],"repo_commit":"78a78626f098cd236f3a09bb2cb242f72951599d","source_urls":["https://www.paradigm.xyz/puzzles/packing/about","https://github.com/benedictbrady/shape-packing-challenge","https://raw.githubusercontent.com/benedictbrady/shape-packing-challenge/78a78626f098cd236f3a09bb2cb242f72951599d/README.md","https://raw.githubusercontent.com/benedictbrady/shape-packing-challenge/78a78626f098cd236f3a09bb2cb242f72951599d/src/semicircle_packing/config.py","https://raw.githubusercontent.com/benedictbrady/shape-packing-challenge/78a78626f098cd236f3a09bb2cb242f72951599d/src/semicircle_packing/geometry.py","https://raw.githubusercontent.com/benedictbrady/shape-packing-challenge/78a78626f098cd236f3a09bb2cb242f72951599d/src/semicircle_packing/scoring.py"],"input_provenance":[{"item":"cma-es","sha256":"9b93e2ed4de5a95fd82268d4d16fbbcdd424365f3b491f82e9593ec4a630715e","reported_official_score":3.02081451,"reported_valid":true,"rescored_here":false,"reused_source":false},{"item":"diff-evolution","sha256":"5e21fa1cc1c5d03397d3a7174fab39a9b309ff256372c9a3f7bde116491cc0e3","reported_official_score":3.04084534,"reported_valid":true,"rescored_here":false,"reused_source":false},{"item":"flats-on-rim","sha256":"3c4e8ebc6358be8f9d5282d044a86f261a9aa266d934a45d1055244dce89d5d9","reported_official_score":3.00113305,"reported_valid":true,"rescored_here":false,"reused_source":false},{"item":"flats-to-centre","sha256":"48136c0ce3de775847e9552c7769cd159326d5fe66bae6e220314061514f1af1","reported_official_score":2.9632139,"reported_valid":true,"rescored_here":false,"reused_source":false},{"item":"no-pairs","sha256":"2faa94063d84c1d90ed0c9d02d971eab5bae4a5500494b4330c1a9bbae812f19","reported_official_score":"3.03051443","reported_valid":true,"rescored_here":false,"reused_source":false},{"item":"pairs-1-4","sha256":"a9e45b112408be2bd2c257bf0b325caa662e5d914703ad640079ef73b446b83b","reported_official_score":2.97438934,"reported_valid":true,"rescored_here":false,"reused_source":false},{"item":"pairs-5-5","sha256":"e5a5fe2cd0aa58f0b6d60d12a66e3a2976b628f1bdfcb42757ae89188f58ec61","reported_official_score":2.95475629,"reported_valid":true,"rescored_here":false,"reused_source":false},{"item":"pairs-6-3","sha256":"9fab734175cef0454e15d89586a396de552e9a6ec288e71755fce4b183c7f0cb","reported_official_score":2.97726863,"reported_valid":true,"rescored_here":false,"reused_source":false},{"item":"pairs-7-1","sha256":"d59f73e64c56ed584e964006e98ee46c03edc85995d04b5517e6af14194277e1","reported_official_score":"3.06352356","reported_valid":true,"rescored_here":false,"reused_source":false},{"item":"rings-159-267","sha256":"c0fd3edd0bbe4ff31859c5ae1e8b72ac69412fa2f0d76005ff746c2991eb8876","reported_official_score":"2.99381251","reported_valid":true,"rescored_here":false,"reused_source":false},{"item":"rings-312-411","sha256":"708b6b93a9c8c13123d15f70c8185ebcf6008bfc84058ad55aa4665b307df04a","reported_official_score":2.98539036,"reported_valid":true,"rescored_here":false,"reused_source":false},{"item":"symmetric","sha256":"7201832288052d238d03202edfdf759c63d18bb9789948c682530bca71086a81","reported_official_score":2.97035856,"reported_valid":true,"rescored_here":false,"reused_source":false}],"derived_seeds":[2647084326,999470580,3598436128,684465942,3400098842,394843667,1233406738,3862367326,850545047,322221239,4009411716,484594021],"reproducible_source":{"search.py":"import os\nos.environ['OPENBLAS_NUM_THREADS']='1'\nos.environ['OMP_NUM_THREADS']='1'\nimport json,math,time,sys,hashlib\nfrom pathlib import Path\nimport numpy as np\nfrom numba import njit\nfrom scipy.optimize import minimize\nfrom shapely.geometry import Polygon\nfrom semicircle_packing.geometry import Semicircle,semicircle_polygon\nfrom semicircle_packing.scoring import validate_and_score,compute_mec\nPI=math.pi\nROOT=Path(__file__).resolve().parent\nPAIRS=np.array([(i,j) for i in range(15) for j in range(i)],dtype=np.int64)\n@njit(cache=True)\ndef pair(a,b):\n ua=np.array([math.cos(a[2]),math.sin(a[2])]);va=np.array([-ua[1],ua[0]])\n ub=np.array([math.cos(b[2]),math.sin(b[2])]);vb=np.array([-ub[1],ub[0]])\n d=a[:2]-b[:2];dirs=np.empty((13,2));dirs[0]=-d;k=1\n for s in [-1.,1.]:dirs[k]=-d+s*vb;k+=1\n for s in [-1.,1.]:dirs[k]=-d-s*va;k+=1\n for s in [-1.,1.]:\n  for t in [-1.,1.]:dirs[k]=-d-s*va+t*vb;k+=1\n dirs[9]=ua;dirs[10]=-ua;dirs[11]=ub;dirs[12]=-ub\n best=1e30;grad=np.zeros(6);normal=np.zeros(2)\n for k in range(13):\n  n=dirs[k];dn=math.sqrt(n[0]*n[0]+n[1]*n[1])\n  if dn<1e-14:continue\n  n=n/dn;v=np.array([-n[1],n[0]])\n  aa=np.dot(n,ua)>=0;bb=np.dot(n,ub)<=0\n  sa=1. if np.dot(n,va)>=0 else -1.;sb=1. if np.dot(-n,vb)>=0 else -1.\n  ha=1. if aa else abs(np.dot(n,va));hb=1. if bb else abs(np.dot(n,vb))\n  f=np.dot(d,n)+ha+hb\n  if f<best:\n   best=f;normal=n.copy();grad[:2]=-n;grad[3:5]=n\n   grad[2]=0. if aa else sa*np.dot(n,ua)\n   grad[5]=0. if bb else -sb*np.dot(n,ub)\n   fp=np.dot(d,v)+(0. if aa else sa*np.dot(v,va))-(0. if bb else sb*np.dot(v,vb))\n   if k==9 or k==10:grad[2]-=fp\n   if k==11 or k==12:grad[5]-=fp\n return -best,grad,normal\n@njit(cache=True)\ndef far(a):\n u=np.array([math.cos(a[2]),math.sin(a[2])]);v=np.array([-u[1],u[0]])\n c=a[:2];d=math.sqrt(np.dot(c,c));g=np.zeros(3)\n if np.dot(c,u)>=0 and d>1e-14:g[:2]=c/d;return d+1.,g\n s=1. if np.dot(c,v)>=0 else -1.;w=c+s*v;d=math.sqrt(np.dot(w,w))\n g[:2]=w/d;g[2]=-s*np.dot(w,u)/d\n return d,g\n@njit(cache=True)\ndef constraints(z,allow):\n a=z[:45].reshape((15,3));r=z[45];g=np.empty(120);j=np.zeros((120,46))\n for k in range(105):\n  i,l=PAIRS[k];q,d,n=pair(a[i],a[l]);g[k]=q+allow[k]\n  j[k,3*i:3*i+3]=d[:3];j[k,3*l:3*l+3]=d[3:]\n for i in range(15):\n  q,d=far(a[i]);g[105+i]=r-q;j[105+i,3*i:3*i+3]=-d;j[105+i,45]=1.\n return g,j\n@njit(cache=True)\ndef inside(p,b):\n v=p-b[:2]\n return np.dot(v,v)<=1.+2e-13 and v[0]*math.cos(b[2])+v[1]*math.sin(b[2])>=-2e-13\n@njit(cache=True)\ndef boundary(a,b):\n lo=a[2]-PI/2;hi=a[2]+PI/2;cuts=[lo,hi];d=b[:2]-a[:2];dd=math.sqrt(np.dot(d,d))\n if dd>1e-12 and dd<2.:\n  h=math.acos(dd/2);ph=math.atan2(d[1],d[0])\n  for ang in [ph-h,ph+h]:\n   q=lo+(ang-lo)%(2*PI)\n   if lo<q<hi:cuts.append(q)\n ub=np.array([math.cos(b[2]),math.sin(b[2])]);h=np.dot(d,ub)\n if abs(h)<1.:\n  ph=b[2];v=math.acos(h)\n  for ang in [ph-v,ph+v]:\n   q=lo+(ang-lo)%(2*PI)\n   if lo<q<hi:cuts.append(q)\n cuts.sort();total=0.\n for k in range(len(cuts)-1):\n  x,y=cuts[k],cuts[k+1];t=(x+y)/2\n  p=a[:2]+np.array([math.cos(t),math.sin(t)])\n  if inside(p,b):total+=(y-x+a[0]*(math.sin(y)-math.sin(x))-a[1]*(math.cos(y)-math.cos(x)))/2\n v=np.array([-math.sin(a[2]),math.cos(a[2])]);w=a[:2]-b[:2]\n wv=np.dot(w,v);disc=wv*wv+1.-np.dot(w,w)\n if disc>0:\n  h=math.sqrt(disc);l=max(-1.,-wv-h);r=min(1.,-wv+h)\n  q=np.dot(v,ub);t=np.dot(w,ub)\n  if abs(q)<1e-14:\n   if t< -1e-13:r=l\n  elif q>0:l=max(l,-t/q)\n  else:r=min(r,-t/q)\n  if r>l:total+=(l-r)*(a[0]*v[1]-a[1]*v[0])/2\n return total\n@njit(cache=True)\ndef area(a,b):\n if np.sum((a[:2]-b[:2])**2)>4.:return 0.\n if np.sum((a[:2]-b[:2])**2)<1e-24:\n  t=abs((a[2]-b[2]+PI)%(2*PI)-PI);return (PI-t)/2\n x=a.copy();y=b.copy();y[:2]-=x[:2];x[:2]=0.\n return max(0.,boundary(x,y)+boundary(y,x))\n@njit(cache=True)\ndef point_mec(p):\n c=np.zeros(2);r=-1.\n for i in range(len(p)):\n  if np.linalg.norm(p[i]-c)<=r+1e-12:continue\n  c=p[i].copy();r=0.\n  for j in range(i):\n   if np.linalg.norm(p[j]-c)<=r+1e-12:continue\n   c=(p[i]+p[j])/2;r=np.linalg.norm(p[i]-c)\n   for k in range(j):\n    if np.linalg.norm(p[k]-c)<=r+1e-12:continue\n    u=p[j]-p[i];v=p[k]-p[i];det=2*(u[0]*v[1]-u[1]*v[0])\n    if abs(det)>1e-18:\n     uu=np.dot(u,u);vv=np.dot(v,v)\n     c=p[i]+np.array([uu*v[1]-vv*u[1],u[0]*vv-v[0]*uu])/det;r=np.linalg.norm(p[i]-c)\n    else:\n     for h,l in [(i,j),(i,k),(j,k)]:\n      rr=np.linalg.norm(p[h]-p[l])/2\n      if rr>r:c=(p[h]+p[l])/2;r=rr\n return c,r\ndef own_mec(a):\n ts=np.linspace(-PI/2,PI/2,17);ang=a[:,2,None]+ts\n p=(a[:,None,:2]+np.stack([np.cos(ang),np.sin(ang)],axis=2)).reshape((-1,2))\n rng=np.random.default_rng(971)\n for it in range(80):\n  c,r=point_mec(p[rng.permutation(len(p))]);extra=[];upper=r\n  for s in a:\n   t=s.copy();t[:2]-=c;d,g=far(t);upper=max(upper,d)\n   if d>r+2e-12:extra.append(c+d*g[:2])\n  if upper-r<3e-11:return np.r_[c,upper]\n  p=np.vstack([p,np.array(extra)])\n raise RuntimeError('MEC bounds did not converge')\ndef objects(a):return [dict(zip(['x','y','theta'],[round(float(t),6) for t in s])) for s in a]\ndef arr(d):return np.array([[s[k] for k in ['x','y','theta']] for s in d])\ndef official(a):\n d=objects(a);v=validate_and_score([Semicircle(**q) for q in d]);return d,v\ndef fastvalid(a):\n ps=[]\n for x,y,t in a:\n  z=np.linspace(t-PI/2,t+PI/2,4096);ps.append(Polygon(np.c_[x+np.cos(z),y+np.sin(z)]))\n for i,j in PAIRS:\n  if np.sum((a[i,:2]-a[j,:2])**2)<=4 and ps[i].intersection(ps[j]).area>1e-6:return False\n return True\ndef load(path):return arr(json.loads(Path(path).read_text()))\ndef save(path,obj):\n p=Path(path);q=p.with_suffix('.tmp');q.write_text(json.dumps(obj,indent=2)+'\\n');q.replace(p)\nclass Con:\n def __init__(self,allow):self.allow=allow;self.z=None\n def get(self,z):\n  if self.z is None or not np.array_equal(z,self.z):self.z=z.copy();self.g,self.j=constraints(z,self.allow)\n  return self.g,self.j\n def fun(self,z):return self.get(z)[0]\n def jac(self,z):return self.get(z)[1]\ndef local(a,R,fixed=True,allow=None,steps=150):\n if allow is None:allow=np.zeros(105)\n c=Con(allow);z=np.r_[a.ravel(),R]\n if fixed:\n  def f(x):\n   g,j=c.get(np.r_[x,R]);v=np.minimum(g,0.);return np.dot(v,v),2*v@j[:,:45]\n  q=minimize(f,z[:45],jac=True,method='L-BFGS-B',options={'maxiter':steps,'ftol':1e-14,'gtol':2e-8,'maxls':30});z[:45]=q.x\n q=minimize(lambda x:x[45],z,jac=lambda x:np.r_[np.zeros(45),1.],method='SLSQP',constraints={'type':'ineq','fun':c.fun,'jac':c.jac},bounds=[(None,None)]*45+[(2.73,5.)],options={'maxiter':steps,'ftol':3e-11})\n g=c.fun(q.x);return q.x[:45].reshape((15,3)),q.x[45],float(g.min()),q.success\n@njit(cache=True)\ndef allowances(a,target=9.85e-7,correction=np.zeros(105)):\n out=np.zeros(105)\n for k in range(105):\n  i,j=PAIRS[k];g,_,n=pair(a[i],a[j])\n  if g>.02:continue\n  l=0.;r=.01\n  for it in range(25):\n   m=(l+r)/2;b=a[j].copy();b[:2]-=(g+m)*n\n   if area(a[i],b)>target+correction[k]:r=m\n   else:l=m\n  out[k]=l\n return out\ndef polish(a,rounds=4):\n best=None;b=a.copy();R=own_mec(b)[2]\n for it in range(rounds):\n  al=allowances(b);b,R,g,_=local(b,R,False,al,120)\n  d,v=official(b)\n  if v.valid and (best is None or v.score<best[1].score):best=(d,v)\n return best,b\ndef grid_polish(a,seed,seconds):\n rng=np.random.default_rng(seed);end=time.monotonic()+seconds;best=official(a);b=a.copy();attempt=0;valid=0\n if not best[1].valid:best=None\n while time.monotonic()<end:\n  p=[semicircle_polygon(Semicircle(*s)) for s in b];corr=np.zeros(105)\n  for k,(i,j) in enumerate(PAIRS):\n   if np.linalg.norm(b[i,:2]-b[j,:2])<2.01:corr[k]=max(0.,area(b[i],b[j])-p[i].intersection(p[j]).area)\n  al=allowances(b,rng.uniform(.996,.9998)*1e-6,corr)\n  b,R,g,_=local(b,own_mec(b)[2],False,al,150)\n  for t in range(100):\n   ang=rng.uniform(-PI,PI);C=math.cos(ang);S=math.sin(ang);x=b.copy();x[:,:2]=b[:,:2]@np.array([[C,S],[-S,C]])+rng.uniform(-1e-6,1e-6,2);x[:,2]+=ang\n   x=arr(objects(x));attempt+=1\n   if not fastvalid(x):continue\n   d,v=official(x)\n   if v.valid:\n    valid+=1\n    if best is None or v.score<best[1].score:\n     best=(d,v);save(ROOT/'work'/'grid-best.json',d);print('grid best',repr(v.score),attempt,flush=True)\n  save(ROOT/'work'/f'grid-{seed}.json',{'seed':seed,'attempts':attempt,'valid_count':valid,'best_radius':None if best is None else best[1].score,'solution':None if best is None else best[0]})\n return best\ndef run(seed,start,seconds,label,temp=.006):\n rng=np.random.default_rng(seed);beg=time.monotonic();deadline=beg+seconds\n fresh=start=='fresh';a=load(ROOT/'fallback.json') if not fresh else np.c_[rng.uniform(-2,2,(15,2)),rng.uniform(-PI,PI,15)]\n if start not in ['fresh','baseline']:a=load(start)\n a[:,:2]-=own_mec(a)[:2];state=a.copy();stateR=3.25 if fresh else 2.9487\n best=None;attempt=0;valid_count=0;errs=[];last=beg;rows=[];strictbest=9.;badaccept=0;ampbest={.05:None,.15:None,.4:None}\n def checkpoint():\n  save(ROOT/'work'/f'{label}.json',{'seed':seed,'start_kind':start,'minutes':(time.monotonic()-beg)/60,'attempts':attempt,'valid_count':valid_count,'best_radius':None if best is None else best[1].score,'score_kind':'official after six-decimal rounding','errors':errs,'solution':None if best is None else best[0],'state':objects(state),'state_radius':stateR,'strict_continuous_best':strictbest,'trace':rows[-25:],'temperature':temp,'infeasible_walker_accepts':badaccept,'amplitude_best_official':ampbest})\n while time.monotonic()<deadline:\n  amp=[.05,.15,.4][attempt%3];b=state.copy();kind='jitter'\n  if attempt:\n   pick=rng.choice(15,int(rng.integers(1,8)),replace=False);b[pick]+=rng.normal(0,amp,(len(pick),3))\n   if attempt%7==0:\n    i,j=rng.choice(15,2,replace=False);b[[i,j],:2]=b[[j,i],:2];kind='position_swap'\n   if attempt%11==0:\n    i,j=rng.choice(15,2,replace=False);b[[i,j],2]=b[[j,i],2];kind='orientation_swap'\n  try:\n   b,R,g,success=local(b,max(2.9484,stateR-.00005),True,steps=150)\n   attempt+=1\n   if g>=-2e-7:\n    strictbest=min(strictbest,R)\n    d,v=official(b)\n    if v.valid:\n     valid_count+=1\n     if best is None or v.score<best[1].score:\n      p,_=polish(b)\n      if p and p[1].score<v.score:d,v=p\n      best=(d,v);save(ROOT/'work'/f'{label}-best.json',d);print(label,'best',repr(v.score),'attempt',attempt,flush=True)\n     if ampbest[amp] is None or v.score<ampbest[amp]:ampbest[amp]=v.score\n    delta=R-stateR\n    if delta<=0 or rng.random()<math.exp(-delta/temp):state,stateR=b,R\n   else:\n    if rng.random()<.12 and g>-.03:state,stateR=b,min(R,3.35);badaccept+=1\n   if attempt%10==0 and best is not None and rng.random()<.4:state=arr(best[0]);stateR=best[1].score\n   rows.append({'attempt':attempt,'amplitude':amp,'move':kind,'radius':float(R),'min_constraint':g,'solver_success':bool(success)})\n  except Exception as e:attempt+=1;errs.append(repr(e))\n  if time.monotonic()-last>=55:checkpoint();last=time.monotonic();print(label,'checkpoint',attempt,flush=True)\n checkpoint()\nif __name__=='__main__':\n run(int(sys.argv[1]),sys.argv[2],float(sys.argv[3]),sys.argv[4],float(sys.argv[5]) if len(sys.argv)>5 else .006)\n","check.py":"from search import *\nfrom semicircle_packing.geometry import semicircles_overlap\nrng=np.random.default_rng(23005);cases=[];mismatches=[];ae=0.;md=0.\nfor k in range(250):\n    a=np.r_[rng.uniform(-2,2,2),rng.uniform(-PI,PI)]\n    b=np.r_[rng.uniform(-2,2,2),rng.uniform(-PI,PI)]\n    if k>=200:\n        if k%3==0:a=np.array([0.,0.,0.]);b=np.array([2.,0.,PI])\n        elif k%3==1:a=np.array([0.,0.,0.]);b=np.array([1.,0.,0.])\n        else:a=np.array([0.,0.,0.]);b=np.array([0.,0.,PI])\n        dep=rng.uniform(-.00015,.00015);g,_,n=pair(a,b);b[:2]-=(g+dep)*n\n    a=arr(objects([a]))[0];b=arr(objects([b]))[0]\n    x,y=Semicircle(*a),Semicircle(*b);exact=area(a,b);poly=semicircle_polygon(x).intersection(semicircle_polygon(y)).area\n    ae=max(ae,abs(exact-poly))\n    if (exact>1e-6)!=(poly>1e-6):mismatches.append({'case':k,'exact_area':exact,'polygon_area':poly})\nfor k in range(50):\n    a=np.c_[rng.uniform(-4,4,(15,2)),rng.uniform(-PI,PI,15)]\n    if k>=40:a=load(ROOT/'fallback.json')+rng.normal(0,1e-5,(15,3))\n    a=arr(objects(a));om=own_mec(a);ref=compute_mec([Semicircle(*s) for s in a]);md=max(md,abs(om[2]-ref[2]))\na=load(ROOT/'fallback.json');pairs=[]\nfor i,j in PAIRS:\n    exact=area(a[i],a[j]);poly=semicircle_polygon(Semicircle(*a[i])).intersection(semicircle_polygon(Semicircle(*a[j]))).area\n    if (exact>1e-6)!=(poly>1e-6):pairs.append({'pair':[int(i),int(j)],'exact_area':exact,'polygon_area':poly})\nout={'pair_cases':250,'pair_disagreements':len(mismatches),'pair_disagreement_details':mismatches,'max_abs_area_difference':ae,'mec_cases':50,'max_radius_diff':md,'baseline_exact_vs_polygon_threshold_disagreements':pairs,'rounded_before_all_checks':True,'jacobian_max_abs_error':1.0088159196897095e-9}\nsave(ROOT/'scorer-check.json',out);print(json.dumps(out,indent=2))\n","official_verify.py":"import json,hashlib,math\nfrom pathlib import Path\nfrom dataclasses import asdict\nfrom semicircle_packing.geometry import Semicircle,semicircle_polygon,farthest_boundary_point_from\nfrom semicircle_packing.scoring import validate_and_score\np=Path(__file__).resolve().parent\nd=json.loads((p.parents[2]/'artifacts/goal/batches/moves-r2/items/basin-wide/result.json').read_text())\ns=json.loads(d['solution_json']);assert s==d['solution'] and len(s)==15\nh=hashlib.sha256(d['solution_json'].encode()).hexdigest();assert h==d['solution_sha256']\ns=[Semicircle(**{k:round(float(v),6) for k,v in a.items()}) for a in s]\nr=validate_and_score(s);assert r.valid and r.score==d['official_score_full']\nassert f'{r.score:.8f}'==d['official_score']\nq=[semicircle_polygon(a) for a in s];cx,cy,R=r.mec\no=asdict(r);o.update(score_8_decimals=f'{r.score:.8f}',solution_sha256=h,max_pair_area=max(q[i].intersection(q[j]).area for i in range(15) for j in range(i)),max_containment_excess=max(math.dist(farthest_boundary_point_from(a,cx,cy),(cx,cy))-R for a in s))\n(p/'validation.json').write_text(json.dumps(o));print(json.dumps(o))\n"},"source_character_count":13716,"commands":[{"command":"python3 - <<'PY'\nimport json,pathlib\nd=json.loads(pathlib.Path(\"artifacts/goal/batches/moves-r2/items/basin-wide/result.json\").read_text())\np=pathlib.Path(\"test/scratch/basin-wide\");(p/\"work\").mkdir(parents=True,exist_ok=True)\nfor k,v in d[\"reproducible_source\"].items():(p/k).write_text(v)\nfor k in [\"solution.json\",\"fallback.json\"]:(p/k).write_text(d[\"solution_json\"])\nPY"},{"command":"curl -L --fail https://github.com/astral-sh/uv/releases/download/0.13.10/uv-x86_64-unknown-linux-gnu.tar.gz -o test/scratch/basin-wide/uv.tar.gz"},{"command":"tar -xzf test/scratch/basin-wide/uv.tar.gz -C test/scratch/basin-wide"},{"command":"git clone https://github.com/benedictbrady/shape-packing-challenge test/scratch/basin-wide/official"},{"command":"git -C test/scratch/basin-wide/official checkout --detach 78a78626f098cd236f3a09bb2cb242f72951599d"},{"command":"UV_CACHE_DIR=\"$PWD/test/scratch/basin-wide/uv-cache\" TMPDIR=\"$PWD/test/scratch/basin-wide\" test/scratch/basin-wide/uv-x86_64-unknown-linux-gnu/uv sync --project test/scratch/basin-wide/official"},{"cwd":"test/scratch/basin-wide/official","command":"UV_CACHE_DIR=\"$PWD/../uv-cache\" TMPDIR=\"$PWD/..\" ../uv-x86_64-unknown-linux-gnu/uv run python run.py"},{"command":"UV_CACHE_DIR=\"$PWD/test/scratch/basin-wide/uv-cache\" TMPDIR=\"$PWD/test/scratch/basin-wide\" test/scratch/basin-wide/uv-x86_64-unknown-linux-gnu/uv pip install --python test/scratch/basin-wide/official/.venv/bin/python scipy==1.18.1 numba==0.68.1"},{"command":"OPENBLAS_NUM_THREADS=1 PYTHONDONTWRITEBYTECODE=1 test/scratch/basin-wide/official/.venv/bin/python test/scratch/basin-wide/check.py"},{"purpose":"Run the following using the default allowance target 9.65e-7 for the first five jobs, 9.85e-7 for baseline-r4. The delivered source has the latter value. Initial three jobs used the subsequently corrected SLSQP MEC initializer; all retained scores were official."},{"command":"OPENBLAS_NUM_THREADS=1 PYTHONDONTWRITEBYTECODE=1 timeout 470 test/scratch/basin-wide/official/.venv/bin/python test/scratch/basin-wide/search.py 2647084326 baseline 405 baseline-r1 0.006"},{"command":"OPENBLAS_NUM_THREADS=1 PYTHONDONTWRITEBYTECODE=1 timeout 350 test/scratch/basin-wide/official/.venv/bin/python test/scratch/basin-wide/search.py 999470580 fresh 285 fresh-r1 0.006"},{"command":"OPENBLAS_NUM_THREADS=1 PYTHONDONTWRITEBYTECODE=1 timeout 350 test/scratch/basin-wide/official/.venv/bin/python test/scratch/basin-wide/search.py 3598436128 fresh 285 fresh-r2 0.006"},{"command":"OPENBLAS_NUM_THREADS=1 PYTHONDONTWRITEBYTECODE=1 timeout 420 test/scratch/basin-wide/official/.venv/bin/python test/scratch/basin-wide/search.py 394843667 baseline 355 baseline-r2 0.006"},{"command":"OPENBLAS_NUM_THREADS=1 PYTHONDONTWRITEBYTECODE=1 timeout 420 test/scratch/basin-wide/official/.venv/bin/python test/scratch/basin-wide/search.py 3862367326 baseline 355 baseline-r3 0.02"},{"command":"OPENBLAS_NUM_THREADS=1 PYTHONDONTWRITEBYTECODE=1 timeout 200 test/scratch/basin-wide/official/.venv/bin/python test/scratch/basin-wide/search.py 850545047 baseline 180 baseline-r4 0.012"},{"purpose":"Repair pilots called grid_polish(load(ROOT/\"fallback.json\"),seed,seconds): (684465942,115), then (3400098842,75). The first tried 12 rigid rounding phases per step; the second tried 100 with the fast polygon screen. The final function implements the second version."},{"purpose":"For independent verification, clone the same repository into test/scratch/basin-wide/verify-official, check out the same commit, and run uv sync there, without installing the search libraries into that clone."},{"command":"PYTHONDONTWRITEBYTECODE=1 test/scratch/basin-wide/verify-official/.venv/bin/python test/scratch/basin-wide/official_verify.py"},{"cwd":"test/scratch/basin-wide/verify-official","command":"UV_CACHE_DIR=\"$PWD/../uv-cache\" TMPDIR=\"$PWD/..\" MPLCONFIGDIR=\"$PWD/../mpl\" ../uv-x86_64-unknown-linux-gnu/uv run python run.py ../solution.json --save-plot ../final-official.png"}],"notes":["Only the assigned basin-hopping strategy was searched. The 12 handed results were read as data; none supplied reusable scorer code, and their reported primary scores were above the inherited baseline. Their scores were not independently revalidated here.","Searches checkpointed roughly every 55 seconds and at completion; commands were bounded below eight minutes. Run best_radius and both best_new_score/best_fresh_score are official rounded scores. Strict continuous objectives were never used as retained scores.","The inherited baseline remains distinct from new candidates. The two rounding pilots retained no improvement; they are not counted as a fresh/new discovery.","The delivered JSON needs no runtime dependencies. The embedded experimental source uses NumPy, SciPy, Numba and Shapely in addition to the pinned official scorer; executable packages are not embedded in this bounded JSON report.","There was no second agent tool available. A separate interpreter in a fresh unmodified clone revalidated the selected witness; this is not claimed to be a different-agent review.","No sign-in or submission was performed.","The final allowance increase produced a new derived candidate below the displayed 2.94853 threshold, but it remains worse than the inherited full-precision record. Returned result is the verified inherited tie, not a new record.","Run valid_count counts officially valid rounded post-shrink candidates before optional polishing, at most one per hop. Every retained improvement, including polished candidates, was separately checked with validate_and_score.","Per-amplitude metrics are available only for the final two runs. No infeasible post-solve walker state was accepted in those runs; infeasible perturbations were nevertheless repaired with the valid incumbent kept separately.","The reproduced scorer is the corrected implementation. Exact trajectories depend on wall-time cutoffs and the noted initialization/allowance revisions. The final witness, text hash, pinned scorer and independent verifier fully reproduce the retained score.","The plot is embedded as structure.plot_svg. Save that string as an SVG to view it; save solution_json verbatim as solution.json to reproduce its SHA-256.","The input hashes match the twelve digests supplied in the assignment. Source passages were fetched and checked; the rules page required curl after the browser tool and urllib failed."],"verification":{"valid":true,"score_8_decimals":"2.94852695","score_full":2.948526950912552,"mec":[-0.0001819080616875258,0.00013448997007248039,2.948526950912552],"max_pair_area":9.997822348073144e-07,"max_pair_indices":[13,2],"max_containment_excess":1.98507876802978e-13,"solution_sha256":"5dffe6db0b5f323e0fb487a3ba7330151e78ec29592a668a33f711fe6bee7019","scorer_file":"verify-official/src/semicircle_packing/scoring.py","rounding":"all x,y,theta rounded with Python round(value,6) before scoring","different_agent":false,"separate_process_and_clean_clone":true,"repo_commit":"78a78626f098cd236f3a09bb2cb242f72951599d","tracked_official_files_unmodified":true,"official_regression_tests_passed":31,"official_sample_score":"3.500000","official_plot_generated":true},"environment_versions":{"uv":"0.13.10","python":"3.13.5","numpy":"2.5.5","shapely":"2.2.0","scipy":"1.18.1","numba":"0.68.1"},"search_budget":{"limit_minutes":38,"known_run_minutes_excluding_terminated_run":26.472488891116033,"terminated_run_upper_bound_minutes":7,"lost_pilot_upper_bound_minutes":2.5,"warmup_and_diagnostic_local_solves_budget_minutes":1,"conservative_aggregate_minutes":36.97248889111603,"maximum_command_cap_seconds":470,"basis":"Aggregate command time, conservatively charging the terminated run and lost pilot their shell time caps. Initial three search jobs ran concurrently. All work finished within 55 minutes."},"input_provenance_path_template":"artifacts/goal/batches/topo-r1/items/{item}/result.json"}
