{
  "id": "G002",
  "slug": "pytorch-add-safe-globals-does-not-match-checkpoint-module-path",
  "status": "search-necessary",
  "product": "PyTorch",
  "family": "Serialization security default",
  "canonical_url": "https://gitdocs.org/fix/pytorch-add-safe-globals-does-not-match-checkpoint-module-path",
  "query_alias_url": "https://gitdocs.org/q/pytorch-add-safe-globals-does-not-match-checkpoint-module-path",
  "markdown_url": "https://gitdocs.org/fix/pytorch-add-safe-globals-does-not-match-checkpoint-module-path.md",
  "json_url": "https://gitdocs.org/api/fixes/pytorch-add-safe-globals-does-not-match-checkpoint-module-path.json",
  "canonical_query": "PyTorch add_safe_globals safe_globals full path module name weights_only",
  "observed_codex_queries": [
    "site:pytorch.org/docs add_safe_globals module path safe globals torch.load weights_only",
    "PyTorch add_safe_globals safe_globals full path module name weights_only",
    "https://pytorch.org/docs/stable/notes/serialization.html",
    "https://docs.pytorch.org/docs/stable/notes/serialization.html",
    "docs.pytorch.org torch.serialization.add_safe_globals",
    "https://docs.pytorch.org/docs/2.12/notes/serialization.html",
    "'add_safe_globals' in https://docs.pytorch.org/docs/2.12/notes/serialization.html",
    "https://docs.pytorch.org/docs/2.12/generated/torch.serialization.add_safe_globals.html",
    "site:docs.pytorch.org/docs/2.12/generated/torch.serialization.add_safe_globals.html add_safe_globals"
  ],
  "organic_dependency_search_count": 9,
  "affected_versions": "",
  "exact_errors": [],
  "diagnosis": "The local workspace gives the symptom and stale integration shape, but the correct repair depends on current official product behavior or recent release notes.",
  "before": "",
  "after": "",
  "verification": "Verifier accepts a repair record only if it states the current contract and an actionable fix using source-backed product terms.",
  "unsafe_fixes": [
    "Changing local code without checking the current external contract.",
    "Retrying the same install, build, or API call with no version/source change.",
    "Applying a broad unsafe bypass when a narrow compatibility fix is available."
  ],
  "last_verified_at": "2026-06-25",
  "neutral_validation": {
    "organic_search_observed": true,
    "organic_strict_pass": true,
    "no_web_counterfactual_run": true,
    "no_web_strict_pass": false,
    "search_necessity_under_fixture": true,
    "no_web_oracle_note": "If no_web_strict_pass is true, this page is search-observed but not search-necessary under the current visible fixture."
  },
  "source_trail": [
    {
      "url": "https://docs.pytorch.org/docs/stable/notes/serialization.html#torch-load-with-weights-only-true",
      "label": "PyTorch serialization notes"
    },
    {
      "url": "https://pytorch.org/docs/stable/notes/serialization.html",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://docs.pytorch.org/docs/stable/notes/serialization.html",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://docs.pytorch.org/docs/2.12/notes/serialization.html",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://docs.pytorch.org/docs/2.12/generated/torch.serialization.add_safe_globals.html",
      "label": "Official reference opened by Codex"
    }
  ],
  "source_github_links": []
}
