{
 "ecosystem": "npm",
 "errata": [
  {
   "action": "Not for automatic application — after the patch the example still uses VertexAIBackend, which the verified example does not: the patch covers part of the change. 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 — format removed: there is no replacement to apply. Show this correction to the user as a lead. VertexAIBackend is not available in firebase 13.1.0; remove or replace this use. The same code works on firebase 12.11.0: pin a version before 13.1.0 if you cannot change the code. Release notes: getAI(app, { backend: new AgentPlatformBackend('us-central1') });",
     "applicability": {
      "method": "literal_patch",
      "reason": "format removed: there is no replacement to apply",
      "run_on": "13.1.0",
      "status": "not_applicable"
     },
     "by_notes": true,
     "changelog_ref": {
      "quote": "Removed the previously deprecated `VertexAIBackend` (and `BackendType.VERTEX_AI`). Use `AgentPlatformBackend` (and `BackendType.AGENT_PLATFORM`) instead.",
      "url": "https://github.com/firebase/firebase-js-sdk/releases/tag/@firebase/remote-config@0.8.4"
     },
     "confirmations": 2,
     "detect": [
      "VertexAIBackend"
     ],
     "equivalence": "not_comparable",
     "format": "removed",
     "kind": "removed",
     "right": "",
     "seen_in_models": [
      "gpt-6.1-sol"
     ],
     "wrong": "VertexAIBackend,"
    },
    {
     "action": "Not for automatic application — after the patch the example still uses VertexAIBackend, getImagenModel, which the verified example does not: the patch covers part of the change. Show this correction to the user as a lead. Review before applying: this fix runs on firebase 13.1.0, but its printed output differs from what the original printed on 12.11.0 (observed stdout of one example) — it may do different work. Replace the old line with the new one; the rest of the code can stay.",
     "applicability": {
      "leftover": [
       "VertexAIBackend",
       "getImagenModel"
      ],
      "line": 4,
      "method": "literal_patch",
      "occurrences": 1,
      "patched_sha": "9a02cf1d24a8",
      "reason": "after the patch the example still uses VertexAIBackend, getImagenModel, which the verified example does not: the patch covers part of the change",
      "run_on": "13.1.0",
      "status": "incomplete"
     },
     "by_notes": false,
     "changelog_ref": {
      "quote": "",
      "url": ""
     },
     "confirmations": 1,
     "detect": [
      "VertexAIBackend"
     ],
     "equivalence": "differs",
     "format": "replace",
     "kind": "behavior_changed",
     "right": "const { getAI, getGenerativeModel, AgentPlatformBackend } = require('firebase/ai');",
     "seen_in_models": [
      "gpt-6.1-sol"
     ],
     "wrong": "const { getAI, getImagenModel, VertexAIBackend } = require('firebase/ai');"
    }
   ],
   "applicability": {
    "leftover": [
     "VertexAIBackend"
    ],
    "line": 2,
    "method": "literal_patch",
    "occurrences": 1,
    "patched_sha": "65844846ae69",
    "reason": "after the patch the example still uses VertexAIBackend, which the verified example does not: the patch covers part of the change",
    "run_on": "13.1.0",
    "status": "incomplete"
   },
   "by_notes": false,
   "changelog_ref": {
    "quote": "",
    "url": ""
   },
   "confirmations": {
    "failed": 0,
    "worked": 9
   },
   "detect": [
    "VertexAIBackend"
   ],
   "ecosystem": "npm",
   "equivalence": "same",
   "error_kind": "not_constructor",
   "error_signature": {
    "message": "VertexAIBackend is not a constructor",
    "norm": "not_constructor:vertexaibackend",
    "type": "TypeError"
   },
   "first_seen": "2026-10-27T06:41:02+00:00",
   "format": "replace",
   "format_version": 2,
   "id": "npm/firebase/13.1.0/0001",
   "json": "https://formachines.ai/errata/npm/firebase/0001-vertexaibackend/index.json",
   "kind": "changed",
   "package": "firebase",
   "proof": {
    "applicability": {
     "leftover": [
      "VertexAIBackend"
     ],
     "line": 2,
     "method": "literal_patch",
     "occurrences": 1,
     "patched_sha": "65844846ae69",
     "reason": "after the patch the example still uses VertexAIBackend, which the verified example does not: the patch covers part of the change",
     "run_on": "13.1.0",
     "status": "incomplete"
    },
    "auto_apply": false,
    "auto_apply_reason": "the patch gives incomplete 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": "13.1.0",
    "fixed_on": "13.1.0",
    "level": "differential",
    "method": {
     "fix_on": "13.1.0",
     "name": "stdout_match",
     "normalization": "lines stripped, blank lines dropped, runs of whitespace collapsed; memory addresses, timestamps and temporary paths masked",
     "original_on": "12.11.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": "12.11.0"
   },
   "right": "const { getAI, AgentPlatformBackend } = require(\"firebase/ai\");",
   "seen_in_models": [
    "claude-sonnet-5-5",
    "gpt-6.1-sol"
   ],
   "seq": 1,
   "slug": "vertexaibackend",
   "source": "pipeline",
   "symbol": "VertexAIBackend",
   "updated": "2026-10-27T17:19:59+00:00",
   "url": "https://formachines.ai/errata/npm/firebase/0001-vertexaibackend/",
   "variant_confirmations": 6,
   "variant_models": [
    "claude-sonnet-5-5",
    "gpt-6.1-sol"
   ],
   "verified": "sandbox",
   "versions": {
    "changed_in": ">12.11.0,<=13.1.0",
    "fails_on": "13.1.0",
    "works_on": "12.11.0"
   },
   "wrong": "const { getAI, VertexAIBackend } = require(\"firebase/ai\");"
  },
  {
   "action": "Not for automatic application — after the patch the example still uses getImagenModel, which the verified example does not: the patch covers part of the change. Show this correction to the user as a lead. Review before applying: this fix runs on firebase 13.1.0, but its printed output differs from what the original printed on 12.11.0 (observed stdout of one example) — it may do different work. Replace the old line with the new one; the rest of the code can stay.",
   "alternatives": [],
   "applicability": {
    "leftover": [
     "getImagenModel"
    ],
    "line": 6,
    "method": "literal_patch",
    "occurrences": 1,
    "patched_sha": "546f90075dc4",
    "reason": "after the patch the example still uses getImagenModel, which the verified example does not: the patch covers part of the change",
    "run_on": "13.1.0",
    "status": "incomplete"
   },
   "by_notes": true,
   "changelog_ref": {
    "quote": "Imagen methods and types have been removed due to Imagen models being shut down.",
    "url": "https://github.com/firebase/firebase-js-sdk/releases"
   },
   "confirmations": {
    "failed": 0,
    "worked": 2
   },
   "detect": [
    "getImagenModel"
   ],
   "ecosystem": "npm",
   "equivalence": "differs",
   "error_kind": "not_function",
   "error_signature": {
    "message": "getImagenModel is not a function",
    "norm": "not_function:getimagenmodel",
    "type": "TypeError"
   },
   "first_seen": "2026-10-27T06:41:02+00:00",
   "format": "replace",
   "format_version": 2,
   "id": "npm/firebase/13.1.0/0003",
   "json": "https://formachines.ai/errata/npm/firebase/0003-getimagenmodel/index.json",
   "kind": "behavior_changed",
   "package": "firebase",
   "proof": {
    "applicability": {
     "leftover": [
      "getImagenModel"
     ],
     "line": 6,
     "method": "literal_patch",
     "occurrences": 1,
     "patched_sha": "546f90075dc4",
     "reason": "after the patch the example still uses getImagenModel, which the verified example does not: the patch covers part of the change",
     "run_on": "13.1.0",
     "status": "incomplete"
    },
    "auto_apply": false,
    "auto_apply_reason": "the fix's output differs from the original's; the patch gives incomplete 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": "differs",
    "equivalent": false,
    "fails_on": "13.1.0",
    "fixed_on": "13.1.0",
    "level": "differential",
    "method": {
     "fix_on": "13.1.0",
     "name": "stdout_match",
     "normalization": "lines stripped, blank lines dropped, runs of whitespace collapsed; memory addresses, timestamps and temporary paths masked",
     "original_on": "12.11.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": "12.11.0"
   },
   "right": "const { getAI, getGenerativeModel, GoogleAIBackend } = require(\"firebase/ai\");",
   "seen_in_models": [
    "claude-sonnet-5-5",
    "gpt-6.1-sol"
   ],
   "seq": 3,
   "slug": "getimagenmodel",
   "source": "pipeline",
   "symbol": "getImagenModel",
   "updated": "2026-10-27T17:19:58+00:00",
   "url": "https://formachines.ai/errata/npm/firebase/0003-getimagenmodel/",
   "variant_confirmations": 2,
   "variant_models": [
    "claude-sonnet-5-5",
    "gpt-6.1-sol"
   ],
   "verified": "sandbox",
   "versions": {
    "changed_in": ">12.11.0,<=13.1.0",
    "fails_on": "13.1.0",
    "works_on": "12.11.0"
   },
   "wrong": "const { getAI, getImagenModel, GoogleAIBackend } = require(\"firebase/ai\");"
  }
 ],
 "fails_on": [
  "13.1.0"
 ],
 "license": "https://creativecommons.org/licenses/by/4.0/",
 "models": [
  {
   "checked": 12,
   "model": "claude-sonnet-5-5",
   "outdated": 8,
   "share": 0.67
  },
  {
   "checked": 12,
   "model": "gpt-6.1-sol",
   "outdated": 10,
   "share": 0.83
  },
  {
   "checked": 10,
   "model": "gemini-3.8-flash",
   "outdated": 0,
   "share": 0.0
  }
 ],
 "new_version": "13.1.0",
 "old_version": "12.11.0",
 "package": "firebase",
 "updated": "2026-10-27"
}