{
 "ecosystem": "pypi",
 "errata": [
  {
   "action": "Replace the old line with the new one; the rest of the code can stay.",
   "alternatives": [],
   "applicability": {
    "exit_code": 0,
    "line": 13,
    "method": "literal_patch",
    "occurrences": 1,
    "output": "same",
    "patched_sha": "7f3cd8b4201c",
    "reason": "applied word for word, the patch parses, drops the old names, runs on 1.18.1 and prints what the verified example prints",
    "run_on": "1.18.1",
    "status": "applies"
   },
   "by_notes": true,
   "changelog_ref": {
    "quote": "The deprecated ``atol`` argument of `scipy.optimize.nnls` has been",
    "url": "https://github.com/scipy/scipy/releases"
   },
   "confirmations": {
    "failed": 0,
    "worked": 2
   },
   "detect": [
    "atol"
   ],
   "ecosystem": "pypi",
   "equivalence": "same",
   "error_kind": "unexpected_kwarg",
   "error_signature": {
    "message": "nnls() got an unexpected keyword argument 'atol'",
    "norm": "unexpected_kwarg:atol",
    "type": "TypeError"
   },
   "first_seen": "2026-10-20T16:11:13+00:00",
   "format": "replace",
   "format_version": 2,
   "id": "pypi/scipy/1.18.1/0001",
   "json": "https://formachines.ai/errata/pypi/scipy/0001-scipy-optimize-nnls/index.json",
   "kind": "removed",
   "package": "scipy",
   "proof": {
    "applicability": {
     "exit_code": 0,
     "line": 13,
     "method": "literal_patch",
     "occurrences": 1,
     "output": "same",
     "patched_sha": "7f3cd8b4201c",
     "reason": "applied word for word, the patch parses, drops the old names, runs on 1.18.1 and prints what the verified example prints",
     "run_on": "1.18.1",
     "status": "applies"
    },
    "auto_apply": true,
    "auto_apply_reason": "proof.equivalent is true and the patch applies word for word",
    "auto_apply_rule": "Automatic application is allowed only when proof.equivalent is true and proof.applicability.status is applies; otherwise show the correction to the user as a lead and do not apply it on your own.",
    "equivalence": "same",
    "equivalent": true,
    "fails_on": "1.18.1",
    "fixed_on": "1.18.1",
    "level": "differential",
    "method": {
     "fix_on": "1.18.1",
     "name": "stdout_match",
     "normalization": "lines stripped, blank lines dropped, runs of whitespace collapsed; memory addresses, timestamps and temporary paths masked",
     "original_on": "1.17.1",
     "scope": "the observable stdout of one example script; return values, files, other inputs and exception types are not compared, so a match is not a proof of equivalent behaviour"
    },
    "works_on": "1.17.1"
   },
   "right": "x, residual_norm = nnls(A, b)",
   "seen_in_models": [
    "gpt-6.1-sol"
   ],
   "seq": 1,
   "slug": "scipy-optimize-nnls",
   "source": "pipeline",
   "symbol": "scipy.optimize.nnls",
   "updated": "2026-10-27T17:20:00+00:00",
   "url": "https://formachines.ai/errata/pypi/scipy/0001-scipy-optimize-nnls/",
   "variant_confirmations": 2,
   "variant_models": [
    "gpt-6.1-sol"
   ],
   "verified": "sandbox",
   "versions": {
    "changed_in": ">1.17.1,<=1.18.1",
    "fails_on": "1.18.1",
    "works_on": "1.17.1"
   },
   "wrong": "x, residual_norm = nnls(A, b, atol=1e-8)"
  },
  {
   "action": "Not for automatic application — the patched example does not run on 1.18.1: exit code 1, NameError: name 'errest' is not defined. Show this correction to the user as a lead. Replace the old line with the new one; the rest of the code can stay.",
   "alternatives": [
    {
     "action": "Not for automatic application — the patched example does not run on 1.18.1: exit code 1, NameError: name 'error_estimate' is not defined. Show this correction to the user as a lead. Replace the old line with the new one; the rest of the code can stay.",
     "applicability": {
      "exit_code": 1,
      "line": 13,
      "method": "literal_patch",
      "occurrences": 1,
      "patched_sha": "92ac8e3842d6",
      "reason": "the patched example does not run on 1.18.1: exit code 1, NameError: name 'error_estimate' is not defined",
      "run_on": "1.18.1",
      "status": "fails"
     },
     "by_notes": false,
     "changelog_ref": {
      "quote": "",
      "url": ""
     },
     "confirmations": 2,
     "detect": [
      "disp"
     ],
     "equivalence": "same",
     "format": "replace",
     "kind": "changed",
     "right": "root = sqrtm(matrix)",
     "seen_in_models": [
      "gpt-6.1-sol"
     ],
     "wrong": "root, error_estimate = sqrtm(matrix, disp=False)"
    }
   ],
   "applicability": {
    "exit_code": 1,
    "line": 12,
    "method": "literal_patch",
    "occurrences": 1,
    "patched_sha": "22534c53e714",
    "reason": "the patched example does not run on 1.18.1: exit code 1, NameError: name 'errest' is not defined",
    "run_on": "1.18.1",
    "status": "fails"
   },
   "by_notes": false,
   "changelog_ref": {
    "quote": "",
    "url": ""
   },
   "confirmations": {
    "failed": 0,
    "worked": 4
   },
   "detect": [
    "disp"
   ],
   "ecosystem": "pypi",
   "equivalence": "same",
   "error_kind": "unexpected_kwarg",
   "error_signature": {
    "message": "sqrtm() got an unexpected keyword argument 'disp'",
    "norm": "unexpected_kwarg:disp",
    "type": "TypeError"
   },
   "first_seen": "2026-10-20T16:11:13+00:00",
   "format": "replace",
   "format_version": 2,
   "id": "pypi/scipy/1.18.1/0003",
   "json": "https://formachines.ai/errata/pypi/scipy/0003-scipy-linalg-sqrtm/index.json",
   "kind": "changed",
   "package": "scipy",
   "proof": {
    "applicability": {
     "exit_code": 1,
     "line": 12,
     "method": "literal_patch",
     "occurrences": 1,
     "patched_sha": "22534c53e714",
     "reason": "the patched example does not run on 1.18.1: exit code 1, NameError: name 'errest' is not defined",
     "run_on": "1.18.1",
     "status": "fails"
    },
    "auto_apply": false,
    "auto_apply_reason": "the patch gives fails when applied word for word",
    "auto_apply_rule": "Automatic application is allowed only when proof.equivalent is true and proof.applicability.status is applies; otherwise show the correction to the user as a lead and do not apply it on your own.",
    "equivalence": "same",
    "equivalent": true,
    "fails_on": "1.18.1",
    "fixed_on": "1.18.1",
    "level": "differential",
    "method": {
     "fix_on": "1.18.1",
     "name": "stdout_match",
     "normalization": "lines stripped, blank lines dropped, runs of whitespace collapsed; memory addresses, timestamps and temporary paths masked",
     "original_on": "1.17.1",
     "scope": "the observable stdout of one example script; return values, files, other inputs and exception types are not compared, so a match is not a proof of equivalent behaviour"
    },
    "works_on": "1.17.1"
   },
   "right": "root = linalg.sqrtm(A)",
   "seen_in_models": [
    "gemini-3.8-flash",
    "gpt-6.1-sol"
   ],
   "seq": 3,
   "slug": "scipy-linalg-sqrtm",
   "source": "pipeline",
   "symbol": "scipy.linalg.sqrtm",
   "updated": "2026-10-27T17:20:00+00:00",
   "url": "https://formachines.ai/errata/pypi/scipy/0003-scipy-linalg-sqrtm/",
   "variant_confirmations": 2,
   "variant_models": [
    "gemini-3.8-flash"
   ],
   "verified": "sandbox",
   "versions": {
    "changed_in": ">1.17.1,<=1.18.1",
    "fails_on": "1.18.1",
    "works_on": "1.17.1"
   },
   "wrong": "root, errest = linalg.sqrtm(A, disp=False)"
  }
 ],
 "fails_on": [
  "1.18.1"
 ],
 "license": "https://creativecommons.org/licenses/by/4.0/",
 "models": [
  {
   "checked": 12,
   "model": "claude-sonnet-5-5",
   "outdated": 2,
   "share": 0.17
  },
  {
   "checked": 12,
   "model": "gpt-6.1-sol",
   "outdated": 6,
   "share": 0.5
  },
  {
   "checked": 12,
   "model": "gemini-3.8-flash",
   "outdated": 4,
   "share": 0.33
  }
 ],
 "new_version": "1.18.1",
 "old_version": "1.17.1",
 "package": "scipy",
 "updated": "2026-10-27"
}