)]}'
{
  "commit": "3f9047229260a894bf834c4a31eaf2ae7f1f2b46",
  "tree": "0b57f565db76b30d9c0347827a100f86f6d33486",
  "parents": [
    "85b462f23c73be9493e258db7d86fc941fa0f815"
  ],
  "author": {
    "name": "Leonardo de Moura",
    "email": "leomoura@amazon.com",
    "time": "Wed Oct 28 01:17:57 2026 +0000"
  },
  "committer": {
    "name": "Leonardo de Moura",
    "email": "leomoura@amazon.com",
    "time": "Wed Oct 28 05:27:42 2026 +0000"
  },
  "message": "feat: only suggest `grind?` tactics that close the goal\n\nThis PR makes `grind?` check each suggested tactic before showing it. Previously, only the generated `grind \u003d\u003e` script was checked, and it was suggested even when the check failed. Suggestions that do not close the goal are now reported in a warning instead of being suggested, and if none of them works, `grind?` suggests `grind` with the original configuration and parameters. `try?` uses the same check for the `grind only` suggestions it shows.\n\nIt also adds the options `grind.debug.badAnchors`, `grind.debug.dropParams`, and `grind.debug.dropSteps`, which deliberately break the suggestions of `grind?`. They are for debugging and testing only, and are used to test the reporting of failing suggestions.\n\nCo-Authored-By: Claude Opus 5.5 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cc6ef871918b2f064fa1f217daf3f692aca39f33",
      "old_mode": 33188,
      "old_path": "src/Lean/Elab/Tactic/Grind/Main.lean",
      "new_id": "7e767f1ac0b0a4d9c39da5625dd19a62bce9617e",
      "new_mode": 33188,
      "new_path": "src/Lean/Elab/Tactic/Grind/Main.lean"
    },
    {
      "type": "modify",
      "old_id": "c4a3f951cde59489bd0374b1d17050ae965e232e",
      "old_mode": 33188,
      "old_path": "src/Lean/Elab/Tactic/Try.lean",
      "new_id": "270398c51cbf7ed3bd0cbf4330430dd5534deeed",
      "new_mode": 33188,
      "new_path": "src/Lean/Elab/Tactic/Try.lean"
    },
    {
      "type": "modify",
      "old_id": "8c454bded6e348aab9946f4dfff3e744c31d3544",
      "old_mode": 33188,
      "old_path": "src/Lean/Meta/Tactic/Grind/CollectParams.lean",
      "new_id": "97abc10d9595372134b257f80fd7e7bfb034326f",
      "new_mode": 33188,
      "new_path": "src/Lean/Meta/Tactic/Grind/CollectParams.lean"
    },
    {
      "type": "modify",
      "old_id": "3457d1845b8f63df3aa4f6bdbdc8111e1141c9af",
      "old_mode": 33188,
      "old_path": "src/Lean/Meta/Tactic/Grind/Types.lean",
      "new_id": "6cd883cd4fc9c5e6bcbdb715d53b8bd0f75cba70",
      "new_mode": 33188,
      "new_path": "src/Lean/Meta/Tactic/Grind/Types.lean"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cbecb234998ca5c9438b6747182bc9778f997ad1",
      "new_mode": 33188,
      "new_path": "tests/elab/grind_trace_validate.lean"
    }
  ]
}
