{
  "initial_qualification": {
    "code_sha256": "70dbc312b44008370621de367f82f5c840b391abc67aaf0acd56b5a2c135d988",
    "corpus_sha256": "e092d1a22557fc4b930224d1954b6dfba19d34679be7c93ebf807523dfdbab1c",
    "rows": [
      {
        "id": "invention-031-b",
        "methods": {
          "candidate": {
            "encode_ms": 0.074071,
            "decode_ms": 0.166111,
            "end_to_end_cpu_ms": 0.238243,
            "wire_bytes": 383
          },
          "jsonpatch": {
            "encode_ms": 0.356033,
            "decode_ms": 0.186992,
            "end_to_end_cpu_ms": 0.543025,
            "wire_bytes": 420
          },
          "jsonpatch_compact": {
            "encode_ms": 0.335683,
            "decode_ms": 0.180262,
            "end_to_end_cpu_ms": 0.509785,
            "wire_bytes": 384
          },
          "jsondiff": {
            "encode_ms": 3.227482,
            "decode_ms": 0.04874,
            "end_to_end_cpu_ms": 3.284222,
            "wire_bytes": 369
          },
          "full_gzip": {
            "encode_ms": 0.043101,
            "decode_ms": 0.03256,
            "end_to_end_cpu_ms": 0.075661,
            "wire_bytes": 979
          }
        },
        "failures": {},
        "unchanged": false,
        "old_bytes": 4387,
        "new_bytes": 4485
      },
      {
        "id": "invention-032-a",
        "methods": {
          "candidate": {
            "encode_ms": 0.0001,
            "decode_ms": 0.0001,
            "end_to_end_cpu_ms": 0.0002,
            "wire_bytes": 0
          },
          "jsonpatch": {
            "encode_ms": 0.00013,
            "decode_ms": 0.00013,
            "end_to_end_cpu_ms": 0.00026,
            "wire_bytes": 0
          },
          "jsonpatch_compact": {
            "encode_ms": 0.000109,
            "decode_ms": 0.000111,
            "end_to_end_cpu_ms": 0.00022,
            "wire_bytes": 0
          },
          "jsondiff": {
            "encode_ms": 0.00014,
            "decode_ms": 0.0001,
            "end_to_end_cpu_ms": 0.00023999999999999998,
            "wire_bytes": 0
          },
          "full_gzip": {
            "encode_ms": 0.00013,
            "decode_ms": 0.00013,
            "end_to_end_cpu_ms": 0.00026,
            "wire_bytes": 0
          }
        },
        "failures": {},
        "unchanged": true,
        "old_bytes": 6094,
        "new_bytes": 6094
      },
      {
        "id": "invention-033-a",
        "methods": {
          "candidate": {
            "encode_ms": 0.00012,
            "decode_ms": 0.00012,
            "end_to_end_cpu_ms": 0.00024,
            "wire_bytes": 0
          },
          "jsonpatch": {
            "encode_ms": 0.00012,
            "decode_ms": 0.0001,
            "end_to_end_cpu_ms": 0.00022,
            "wire_bytes": 0
          },
          "jsonpatch_compact": {
            "encode_ms": 0.00013,
            "decode_ms": 0.00011,
            "end_to_end_cpu_ms": 0.00023999999999999998,
            "wire_bytes": 0
          },
          "jsondiff": {
            "encode_ms": 0.00012,
            "decode_ms": 0.00011,
            "end_to_end_cpu_ms": 0.00023,
            "wire_bytes": 0
          },
          "full_gzip": {
            "encode_ms": 0.00013,
            "decode_ms": 0.00011,
            "end_to_end_cpu_ms": 0.00023999999999999998,
            "wire_bytes": 0
          }
        },
        "failures": {},
        "unchanged": true,
        "old_bytes": 4500,
        "new_bytes": 4500
      },
      {
        "id": "invention-034-b",
        "methods": {
          "candidate": {
            "encode_ms": 0.073631,
            "decode_ms": 0.152882,
            "end_to_end_cpu_ms": 0.226513,
            "wire_bytes": 156
          },
          "jsonpatch": {
            "encode_ms": 0.338554,
            "decode_ms": 0.155762,
            "end_to_end_cpu_ms": 0.49431600000000003,
            "wire_bytes": 181
          },
          "jsonpatch_compact": {
            "encode_ms": 0.354233,
            "decode_ms": 0.150281,
            "end_to_end_cpu_ms": 0.5016940000000001,
            "wire_bytes": 156
          },
          "jsondiff": {
            "encode_ms": 6.180669,
            "decode_ms": 0.04156,
            "end_to_end_cpu_ms": 6.222229,
            "wire_bytes": 153
          },
          "full_gzip": {
            "encode_ms": 0.0531,
            "decode_ms": 0.037081,
            "end_to_end_cpu_ms": 0.09018100000000001,
            "wire_bytes": 1228
          }
        },
        "failures": {},
        "unchanged": false,
        "old_bytes": 5815,
        "new_bytes": 5827
      },
      {
        "id": "invention-035-b",
        "methods": {
          "candidate": {
            "encode_ms": 0.071051,
            "decode_ms": 0.185552,
            "end_to_end_cpu_ms": 0.256603,
            "wire_bytes": 499
          },
          "jsonpatch": {
            "encode_ms": 0.499505,
            "decode_ms": 0.184762,
            "end_to_end_cpu_ms": 0.695827,
            "wire_bytes": 538
          },
          "jsonpatch_compact": {
            "encode_ms": 0.494944,
            "decode_ms": 0.193333,
            "end_to_end_cpu_ms": 0.688277,
            "wire_bytes": 497
          },
          "jsondiff": {
            "encode_ms": 3.955638,
            "decode_ms": 0.050152,
            "end_to_end_cpu_ms": 4.020609,
            "wire_bytes": 483
          },
          "full_gzip": {
            "encode_ms": 0.046321,
            "decode_ms": 0.03319,
            "end_to_end_cpu_ms": 0.079511,
            "wire_bytes": 1161
          }
        },
        "failures": {},
        "unchanged": false,
        "old_bytes": 4804,
        "new_bytes": 4960
      },
      {
        "id": "invention-038-b",
        "methods": {
          "candidate": {
            "encode_ms": 0.000131,
            "decode_ms": 8.9e-05,
            "end_to_end_cpu_ms": 0.00022,
            "wire_bytes": 0
          },
          "jsonpatch": {
            "encode_ms": 0.00013,
            "decode_ms": 0.00011,
            "end_to_end_cpu_ms": 0.00023999999999999998,
            "wire_bytes": 0
          },
          "jsonpatch_compact": {
            "encode_ms": 0.00014,
            "decode_ms": 0.00015,
            "end_to_end_cpu_ms": 0.00026999999999999995,
            "wire_bytes": 0
          },
          "jsondiff": {
            "encode_ms": 0.00014,
            "decode_ms": 0.00013,
            "end_to_end_cpu_ms": 0.00026999999999999995,
            "wire_bytes": 0
          },
          "full_gzip": {
            "encode_ms": 0.0001,
            "decode_ms": 9e-05,
            "end_to_end_cpu_ms": 0.00019,
            "wire_bytes": 0
          }
        },
        "failures": {},
        "unchanged": true,
        "old_bytes": 6065,
        "new_bytes": 6065
      },
      {
        "id": "invention-039-b",
        "methods": {
          "candidate": {
            "encode_ms": 0.128261,
            "decode_ms": 0.232541,
            "end_to_end_cpu_ms": 0.354484,
            "wire_bytes": 1008
          },
          "jsonpatch": {
            "encode_ms": 0.527785,
            "decode_ms": 0.245542,
            "end_to_end_cpu_ms": 0.773327,
            "wire_bytes": 1039
          },
          "jsonpatch_compact": {
            "encode_ms": 0.528385,
            "decode_ms": 0.246863,
            "end_to_end_cpu_ms": 0.7743180000000001,
            "wire_bytes": 1005
          },
          "jsondiff": {
            "encode_ms": 20.267066,
            "decode_ms": 0.087511,
            "end_to_end_cpu_ms": 20.354577,
            "wire_bytes": 992
          },
          "full_gzip": {
            "encode_ms": 0.1092,
            "decode_ms": 0.075201,
            "end_to_end_cpu_ms": 0.184401,
            "wire_bytes": 2191
          }
        },
        "failures": {},
        "unchanged": false,
        "old_bytes": 8870,
        "new_bytes": 11624
      },
      {
        "id": "observed-api-growth",
        "methods": {
          "candidate": {
            "encode_ms": 33.432511,
            "decode_ms": 24.577916,
            "end_to_end_cpu_ms": 58.022979,
            "wire_bytes": 398685
          },
          "jsonpatch": {
            "encode_ms": 57.981819,
            "decode_ms": 25.466386,
            "end_to_end_cpu_ms": 82.18632199999999,
            "wire_bytes": 399207
          },
          "jsonpatch_compact": {
            "encode_ms": 57.214501,
            "decode_ms": 25.784499,
            "end_to_end_cpu_ms": 84.194052,
            "wire_bytes": 399208
          },
          "jsondiff": {
            "encode_ms": 154.620062,
            "decode_ms": 24.278374,
            "end_to_end_cpu_ms": 177.2044,
            "wire_bytes": 398311
          },
          "full_gzip": {
            "encode_ms": 19.123144,
            "decode_ms": 10.211228,
            "end_to_end_cpu_ms": 29.385073,
            "wire_bytes": 424711
          }
        },
        "failures": {},
        "unchanged": false,
        "old_bytes": 101523,
        "new_bytes": 1617654
      },
      {
        "id": "observed-api-idle",
        "methods": {
          "candidate": {
            "encode_ms": 4.304261,
            "decode_ms": 13.811345,
            "end_to_end_cpu_ms": 18.191995,
            "wire_bytes": 88
          },
          "jsonpatch": {
            "encode_ms": 26.412954,
            "decode_ms": 15.359468,
            "end_to_end_cpu_ms": 41.772422,
            "wire_bytes": 114
          },
          "jsonpatch_compact": {
            "encode_ms": 28.482795,
            "decode_ms": 24.593277,
            "end_to_end_cpu_ms": 54.977819999999994,
            "wire_bytes": 88
          },
          "jsondiff": {
            "encode_ms": 9499.678957,
            "decode_ms": 0.057411,
            "end_to_end_cpu_ms": 9499.736368,
            "wire_bytes": 82
          },
          "full_gzip": {
            "encode_ms": 20.432769,
            "decode_ms": 11.29659,
            "end_to_end_cpu_ms": 32.087693,
            "wire_bytes": 424714
          }
        },
        "failures": {},
        "unchanged": false,
        "old_bytes": 1617654,
        "new_bytes": 1617654
      }
    ],
    "correct": true,
    "real_cases": 9,
    "adversarial_cases": 266,
    "complete_comparison": true,
    "comparisons": {
      "jsonpatch": {
        "paired_cases": 9,
        "totals": {
          "candidate": {
            "encode_ms": 38.084137,
            "decode_ms": 39.126656,
            "end_to_end_cpu_ms": 77.291477,
            "wire_bytes": 400819
          },
          "jsonpatch": {
            "encode_ms": 86.11703,
            "decode_ms": 41.599252,
            "end_to_end_cpu_ms": 126.46595899999998,
            "wire_bytes": 401499
          }
        },
        "encode_ratio": 0.4422370000451711,
        "wire_ratio": 0.9983063469647496
      },
      "jsonpatch_compact": {
        "paired_cases": 9,
        "totals": {
          "candidate": {
            "encode_ms": 38.084137,
            "decode_ms": 39.126656,
            "end_to_end_cpu_ms": 77.291477,
            "wire_bytes": 400819
          },
          "jsonpatch_compact": {
            "encode_ms": 87.41092,
            "decode_ms": 51.148886,
            "end_to_end_cpu_ms": 141.64667599999999,
            "wire_bytes": 401338
          }
        },
        "encode_ratio": 0.4356908381698762,
        "wire_ratio": 0.9987068256681401
      },
      "jsondiff": {
        "paired_cases": 9,
        "totals": {
          "candidate": {
            "encode_ms": 38.084137,
            "decode_ms": 39.126656,
            "end_to_end_cpu_ms": 77.291477,
            "wire_bytes": 400819
          },
          "jsondiff": {
            "encode_ms": 9687.930274,
            "decode_ms": 24.564087999999998,
            "end_to_end_cpu_ms": 9710.823145,
            "wire_bytes": 400390
          }
        },
        "encode_ratio": 0.003931091153928757,
        "wire_ratio": 1.0010714553310522
      },
      "full_gzip": {
        "paired_cases": 9,
        "totals": {
          "candidate": {
            "encode_ms": 38.084137,
            "decode_ms": 39.126656,
            "end_to_end_cpu_ms": 77.291477,
            "wire_bytes": 400819
          },
          "full_gzip": {
            "encode_ms": 39.807995,
            "decode_ms": 21.68618,
            "end_to_end_cpu_ms": 61.90321,
            "wire_bytes": 854984
          }
        },
        "encode_ratio": 0.9566956838695343,
        "wire_ratio": 0.4688029249670169
      }
    },
    "gate_passed": true,
    "measurement": "Cherry, one warmup and median of three measured samples per case/method. Independent jobs preserve the 55 CPU/60 wall second bound and 1 GB service memory ceiling. Incomplete baselines are explicit and cannot pass the original all-baselines gate. Encoding includes serialization and gzip; decoding includes decompression, parsing and independent patch application. Common input parsing and HTTP transport excluded.",
    "recovery": [
      "holdout-final.json",
      "holdout-resource-recovery.json"
    ]
  },
  "continuation": {
    "attempt": 10,
    "accepted": 0,
    "phase": "research_waiting",
    "started_at": "2026-11-01T21:50:33.408778+00:00",
    "stage": "scheduled",
    "updated_at": "2026-11-01T22:13:19.195777+00:00",
    "budget": {
      "remaining_micro_usd": 979420,
      "spent_micro_usd": 13915252,
      "blocked": false,
      "remaining_requests": 123,
      "model": "gpt-6.1-sol"
    },
    "last_feedback": {
      "correct": true,
      "real_cases": 15,
      "adversarial_cases": 266,
      "totals": {
        "candidate": {
          "encode_ms": 59.3188445,
          "decode_ms": 49.065466,
          "end_to_end_cpu_ms": 109.239181,
          "wire_bytes": 401357
        },
        "jsonpatch": {
          "encode_ms": 87.5660955,
          "decode_ms": 49.539114500000004,
          "end_to_end_cpu_ms": 139.44005,
          "wire_bytes": 402104
        },
        "jsonpatch_compact": {
          "encode_ms": 86.459259,
          "decode_ms": 47.974221,
          "end_to_end_cpu_ms": 133.996968,
          "wire_bytes": 401876
        },
        "full_gzip": {
          "encode_ms": 38.8394125,
          "decode_ms": 28.1603325,
          "end_to_end_cpu_ms": 67.0003655,
          "wire_bytes": 856699
        }
      },
      "encode_ratio_to_fastest_delta": 0.6860901329260756,
      "wire_ratio_to_smallest_delta": 0.9987085568682877,
      "gate_passed": true,
      "scope": "Real archived reports and observed snapshots; CPU is measured in one process with alternating order and includes encoding, gzip, decoding and patch application. Common input parsing and HTTP/network transport are excluded from this algorithm comparison and must be measured in deployment.",
      "versions": {
        "jsonpatch": "1.39",
        "jsondiff": "2.2.1"
      },
      "code_sha256": "e7b5266c432a9016242e7a37f708048678020a6991ef004c99107d40a9484730",
      "incumbent_development": {
        "encode_ms": 39.385788,
        "decode_ms": 44.9925425,
        "end_to_end_cpu_ms": 84.1086765,
        "wire_bytes": 401357
      },
      "previous_candidate_code": "import json\nimport math\n\n\ndef make_patch(old, new):\n    ops = []\n    missing = object()\n    dumps = json.dumps\n    sign = math.copysign\n    budget = 4\n\n    def child(path, key):\n        return path + '/' + str(key).replace('~', '~0').replace('/', '~1')\n\n    def equal(a, b):\n        if a is b:\n            return True\n        t = type(a)\n        if t is not type(b):\n            return False\n        if t is dict:\n            if len(a) != len(b):\n                return False\n            for k, v in a.items():\n                w = b.get(k, missing)\n                if w is missing or not equal(v, w):\n                    return False\n            return True\n        if t is list:\n            if len(a) != len(b):\n                return False\n            for x, y in zip(a, b):\n                if not equal(x, y):\n                    return False\n            return True\n        if t is float:\n            return a == b and (a != 0.0 or sign(1.0, a) == sign(1.0, b))\n        return a == b\n\n    def size(v):\n        return len(dumps(v, ensure_ascii=True, separators=(',', ':'),\n                         allow_nan=False))\n\n    def capped_size(v, limit):\n        if limit < 0:\n            return limit + 1\n        t = type(v)\n        if t is str:\n            if len(v) + 2 > limit:\n                return limit + 1\n            return min(len(dumps(v, ensure_ascii=True)), limit + 1)\n        if t is dict:\n            n = 2 + max(0, len(v) - 1)\n            if n + 4 * len(v) > limit:\n                return limit + 1\n            for k, w in v.items():\n                n += capped_size(k, limit - n) + 1\n                if n > limit:\n                    return limit + 1\n                n += capped_size(w, limit - n)\n                if n > limit:\n                    return limit + 1\n            return n\n        if t is list:\n            n = 2 + max(0, len(v) - 1)\n            if n + len(v) > limit:\n                return limit + 1\n            for w in v:\n                n += capped_size(w, limit - n)\n                if n > limit:\n                    return limit + 1\n            return n\n        if v is None:\n            n = 4\n        elif t is bool:\n            n = 4 if v else 5\n        elif t is int:\n            n = len(str(v))\n        else:\n            n = size(v)\n        return min(n, limit + 1)\n\n    def fallback(start, value, path):\n        nonlocal budget\n        if budget == 0 or len(ops) - start < 32:\n            return\n        budget -= 1\n        replacement = {'op': 'replace', 'path': path, 'value': None}\n        overhead = size(replacement) - 4\n        limit = (3 * size(ops[start:]) - 1) // 4 - overhead\n        if limit >= 0 and capped_size(value, limit) <= limit:\n            replacement['value'] = value\n            del ops[start:]\n            ops.append(replacement)\n\n    def walk(a, b, path):\n        if a is b:\n            return\n        ta, tb = type(a), type(b)\n        start = len(ops)\n        if ta is dict and tb is dict:\n            for k in a:\n                if k not in b:\n                    ops.append({'op': 'remove', 'path': child(path, k)})\n            for k, value in b.items():\n                previous = a.get(k, missing)\n                if previous is value:\n                    continue\n                if previous is missing:\n                    ops.append({'op': 'add', 'path': child(path, k),\n                                'value': value})\n                    continue\n                t = type(previous)\n                if t is dict or t is list:\n                    walk(previous, value, child(path, k))\n                    continue\n                if t is type(value) and previous == value:\n                    if t is not float or previous != 0.0 or sign(1.0, previous) == sign(1.0, value):\n                        continue\n                ops.append({'op': 'replace', 'path': child(path, k),\n                            'value': value})\n            fallback(start, b, path)\n            return\n        if ta is list and tb is list:\n            na, nb = len(a), len(b)\n            lo = 0\n            limit = min(na, nb)\n            while lo < limit and equal(a[lo], b[lo]):\n                lo += 1\n            if lo == na == nb:\n                return\n            ha, hb = na, nb\n            while ha > lo and hb > lo and equal(a[ha - 1], b[hb - 1]):\n                ha -= 1\n                hb -= 1\n            shared = min(ha - lo, hb - lo)\n            for i in range(lo, lo + shared):\n                walk(a[i], b[i], child(path, i))\n            for i in range(ha - 1, lo + shared - 1, -1):\n                ops.append({'op': 'remove', 'path': child(path, i)})\n            for i in range(lo + shared, hb):\n                ops.append({'op': 'add', 'path': child(path, i),\n                            'value': b[i]})\n            fallback(start, b, path)\n            return\n        if not equal(a, b):\n            ops.append({'op': 'replace', 'path': path, 'value': b})\n\n    walk(old, new, '')\n    return ops\n\n"
    },
    "last_result": {
      "attempt": 9,
      "accepted": false,
      "development": {
        "correct": true,
        "real_cases": 15,
        "adversarial_cases": 266,
        "totals": {
          "candidate": {
            "encode_ms": 59.3188445,
            "decode_ms": 49.065466,
            "end_to_end_cpu_ms": 109.239181,
            "wire_bytes": 401357
          },
          "jsonpatch": {
            "encode_ms": 87.5660955,
            "decode_ms": 49.539114500000004,
            "end_to_end_cpu_ms": 139.44005,
            "wire_bytes": 402104
          },
          "jsonpatch_compact": {
            "encode_ms": 86.459259,
            "decode_ms": 47.974221,
            "end_to_end_cpu_ms": 133.996968,
            "wire_bytes": 401876
          },
          "full_gzip": {
            "encode_ms": 38.8394125,
            "decode_ms": 28.1603325,
            "end_to_end_cpu_ms": 67.0003655,
            "wire_bytes": 856699
          }
        },
        "encode_ratio_to_fastest_delta": 0.6860901329260756,
        "wire_ratio_to_smallest_delta": 0.9987085568682877,
        "gate_passed": true,
        "scope": "Real archived reports and observed snapshots; CPU is measured in one process with alternating order and includes encoding, gzip, decoding and patch application. Common input parsing and HTTP/network transport are excluded from this algorithm comparison and must be measured in deployment.",
        "versions": {
          "jsonpatch": "1.39",
          "jsondiff": "2.2.1"
        },
        "code_sha256": "e7b5266c432a9016242e7a37f708048678020a6991ef004c99107d40a9484730"
      },
      "source_sha256": "e7b5266c432a9016242e7a37f708048678020a6991ef004c99107d40a9484730"
    }
  },
  "scope": "The reviewed initial encoder serves the website. Later validated library versions are downloadable artifacts, executed only in an isolated test process. Initial holdout cases become development data only after initial qualification; each later candidate must also pass a newly captured real state transition. These are domain measurements, not universal superiority or scientific novelty.",
  "source": "https://github.com/trynuria/nuria/tree/main/research/live-delta"
}
