)]}'
{
  "commit": "e6bebcd1e3a27a84dd26f363f58aa092fb77f51f",
  "tree": "f635366b74fd04a3338997fc29326a25ff809110",
  "parents": [
    "716969b4d9eac70816d21405e3e3f2f4b3f52cb1"
  ],
  "author": {
    "name": "Dev-iL",
    "email": "6509619+Dev-iL@users.noreply.github.com",
    "time": "Tue Nov 10 14:16:27 2026 +0200"
  },
  "committer": {
    "name": "Stefan Krawczyk",
    "email": "stefan@dagworks.io",
    "time": "Mon Nov 16 08:54:03 2026 -0800"
  },
  "message": "Fix lost cache version entry when two mapped tasks write for the same node\n\nFor a node inside a Parallelizable/Collect block, HamiltonCacheAdapter keeps\na dict keyed by task in data_versions[run_id][node] and cache_keys[run_id][node].\nBoth writers checked whether that dict existed and then created it. Two tasks\non two threads could both see it missing; the second then replaced the dict of\nthe first and the first task\u0027s entry was lost.\n\nGet or create the nested dict with dict.setdefault(), a single atomic step,\nin _set_memory_metadata and _set_cache_key.\n\nAdd tests that force the losing order (both writers observe the missing dict\nbefore either creates it) for each map, and one that pins the shape of the\nentries of standard, expanding and collecting nodes.\n\n(cherry picked from commit b325e6187b7cc5df524efbf90ce61062d755505b)\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f2d44bc19d06af9e55010186c78e51d4f2d5cce7",
      "old_mode": 33188,
      "old_path": "hamilton/caching/adapter.py",
      "new_id": "fc8ce842ace72a62bf63d06c94c44f58b890ec66",
      "new_mode": 33188,
      "new_path": "hamilton/caching/adapter.py"
    },
    {
      "type": "modify",
      "old_id": "ae489ab11358b91c6a36456d4394ae603533efb1",
      "old_mode": 33188,
      "old_path": "tests/caching/test_adapter.py",
      "new_id": "4403842e800387386bd32f278f12720aa7304d81",
      "new_mode": 33188,
      "new_path": "tests/caching/test_adapter.py"
    }
  ]
}
