)]}'
{
  "commit": "1234fd8b92e1d375df95cbf1d958be177fd0e326",
  "tree": "1f949d6832a35af9a612e11c8c6d08b406462cd1",
  "parents": [
    "fcecee37514b02c8dbddc2b8d90e5ae186946476"
  ],
  "author": {
    "name": "Sebastian Ullrich",
    "email": "sebasti@nullri.ch",
    "time": "Fri Sep 25 16:48:29 2026 +0000"
  },
  "committer": {
    "name": "Sebastian Ullrich",
    "email": "sebasti@nullri.ch",
    "time": "Sun Sep 27 09:50:13 2026 +0000"
  },
  "message": "feat: generation-tracked environment extensions\n\nThis PR adds generation-tracked environment extensions: every modification of an extension registered with `trackGen :\u003d true` bumps a generation counter, so that a result computed from the extension state can be validated later by comparing generations (`EnvExtension.getGen`). `Environment.trackedGen` counts the modifications of all such extensions, and `modifyState (bumpGen :\u003d false)` changes the state without bumping. Generations are branch-local, so tracked extensions must use `AsyncMode.local` or `.mainOnly`. Extensions also gain a `name` for diagnostics, set automatically for persistent extensions.\n\nThe generations and `trackedGen` are stored in the kernel environment next to the extension states, sized together with them, so that anything replacing the states replaces their generations as well; the extension states themselves and `getState` are unchanged.\n\nCo-Authored-By: Claude Opus 5.5 (1M context) \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ecdca3353661882a6403243c8aae5c91a31728cd",
      "old_mode": 33188,
      "old_path": "src/Lean/Environment.lean",
      "new_id": "d4a2cf9c59c672256849467dabf24ebbe0c5a12a",
      "new_mode": 33188,
      "new_path": "src/Lean/Environment.lean"
    },
    {
      "type": "modify",
      "old_id": "3baec9ac0fdd7e712e519058688bded2cada4bf1",
      "old_mode": 33188,
      "old_path": "stage0/src/stdlib_flags.h",
      "new_id": "bfd7e2768544e63a4ed3ddafb625837155294925",
      "new_mode": 33188,
      "new_path": "stage0/src/stdlib_flags.h"
    },
    {
      "type": "modify",
      "old_id": "393ee8a842d18f80b9868f7036dde29b667cc06a",
      "old_mode": 33188,
      "old_path": "tests/elab/structure.lean",
      "new_id": "54594a31ea6b2cc8862884f8379dbb6efda162e9",
      "new_mode": 33188,
      "new_path": "tests/elab/structure.lean"
    },
    {
      "type": "modify",
      "old_id": "fa6a24d7dcdfaa4c50f4e27702838d2779e474f2",
      "old_mode": 33188,
      "old_path": "tests/pkg/leanchecker/LeanCheckerTests/ReplaceAxiom.lean",
      "new_id": "253c95a2ae7f72128ff5ad313d937042ea9abea5",
      "new_mode": 33188,
      "new_path": "tests/pkg/leanchecker/LeanCheckerTests/ReplaceAxiom.lean"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a50cd6366a8b065a3a73333ce08c4ebeaa89050c",
      "new_mode": 33188,
      "new_path": "tests/pkg/tracked_ext/TrackedExt.lean"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9acf4323fe0427e7ce2c8405b26cf9e082a694cf",
      "new_mode": 33188,
      "new_path": "tests/pkg/tracked_ext/TrackedExt/Ext.lean"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f18c62fce7c2d669c13024fe53c2b8c49650edba",
      "new_mode": 33188,
      "new_path": "tests/pkg/tracked_ext/TrackedExt/Gen.lean"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e430e3e984e3497fd1ec270c51b6ebe42b63d721",
      "new_mode": 33188,
      "new_path": "tests/pkg/tracked_ext/lakefile.lean"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d55e55c3660e5bf2496e34f039382108045fcaf1",
      "new_mode": 33188,
      "new_path": "tests/pkg/tracked_ext/lean-toolchain"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c69eda46576b047b5d9873bc3c93ee7a60a9ca67",
      "new_mode": 33188,
      "new_path": "tests/pkg/tracked_ext/run_test.sh"
    }
  ]
}
