{
  "method": "Contact-graph continuation: release one or two near contacts, project random displacements onto the soft-mode nullspace of retained contacts and boundary supports, allow a bounded radius increase, then SLSQP repair and compress.",
  "seeds": {
    "master": 33101,
    "runs": [
      33101,
      33101,
      33102,
      33103,
      33104,
      33105,
      33106,
      33107,
      33108,
      33109
    ]
  },
  "official_valid": true,
  "official_score_full": 2.948526950912552,
  "official_score_8dp": "2.94852695",
  "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  {\n    \"x\": 0.545425,\n    \"y\": 0.67215,\n    \"theta\": -0.570778\n  },\n  {\n    \"x\": 1.135484,\n    \"y\": -1.23874,\n    \"theta\": 2.227365\n  },\n  {\n    \"x\": -0.584124,\n    \"y\": -0.217653,\n    \"theta\": -1.671787\n  },\n  {\n    \"x\": 1.843118,\n    \"y\": 0.631801,\n    \"theta\": -0.722762\n  },\n  {\n    \"x\": 0.278186,\n    \"y\": 1.928675,\n    \"theta\": 2.264578\n  },\n  {\n    \"x\": -0.723715,\n    \"y\": 1.809349,\n    \"theta\": 3.126118\n  },\n  {\n    \"x\": -1.624637,\n    \"y\": 1.076193,\n    \"theta\": -2.992325\n  },\n  {\n    \"x\": -0.56981,\n    \"y\": 0.785952,\n    \"theta\": -1.682231\n  },\n  {\n    \"x\": 0.032918,\n    \"y\": 1.724683,\n    \"theta\": -0.877015\n  },\n  {\n    \"x\": 1.261991,\n    \"y\": 1.484613,\n    \"theta\": 0.453135\n  },\n  {\n    \"x\": -1.944933,\n    \"y\": -0.121111,\n    \"theta\": -2.464295\n  },\n  {\n    \"x\": -1.573106,\n    \"y\": -1.149938,\n    \"theta\": -1.641622\n  },\n  {\n    \"x\": 1.049635,\n    \"y\": -2.567295,\n    \"theta\": 1.95895\n  },\n  {\n    \"x\": -0.789401,\n    \"y\": -1.781407,\n    \"theta\": -0.792106\n  },\n  {\n    \"x\": 1.811166,\n    \"y\": -0.718041,\n    \"theta\": -0.914204\n  }\n]\n",
  "solution_sha256": "cefac3368caae7f9dea0c4cdc0e87d869f3a9bd76ba75292b1cd4b7fff7c8fb9",
  "mec": {
    "x": -0.0001819080616875258,
    "y": 0.00013448997007248039,
    "radius": 2.948526950912552
  },
  "max_pair_area": 9.997822348073144e-07,
  "plot_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"700\" height=\"700\" viewBox=\"-3.25 -3.25 6.5 6.5\"><rect x=\"-3.25\" y=\"-3.25\" width=\"6.5\" height=\"6.5\" fill=\"white\"/><g transform=\"scale(1,-1)\"><circle cx=\"0\" cy=\"0\" r=\"2.94852695\" fill=\"none\" stroke=\"#222\" stroke-width=\"0.018\"/><path d=\"M 0.0053 -0.1695 L 0.0904 -0.2184 L 0.1799 -0.2587 L 0.2729 -0.2901 L 0.3685 -0.3122 L 0.4658 -0.3248 L 0.5639 -0.3278 L 0.6618 -0.3212 L 0.7586 -0.3050 L 0.8533 -0.2795 L 0.9451 -0.2447 L 1.0330 -0.2011 L 1.1163 -0.1492 L 1.1940 -0.0893 L 1.2655 -0.0221 L 1.3301 0.0519 L 1.3871 0.1317 L 1.4360 0.2168 L 1.4763 0.3063 L 1.5077 0.3993 L 1.5298 0.4949 L 1.5424 0.5922 L 1.5454 0.6903 L 1.5388 0.7882 L 1.5227 0.8850 L 1.4971 0.9797 L 1.4623 1.0715 L 1.4188 1.1594 L 1.3668 1.2427 L 1.3069 1.3204 L 1.2397 1.3919 L 1.1658 1.4565 L 1.0859 1.5135 Z\" fill=\"#6aaed6\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M 1.9278 -0.6285 L 1.8641 -0.5538 L 1.7935 -0.4857 L 1.7165 -0.4248 L 1.6339 -0.3718 L 1.5465 -0.3272 L 1.4551 -0.2913 L 1.3607 -0.2645 L 1.2641 -0.2472 L 1.1663 -0.2393 L 1.0682 -0.2412 L 0.9707 -0.2526 L 0.8748 -0.2735 L 0.7815 -0.3037 L 0.6915 -0.3429 L 0.6058 -0.3908 L 0.5253 -0.4468 L 0.4506 -0.5104 L 0.3825 -0.5811 L 0.3216 -0.6581 L 0.2686 -0.7407 L 0.2239 -0.8281 L 0.1881 -0.9194 L 0.1613 -1.0138 L 0.1440 -1.1104 L 0.1361 -1.2082 L 0.1379 -1.3063 L 0.1494 -1.4038 L 0.1703 -1.4997 L 0.2005 -1.5931 L 0.2397 -1.6830 L 0.2876 -1.7687 L 0.3436 -1.8493 Z\" fill=\"#f5a66a\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M -1.5788 -0.1170 L -1.5839 -0.2150 L -1.5794 -0.3130 L -1.5653 -0.4101 L -1.5417 -0.5054 L -1.5089 -0.5979 L -1.4672 -0.6867 L -1.4170 -0.7710 L -1.3587 -0.8500 L -1.2930 -0.9229 L -1.2205 -0.9890 L -1.1419 -1.0477 L -1.0578 -1.0984 L -0.9692 -1.1406 L -0.8769 -1.1739 L -0.7818 -1.1980 L -0.6848 -1.2127 L -0.5868 -1.2178 L -0.4887 -1.2132 L -0.3916 -1.1991 L -0.2964 -1.1755 L -0.2039 -1.1427 L -0.1150 -1.1010 L -0.0307 -1.0508 L 0.0483 -0.9926 L 0.1212 -0.9269 L 0.1873 -0.8544 L 0.2460 -0.7757 L 0.2966 -0.6917 L 0.3389 -0.6031 L 0.3722 -0.5108 L 0.3963 -0.4156 L 0.4110 -0.3186 Z\" fill=\"#9dd49a\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M 1.1818 -0.1183 L 1.2585 -0.1795 L 1.3409 -0.2329 L 1.4280 -0.2780 L 1.5192 -0.3144 L 1.6135 -0.3416 L 1.7100 -0.3594 L 1.8078 -0.3677 L 1.9059 -0.3664 L 2.0034 -0.3554 L 2.0994 -0.3350 L 2.1929 -0.3052 L 2.2831 -0.2664 L 2.3690 -0.2190 L 2.4498 -0.1634 L 2.5248 -0.1001 L 2.5933 -0.0298 L 2.6545 0.0469 L 2.7079 0.1292 L 2.7530 0.2164 L 2.7893 0.3076 L 2.8165 0.4019 L 2.8344 0.4984 L 2.8427 0.5961 L 2.8413 0.6943 L 2.8304 0.7918 L 2.8100 0.8878 L 2.7802 0.9813 L 2.7414 1.0714 L 2.6940 1.1573 L 2.6384 1.2382 L 2.5751 1.3132 L 2.5048 1.3816 Z\" fill=\"#cf9bd4\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M 1.0472 2.5680 L 0.9808 2.6403 L 0.9077 2.7057 L 0.8285 2.7636 L 0.7440 2.8135 L 0.6550 2.8549 L 0.5624 2.8874 L 0.4670 2.9106 L 0.3699 2.9243 L 0.2718 2.9285 L 0.1738 2.9231 L 0.0768 2.9080 L -0.0182 2.8836 L -0.1104 2.8499 L -0.1988 2.8074 L -0.2826 2.7563 L -0.3611 2.6974 L -0.4334 2.6310 L -0.4988 2.5579 L -0.5567 2.4786 L -0.6066 2.3941 L -0.6480 2.3052 L -0.6805 2.2125 L -0.7037 2.1172 L -0.7174 2.0200 L -0.7216 1.9220 L -0.7162 1.8240 L -0.7011 1.7270 L -0.6766 1.6320 L -0.6430 1.5398 L -0.6004 1.4514 L -0.5494 1.3675 L -0.4905 1.2891 Z\" fill=\"#f0d178\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M -0.7081 2.8091 L -0.8061 2.8058 L -0.9034 2.7929 L -0.9990 2.7705 L -1.0919 2.7389 L -1.1812 2.6983 L -1.2662 2.6492 L -1.3459 2.5919 L -1.4196 2.5272 L -1.4866 2.4555 L -1.5463 2.3776 L -1.5981 2.2942 L -1.6414 2.2061 L -1.6759 2.1143 L -1.7012 2.0195 L -1.7171 1.9226 L -1.7234 1.8247 L -1.7201 1.7266 L -1.7072 1.6293 L -1.6849 1.5338 L -1.6532 1.4409 L -1.6126 1.3515 L -1.5635 1.2666 L -1.5063 1.1869 L -1.4415 1.1131 L -1.3698 1.0461 L -1.2919 0.9864 L -1.2085 0.9347 L -1.1205 0.8914 L -1.0286 0.8569 L -0.9338 0.8316 L -0.8369 0.8157 L -0.7390 0.8093 Z\" fill=\"#6aaed6\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M -1.7732 2.0649 L -1.8694 2.0456 L -1.9632 2.0169 L -2.0538 1.9792 L -2.1403 1.9328 L -2.2218 1.8781 L -2.2975 1.8157 L -2.3668 1.7461 L -2.4289 1.6701 L -2.4832 1.5884 L -2.5293 1.5018 L -2.5667 1.4111 L -2.5950 1.3171 L -2.6139 1.2208 L -2.6233 1.1231 L -2.6232 1.0250 L -2.6133 0.9273 L -2.5940 0.8311 L -2.5653 0.7373 L -2.5276 0.6467 L -2.4812 0.5602 L -2.4265 0.4787 L -2.3641 0.4030 L -2.2945 0.3338 L -2.2185 0.2717 L -2.1368 0.2173 L -2.0502 0.1712 L -1.9595 0.1338 L -1.8655 0.1055 L -1.7692 0.0866 L -1.6715 0.0772 L -1.5734 0.0774 L -1.4757 0.0872 Z\" fill=\"#f5a66a\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M -1.5634 0.8970 L -1.5695 0.7991 L -1.5660 0.7010 L -1.5529 0.6037 L -1.5303 0.5082 L -1.4985 0.4154 L -1.4577 0.3262 L -1.4084 0.2413 L -1.3510 0.1617 L -1.2860 0.0881 L -1.2142 0.0213 L -1.1362 -0.0382 L -1.0527 -0.0898 L -0.9645 -0.1329 L -0.8726 -0.1672 L -0.7777 -0.1923 L -0.6808 -0.2080 L -0.5829 -0.2141 L -0.4848 -0.2106 L -0.3876 -0.1975 L -0.2921 -0.1749 L -0.1992 -0.1431 L -0.1100 -0.1023 L -0.0251 -0.0529 L 0.0545 0.0045 L 0.1280 0.0694 L 0.1949 0.1412 L 0.2544 0.2193 L 0.3060 0.3028 L 0.3491 0.3909 L 0.3834 0.4829 L 0.4085 0.5777 L 0.4242 0.6746 Z\" fill=\"#9dd49a\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M -0.7357 1.0851 L -0.6694 1.0128 L -0.5962 0.9474 L -0.5170 0.8895 L -0.4325 0.8396 L -0.3435 0.7982 L -0.2509 0.7657 L -0.1556 0.7425 L -0.0584 0.7287 L 0.0397 0.7246 L 0.1376 0.7300 L 0.2346 0.7451 L 0.3297 0.7695 L 0.4218 0.8032 L 0.5103 0.8457 L 0.5941 0.8967 L 0.6725 0.9557 L 0.7448 1.0221 L 0.8103 1.0952 L 0.8682 1.1744 L 0.9181 1.2589 L 0.9595 1.3479 L 0.9919 1.4405 L 1.0151 1.5359 L 1.0289 1.6331 L 1.0331 1.7311 L 1.0276 1.8291 L 1.0126 1.9261 L 0.9881 2.0211 L 0.9544 2.1133 L 0.9119 2.2017 L 0.8609 2.2856 L 0.8019 2.3640 Z\" fill=\"#cf9bd4\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M 1.7000 0.5854 L 1.7860 0.6326 L 1.8669 0.6881 L 1.9421 0.7512 L 2.0107 0.8214 L 2.0721 0.8979 L 2.1257 0.9801 L 2.1710 1.0672 L 2.2075 1.1583 L 2.2349 1.2525 L 2.2530 1.3490 L 2.2615 1.4467 L 2.2603 1.5449 L 2.2496 1.6424 L 2.2294 1.7385 L 2.1998 1.8320 L 2.1613 1.9223 L 2.1140 2.0083 L 2.0586 2.0893 L 1.9955 2.1644 L 1.9253 2.2330 L 1.8487 2.2944 L 1.7665 2.3480 L 1.6794 2.3933 L 1.5884 2.4298 L 1.4941 2.4572 L 1.3977 2.4753 L 1.2999 2.4838 L 1.2018 2.4827 L 1.1042 2.4719 L 1.0082 2.4517 L 0.9146 2.4221 L 0.8244 2.3836 Z\" fill=\"#f0d178\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M -2.5714 0.6580 L -2.6448 0.5928 L -2.7114 0.5208 L -2.7707 0.4426 L -2.8220 0.3589 L -2.8648 0.2706 L -2.8988 0.1785 L -2.9236 0.0836 L -2.9389 -0.0134 L -2.9447 -0.1113 L -2.9409 -0.2094 L -2.9274 -0.3066 L -2.9045 -0.4020 L -2.8724 -0.4947 L -2.8313 -0.5839 L -2.7817 -0.6685 L -2.7240 -0.7479 L -2.6588 -0.8213 L -2.5868 -0.8879 L -2.5085 -0.9472 L -2.4249 -0.9984 L -2.3366 -1.0413 L -2.2445 -1.0753 L -2.1496 -1.1000 L -2.0526 -1.1154 L -1.9547 -1.1212 L -1.8566 -1.1174 L -1.7594 -1.1039 L -1.6640 -1.0810 L -1.5713 -1.0489 L -1.4821 -1.0078 L -1.3975 -0.9582 L -1.3181 -0.9005 Z\" fill=\"#6aaed6\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M -2.5704 -1.0793 L -2.5726 -1.1774 L -2.5651 -1.2753 L -2.5480 -1.3719 L -2.5216 -1.4664 L -2.4860 -1.5579 L -2.4416 -1.6454 L -2.3889 -1.7282 L -2.3283 -1.8054 L -2.2604 -1.8763 L -2.1859 -1.9401 L -2.1055 -1.9964 L -2.0200 -2.0446 L -1.9302 -2.0841 L -1.8369 -2.1146 L -1.7411 -2.1358 L -1.6437 -2.1476 L -1.5456 -2.1497 L -1.4477 -2.1422 L -1.3511 -2.1252 L -1.2566 -2.0987 L -1.1651 -2.0631 L -1.0776 -2.0188 L -0.9948 -1.9660 L -0.9176 -1.9054 L -0.8467 -1.8376 L -0.7829 -1.7631 L -0.7266 -1.6827 L -0.6784 -1.5972 L -0.6389 -1.5073 L -0.6084 -1.4141 L -0.5872 -1.3183 L -0.5754 -1.2208 Z\" fill=\"#f5a66a\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M 1.9754 -2.1889 L 1.9339 -2.1000 L 1.8838 -2.0156 L 1.8257 -1.9366 L 1.7601 -1.8635 L 1.6877 -1.7973 L 1.6092 -1.7385 L 1.5252 -1.6877 L 1.4367 -1.6453 L 1.3444 -1.6118 L 1.2494 -1.5875 L 1.1524 -1.5727 L 1.0544 -1.5674 L 0.9563 -1.5718 L 0.8592 -1.5858 L 0.7639 -1.6092 L 0.6713 -1.6418 L 0.5824 -1.6834 L 0.4980 -1.7334 L 0.4189 -1.7915 L 0.3459 -1.8571 L 0.2797 -1.9295 L 0.2209 -2.0081 L 0.1700 -2.0920 L 0.1277 -2.1806 L 0.0942 -2.2728 L 0.0699 -2.3679 L 0.0551 -2.4649 L 0.0498 -2.5629 L 0.0542 -2.6609 L 0.0682 -2.7581 L 0.0916 -2.8534 L 0.1242 -2.9459 Z\" fill=\"#9dd49a\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M -1.5011 -2.4839 L -1.4288 -2.5503 L -1.3504 -2.6093 L -1.2665 -2.6603 L -1.1781 -2.7028 L -1.0859 -2.7365 L -0.9909 -2.7610 L -0.8939 -2.7760 L -0.7959 -2.7815 L -0.6979 -2.7774 L -0.6007 -2.7636 L -0.5054 -2.7404 L -0.4127 -2.7080 L -0.3237 -2.6666 L -0.2392 -2.6167 L -0.1600 -2.5588 L -0.0869 -2.4934 L -0.0205 -2.4211 L 0.0385 -2.3427 L 0.0895 -2.2588 L 0.1321 -2.1704 L 0.1658 -2.0782 L 0.1902 -1.9832 L 0.2053 -1.8862 L 0.2108 -1.7882 L 0.2066 -1.6902 L 0.1929 -1.5930 L 0.1696 -1.4977 L 0.1372 -1.4051 L 0.0958 -1.3161 L 0.0460 -1.2316 L -0.0120 -1.1523 L -0.0774 -1.0792 Z\" fill=\"#cf9bd4\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/><path d=\"M 1.0193 -1.3286 L 1.0829 -1.4033 L 1.1536 -1.4714 L 1.2306 -1.5322 L 1.3132 -1.5852 L 1.4005 -1.6299 L 1.4919 -1.6658 L 1.5863 -1.6925 L 1.6829 -1.7099 L 1.7807 -1.7177 L 1.8788 -1.7159 L 1.9763 -1.7045 L 2.0722 -1.6836 L 2.1656 -1.6533 L 2.2555 -1.6141 L 2.3412 -1.5663 L 2.4218 -1.5103 L 2.4965 -1.4466 L 2.5646 -1.3759 L 2.6254 -1.2989 L 2.6784 -1.2164 L 2.7231 -1.1290 L 2.7589 -1.0376 L 2.7857 -0.9432 L 2.8031 -0.8466 L 2.8109 -0.7488 L 2.8091 -0.6507 L 2.7976 -0.5532 L 2.7767 -0.4573 L 2.7465 -0.3640 L 2.7073 -0.2740 L 2.6594 -0.1883 L 2.6034 -0.1078 Z\" fill=\"#f0d178\" fill-opacity=\"0.72\" stroke=\"#333\" stroke-width=\"0.012\"/></g><text x=\"0.5456\" y=\"-0.6720\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">0</text><text x=\"1.1357\" y=\"1.2389\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">1</text><text x=\"-0.5839\" y=\"0.2178\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">2</text><text x=\"1.8433\" y=\"-0.6317\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">3</text><text x=\"0.2784\" y=\"-1.9285\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">4</text><text x=\"-0.7235\" y=\"-1.8092\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">5</text><text x=\"-1.6245\" y=\"-1.0761\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">6</text><text x=\"-0.5696\" y=\"-0.7858\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">7</text><text x=\"0.0331\" y=\"-1.7245\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">8</text><text x=\"1.2622\" y=\"-1.4845\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">9</text><text x=\"-1.9448\" y=\"0.1212\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">10</text><text x=\"-1.5729\" y=\"1.1501\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">11</text><text x=\"1.0498\" y=\"2.5674\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">12</text><text x=\"-0.7892\" y=\"1.7815\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">13</text><text x=\"1.8113\" y=\"0.7182\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"sans-serif\" font-size=\"0.12\">14</text></svg>",
  "inherited_baseline": {
    "score": 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
      }
    ]
  },
  "best_new": {
    "score": 2.948528363861881,
    "solution": [
      {
        "x": 0.517856,
        "y": 0.693693,
        "theta": -0.530103
      },
      {
        "x": 1.18516,
        "y": -1.191612,
        "theta": 2.268089
      },
      {
        "x": -1.524801,
        "y": -1.213154,
        "theta": -1.600938
      },
      {
        "x": 1.816057,
        "y": 0.706187,
        "theta": -0.682
      },
      {
        "x": 0.199716,
        "y": 1.938266,
        "theta": 2.305468
      },
      {
        "x": -0.796502,
        "y": 1.778299,
        "theta": 3.166809
      },
      {
        "x": -1.666892,
        "y": 1.009076,
        "theta": -2.951704
      },
      {
        "x": -0.601152,
        "y": 0.761936,
        "theta": -1.641829
      },
      {
        "x": -0.037171,
        "y": 1.72427,
        "theta": -0.836125
      },
      {
        "x": 1.200684,
        "y": 1.53464,
        "theta": 0.494017
      },
      {
        "x": -1.938206,
        "y": -0.2003,
        "theta": -2.423623
      },
      {
        "x": -0.574611,
        "y": -0.241414,
        "theta": -1.631001
      },
      {
        "x": 1.153469,
        "y": -2.522563,
        "theta": 1.999672
      },
      {
        "x": -0.716036,
        "y": -1.812196,
        "theta": -0.751405
      },
      {
        "x": 1.839085,
        "y": -0.643839,
        "theta": -0.873504
      }
    ]
  },
  "best_fresh": {
    "score": 3.0418084503569385,
    "solution": [
      {
        "x": 1.014441,
        "y": 1.771974,
        "theta": 2.009733
      },
      {
        "x": 1.768117,
        "y": 1.021147,
        "theta": 1.563543
      },
      {
        "x": -1.133721,
        "y": 0.74484,
        "theta": 0.389492
      },
      {
        "x": 2.026659,
        "y": -0.980293,
        "theta": 1.905527
      },
      {
        "x": 0.034045,
        "y": 0.350629,
        "theta": 0.298843
      },
      {
        "x": 1.024916,
        "y": -1.386583,
        "theta": 3.137193
      },
      {
        "x": -2.486038,
        "y": 1.439518,
        "theta": -0.524866
      },
      {
        "x": 2.006365,
        "y": 0.019447,
        "theta": 1.591086
      },
      {
        "x": -1.791878,
        "y": -2.245388,
        "theta": 0.89726
      },
      {
        "x": 2.021994,
        "y": -2.040622,
        "theta": 2.351609
      },
      {
        "x": -1.808119,
        "y": -0.245522,
        "theta": -0.048325
      },
      {
        "x": -0.756893,
        "y": -0.478351,
        "theta": -0.597833
      },
      {
        "x": 0.196671,
        "y": -2.032314,
        "theta": -2.16873
      },
      {
        "x": -2.823079,
        "y": -0.531809,
        "theta": 0.186197
      },
      {
        "x": -0.985425,
        "y": 1.788272,
        "theta": 1.108206
      }
    ]
  },
  "strict_radius": null,
  "structure": {
    "full_disk_pairs": [],
    "close_pair_contacts_gap_below_0.003": 30,
    "center_radii": [
      0.8656163953192074,
      1.6806388834702666,
      0.6232333090623101,
      1.948526913068848,
      1.9485269284937103,
      1.9485269509125722,
      1.9485266902796428,
      0.9705592831944465,
      1.724866130272183,
      1.9485268529290458,
      1.9485269509127507,
      1.948526861807639,
      2.7737717509593667,
      1.9485268424029267,
      1.9485269509127159
    ],
    "curved_sides_radially_outward": 11,
    "curved_sides_radially_inward": 4,
    "flat_edges": "Flat diameters pass through each listed center; the radial side count describes their orientation relative to the MEC center.",
    "boundary_indices_within_0.001": [
      3,
      4,
      5,
      6,
      9,
      10,
      11,
      12,
      13,
      14
    ],
    "symmetry": "no exact rotational or mirror symmetry established"
  },
  "runs": [
    {
      "seed": 33101,
      "start": "baseline pilot",
      "seconds": 45.12443311884999,
      "attempts": 39,
      "valid_count": 1,
      "failed_repairs": 0,
      "best": 2.948526950912552,
      "graphs_archived": 1
    },
    {
      "seed": 33101,
      "start": "baseline",
      "seconds": 360.1090785446577,
      "attempts": 325,
      "valid_count": 759,
      "failed_repairs": 2,
      "best": 2.948526950912552,
      "graphs_archived": 30
    },
    {
      "seed": 33102,
      "start": "baseline",
      "seconds": 60.057278499007225,
      "attempts": 66,
      "valid_count": 89,
      "failed_repairs": 1,
      "best": 2.948526950912552,
      "graphs_archived": 1
    },
    {
      "seed": 33103,
      "start": "alt",
      "seconds": 330.38586736796424,
      "attempts": 296,
      "valid_count": 655,
      "failed_repairs": 2,
      "best": 2.9535295831518282,
      "graphs_archived": 30
    },
    {
      "seed": 33104,
      "start": "fresh-a",
      "seconds": 240.16614041291177,
      "attempts": 271,
      "valid_count": 774,
      "failed_repairs": 0,
      "best": 3.0418084503569385,
      "graphs_archived": 30
    },
    {
      "seed": 33105,
      "start": "fresh-b",
      "seconds": 240.4753815191798,
      "attempts": 327,
      "valid_count": 645,
      "failed_repairs": 7,
      "best": 3.0641963243722627,
      "graphs_archived": 30
    },
    {
      "seed": 33106,
      "start": "wide-best_new_solution",
      "seconds": 240.38224888266996,
      "attempts": 244,
      "valid_count": 566,
      "failed_repairs": 1,
      "best": 2.9485285423028933,
      "graphs_archived": 30
    },
    {
      "seed": 33107,
      "start": "archive-best",
      "seconds": 300.3205684470013,
      "attempts": 306,
      "valid_count": 700,
      "failed_repairs": 0,
      "best": 2.948552924081696,
      "graphs_archived": 30
    },
    {
      "seed": 33108,
      "start": "archive-best-polish",
      "seconds": 180.7099563111551,
      "attempts": 563,
      "valid_count": 112,
      "failed_repairs": 0,
      "best": 2.948528363861881,
      "graphs_archived": 1
    },
    {
      "seed": 33109,
      "start": "archive-best-polish",
      "seconds": 182.08507343707606,
      "attempts": 512,
      "valid_count": 14,
      "failed_repairs": 0,
      "best": 2.948528363861881,
      "graphs_archived": 1
    }
  ],
  "scorer_checks": {
    "sample_official_score": 3.5,
    "pair_cases": {
      "random": 100,
      "tight-arc": 25,
      "tight-flat": 25,
      "baseline": 105
    },
    "pair_threshold_disagreements": [
      {
        "kind": "baseline",
        "exact": 1.0013726919055888e-06,
        "polygon": 9.995940255022126e-07
      },
      {
        "kind": "baseline",
        "exact": 1.0001613965516382e-06,
        "polygon": 9.990352164717346e-07
      },
      {
        "kind": "baseline",
        "exact": 1.000720521587839e-06,
        "polygon": 9.995983747504644e-07
      },
      {
        "kind": "baseline",
        "exact": 1.000816950297691e-06,
        "polygon": 9.996957770875647e-07
      },
      {
        "kind": "baseline",
        "exact": 1.0007704081341218e-06,
        "polygon": 9.996466942501982e-07
      },
      {
        "kind": "baseline",
        "exact": 1.0003480671490206e-06,
        "polygon": 9.985677175080471e-07
      }
    ],
    "max_area_difference": 1.9304114573515108e-07,
    "mec_cases": 20,
    "max_radius_difference": 1.6351364706679306e-11,
    "rounding": "Python round(value,6) before comparisons",
    "baseline_official": 2.948526950912552
  },
  "search_seconds": 2179.816026540473,
  "executable_source": {
    "base.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 load(path):return arr(json.loads(Path(path).read_text()))\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\n",
    "contact.py": "import json, math, sys, time\nfrom pathlib import Path\nimport numpy as np\nfrom scipy.optimize import minimize\nimport base as b\nfrom semicircle_packing.geometry import Semicircle, semicircle_polygon\nfrom semicircle_packing.scoring import compute_mec, validate_and_score\n\nP = Path(__file__).resolve().parent\n\ndef gaps(a):\n    return np.array([b.pair(a[i], a[j])[0] for i,j in b.PAIRS])\n\ndef graph(a):\n    g = gaps(a)\n    return tuple(int(k) for k in np.where(g < .003)[0])\n\ndef rounded(a):\n    return b.arr(b.objects(a))\n\ndef official(a):\n    q = rounded(a)\n    return q, validate_and_score([Semicircle(*row) for row in q])\n\ndef allowances(a, target=.98e-6):\n    polys = [semicircle_polygon(Semicircle(*s)) for s in a]\n    correction = np.zeros(105)\n    for k,(i,j) in enumerate(b.PAIRS):\n        if np.linalg.norm(a[i,:2]-a[j,:2]) < 2.01:\n            correction[k] = max(0., b.area(a[i],a[j])-polys[i].intersection(polys[j]).area)\n    return b.allowances(a, target, correction)\n\ndef mode(a, release, rng):\n    R=b.own_mec(a)[2]\n    z=np.r_[a.ravel(),R]\n    g,j=b.constraints(z,np.zeros(105))\n    active=np.where(g[:105]<.012)[0]\n    rows=[j[k,:45] for k in active if k not in release]\n    rows += [j[105+i,:45] for i in range(15) if g[105+i]<.025]\n    rows += [np.tile([1.,0.,0.],15),np.tile([0.,1.,0.],15)]\n    M=np.array(rows)\n    u,s,vt=np.linalg.svd(M,full_matrices=True)\n    rank=int(np.sum(s>max(s[0]*1e-6,1e-9)))\n    N=vt[rank:].T\n    if not len(N.T): return rng.normal(size=45)\n    h=N@rng.normal(size=N.shape[1]); h/=max(np.linalg.norm(h),1e-12)\n    for k in release:\n        v=N@(N.T@j[k,:45]); v/=max(np.linalg.norm(v),1e-12)\n        if np.linalg.norm(v)>1e-8: h+=v*float(rng.uniform(.3,1.1))\n    h/=max(np.linalg.norm(h),1e-12)\n    return h\n\ndef repair(a,R,allow,steps=65):\n    try:\n        q,r,g,ok=b.local(a,R,True,allow,steps)\n        if not np.all(np.isfinite(q)): return None\n        return q,float(r),float(g)\n    except Exception:\n        return None\n\ndef check():\n    rng=np.random.default_rng(3310101)\n    cases=[]\n    for _ in range(100):\n        a=np.r_[rng.uniform(-1,1,2),rng.uniform(-math.pi,math.pi)]\n        c=np.r_[rng.uniform(-1,1,2),rng.uniform(-math.pi,math.pi)]\n        cases.append((a,c,'random'))\n    for t in np.linspace(0.00005,0.00012,25):\n        cases.append((np.array([0.,0.,0.]),np.array([2.-t,0.,0.]),'tight-arc'))\n        cases.append((np.array([0.,0.,0.]),np.array([-.5,t,math.pi]),'tight-flat'))\n    cases += [(b.load(P/'baseline.json')[i],b.load(P/'baseline.json')[j],'baseline') for i,j in b.PAIRS]\n    errors={}; mx=0.; disagree=[]\n    for a,c,kind in cases:\n        a=rounded(a.reshape(1,3))[0];c=rounded(c.reshape(1,3))[0]\n        own=b.area(a,c)\n        poly=semicircle_polygon(Semicircle(*a)).intersection(semicircle_polygon(Semicircle(*c))).area\n        mx=max(mx,abs(own-poly));errors[kind]=errors.get(kind,0)+1\n        if (own>1e-6)!=(poly>1e-6): disagree.append({'kind':kind,'exact':own,'polygon':poly})\n    mr=0.\n    for _ in range(20):\n        a=np.c_[rng.uniform(-3,3,(15,2)),rng.uniform(-math.pi,math.pi,15)]\n        a=rounded(a)\n        own=b.own_mec(a)[2]; off=compute_mec([Semicircle(*x) for x in a])[2]\n        mr=max(mr,abs(own-off))\n    a=b.load(P/'baseline.json'); q,v=official(a)\n    out={'pair_cases':errors,'pair_threshold_disagreements':disagree[:15],\n         'max_area_difference':mx,'mec_cases':20,'max_radius_difference':mr,\n         'rounding':'Python round(value,6) before comparisons','baseline_official':v.score}\n    (P/'scorer-check.json').write_text(json.dumps(out,indent=2))\n    print(json.dumps(out))\n\ndef run(seed,start,seconds):\n    rng=np.random.default_rng(seed); t0=time.monotonic(); deadline=t0+seconds\n    fresh=start.startswith('fresh')\n    if fresh:\n        a=np.c_[rng.uniform(-2.1,2.1,(15,2)),rng.uniform(-math.pi,math.pi,15)]\n        # Staged large-container repair creates a feasible independent start.\n        for radius in (5.5,4.5,3.7,3.2):\n            rr=repair(a,radius,np.zeros(105),85)\n            if rr is not None: a=rr[0]\n    else: a=b.load(P/(start+'.json'))\n    q,v=official(a)\n    best=(v.score,q.copy()) if v.valid else None\n    archive={}; attempts=0; valid=0; last=t0; trace=[]; failures=0\n    def retain(x,origin):\n        nonlocal best,valid\n        q,v=official(x)\n        if not v.valid: return False\n        valid+=1\n        key=graph(q); old=archive.get(key)\n        if old is None or v.score<old['score']:\n            archive[key]={'score':v.score,'solution':b.objects(q),'origin':origin}\n        if best is None or v.score<best[0]:\n            best=(v.score,q.copy());print('BEST',seed,attempts,v.score,origin,flush=True)\n        return True\n    if v.valid: retain(a,'start')\n    def save():\n        data={'seed':seed,'start':start,'seconds':time.monotonic()-t0,'attempts':attempts,\n              'valid_count':valid,'failed_repairs':failures,'best':None if best is None else\n              {'score':best[0],'solution':b.objects(best[1])},\n              'graphs':[{'edges':list(k),'score':v['score'],'solution':v['solution'],'origin':v['origin']}\n                        for k,v in sorted(archive.items(),key=lambda x:x[1]['score'])[:30]],\n              'trace':trace[-100:]}\n        p=P/('run-'+str(seed)+'.json');tmp=p.with_suffix('.tmp');tmp.write_text(json.dumps(data));tmp.replace(p)\n    save()\n    while time.monotonic()<deadline:\n        attempts+=1\n        if archive and rng.random()<.55:\n            x=b.arr(rng.choice(list(archive.values()))['solution'])\n        elif best is not None and rng.random()<.75:x=best[1].copy()\n        else:x=a.copy()\n        gs=gaps(x); active=np.where(gs<.006)[0]\n        if not len(active):\n            active=np.argsort(gs)[:min(12,len(gs))]\n        release=rng.choice(active,size=min(len(active),rng.choice([1,2])),replace=False)\n        step=mode(x,release,rng)\n        amp=float(rng.choice([.04,.10,.20,.40,.7]))\n        trial=x+amp*step.reshape(15,3)\n        if rng.random()<.2:\n            ring=rng.choice(15,size=3,replace=False)\n            trial[ring,2]+=rng.normal(0,.08,3)\n        allow=np.zeros(105)\n        opening=float(rng.choice([.003,.012,.035,.08]))\n        stage=allow.copy();stage[release]=-opening\n        R=b.own_mec(x)[2];cap=R+float(rng.choice([.01,.03,.07,.13]))\n        rr=repair(trial,cap,stage,65)\n        if rr is None:failures+=1;continue\n        y,r,g=rr\n        if r>cap+.004 or g<-.003:failures+=1;continue\n        retain(y,'opened '+','.join(map(str,release))+' opening '+str(opening))\n        rr=repair(y,min(r+.003,cap),allow,70)\n        if rr is None:failures+=1;continue\n        y,r,g=rr\n        good=retain(y,'released '+','.join(map(str,release))+' opening '+str(opening))\n        if good:\n            # Recompute local area allowances after the contact graph changes.\n            al=allowances(y,float(rng.uniform(.45,.75))*1e-6)\n            zz=b.local(y,r,False,al,55)\n            retain(zz[0],'area polish')\n        if good:trace.append({'attempt':attempts,'score':r,'released':list(map(int,release)),'graph_edges':len(graph(y))})\n        if time.monotonic()-last>=55:save();last=time.monotonic();print('CHECKPOINT',seed,attempts,valid,len(archive),flush=True)\n    save()\n\nif __name__=='__main__':\n    if sys.argv[1]=='check':check()\n    else:run(int(sys.argv[1]),sys.argv[2],float(sys.argv[3]))\n",
    "tolerance_polish.py": "import json, time, sys\nfrom pathlib import Path\nimport numpy as np\nimport base as b\nimport contact as c\nfrom semicircle_packing.geometry import Semicircle, semicircle_polygon\n\nP=Path(__file__).resolve().parent\nseed=int(sys.argv[2]) if len(sys.argv)>2 else 33108\nrng=np.random.default_rng(seed); start=time.monotonic(); limit=start+float(sys.argv[1])\ninput_file=sys.argv[3] if len(sys.argv)>3 else 'run-33107.json'\ninp=json.loads((P/input_file).read_text())['best']\na=b.arr(inp['solution']);best=None;attempts=0;valid=0;graphs={};last=start\ndef keep(q,origin):\n global best,valid\n z,v=c.official(q)\n if v.valid:\n  valid+=1;g=c.graph(z)\n  if g not in graphs or v.score<graphs[g]['score']:\n   graphs[g]={'edges':list(g),'score':v.score,'solution':b.objects(z),'origin':origin}\n  if best is None or v.score<best['score']:\n   best={'score':v.score,'solution':b.objects(z)};print('BEST polish',v.score,flush=True)\n return z,v\ndef save():\n d={'seed':seed,'start':'archive-best-polish','seconds':time.monotonic()-start,\n    'attempts':attempts,'valid_count':valid,'failed_repairs':0,\n    'best':best,'graphs':sorted(graphs.values(),key=lambda x:x['score'])[:30],\n    'trace':[]}\n p=P/f'run-{seed}.json';t=p.with_suffix('.tmp');t.write_text(json.dumps(d));t.replace(p)\nkeep(a,'start');save()\nwhile time.monotonic()<limit:\n target=float(rng.uniform(.98,1.03) if seed==33109 else rng.uniform(.93,1.015))*1e-6\n q0=b.arr(best['solution']) if best is not None and rng.random()<.6 else a\n al=c.allowances(q0,target)\n q,r,g,ok=b.local(q0,b.own_mec(q0)[2],False,al,90)\n for it in range(12):\n  attempts+=1;z,v=keep(q,'targeted official correction')\n  if v.valid:break\n  ps=[semicircle_polygon(Semicircle(*s)) for s in z]\n  bad=[]\n  for k,(i,j) in enumerate(b.PAIRS):\n   if np.sum((z[i,:2]-z[j,:2])**2)>4:continue\n   area=ps[i].intersection(ps[j]).area\n   if area>=.999e-6:\n    al[k]=max(0.,al[k]-max(5e-8,(area-.995e-6)/.025))\n    bad.append(k)\n  if not bad:break\n  q,r,g,ok=b.local(q,r+.002,False,al,60)\n if time.monotonic()-last>=55:save();last=time.monotonic();print('CHECKPOINT polish',attempts,valid,flush=True)\nsave()\n"
  },
  "source_character_count": 15824,
  "reproduction_inputs": {
    "baseline.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
      }
    ],
    "alt.json": [
      {
        "x": -0.601236,
        "y": -0.101191,
        "theta": -1.859253
      },
      {
        "x": 0.893479,
        "y": -1.429912,
        "theta": 2.045024
      },
      {
        "x": 0.684425,
        "y": 0.559049,
        "theta": -0.450825
      },
      {
        "x": -0.286427,
        "y": 0.848423,
        "theta": -0.695388
      },
      {
        "x": -1.587232,
        "y": 1.138844,
        "theta": 1.639909
      },
      {
        "x": -0.815408,
        "y": 1.775215,
        "theta": 0.717967
      },
      {
        "x": -1.331656,
        "y": 1.156535,
        "theta": -1.501679
      },
      {
        "x": -1.941586,
        "y": 0.215682,
        "theta": -2.61545
      },
      {
        "x": -1.756171,
        "y": -0.85565,
        "theta": -1.802945
      },
      {
        "x": -1.09777,
        "y": -1.615915,
        "theta": -0.964492
      },
      {
        "x": 0.569721,
        "y": -2.720065,
        "theta": 1.777263
      },
      {
        "x": 1.653958,
        "y": -1.039559,
        "theta": -1.096565
      },
      {
        "x": 1.933612,
        "y": 0.278243,
        "theta": -0.895678
      },
      {
        "x": 1.519565,
        "y": 1.227677,
        "theta": 0.311659
      },
      {
        "x": 0.242813,
        "y": 1.938376,
        "theta": 0.518648
      }
    ],
    "wide-best_new_solution.json": [
      {
        "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
      }
    ],
    "archive-best.json": [
      {
        "x": 0.537244,
        "y": 0.678818,
        "theta": -0.558477
      },
      {
        "x": 1.151278,
        "y": -1.22459,
        "theta": 2.239957
      },
      {
        "x": -1.558629,
        "y": -1.169685,
        "theta": -1.629195
      },
      {
        "x": 1.835424,
        "y": 0.654756,
        "theta": -0.71021
      },
      {
        "x": 0.254203,
        "y": 1.932063,
        "theta": 2.277851
      },
      {
        "x": -0.746234,
        "y": 1.800173,
        "theta": 3.138321
      },
      {
        "x": -1.637966,
        "y": 1.055725,
        "theta": -2.979813
      },
      {
        "x": -0.57952,
        "y": 0.778675,
        "theta": -1.669866
      },
      {
        "x": 0.011673,
        "y": 1.724841,
        "theta": -0.863742
      },
      {
        "x": 1.243627,
        "y": 1.500293,
        "theta": 0.465603
      },
      {
        "x": -1.943276,
        "y": -0.145489,
        "theta": -2.45171
      },
      {
        "x": -0.581084,
        "y": -0.22513,
        "theta": -1.659464
      },
      {
        "x": 1.082233,
        "y": -2.554151,
        "theta": 1.971578
      },
      {
        "x": -0.766674,
        "y": -1.791563,
        "theta": -0.783136
      },
      {
        "x": 1.820426,
        "y": -0.695369,
        "theta": -0.901635
      }
    ],
    "run-33107.json": {
      "best": {
        "score": 2.948552924081696,
        "solution": [
          {
            "x": 0.517844,
            "y": 0.693711,
            "theta": -0.530089
          },
          {
            "x": 1.185212,
            "y": -1.191587,
            "theta": 2.268119
          },
          {
            "x": -1.524778,
            "y": -1.213223,
            "theta": -1.600905
          },
          {
            "x": 1.816061,
            "y": 0.706243,
            "theta": -0.681974
          },
          {
            "x": 0.199646,
            "y": 1.938298,
            "theta": 2.305574
          },
          {
            "x": -0.796585,
            "y": 1.778288,
            "theta": 3.166792
          },
          {
            "x": -1.666951,
            "y": 1.009025,
            "theta": -2.951659
          },
          {
            "x": -0.601187,
            "y": 0.761923,
            "theta": -1.641784
          },
          {
            "x": -0.037204,
            "y": 1.724291,
            "theta": -0.836019
          },
          {
            "x": 1.20066,
            "y": 1.53469,
            "theta": 0.494032
          },
          {
            "x": -1.938223,
            "y": -0.200371,
            "theta": -2.423582
          },
          {
            "x": -0.574603,
            "y": -0.24144,
            "theta": -1.630997
          },
          {
            "x": 1.153573,
            "y": -2.522545,
            "theta": 1.999709
          },
          {
            "x": -0.715974,
            "y": -1.812247,
            "theta": -0.751448
          },
          {
            "x": 1.83913,
            "y": -0.643785,
            "theta": -0.873473
          }
        ]
      }
    },
    "run-33108.json": {
      "best": {
        "score": 2.948528363861881,
        "solution": [
          {
            "x": 0.517856,
            "y": 0.693693,
            "theta": -0.530103
          },
          {
            "x": 1.18516,
            "y": -1.191612,
            "theta": 2.268089
          },
          {
            "x": -1.524801,
            "y": -1.213154,
            "theta": -1.600938
          },
          {
            "x": 1.816057,
            "y": 0.706187,
            "theta": -0.682
          },
          {
            "x": 0.199716,
            "y": 1.938266,
            "theta": 2.305468
          },
          {
            "x": -0.796502,
            "y": 1.778299,
            "theta": 3.166809
          },
          {
            "x": -1.666892,
            "y": 1.009076,
            "theta": -2.951704
          },
          {
            "x": -0.601152,
            "y": 0.761936,
            "theta": -1.641829
          },
          {
            "x": -0.037171,
            "y": 1.72427,
            "theta": -0.836125
          },
          {
            "x": 1.200684,
            "y": 1.53464,
            "theta": 0.494017
          },
          {
            "x": -1.938206,
            "y": -0.2003,
            "theta": -2.423623
          },
          {
            "x": -0.574611,
            "y": -0.241414,
            "theta": -1.631001
          },
          {
            "x": 1.153469,
            "y": -2.522563,
            "theta": 1.999672
          },
          {
            "x": -0.716036,
            "y": -1.812196,
            "theta": -0.751405
          },
          {
            "x": 1.839085,
            "y": -0.643839,
            "theta": -0.873504
          }
        ]
      }
    }
  },
  "verification": {
    "clean_clone_commit": "78a78626f098cd236f3a09bb2cb242f72951599d",
    "official": {
      "valid": true,
      "score_full": 2.948526950912552,
      "score_8dp": "2.94852695",
      "mec": [
        -0.0001819080616875258,
        0.00013448997007248039,
        2.948526950912552
      ],
      "max_pair_area": 9.997822348073144e-07,
      "errors": []
    },
    "best_new": {
      "valid": true,
      "score_full": 2.948528363861881,
      "errors": []
    },
    "best_fresh": {
      "valid": true,
      "score_full": 3.0418084503569385,
      "errors": []
    },
    "repo_tests_passed": 31,
    "official_cli_plot_generated": true,
    "plot_embedded_as_svg": true
  },
  "commands": [
    "git clone https://github.com/benedictbrady/shape-packing-challenge.git test/scratch/official",
    "git -C test/scratch/official checkout 78a78626f098cd236f3a09bb2cb242f72951599d",
    "uv sync",
    "uv run python run.py",
    "python contact.py check",
    "python contact.py SEED START SECONDS",
    "python tolerance_polish.py SECONDS SEED INPUT_RUN_JSON"
  ],
  "repo_commit": "78a78626f098cd236f3a09bb2cb242f72951599d",
  "input_provenance": {
    "after-basin-wide": "65d0dfda56244b1f735392b9542deb46a3c1801f0e1f951805870f15b9cf0e04",
    "after-relaxed-rings": "6f15bebddde2e90c3d54f3630dfa30b0807a8775f333ece0219e395d79ca4436"
  },
  "selected_origin": "inherited",
  "notes": [
    "Scores are official validate_and_score after Python six-decimal rounding.",
    "The analytic area scorer differs from the official 4096-vertex polygon intersection near the 1e-6 threshold; official validation controls every retained score.",
    "No submission or sign-in was performed.",
    "Below 2.94853, but not an improvement over the inherited published radius.",
    "The best new array is below the displayed 2.94853 threshold but above the inherited full-precision published radius; it is not a new record."
  ]
}
