{
 "agent_rule": "Apply a correction on your own only when the installed version is one it was checked on (versions.checked_on: versions.fails_on and every recheck) and its proof.auto_apply is true (proof.equivalent is true and proof.applicability.status is applies). On a newer version than those checked, a version between versions.works_on and versions.fails_on, or an unknown version, show it to the user as a lead and do not apply it; on versions.works_on or older it does not apply.",
 "ecosystem": "npm",
 "errata": [
  {
   "action": "Not for automatic application — the patched example does not run on 14.5.0: exit code 1, ReferenceError: cert 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 14.5.0: exit code 1, TypeError: admin.auth is not a function. 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": 20,
      "method": "literal_patch",
      "occurrences": 1,
      "patched_sha": "22e17f9e10c8",
      "reason": "the patched example does not run on 14.5.0: exit code 1, TypeError: admin.auth is not a function",
      "run_on": "14.5.0",
      "status": "fails"
     },
     "by_notes": true,
     "changelog_ref": {
      "quote": "change: Remove Deprecated Legacy Namespace Support (#3164)",
      "url": "https://github.com/firebase/firebase-admin-node/releases/tag/v14.0.0"
     },
     "confirmations": 1,
     "detect": [
      "admin.credential.cert"
     ],
     "equivalence": "same",
     "format": "replace",
     "kind": "removed",
     "right": "credential: admin.cert({",
     "seen_in_models": [
      "gemini-3.8-flash"
     ],
     "wrong": "credential: admin.credential.cert({"
    }
   ],
   "applicability": {
    "exit_code": 1,
    "line": 20,
    "method": "literal_patch",
    "occurrences": 1,
    "patched_sha": "14bf41bf72e0",
    "reason": "the patched example does not run on 14.5.0: exit code 1, ReferenceError: cert is not defined",
    "run_on": "14.5.0",
    "status": "fails"
   },
   "by_notes": true,
   "changelog_ref": {
    "quote": "change: Remove Deprecated Legacy Namespace Support (#3164)",
    "url": "https://github.com/firebase/firebase-admin-node/releases/tag/v14.0.0"
   },
   "confirmations": {
    "failed": 0,
    "worked": 4
   },
   "detect": [
    "admin.credential.cert"
   ],
   "ecosystem": "npm",
   "equivalence": "same",
   "error_kind": "undefined_prop",
   "error_signature": {
    "message": "Cannot read properties of undefined (reading 'cert')",
    "norm": "undefined_prop:cert",
    "type": "TypeError"
   },
   "first_seen": "2026-10-28T08:02:31+00:00",
   "format": "replace",
   "format_version": 2,
   "id": "npm/firebase-admin/14.5.0/0001",
   "json": "https://formachines.ai/errata/npm/firebase-admin/0001-admin-credential/index.json",
   "kind": "removed",
   "package": "firebase-admin",
   "proof": {
    "applicability": {
     "exit_code": 1,
     "line": 20,
     "method": "literal_patch",
     "occurrences": 1,
     "patched_sha": "14bf41bf72e0",
     "reason": "the patched example does not run on 14.5.0: exit code 1, ReferenceError: cert is not defined",
     "run_on": "14.5.0",
     "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": "14.5.0",
    "fixed_on": "14.5.0",
    "level": "differential",
    "method": {
     "fix_on": "14.5.0",
     "name": "stdout_match",
     "normalization": "lines stripped, blank lines dropped, runs of whitespace collapsed; memory addresses, timestamps and temporary paths masked",
     "original_on": "13.7.0",
     "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": "13.7.0"
   },
   "right": "credential: cert({",
   "seen_in_models": [
    "gemini-3.8-flash",
    "gpt-6.1-sol"
   ],
   "seq": 1,
   "slug": "admin-credential",
   "source": "pipeline",
   "symbol": "admin.credential",
   "updated": "2026-10-28T08:02:32+00:00",
   "url": "https://formachines.ai/errata/npm/firebase-admin/0001-admin-credential/",
   "variant_confirmations": 3,
   "variant_models": [
    "gemini-3.8-flash",
    "gpt-6.1-sol"
   ],
   "verified": "sandbox",
   "versions": {
    "changed_in": ">13.7.0,<=14.5.0",
    "checked_on": [
     "14.5.0"
    ],
    "fails_on": "14.5.0",
    "works_on": "13.7.0"
   },
   "wrong": "credential: admin.credential.cert({"
  }
 ],
 "fails_on": [
  "14.5.0"
 ],
 "license": "https://creativecommons.org/licenses/by/4.0/",
 "models": [
  {
   "checked": 4,
   "model": "claude-sonnet-5-5",
   "outdated": 2,
   "share": 0.5
  },
  {
   "checked": 4,
   "model": "gpt-6.1-sol",
   "outdated": 2,
   "share": 0.5
  },
  {
   "checked": 4,
   "model": "gemini-3.8-flash",
   "outdated": 2,
   "share": 0.5
  }
 ],
 "new_version": "14.5.0",
 "old_version": "13.7.0",
 "package": "firebase-admin",
 "updated": "2026-10-28"
}