)]}'
{
  "commit": "8afd2b682aab04d562c2fabf8ec2a635174edca6",
  "tree": "8700868f837b0d3fdcdb935cb013fff3cd5a185e",
  "parents": [
    "b558da5bc21a52c5ab2222e339e1d4521bb44b48"
  ],
  "author": {
    "name": "Richard Levasseur",
    "email": "richardlev@gmail.com",
    "time": "Fri Nov 13 09:44:39 2026 -0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Nov 13 09:44:39 2026 -0800"
  },
  "message": "agents: remove worktree last and handle read-only output base files (#4497)\n\nRead-only directories in Bazel output bases caused cleanup removal to\nfail, while removing the Git worktree before branch deletion left the\nworkspace directory gone even when cleanup failed partway through.\n\nGrant owner read/write/execute permissions across output base trees\nwithout following symlinks before recursive removal, and reorder\ncleanup to remove the Bazel output base, remote branch, and local\nbranch (detaching HEAD first) before deleting the Git worktree only\nwhen all prior steps succeed.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "21b6285a5c0fb2b00adf5fbeb596b7e2c3e4c94a",
      "old_mode": 33188,
      "old_path": ".agents/skills/conversation-done/SKILL.md",
      "new_id": "4edfd6e191ab1a3c6d46ab8a8c694c687e7e8e6e",
      "new_mode": 33188,
      "new_path": ".agents/skills/conversation-done/SKILL.md"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "199204599eef5d1d74ee7f132f7ee1ffce25ae62",
      "new_mode": 33188,
      "new_path": ".agents/skills/conversation-done/scripts/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "e68f3d8c398c59a08eee86fa2e64c1b65de4f58a",
      "old_mode": 33261,
      "old_path": ".agents/skills/conversation-done/scripts/cleanup.py",
      "new_id": "974bc2a694590e1c4f325a8aa17b770a7ea670d9",
      "new_mode": 33261,
      "new_path": ".agents/skills/conversation-done/scripts/cleanup.py"
    },
    {
      "type": "delete",
      "old_id": "52285ee4935ba7bd368b73cfddfac46d2319f854",
      "old_mode": 33261,
      "old_path": ".agents/skills/conversation-done/scripts/cleanup_test.py",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2b241781c4f17ef9381d42389e00a47a70aea2d1",
      "new_mode": 33188,
      "new_path": "tests/agents/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a17edfec7cd2732596b8b133e63d7e1a1947d836",
      "new_mode": 33188,
      "new_path": "tests/agents/cleanup_test.py"
    }
  ]
}
